From a5b351156c343e707cf977b9e76ac2cfc9e64259 Mon Sep 17 00:00:00 2001 From: cl <418351270@qq.com> Date: 星期四, 07 三月 2024 16:14:43 +0800 Subject: [PATCH] 更新OPC --- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 49 +++++++++++++++++++++++++++++-------------------- 1 files changed, 29 insertions(+), 20 deletions(-) diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index cca0c2a..9a779c4 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -95,9 +95,9 @@ <!-- </el-col>--> <!-- </el-row>--> -<!-- <el-row style="margin-top: 20px">--> -<!-- <el-button @click="Release" type="primary">鏀捐</el-button>--> -<!-- </el-row>--> + <el-row style="margin-top: 20px"> + <el-button @click="Release" type="primary">鏀捐</el-button> + </el-row> </el-card> </el-col> @@ -406,24 +406,33 @@ this.open1 = true }, Release(){ - //鍒ゆ柇鏄惁鍙互閲婃斁 - let formulaChildParams = { - productCode: this.workpieceInformation.productCode, - processesCode: this.headContent.processesCode + // this.$message('portsList锛�'+this.portsList.length); + if(this.btnType === "danger"){ + this.$message('杩炴帴浜嗭紒'); + + }else { + this.$message('mei杩炴帴浜嗭紒'); + } - releaseCheck(formulaChildParams).then(response => { - if(response.data === 0){ - //鏀瑰彉鐘舵�� - workpieceRelease(formulaChildParams).then(response => { - }); - this.$message('鏀捐鎴愬姛锛�'); - this.formulaChildList = [] - this.getListFormulaChild() - // this.resetting() - }else { - this.$message('姝ラ鏈畬鎴愪笉璁告斁琛岋紒'); - } - }); + + // //鍒ゆ柇鏄惁鍙互閲婃斁 + // let formulaChildParams = { + // productCode: this.workpieceInformation.productCode, + // processesCode: this.headContent.processesCode + // } + // releaseCheck(formulaChildParams).then(response => { + // if(response.data === 0){ + // //鏀瑰彉鐘舵�� + // workpieceRelease(formulaChildParams).then(response => { + // }); + // this.$message('鏀捐鎴愬姛锛�'); + // this.formulaChildList = [] + // this.getListFormulaChild() + // // this.resetting() + // }else { + // this.$message('姝ラ鏈畬鎴愪笉璁告斁琛岋紒'); + // } + // }); }, serialPortMethod(value){ let formulaChildParams = { -- Gitblit v1.9.3