mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
新增判断
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<div style="margin-top: 20px">
|
<div style="margin-top: 20px">
|
||||||
<el-button type="primary" @click="submit">提交</el-button>
|
<el-button type="primary" @click="submit">提交</el-button>
|
||||||
<el-button>取消选择</el-button>
|
<!-- <el-button @click="">取消选择</el-button> -->
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,6 +46,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submit(){
|
submit(){
|
||||||
|
if(this.templateRadioId === null) return this.$modal.msgWarning('请选择文件')
|
||||||
// console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId);
|
// console.log('接收传递的 pileSn',this.pileSn,this.templateRadioId);
|
||||||
const data = {
|
const data = {
|
||||||
pileSns: [this.pileSn],
|
pileSns: [this.pileSn],
|
||||||
@@ -54,6 +55,10 @@ export default {
|
|||||||
console.log("远程升级固件:", data);
|
console.log("远程升级固件:", data);
|
||||||
updateFirmware(data).then((response) => {
|
updateFirmware(data).then((response) => {
|
||||||
console.log("updateFirmware结果:", response);
|
console.log("updateFirmware结果:", response);
|
||||||
|
if(response.code === 200) {
|
||||||
|
this.$modal.msgError('操作成功')
|
||||||
|
this.dialogTableVisible = false
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user