dong пре 2 месеци
родитељ
комит
a1aee35105
1 измењених фајлова са 19 додато и 19 уклоњено
  1. 19 19
      src/views/module_tpm/equipmentRunStatis/realtime.vue

+ 19 - 19
src/views/module_tpm/equipmentRunStatis/realtime.vue

@@ -212,25 +212,25 @@ export default {
         return
       }
       // 获取图表信息
-      // getAction(_this.url.listparams, _this.queryParams).then((res) => {
-      //   if (res.success) {
-      //     console.log("listparams")
-      //     _this.equipmentparams = res.result.records || res.result;
-      //     getAction(_this.url.list, _this.queryParams).then((res) => {
-      //     console.log("list")
-      //       if (res.success) {
-      //       _this.mongodbdata = [];
-      //         _this.mongodbdata = res.result.records || res.result;
-      //         _this.initEcharts();
-      //       } else {
-      //         this.$message.warning(res.message)
-      //       }
-      //     });
-      //   } else {
-      //     this.$message.warning(res.message)
-      //   }
-      // });
-      this.getTest();
+      getAction(_this.url.listparams, _this.queryParams).then((res) => {
+        if (res.success) {
+          console.log("listparams")
+          _this.equipmentparams = res.result.records || res.result;
+          getAction(_this.url.list, _this.queryParams).then((res) => {
+          console.log("list")
+            if (res.success) {
+            _this.mongodbdata = [];
+              _this.mongodbdata = res.result.records || res.result;
+              _this.initEcharts();
+            } else {
+              this.$message.warning(res.message)
+            }
+          });
+        } else {
+          this.$message.warning(res.message)
+        }
+      });
+      // this.getTest();
     },
     // 后端好了需要删掉
     getTest() {