Commit 74aaacfe authored by liuyang's avatar liuyang

fixed 表单重置BUG

parent 29464316
...@@ -389,13 +389,25 @@ export default { ...@@ -389,13 +389,25 @@ export default {
}, },
closeModal(){ closeModal(){
this.modalVisible = false this.modalVisible = false
this.$refs.formModelRef.resetFields() this.formModel = {
id: '',
name: '',
logoUrl: '',
adminMobile: '',
adminNickName: '',
adminName: '',
province: '',
city: '',
address: '',
areaSelected: []
}
this.resetAreaSelected() this.resetAreaSelected()
}, },
resetAreaSelected(){ resetAreaSelected(){
this.formModel.areaSelected = []
this.showAreaSelect = false this.showAreaSelect = false
var t = setTimeout(() => {this.showAreaSelect = true},0); var t = setTimeout(() => {
this.showAreaSelect = true
},0);
}, },
changeLogo(){ changeLogo(){
console.log('changeLogo click') console.log('changeLogo click')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment