Browse Source

提交客户代码

Lijy 11 months ago
parent
commit
0f82b96696

+ 1 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/src/App.vue

@@ -47,6 +47,7 @@ provide<GlobalPopup>('globalPopup', {
 })
 
 const notificationTiop = (options: NotificationParamsTyped) => {
+  ElNotification.closeAll()
   ElNotification(options)
 }
  

+ 4 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contacts/index.vue

@@ -271,7 +271,9 @@ function editContacts(row: any) { // row 有数据代表编辑
     const templateKey = getTemplateKey(contactsTemplate.value.list)
     const formVal: templateKey = { id: row.id }
     for (let i in templateKey) {
-      formVal[templateKey[i]] = templateKey[i] == 'sex' ? row[templateKey[i]] + '' : row[templateKey[i]]
+      if(row[templateKey[i]]) {
+        formVal[templateKey[i]] = templateKey[i] == 'sex' ? row[templateKey[i]] + '' : row[templateKey[i]]
+      }
     }
     setTemplateVal(formVal)
     allText.editContactsText = '编辑联系人'
@@ -282,6 +284,7 @@ function editContacts(row: any) { // row 有数据代表编辑
 }
 
 function setTemplateVal(val: any = {}) {
+  console.log(val)
   contactsTemplateValue.value = val
   allLoading.contactsTemplateRefLoading = true
   setTimeout(() => {