This commit is contained in:
admin-lmm
2023-07-07 16:32:06 +08:00
parent 3f7da86fce
commit b173394bb8

View File

@@ -53,7 +53,7 @@ export default {
// console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId); // console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId);
const data = { const data = {
pileSns: [this.pileSn], pileSns: [this.pileSn],
firmwareId: this.templateRadioId firmwareId: this.firmwareList[this.templateRadioId-1].id
}; };
console.log("远程升级固件:", data); console.log("远程升级固件:", data);
updateFirmware(data).then((response) => { updateFirmware(data).then((response) => {
@@ -73,14 +73,16 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
// 选择单选框的点击事件
singleElection (row) { singleElection (row) {
this.templateSelection = this.firmwareList.indexOf(row); this.templateSelection = this.firmwareList.indexOf(row);
console.log('this.templateSelection',this.templateSelection)
this.templateRadioId = row.id; this.templateRadioId = row.id;
// console.log('this.templateRadio',this.templateRadioId) console.log(this.templateRadioId,'this.templateRadioId');
}, },
handleClose(){ handleClose(){
this.dialogTableVisible = false this.dialogTableVisible = false
this.templateSelection = '' this.templateRadioId = ''
} }
}, },
created() { created() {