Browse Source

新增组件及页面

liuqiwen 4 years ago
parent
commit
6df22e4cd6
1 changed files with 9 additions and 8 deletions
  1. 9 8
      dgtis-ui/src/views/system/userInfo/index.vue

+ 9 - 8
dgtis-ui/src/views/system/userInfo/index.vue

@@ -242,14 +242,15 @@ export default {
                   that.labelHy();
                   response.data.insuranceclaimthread?that.claimData = response.data.insuranceclaimthread:that.claimData = [];
                   response.data.insurancearrangement?that.contractInformationData = response.data.insurancearrangement:that.contractInformationData = [];
-                  response.data.custInfo.nation?that.contactData[0].nation = response.data.custInfo.nation:'';
-                  response.data.custInfo.sobirth?that.contactData[0].province = response.data.custInfo.sobirth:'';
-                  response.data.custInfo.raid?that.contactData[0].raid = response.data.custInfo.raid:'';
-                  response.data.custInfo.qq?that.contactData[0].qq = response.data.custInfo.qq:'';
-                  response.data.custInfo.email?that.contactData[0].email = response.data.custInfo.email:'';
-                  response.data.custInfo.wechat?that.contactData[0].wechat = response.data.custInfo.wechat:'';
-                  response.data.custInfo.pmphone?that.contactData[0].pmphone = response.data.custInfo.pmphone:'';
-
+                  var contactDataItem = {};
+                  response.data.custInfo.nation ? contactDataItem.nation = response.data.custInfo.nation : '';
+                  response.data.custInfo.sobirth ? contactDataItem.province = response.data.custInfo.sobirth:'';
+                  response.data.custInfo.raid ? contactDataItem.raid = response.data.custInfo.raid :'';
+                  response.data.custInfo.qq ? contactDataItem.qq = response.data.custInfo.qq:'';
+                  response.data.custInfo.email ? contactDataItem.email = response.data.custInfo.email:'';
+                  response.data.custInfo.wechat ? contactDataItem.wechat = response.data.custInfo.wechat:'';
+                  response.data.custInfo.pmphone ? contactDataItem.pmphone = response.data.custInfo.pmphone:'';
+                  JSON.stringify(contactDataItem) == "{}" ? that.contactData = []: that.contactData.push(contactDataItem);
               }
           );
       },