diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index a025e346..cfc3613f 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -69,11 +69,23 @@ export const queryAllList = async () => { } // 查询客户操作日志 -export const getOperateLogPage = async (params: any) => { - return await request.get({ url: '/crm/customer/operate-log-page', params }) +export const getOperateLogPage = async (id: number) => { + return await request.get({ url: '/crm/customer/operate-log-page?id=' + id }) } +//======================= 业务操作 ======================= + // 锁定/解锁客户 export const lockCustomer = async (id: number, lockStatus: boolean) => { return await request.put({ url: `/crm/customer/lock`, data: { id, lockStatus } }) } + +// 领取公海客户 +export const receive = async (ids: any[]) => { + return await request.put({ url: '/crm/customer/receive', params: { ids: ids.join(',') } }) +} + +// 客户放入公海 +export const putPool = async (id: number) => { + return await request.put({ url: `/crm/customer/put-pool?id=${id}` }) +} diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index c221b089..9a098b81 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -58,15 +58,3 @@ export const deletePermissionBatch = async (params) => { export const deleteSelfPermission = async (id) => { return await request.delete({ url: '/crm/permission/quit-team?id=' + id }) } - -// TODO @puhui999:调整下位置 -// 领取公海数据 -export const receive = async (data: { bizType: number; bizId: number }) => { - return await request.put({ url: `/crm/permission/receive`, data }) -} - -// TODO @puhui999:调整下位置 -// 数据放入公海 -export const putPool = async (data: { bizType: number; bizId: number }) => { - return await request.put({ url: `/crm/permission/put-pool`, data }) -} diff --git a/src/components/OperateLogV2/src/OperateLogV2.vue b/src/components/OperateLogV2/src/OperateLogV2.vue index e3409276..e3b00e2e 100644 --- a/src/components/OperateLogV2/src/OperateLogV2.vue +++ b/src/components/OperateLogV2/src/OperateLogV2.vue @@ -2,36 +2,14 @@