| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="process-err-tip" v-if="getProcessParamsErrMsg"> |
| | | <div class="tip-icon"> |
| | | <span class="el-icon-error color_error"></span> |
| | | </div> |
| | | <div class="tip-content"> |
| | | 提示: {{getProcessParamsErrMsg}} |
| | | </div> |
| | | </div> |
| | | <div class="process-box" v-if="showBtn === 2 || showBtn === 3"> |
| | | <div |
| | | style=" |
| | |
| | | </div> |
| | | <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" |
| | | style="overflow: hidden"> |
| | | <template v-if="messageError"> |
| | | <template v-if="messageError || getProcessParamsErrMsg"> |
| | | <div class="btn" v-if="messageError ==='下发成功!'||getProcessParamsErrMsg" @click="closeClick"> |
| | | <img src="../../public/close-btn.png"/> |
| | | </div> |
| | |
| | | startTask({id}).then((res) => { |
| | | if (res.code === 200) { |
| | | this.currentProcessParams = res.data.Params ?? [] |
| | | this.getProcessParamsErrMsg ='' |
| | | } else { |
| | | this.currentProcessParams = [] |
| | | this.getProcessParamsErrMsg = res.msg ?? '获取工艺参数失败!'; |
| | | } |
| | | this.getInfo() |
| | | },err=>{ |
| | | console.error(err) |
| | | this.currentProcessParams = [] |
| | | this.getProcessParamsErrMsg = '获取工艺参数失败!' |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 前翻页 |
| | | */ |
| | |
| | | this.show = true; |
| | | } else { |
| | | this.show = false; |
| | | } |
| | | if (this.getProcessParamsErrMsg) { |
| | | this.messageError = this.getProcessParamsErrMsg; |
| | | } |
| | | }, |
| | | getDateObj(date, fmt) { |
| | |
| | | font-size: 16px; |
| | | } |
| | | } |
| | | .process-err-tip{ |
| | | box-sizing: border-box; |
| | | padding-top: 10px; |
| | | height: 160px; |
| | | width: 100%; |
| | | .tip-icon{ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | height: 70px; |
| | | .el-icon-error{ |
| | | font-size: 70px; |
| | | } |
| | | } |
| | | .tip-content{ |
| | | height: 70px; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | font-size: 17px; |
| | | font-weight: 500; |
| | | } |
| | | } |
| | | </style> |