소스 검색

问题修改

xujuanning 4 일 전
부모
커밋
c621eae52e

+ 1 - 0
src/views/economicsOperation/singleMachineDeviation/singleMachineDev.vue

@@ -221,6 +221,7 @@ export default {
       });
     },
     changeData(res) {
+      this.tableData = []
       if (res && res.data) {
         for (const key in res.data) {
           const element = res.data[key];

+ 2 - 3
src/views/economicsOperation/thematicAnalysis/failure/index.vue

@@ -316,7 +316,7 @@ export default {
         list.targetList.forEach((item) => {
           barList[0].date.push(item.month + "月");
           barList[0].children.push(item.current || 0);
-          barList[1].children.push(item.compare || 0);
+          barList[1].children.push(item.sameperiod || 0);
         });
         this.barList = barList;
         this.BASE.closeLoading();
@@ -399,8 +399,7 @@ export default {
           },
         ];
         this.tableData = [...arr, ...res];
-        // this.rowClick(res[res.length - 1]);
-        this.rowClick(res[0]);
+        this.rowClick(res[res.length - 1]);
       } else {
         this.BASE.closeLoading();
         this.barList = [];

+ 1 - 0
src/views/economicsOperation/weatherMachine/weatherMachine.vue

@@ -222,6 +222,7 @@ export default {
         });
     },
     changeData(res) {
+      this.tableData = []
       if (res && res.data) {
         for (const key in res.data) {
           const element = res.data[key];