menchuang 1 tahun lalu
induk
melakukan
c590648a68
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  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 = {