|
@@ -231,7 +231,7 @@ export default {
|
|
isShow (newValue, oldValue) {
|
|
isShow (newValue, oldValue) {
|
|
if (!newValue) {
|
|
if (!newValue) {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
- this.isEdit = true
|
|
|
|
|
|
+ this.isEdit = false
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -241,7 +241,7 @@ export default {
|
|
console.log(this.isShow)
|
|
console.log(this.isShow)
|
|
this.getDetail()
|
|
this.getDetail()
|
|
} else {
|
|
} else {
|
|
- this.isEdit = true
|
|
|
|
|
|
+ this.isEdit = false
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|
|
}
|
|
}
|
|
},
|
|
},
|