添加充电桩固件信息时 关闭弹框 清空已添加的

This commit is contained in:
BOOL\25024
2024-09-10 14:18:36 +08:00
parent 5e9beaf83a
commit 06b28f194e

View File

@@ -96,7 +96,7 @@
/>
<!-- 添加或修改充电桩固件信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body :before-close="cancel">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="固件名称" prop="name">
<el-input v-model="form.name" placeholder="请输入固件名称" />
@@ -202,6 +202,7 @@ export default {
cancel() {
this.open = false;
this.reset();
this.$refs.upload.clearFiles();
},
// 表单重置
reset() {