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() {