bug 78316

This commit is contained in:
danshihao
2023-11-08 17:40:47 +08:00
parent 3ef8ebd1ac
commit f20c2bcf60
+7 -1
View File
@@ -431,8 +431,14 @@ export default {
}) })
}, },
emptyCurrForm () { emptyCurrForm () {
// 不被重置的字段
const reserveField = ['parentId', 'orgCode']
const temp = {}
reserveField.forEach(key => {
temp[key] = this.model[key]
})
this.$refs.form.resetFields() this.$refs.form.resetFields()
this.model = {} this.model = temp
}, },
nodeSettingFormSubmit () { nodeSettingFormSubmit () {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {