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 @@