提交 0acd1a33 编写于 作者: yi.li's avatar yi.li

地区选择回显优化2

上级 c6e19e19
...@@ -211,9 +211,9 @@ ...@@ -211,9 +211,9 @@
}, },
watch: { watch: {
showChangeInfo(val) { async showChangeInfo(val) {
if (val) { if (val) {
this.initData(); await this.initData();
} }
}, },
}, },
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
//对地区数据做回显处理 //对地区数据做回显处理
if(provinceId) { if(provinceId) {
this.changeInfoForm.area = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)];
// if(provinceId) { // if(provinceId) {
await this.getCity(provinceId); await this.getCity(provinceId);
// } // }
...@@ -247,6 +247,7 @@ ...@@ -247,6 +247,7 @@
await this.getTown(provinceId, cityId, countyId); await this.getTown(provinceId, cityId, countyId);
} }
this.changeInfoForm.area = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)];
this.$forceUpdate(); this.$forceUpdate();
}else { }else {
this.changeInfoForm.area = []; this.changeInfoForm.area = [];
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册