Selaa lähdekoodia

工程现场 界面修改

zhanghao 1 kuukausi sitten
vanhempi
commit
cd5146d6ba
2 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 4 4
      src/views/pad/engineering/main.vue
  2. 4 4
      src/views/screen/engineering/main.vue

+ 4 - 4
src/views/pad/engineering/main.vue

@@ -418,8 +418,8 @@ export default {
       getProjectNumX(this.appOrg).then((res) => {
         if (Number(res.code) === 200) {
           const fetchedData = res.data;
-          if (res.data.length > 0 && res.data.subdivision) {
-            for (let i = 0; i < this.parest.length; i++) {
+          if (res.data.length > 0) {
+            for (let i = 0; i < res.data.length; i++) {
               this.parest[fetchedData[i].subdivision - 1].num = fetchedData[i].num;
             }
           }
@@ -438,8 +438,8 @@ export default {
       getProjectNumY(this.appOrg).then((res) => {
         if (Number(res.code) === 200) {
           const fetchedData = res.data;
-          if (res.data.length > 0 && res.data.subdivision){
-            for (let i = 0; i < this.parest1.length; i++) {
+          if (res.data.length > 0){
+            for (let i = 0; i < res.data.length; i++) {
               this.parest1[fetchedData[i].subdivision-11].num= fetchedData[i].num;
             }
           }

+ 4 - 4
src/views/screen/engineering/main.vue

@@ -419,8 +419,8 @@ export default {
       getProjectNumX(this.appOrg).then((res) => {
         if (Number(res.code) === 200) {
           const fetchedData = res.data;
-          if (res.data.length > 0 && res.data.subdivision) {
-            for (let i = 0; i < this.parest.length; i++) {
+          if (res.data.length > 0) {
+            for (let i = 0; i < res.data.length; i++) {
               this.parest[fetchedData[i].subdivision - 1].num = fetchedData[i].num;
             }
           }
@@ -439,8 +439,8 @@ export default {
       getProjectNumY(this.appOrg).then((res) => {
         if (Number(res.code) === 200) {
           const fetchedData = res.data;
-          if (res.data.length > 0 && res.data.subdivision){
-            for (let i = 0; i < this.parest1.length; i++) {
+          if (res.data.length > 0){
+            for (let i = 0; i < res.data.length; i++) {
               this.parest1[fetchedData[i].subdivision-11].num= fetchedData[i].num;
             }
           }