修复重复选中会清空之前数据的bug

This commit is contained in:
weipengfei 2023-07-28 10:35:03 +08:00
parent 60c31acabd
commit 1833482d80

View File

@ -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 = ''