新增判断

This commit is contained in:
admin-lmm
2023-06-30 09:36:06 +08:00
parent 6e23ca20c8
commit 6cf4e66d94

View File

@@ -19,7 +19,7 @@
</el-table>
<div style="margin-top: 20px">
<el-button type="primary" @click="submit">提交</el-button>
<el-button>取消选择</el-button>
<!-- <el-button @click="">取消选择</el-button> -->
</div>
</el-dialog>
</div>
@@ -46,6 +46,7 @@ export default {
},
methods: {
submit(){
if(this.templateRadioId === null) return this.$modal.msgWarning('请选择文件')
// console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId);
const data = {
pileSns: [this.pileSn],
@@ -54,6 +55,10 @@ export default {
console.log("远程升级固件:", data);
updateFirmware(data).then((response) => {
console.log("updateFirmware结果", response);
if(response.code === 200) {
this.$modal.msgError('操作成功')
this.dialogTableVisible = false
}
});
},
getList() {