如果工艺参数是空,或者报错,弹框提示工艺参数错误的提示而不是新任务的弹框
| | |
| | | return request({ |
| | | url: `v1/task/start/${data.id}`, |
| | | method: "get", |
| | | loadingFlag:true, |
| | | data, |
| | | }); |
| | | }; |
| | |
| | | </div> |
| | | <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" style="overflow: hidden"> |
| | | <template v-if="messageError"> |
| | | <div class="btn" v-if="messageError =='下发成功!'" @click="closeClick"> |
| | | <div class="btn" v-if="messageError =='下发成功!'||ArrError" @click="closeClick"> |
| | | <img src="../../public/close-btn.png" /> |
| | | </div> |
| | | <div class="btn" v-else @click="confirmClick2"> |
| | |
| | | type: [Array], |
| | | default: () => { |
| | | return []; |
| | | }, |
| | | }, |
| | | ArrError:{ |
| | | type: [String], |
| | | default: () => { |
| | | return ''; |
| | | }, |
| | | }, |
| | | safeProduce:{ |
| | |
| | | this.islook = false; |
| | | // this.islook = true; |
| | | } |
| | | if(this.ArrError){ |
| | | this.messageError=this.ArrError; |
| | | |
| | | } |
| | | |
| | | }, |
| | | getDateObj(date, fmt) { |
| | |
| | | <AddIssue |
| | | ref="control" |
| | | :Arr="Arr" |
| | | :ArrError="ArrError" |
| | | :safeProduce="safeProduce" |
| | | :taskData="taskData" |
| | | :Order="taskData.Order" |
| | |
| | | countDownHour: 0, |
| | | countDownMinute: 0, |
| | | Arr: [], |
| | | ArrError:'', |
| | | // 记录定时器状态 |
| | | procInfoTimer: null, |
| | | cutdownTimer: null, |
| | |
| | | getTaskInfo({taskMode:1}).then(res=>{ |
| | | if(res.code==200){ |
| | | this.taskData=res.data.Tasks?res.data.Tasks[0]:{}; |
| | | this.ArrError='' |
| | | if (this.taskData.Procedure.ID) { |
| | | startTask({ id: this.taskData.Procedure.ID }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.Arr =res.data.Params ? res.data.Params : [] |
| | | }else{ |
| | | this.ArrError=res.msg; |
| | | } |
| | | }); |
| | | } |