From 27c9a0f32deee6e69b81348aae08ba114a5a0797 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 13 Nov 2023 17:49:27 +0800 Subject: [PATCH] =?UTF-8?q?crm-=E5=9B=A2=E9=98=9F=E6=88=90=E5=91=98?= =?UTF-8?q?=EF=BC=9A=20=E5=85=88=E6=8F=90=E4=BA=A4=E4=B8=80=E6=B3=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/permission/index.ts | 32 +++++ .../crm/components/CrmPermissionForm.vue | 106 ++++++++++++++++ src/views/crm/components/CrmTeamList.vue | 116 ++++++++++++++++++ src/views/crm/components/index.ts | 11 ++ src/views/crm/customer/index.vue | 115 +++++++++-------- 5 files changed, 328 insertions(+), 52 deletions(-) create mode 100644 src/api/crm/permission/index.ts create mode 100644 src/views/crm/components/CrmPermissionForm.vue create mode 100644 src/views/crm/components/CrmTeamList.vue create mode 100644 src/views/crm/components/index.ts diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts new file mode 100644 index 00000000..f71e2bfc --- /dev/null +++ b/src/api/crm/permission/index.ts @@ -0,0 +1,32 @@ +import request from '@/config/axios' + +export interface PermissionVO { + id: number // 数据权限编号 + userId: number // 用户编号 + bizType: number // Crm 类型 + bizId: number // Crm 类型数据编号 + level: number // 权限级别 + deptName: string // 部门名称 + nickname: string // 用户昵称 + postNames: string // 岗位名称数组 +} + +// 查询团队成员列表 +export const getPermissionList = async (params) => { + return await request.get({ url: `/crm/permission/list`, params }) +} + +// 新增团队成员 +export const createPermission = async (data: PermissionVO) => { + return await request.post({ url: `/crm/permission/add`, data }) +} + +// 修改团队成员 +export const updatePermission = async (data: PermissionVO) => { + return await request.put({ url: `/crm/permission/update`, data }) +} + +// 删除团队成员 +export const deletePermission = async (params) => { + return await request.delete({ url: '/crm/permission/delete', params }) +} diff --git a/src/views/crm/components/CrmPermissionForm.vue b/src/views/crm/components/CrmPermissionForm.vue new file mode 100644 index 00000000..1d217323 --- /dev/null +++ b/src/views/crm/components/CrmPermissionForm.vue @@ -0,0 +1,106 @@ + + diff --git a/src/views/crm/components/CrmTeamList.vue b/src/views/crm/components/CrmTeamList.vue new file mode 100644 index 00000000..824409b8 --- /dev/null +++ b/src/views/crm/components/CrmTeamList.vue @@ -0,0 +1,116 @@ + + + diff --git a/src/views/crm/components/index.ts b/src/views/crm/components/index.ts new file mode 100644 index 00000000..b0bf3e42 --- /dev/null +++ b/src/views/crm/components/index.ts @@ -0,0 +1,11 @@ +import CrmTeam from './CrmTeamList.vue' + +enum CrmBizTypeEnum { + CRM_LEADS = 1, // 线索 + CRM_CUSTOMER = 2, // 客户 + CRM_CONTACTS = 3, // 联系人 + CRM_BUSINESS = 5, // 商机 + CRM_CONTRACT = 6 // 合同 +} + +export { CrmTeam, CrmBizTypeEnum } diff --git a/src/views/crm/customer/index.vue b/src/views/crm/customer/index.vue index 073bf8cb..b214d7c1 100644 --- a/src/views/crm/customer/index.vue +++ b/src/views/crm/customer/index.vue @@ -2,36 +2,36 @@ - 搜索 - 重置 - - 新增 + + + 搜索 + + + + 重置 + + + + 新增 - 导出 + + 导出 @@ -92,77 +100,77 @@ - - - - + + + + - + - + - - - - - + + + + + - + - + - + -