songshankun
2023-11-22 f6739d7542be48f7f8139c3d5fc7b2326e5cfc8d
src/views/visualization.vue
@@ -1185,6 +1185,8 @@
      getTaskInfo({taskMode:1}).then((res) => {
        if (res.code === 200&&res.data) {
          this.TaskCount=res.data?.TaskCount ?? 0
        }else {
          this.TaskCount = 0
        }
      },err=>{
        this.TaskCount = 0
@@ -1192,8 +1194,8 @@
      }).finally(()=>{
        this.pollingTaskCountTimer = setTimeout(()=>{
          this.getTaskCountStatistics()
        //   20秒一次轮询
        },20000)
        //   20秒一次轮询 // 改一分钟
        },60000)
      });
    },
@@ -1306,10 +1308,18 @@
                }, 3000);
              }
        }else{
          this.TaskCount = 0
          const allChannels = [0,1];
          this.workers = []
          allChannels.forEach(channel => this.TasksCopy.push(this.newTaskPlaceholder(channel)))
          this.TasksCopy.sort((a,b)=>a.Channel - b.Channel)
          this.cutClick(1)
          this.getProgressInfo();
          if (!this.procInfoTimer&&!this.resprocInfoTimer) {
            this.procInfoTimer = setInterval(() => {
              this.getProgressInfo();
            }, 3000);
          }
        }
        // if (res.code != 200 || this.TasksCopy.length == 0) {
        //   this.getcountdown();
@@ -1323,7 +1333,9 @@
      },err=>{
        console.error(err)
        this.TaskCount = 0
        const allChannels = [0,1];
        this.workers = []
        allChannels.forEach(channel => this.TasksCopy.push(this.newTaskPlaceholder(channel)))
        this.TasksCopy.sort((a,b)=>a.Channel - b.Channel)
        this.cutClick(1)