Procházet zdrojové kódy

于涵——数据优化

wyh před 1 rokem
rodič
revize
b77db106d7

+ 8 - 8
src/views/modules_guAn/visualization/index.vue

@@ -178,14 +178,14 @@ export default {
   mounted () {
   },
   methods: {
-    getData(){
-      getAction(`/datacoll/webaccess/getWATagValue`).then(res=>{
-        console.log(res)
-        if(res.success){
-          this.eqRealData = res.result
-        }
-      })
-    },
+    // getData(){
+    //   getAction(`/datacoll/webaccess/getWATagValue`).then(res=>{
+    //     console.log(res)
+    //     if(res.success){
+    //       this.eqRealData = res.result
+    //     }
+    //   })
+    // },
     getInfo(url,parameter){
       let sign = signMd5Utils.getSign(url, parameter);
       //将签名和时间戳,添加在请求接口 Header

+ 3 - 2
src/views/modules_guAn/visualization/modules/EquipmentInfo.vue

@@ -173,7 +173,8 @@ export default {
   watch: {
     data: {
       handler(newValue, oldValue){
-        // console.log(77,newValue, oldValue)
+        // console.log('7878999',newValue, oldValue)
+        if(newValue.length === 0) return
         this.dataList = newValue
         this.getList()
       },
@@ -182,7 +183,7 @@ export default {
     },
     alarmData: {
       handler(newValue, oldValue){
-        console.log(777777,newValue, oldValue)
+        // console.log('7878999',newValue, oldValue)
 
         var isYuan = newValue.length === 1 && newValue[0] === '原数据'
         if(isYuan) return

+ 1 - 0
src/views/modules_guAn/visualization/modules/ModeInfo.vue

@@ -124,6 +124,7 @@ export default {
     data: {
       handler(newValue, oldValue){
         // console.log(77,newValue, oldValue)
+        if(newValue.length === 0) return
         this.dataList = newValue
         this.getList()
       },

+ 1 - 0
src/views/modules_guAn/visualization/modules/RunningState.vue

@@ -227,6 +227,7 @@ export default {
     data: {
       handler(newValue, oldValue){
         // console.log(77,newValue, oldValue)
+        if(newValue.length === 0) return
         this.dataList = newValue
         this.getList()
       },

+ 1 - 0
src/views/modules_guAn/visualization/modules/TestStatusInfo.vue

@@ -120,6 +120,7 @@ export default {
     data: {
       handler(newValue, oldValue){
         // console.log(newValue, oldValue)
+        if(newValue.length === 0) return
         this.changeData(newValue)
       },
       immediate: true,

+ 1 - 0
src/views/modules_guAn/visualization/modules/YuzhiCurve.vue

@@ -81,6 +81,7 @@ export default {
     data: {
       handler(newValue, oldValue){
         console.log('预制曲线', newValue, oldValue)
+        if(newValue.length === 0) return
         this.refreshData(newValue)
       },
       // immediate: true,

+ 2 - 1
src/views/modules_guAn/visualization/modules/info3D.vue

@@ -55,7 +55,8 @@ export default {
   watch: {
     data: {
       handler(newValue, oldValue){
-        console.log(newValue, oldValue)
+        console.log('检查检查',newValue, oldValue)
+        if(newValue.length === 0) return
         this.changeData(newValue)
       },
       immediate: true,