| | |
| | | getModelList(){ |
| | | for (let i in this.TasksCopy){ |
| | | this.TasksCopy[i].isUpdateIcon=false; |
| | | if(this.TasksCopy[i].Procedure.ID&&this.TasksCopy[i].number){ |
| | | // number:this.TasksCopy[i].number |
| | | if(this.TasksCopy[i].Procedure.ID){ |
| | | processModelList({ |
| | | procedureId: this.TasksCopy[i].Procedure.ID, |
| | | page: 1, |
| | | pageSize:6, |
| | | number:this.TasksCopy[i].number |
| | | }).then(res=>{ |
| | | if(res.code==200){ |
| | | this.processList=res.data?res.data:[]; |
| | |
| | | }).finally(()=>{ |
| | | this.pollingTaskCountTimer = setTimeout(()=>{ |
| | | this.getTaskCountStatistics() |
| | | // 20秒一次轮询 |
| | | },20000) |
| | | // 20秒一次轮询 // 改一分钟 |
| | | },60000) |
| | | }); |
| | | }, |
| | | |
| | |
| | | }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(); |
| | |
| | | |
| | | },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) |