| | |
| | | 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 |
| | |
| | | }, 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) |
| | |
| | | |
| | | },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) |