perf:SNMP browser set弹窗关闭清空校验

This commit is contained in:
zyh
2023-07-17 09:54:23 +08:00
parent 0ac88c020b
commit 2b5f879f6e
2 changed files with 12 additions and 0 deletions

View File

@@ -274,6 +274,7 @@
.nz-btn.nz-btn-size-normal{
height: 32px;
line-height: 32px;
font-size: 14px;
}
}
}

View File

@@ -171,6 +171,7 @@
:visible.sync="snmpSetFormVisible"
width="580px"
:z-index="1000"
@close="closeDialog"
>
<el-form ref="form" :model="searchParam" :rules="rules" label-width="auto">
<el-form-item label="OID" prop="oid">
@@ -291,6 +292,16 @@ export default {
}
},
methods: {
closeDialog () {
setTimeout(() => {
this.searchParam.type = ''
this.searchParam.value = ''
this.$nextTick(() => {
this.$refs.form.clearValidate()
})
}, 200)
},
toFileTab () {
this.$emit('toFileTab')
},