소스 검색

fix(客户管理):删除客户、新建客户并新建联系人bug修复

wanglj 2 년 전
부모
커밋
178681cbec
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/views/customer/components/Edit.vue
  2. 2 1
      src/views/customer/list.vue

+ 1 - 1
src/views/customer/components/Edit.vue

@@ -267,7 +267,7 @@
       // 联系人弹窗
       async createContact() {
         const res = await this.customerSave()
-        if (!res) return
+        if (!res || !res.name) return
         this.$emit('createContact', res)
       },
       // 省份改变

+ 2 - 1
src/views/customer/list.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2022-12-26 16:34:37
  * @LastEditors: wanglj
- * @LastEditTime: 2023-02-13 17:46:36
+ * @LastEditTime: 2023-02-28 16:08:54
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\customer\list.vue
 -->
@@ -372,6 +372,7 @@
                 type: 'success',
                 message: '删除成功!',
               })
+              this.fetchData()
             }
           })
           .catch(() => {})