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

地区选择回显优化2

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