haoxuan
2023-08-28 5eeac2be08383953337d3789a8d442c21303bb54
周六的代码更新对比 合并 2023-8-28
3个文件已修改
27 ■■■■ 已修改文件
public/confirm3.png 补丁 | 查看 | 原始文档 | blame | 历史
src/components/AddIssue.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/visualization.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/confirm3.png

src/components/AddIssue.vue
@@ -167,6 +167,7 @@
      showBtn:1,
      num:0,
      timer:null,
    };
  },
  mounted() {
@@ -200,8 +201,10 @@
      this.shutdown();
    },
    getInfo() {
      if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID) {
        this.islook=true
      if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID && this.taskData.Procedure.Status == 1) {
        this.num=0;
        this.showBtn= 1;
        this.islook=true;
      }else{
        this.islook=false;
      }
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);
          }
        }
      });
    },