| | |
| | | |
| | | <script> |
| | | import {getTaskInfo, sendProcessParams, startTask,} from "@/api/home"; // 产线 |
| | | import {channelNameConfig} from "@/common/constants"; |
| | | export default { |
| | | name: 'TaskControlModal', |
| | | components: {}, |
| | |
| | | isLoading: false, |
| | | second: 0, |
| | | secondTimer: null, |
| | | // 通道名称配置 Channel 0 对应展示 0, Channel 1 对应展示 A,暂时忽略其余情况 |
| | | channelNameConfig: { |
| | | 0: '0', |
| | | 1: 'A' |
| | | } |
| | | channelNameConfig: channelNameConfig |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | getCurrentTaskProduceParams(id) { |
| | | // const id = this.currentTaskData?.Procedure?.ID |
| | | if (id) { |
| | | this.currentProcessParams = [] |
| | | this.getProcessParamsErrMsg = "" |
| | | startTask({id}).then((res) => { |
| | | if (res.code === 200) { |
| | | this.currentProcessParams = res.data.Params ?? [] |
| | |
| | | if (this.currentTaskData?.Procedure?.ID && this.currentTaskData?.Procedure?.Status === 1) { |
| | | this.num = 0; |
| | | this.showBtn = 1; |
| | | this.show = true; |
| | | // this.show = true; |
| | | } else { |
| | | this.show = false; |
| | | } |