From 134ea963401879a4357a740c7c40c4e9e2fb0348 Mon Sep 17 00:00:00 2001 From: WUSIJIAN <13825895+wsj0228@user.noreply.gitee.com> Date: Fri, 5 Dec 2025 15:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/customerService/account/index.ts | 4 +-- src/api/customerService/product/index.ts | 2 +- src/api/customerService/report/index.ts | 4 +-- src/api/customerService/script/index.ts | 8 ++--- src/utils/request.ts | 6 ++-- .../account/component/editAccount.vue | 20 ++++------- src/views/customerService/account/index.vue | 4 +-- .../product/component/editRole.vue | 16 ++++----- .../product/component/exportDialog.vue | 36 ++++++++++--------- .../product/component/importDialog.vue | 5 ++- src/views/customerService/product/index.vue | 4 +-- .../report/component/exportDialog.vue | 14 ++++---- .../script/component/editRole.vue | 13 ++++--- src/views/customerService/script/index.vue | 6 ++-- 14 files changed, 67 insertions(+), 75 deletions(-) diff --git a/src/api/customerService/account/index.ts b/src/api/customerService/account/index.ts index 76b41d9..4d652c2 100644 --- a/src/api/customerService/account/index.ts +++ b/src/api/customerService/account/index.ts @@ -10,7 +10,7 @@ export function getaccountList(data: object) { } //添加客服账号 -export function getaccountAdd(data: object) { +export function addAccount(data: object) { return newService({ url: '/customerService/customer/service/account/add', method: 'post', @@ -28,7 +28,7 @@ export function updatestate(data: object) { } //更新账号 -export function updateaccount(data: object) { +export function updateAccount(data: object) { return newService({ url: '/customerService/customer/service/account/update', method: 'post', diff --git a/src/api/customerService/product/index.ts b/src/api/customerService/product/index.ts index 5d1fe00..73be4b0 100644 --- a/src/api/customerService/product/index.ts +++ b/src/api/customerService/product/index.ts @@ -1,7 +1,7 @@ import request, { newService } from '/@/utils/request'; //添加产品 -export function getproductAdd(data: object) { +export function addProduct(data: object) { return newService({ url: '/customerService/product/add', method: 'post', diff --git a/src/api/customerService/report/index.ts b/src/api/customerService/report/index.ts index f36f9cf..260fb9e 100644 --- a/src/api/customerService/report/index.ts +++ b/src/api/customerService/report/index.ts @@ -9,8 +9,8 @@ export function getDataList(data: object) { }); } -// 导出数据 -export function exportProduct(data: object) { +// 导出报表 +export function exportReport(data: object) { return newService({ url: '/customerService/data/statistics/export', responseType: 'blob', diff --git a/src/api/customerService/script/index.ts b/src/api/customerService/script/index.ts index f4a5ebc..c266c3f 100644 --- a/src/api/customerService/script/index.ts +++ b/src/api/customerService/script/index.ts @@ -9,8 +9,8 @@ export function getscriptList(data: object) { }); } -//获取话术列表 -export function getscriptAdd(data: object) { +//增加话术 +export function addScript(data: object) { return newService({ url: '/customerService/speechcraft/add', method: 'post', @@ -19,7 +19,7 @@ export function getscriptAdd(data: object) { } //删除话术列表 -export function deletescript(data: object) { +export function deleteScript(data: object) { return newService({ url: '/customerService/speechcraft/delete', method: 'post', @@ -28,7 +28,7 @@ export function deletescript(data: object) { } //更新话术列表 -export function updatescript(data: object) { +export function updateScript(data: object) { return newService({ url: '/customerService/speechcraft/update', method: 'post', diff --git a/src/utils/request.ts b/src/utils/request.ts index e191df6..d68abfc 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -20,8 +20,8 @@ const service: AxiosInstance = axios.create({ // 配置新建第二个 axios 实例(新功能服务) const newService: AxiosInstance = axios.create({ - baseURL: 'http://192.168.3.95:8000/', - // baseURL: 'http://192.168.3.49:8000/', + // baseURL: 'http://192.168.3.95:8000/', + baseURL: 'http://192.168.3.49:8000/', timeout: 50000, headers: { 'Content-Type': 'application/json' }, paramsSerializer: { @@ -133,7 +133,7 @@ const responseErrorHandler = (error: any) => { if (!error.response) { if (error.message === 'Network Error') { - ElMessage.error('网络连接错误,请检查网络设置'); + // ElMessage.error('网络连接错误,请检查网络设置'); } else { // ElMessage.error('网络异常,请检查连接'); } diff --git a/src/views/customerService/account/component/editAccount.vue b/src/views/customerService/account/component/editAccount.vue index 7eaf645..cb56bbf 100644 --- a/src/views/customerService/account/component/editAccount.vue +++ b/src/views/customerService/account/component/editAccount.vue @@ -1,5 +1,5 @@