diff --git a/src/api/adminApi.ts b/src/api/adminApi.ts index 6e698e5..f999367 100644 --- a/src/api/adminApi.ts +++ b/src/api/adminApi.ts @@ -97,4 +97,43 @@ export class manageService { url: '/common/preset/users' }) } + //crm 客户管理 + //客户列表 + static getcrmCustomerList(params: Api.Common.PaginatingParams) { + return request.get({ + url: '/admin/crm/customer/list', + params + }) + } + //客户导出 + static crmCustomerExport(params: any) { + return request.get({ + url: '/admin/crm/customer/export', + params, + responseType: 'blob' // 设置响应类型为 blob + }) + } + //客户审核 + static crmCustomerAudit(params: any) { + return request.post({ + url: '/admin/crm/customer/audit', + params + // showErrorMessage: false // 不显示错误消息 + }) + } + //客户转移 + static crmCustomerTransfer(params: any) { + return request.post({ + url: '/admin/crm/customer/transfer', + params + // showErrorMessage: false // 不显示错误消息 + }) + } + //用户列表 + static getUserList(params: Api.Common.PaginatingParams) { + return request.get({ + url: '/admin/user/list', + params + }) + } } diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 5b508e8..73faeff 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -41,7 +41,12 @@ declare namespace Api { size: number total: number } - + interface CommonListDatad { + data: CommonInfo[] + current: number + size: number + total: number + } interface AddResponse { code: string message: string diff --git a/src/views/admin/customer/customeraudit.vue b/src/views/admin/customer/customeraudit.vue index 3032394..a0d7ccb 100644 --- a/src/views/admin/customer/customeraudit.vue +++ b/src/views/admin/customer/customeraudit.vue @@ -2,14 +2,16 @@
- - - 添加 -
- - - + +
@@ -74,14 +76,6 @@
- - - - - - - - - 查看 - - - 跟进 - - - 删除 + 审核 @@ -160,32 +137,50 @@
+ + + + + + + + +
+ 取消 + 确定 +
+
+
- \ No newline at end of file diff --git a/src/views/admin/inquiry_system/index.vue b/src/views/admin/inquiry_system/index.vue index 48acb88..08719e2 100644 --- a/src/views/admin/inquiry_system/index.vue +++ b/src/views/admin/inquiry_system/index.vue @@ -143,7 +143,7 @@