songshankun
2023-10-08 e8c72de17374fc43a6460fb94cf3aef657e79812
fix: 修复下发参数后再次点开任务弹窗自动关闭的问题
1个文件已修改
16 ■■■■ 已修改文件
src/components/TaskControlModal.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/TaskControlModal.vue
@@ -228,7 +228,7 @@
      showBtn: 1,
      num: 0,
      timer: null,
      safeProduce:'',
      safeProduce: '',
      message: this.safeProduce,
      messageError: "",
      resParams: {},
@@ -271,10 +271,6 @@
    }
  },
  watch: {
    taskData(val) {
      this.message = this.safeProduce;
      this.getInfo();
    },
    num() {
      if (this.num === 30) {
        clearInterval(this.timer);
@@ -291,6 +287,9 @@
      if (this.timer) {
        clearInterval(this.timer);
      }
      if (this.secondTimer) {
        clearInterval(this.secondTimer)
      }
      this.num = 0;
      this.showBtn = 1;
      this.isLoading = false
@@ -298,7 +297,7 @@
      this.secondTimer = null
      this.messageError = ''
      this.resParams = {};
      if (newVal){
      if (newVal) {
        this.getTaskList().then(() => {
          const firstData = this.taskList[0]
          const id = firstData?.Procedure?.ID
@@ -470,9 +469,10 @@
          }
        }, err => {
          console.error(err)
        }).finally(() => {
          this.isLoading = false
        });
        setTimeout(() => {
          this.isLoading = false;
        }, 30000)
      }
    },
    getCode(res) {