menchuang před 1 rokem
rodič
revize
c590648a68
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      pages/oldrenovation/indoor/indoor.vue

+ 3 - 3
pages/oldrenovation/indoor/indoor.vue

@@ -1079,7 +1079,7 @@
 						return
 					}
 					getRoomDetailsIDCard(this.idCard).then(res => {
-						if (res.code == '200') {
+						if (res.code == '200' && res.data != null) {
 							if (!this.isEmpty(res.data.newPhone)) {
 								this.currentResidentsPhoe = [];
 								let str = res.data.newPhone;
@@ -1095,8 +1095,8 @@
 							this.houseHeadIDcardNumber = res.data.idCard;
 							this.houseHeadPhone = res.data.phone;
 							this.XZQValue = {
-								id: res.data.district,
-								name: res.data.districtName
+								dictValue: res.data.district,
+								dictLabel: res.data.districtName
 							};
 
 							this.XQValue = {