From b173394bb8cdf9d470d82cbc5ce83483a7dbdc84 Mon Sep 17 00:00:00 2001 From: admin-lmm <2497833386@QQ.com> Date: Fri, 7 Jul 2023 16:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/pile/basic/components/remoteUpgrade.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jsowell-ui/src/views/pile/basic/components/remoteUpgrade.vue b/jsowell-ui/src/views/pile/basic/components/remoteUpgrade.vue index 52329428d..ff8d98d04 100644 --- a/jsowell-ui/src/views/pile/basic/components/remoteUpgrade.vue +++ b/jsowell-ui/src/views/pile/basic/components/remoteUpgrade.vue @@ -53,7 +53,7 @@ export default { // console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId); const data = { pileSns: [this.pileSn], - firmwareId: this.templateRadioId + firmwareId: this.firmwareList[this.templateRadioId-1].id }; console.log("远程升级固件:", data); updateFirmware(data).then((response) => { @@ -73,14 +73,16 @@ export default { this.loading = false; }); }, + // 选择单选框的点击事件 singleElection (row) { this.templateSelection = this.firmwareList.indexOf(row); + console.log('this.templateSelection',this.templateSelection) this.templateRadioId = row.id; - // console.log('this.templateRadio',this.templateRadioId) + console.log(this.templateRadioId,'this.templateRadioId'); }, handleClose(){ this.dialogTableVisible = false - this.templateSelection = '' + this.templateRadioId = '' } }, created() {