| | |
| | | 工艺参数 |
| | | </div> |
| | | <!-- 未获取到工艺参数, 且当前设备允许在没有工艺参数的情况下生产, 则提示--> |
| | | <div v-if="getProcessParamsErrMsg && currentDeviceAllowNoParams" class="title-item title-item-two"> |
| | | <div v-if="processParamsLoaded && !currentProcessParams?.length && currentDeviceAllowNoParams" class="title-item title-item-two"> |
| | | 未获取到工艺参数, 请手动设置或在云端工艺模型中上传 |
| | | </div> |
| | | <div |
| | |
| | | currentTaskIndex: 0, |
| | | // 当前展示的任务对应的工艺参数 |
| | | currentProcessParams: [], |
| | | processParamsLoaded:false, |
| | | getProcessParamsErrMsg: '', |
| | | // 任务列表 |
| | | taskList: [], |
| | |
| | | if (this.secondTimer) { |
| | | clearInterval(this.secondTimer) |
| | | } |
| | | this.processParamsLoaded=false |
| | | this.num = 0; |
| | | this.showBtn = 1; |
| | | this.isLoading = false |
| | |
| | | if (id) { |
| | | this.currentProcessParams = [] |
| | | this.getProcessParamsErrMsg = "" |
| | | |
| | | this.processParamsLoaded =false |
| | | startTask({id}).then((res) => { |
| | | if (res.code === 200) { |
| | | this.currentProcessParams = res.data.Params ?? [] |
| | |
| | | console.error(err) |
| | | this.currentProcessParams = [] |
| | | this.getProcessParamsErrMsg = '获取工艺参数失败!' |
| | | }).finally(()=>{ |
| | | this.processParamsLoaded =true |
| | | }); |
| | | } |
| | | }, |