fix: 修复下发参数后再次点开任务弹窗自动关闭的问题
| | |
| | | showBtn: 1, |
| | | num: 0, |
| | | timer: null, |
| | | safeProduce:'', |
| | | safeProduce: '', |
| | | message: this.safeProduce, |
| | | messageError: "", |
| | | resParams: {}, |
| | |
| | | } |
| | | }, |
| | | watch: { |
| | | taskData(val) { |
| | | this.message = this.safeProduce; |
| | | this.getInfo(); |
| | | }, |
| | | num() { |
| | | if (this.num === 30) { |
| | | clearInterval(this.timer); |
| | |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | } |
| | | if (this.secondTimer) { |
| | | clearInterval(this.secondTimer) |
| | | } |
| | | this.num = 0; |
| | | this.showBtn = 1; |
| | | this.isLoading = false |
| | |
| | | this.secondTimer = null |
| | | this.messageError = '' |
| | | this.resParams = {}; |
| | | if (newVal){ |
| | | if (newVal) { |
| | | this.getTaskList().then(() => { |
| | | const firstData = this.taskList[0] |
| | | const id = firstData?.Procedure?.ID |
| | |
| | | } |
| | | }, err => { |
| | | console.error(err) |
| | | }).finally(() => { |
| | | this.isLoading = false |
| | | }); |
| | | setTimeout(() => { |
| | | this.isLoading = false; |
| | | }, 30000) |
| | | } |
| | | }, |
| | | getCode(res) { |