提交 1cc69212 编写于 作者: yi.li's avatar yi.li

地区回显问题1

上级 1cdca983
......@@ -333,8 +333,7 @@
},
watch: {
// const obj = await searchObj(id).then(res => res);
patientInfoObj: {
async handler(val) {
async patientInfoObj(val) {
if(this.patientId){
this.patientInfoForm = val;
this.baseInfoEdit = this.patientInfoForm.baseInfoEdit;
......@@ -369,18 +368,11 @@
await this.getCity(provinceId);
await this.getCounty(provinceId, cityId);
await this.getTown(provinceId, cityId, countyId);
await setTimeout(() => {
this.addressList[0] = parseInt(provinceId);
this.addressList[1] = parseInt(cityId);
this.addressList[2] = parseInt(countyId);
this.addressList[3] = parseInt(townId);
},10);
this.addressList = [Number(provinceId), Number(cityId), Number(countyId), Number(townId)];
this.$forceUpdate();
}else {
this.addressList = [];
}
// this.$refs['patientInfoForm'].clearValidate();
}else {
// 新增
this.patientInfoForm = {
......@@ -411,8 +403,6 @@
}
}
},
deep: true,
},
checkForm(val){
if(val){// 触发校验
this.saveInfoData();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册