| | |
| | | showBtn:1, |
| | | num:0, |
| | | timer:null, |
| | | |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | 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; |
| | | } |
| | |
| | | countDownHour:0, |
| | | countDownMinute:0, |
| | | Arr:[], |
| | | // 记录定时器状态 |
| | | procInfoTimer:null, |
| | | cutdownTimer: null |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | } |
| | | }); |
| | | this.getProgressInfo(); |
| | | setInterval(() => { |
| | | this.getProgressInfo(); |
| | | }, 6000); |
| | | if (!this.procInfoTimer) { |
| | | this.procInfoTimer = setInterval(() => { |
| | | this.getProgressInfo(); |
| | | }, 6000); |
| | | } |
| | | } |
| | | console.log(this.procedureList, "===1111procedureList"); |
| | | // setTimeout(() => { |
| | |
| | | } |
| | | if(res.code!=200||!this.taskData.Procedure.ID){ |
| | | this.getcountdown(); |
| | | setInterval(() => { |
| | | this.getcountdown(); |
| | | }, 60000); |
| | | // 控制重新请求getTaskInfo, 只开启一个定时器 |
| | | if (!this.cutdownTimer) { |
| | | this.cutdownTimer = setInterval(() => { |
| | | this.getcountdown(); |
| | | }, 60000); |
| | | } |
| | | } |
| | | }); |
| | | }, |