deepsea 1 ano atrás
pai
commit
36e175bb8c
1 arquivos alterados com 17 adições e 3 exclusões
  1. 17 3
      src/views/ordinaryPage/index.vue

+ 17 - 3
src/views/ordinaryPage/index.vue

@@ -686,7 +686,8 @@ export default {
       timerIdMap: { num: 0 },
       timerId: 0,
       autoPlanResultInterval: 0,
-      remoteBenchList: []
+      remoteBenchList: [],
+      waterdotrefresh: false
     };
   },
   computed: {
@@ -784,7 +785,8 @@ export default {
     that.timerId = that.myInterval((count) => {
       // console.log(count)
       this.$store.dispatch("benchList/fetchBenchList");
-      if (count % 5 == 0) {
+      if (!this.waterdotrefresh) {
+        this.waterdotrefresh = true;
         window.getsqlData(window.sdkInstance, window.uwbInstance)
       }
       this.refreshBenchStatus()
@@ -792,7 +794,19 @@ export default {
         console.log("end");
         that.clearMyInterval(that.timerId);
       }
-    }, 3000);
+    }, 10000);
+
+    setTimeout(() => {
+      this.$store.dispatch("benchList/fetchBenchList");
+      if (!this.waterdotrefresh) {
+        window.getsqlData(window.sdkInstance, window.uwbInstance)
+      }
+      this.refreshBenchStatus()
+      if (count > 30000) {
+        console.log("end");
+        that.clearMyInterval(that.timerId);
+      }
+    })
 
     this.$store.dispatch("issueList/fetchIssueList", {
       bench_id: null,