From 70a8fb7d662229e648fd963b6ca11e9ed22b7ed9 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 6 Dec 2023 19:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20CRM=EF=BC=9Acode=20review=20?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=95=86=E6=9C=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ce79dd68a3a6a7e1db4d8062a8f56ba425e65c17) --- src/api/crm/contactbusinesslink/index.ts | 8 +-- .../contact/detail/ContactDetailsHeader.vue | 4 +- .../crm/contact/detail/ContactDetailsInfo.vue | 6 +- src/views/crm/contact/detail/index.vue | 25 ++++---- .../components/BusinessLinkContactList.vue | 60 +++++++++++++------ .../components/BusinessListByContact.vue | 35 ++++++----- src/views/crm/contactBusinessLink/index.vue | 0 7 files changed, 82 insertions(+), 56 deletions(-) delete mode 100644 src/views/crm/contactBusinessLink/index.vue diff --git a/src/api/crm/contactbusinesslink/index.ts b/src/api/crm/contactbusinesslink/index.ts index 5f81d5b6..45935abe 100644 --- a/src/api/crm/contactbusinesslink/index.ts +++ b/src/api/crm/contactbusinesslink/index.ts @@ -1,4 +1,3 @@ -import { getBusiness } from './../business/index'; import request from '@/config/axios' export interface ContactBusinessLinkVO { @@ -29,7 +28,7 @@ export const updateContactBusinessLink = async (data: ContactBusinessLinkVO) => // 删除联系人商机关联 export const deleteContactBusinessLink = async (data: ContactBusinessLinkVO) => { - return await request.delete({ url: `/crm/contact-business-link/delete-batch` , data }) + return await request.delete({ url: `/crm/contact-business-link/delete-batch`, data }) } // 导出联系人商机关联 Excel @@ -43,5 +42,6 @@ export const createContactBusinessLinkBatch = async (data: ContactBusinessLinkVO } // 查询联系人关联商机列表 export const getBusinessByContactPage = async (params) => { - return await request.get({ url: `/crm/contact-business-link/page-by-contact` , params }) -} \ No newline at end of file + return await request.get({ url: `/crm/contact-business-link/page-by-contact`, params }) +} +// TODO @zyna:根据后端,调整下请求 diff --git a/src/views/crm/contact/detail/ContactDetailsHeader.vue b/src/views/crm/contact/detail/ContactDetailsHeader.vue index 24799c9e..0be05f6e 100644 --- a/src/views/crm/contact/detail/ContactDetailsHeader.vue +++ b/src/views/crm/contact/detail/ContactDetailsHeader.vue @@ -3,9 +3,11 @@ * @Date: 2023-12-02 13:08:57 * @LastEditTime: 2023-12-03 13:47:16 * @FilePath: \yudao-ui-admin-vue3\src\views\crm\contact\detail\ContactDetailsHeader.vue - * @Description: + * @Description: --> + - diff --git a/src/views/crm/contact/detail/index.vue b/src/views/crm/contact/detail/index.vue index dff71bef..c0fd8040 100644 --- a/src/views/crm/contact/detail/index.vue +++ b/src/views/crm/contact/detail/index.vue @@ -10,12 +10,11 @@ - + -