修复重复选中会清空之前数据的bug
This commit is contained in:
parent
60c31acabd
commit
1833482d80
@ -307,6 +307,8 @@
|
||||
},
|
||||
// 选中城市
|
||||
confirm(e) {
|
||||
let flag = false;//清空所选标记
|
||||
if(this.formData[this.changeType] != e.value[0][this.changeType + '_code'])flag = true;
|
||||
if (this.changeType == 'brigade') {
|
||||
this.formData.brigade = e.value[0].id;
|
||||
this.formDataText.brigade = e.value[0].brigade_name;
|
||||
@ -334,7 +336,7 @@
|
||||
break;
|
||||
}
|
||||
// 清空之前所选信息
|
||||
switch (this.changeType) {
|
||||
if(flag) switch (this.changeType) {
|
||||
case 'province':
|
||||
this.formData.city = '';
|
||||
this.formDataText.city = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user