From 4436c040d89980c8624f88cd4876c808806c414f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 28 八月 2023 19:52:46 +0800
Subject: [PATCH] 下发参数 弹框修改 2023-8-28

---
 src/views/visualization.vue |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index 3205d3a..657e20a 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -531,6 +531,9 @@
       countDownHour:0,
       countDownMinute:0,
       Arr:[],
+        // 璁板綍瀹氭椂鍣ㄧ姸鎬�
+        procInfoTimer:null,
+       cutdownTimer: null
     };
   },
   mounted() {
@@ -695,9 +698,11 @@
               }
             });
             this.getProgressInfo();
-            setInterval(() => {
-              this.getProgressInfo();
-            }, 6000);
+            if (!this.procInfoTimer) {
+                this.procInfoTimer = setInterval(() => {
+                  this.getProgressInfo();
+                }, 6000);
+            }
           }
           console.log(this.procedureList, "===1111procedureList");
           // setTimeout(() => {
@@ -708,9 +713,12 @@
         }
         if(res.code!=200||!this.taskData.Procedure.ID){
           this.getcountdown();
-            setInterval(() => {
-              this.getcountdown();
-            }, 60000);
+          // 鎺у埗閲嶆柊璇锋眰getTaskInfo, 鍙紑鍚竴涓畾鏃跺櫒
+         if (!this.cutdownTimer) {
+          this.cutdownTimer = setInterval(() => {
+                 this.getcountdown();
+              }, 60000);
+          } 
         }
       });
     },
@@ -730,6 +738,7 @@
         this.$refs.control.islook = true;
       } else {
         this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�");
+       
       }
     },
     // 鍙充晶瀹屾垚
@@ -832,11 +841,7 @@
   font-size: 30px;
   font-weight: 700;
 }
-.el-button--primary {
-  border: 0;
-  font-weight: 700 !important;
-  font-size: 16px !important;
-}
+
 .color_4efefa {
   color: #4efefa;
 }
@@ -1349,4 +1354,9 @@
     }
   }
 }
+.el-button--primary {
+  border: 0;
+  font-weight: 700 !important;
+  font-size: 16px;
+}
 </style>

--
Gitblit v1.8.0