haoxuan
2023-08-28 5eeac2be08383953337d3789a8d442c21303bb54
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(() => {
            if (!this.procInfoTimer) {
                this.procInfoTimer = setInterval(() => {
              this.getProgressInfo();
            }, 6000);
            }
          }
          console.log(this.procedureList, "===1111procedureList");
          // setTimeout(() => {
@@ -708,10 +713,13 @@
        }
        if(res.code!=200||!this.taskData.Procedure.ID){
          this.getcountdown();
            setInterval(() => {
          // 控制重新请求getTaskInfo, 只开启一个定时器
         if (!this.cutdownTimer) {
          this.cutdownTimer = setInterval(() => {
              this.getcountdown();
            }, 60000);
        }
        }
      });
    },
    // 设置