mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
新增判断
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user