开始接待
This commit is contained in:
@@ -426,7 +426,7 @@
|
||||
import ServiceList from './components/ServiceList.vue';
|
||||
import CustomerProfileModal from './components/CustomerProfileModal.vue';
|
||||
import { initCustomerProfile, initSummaryList, initPerformanceData } from './utils/dataInit.js';
|
||||
import { API_BASE_URL } from '@/common/config.js';
|
||||
import { getApiUrl, API_BASE_URL } from '@/common/config.js';
|
||||
|
||||
export default {
|
||||
// #ifdef APP
|
||||
@@ -648,8 +648,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// 统一使用完整URL
|
||||
const url = `${API_BASE_URL}api/audioTextAnalysisFurniture/byParentId?parentId=${parentId}`;
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const url = `${getApiUrl('/api/audioTextAnalysisFurniture/byParentId')}?parentId=${parentId}`;
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1080,8 +1080,9 @@
|
||||
.map(key => `${key}=${encodeURIComponent(queryParams[key])}`)
|
||||
.join('&');
|
||||
|
||||
// 统一使用完整URL
|
||||
const url = `${API_BASE_URL}api/todoItem/list?${queryString}`;
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const baseUrl = getApiUrl('/api/todoItem/list');
|
||||
const url = queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1218,8 +1219,8 @@
|
||||
}
|
||||
|
||||
try {
|
||||
// 统一使用完整URL
|
||||
const url = `${API_BASE_URL}api/todoItem/updateTodoStatus`;
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const url = getApiUrl('/api/todoItem/updateTodoStatus');
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1269,14 +1270,8 @@
|
||||
}
|
||||
|
||||
try {
|
||||
// H5环境下使用代理路径,其他环境使用完整URL
|
||||
let url;
|
||||
// #ifdef H5
|
||||
url = `/api/todoItem/delayProcessTodo`;
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
url = `${API_BASE_URL}api/todoItem/delayProcessTodo`;
|
||||
// #endif
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const url = getApiUrl('/api/todoItem/delayProcessTodo');
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1326,8 +1321,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// 统一使用域名服务器地址
|
||||
const url = `${API_BASE_URL}api/audioTextAnalysisFurniture/byParentId?parentId=${parentId}`;
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const url = `${getApiUrl('/api/audioTextAnalysisFurniture/byParentId')}?parentId=${parentId}`;
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1421,14 +1416,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// H5环境下使用代理路径,其他环境使用完整URL
|
||||
let url;
|
||||
// #ifdef H5
|
||||
url = `/api/audioTextAnalysisSop/listByParentId?parentId=${parentId}`;
|
||||
// #endif
|
||||
// #ifndef H5
|
||||
url = `${API_BASE_URL}api/audioTextAnalysisSop/listByParentId?parentId=${parentId}`;
|
||||
// #endif
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const url = `${getApiUrl('/api/audioTextAnalysisSop/listByParentId')}?parentId=${parentId}`;
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
@@ -1645,8 +1634,9 @@
|
||||
.map(key => `${key}=${encodeURIComponent(queryParams[key])}`)
|
||||
.join('&');
|
||||
|
||||
// 统一使用域名服务器地址
|
||||
const url = `${API_BASE_URL}api/audioManagement/list?${queryString}`;
|
||||
// 统一使用 getApiUrl,根据 env.js 配置自动切换环境
|
||||
const baseUrl = getApiUrl('/api/audioManagement/list');
|
||||
const url = queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
||||
|
||||
const res = await uni.request({
|
||||
url: url,
|
||||
|
||||
Reference in New Issue
Block a user