feat(销售时间线): 重构销售时间线组件并优化API调用

重构销售时间线组件,增加对客户阶段数据的动态计算和展示
优化API端点配置,新增课1-4后阶段和成交客户的数据接口
调整样式和布局,增加客户类型标签显示
延长HTTP请求超时时间至100秒
This commit is contained in:
2025-08-13 20:33:13 +08:00
parent 233b7311fe
commit 5de287e777
5 changed files with 619 additions and 1142 deletions

View File

@@ -6,7 +6,7 @@ import { useUserStore } from '@/stores/user'
// 创建axios实例
const service = axios.create({
baseURL: 'http://192.168.15.51:8890' || '', // API基础路径支持完整URL
timeout: 30000, // 请求超时时间
timeout: 100000, // 请求超时时间
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
@@ -157,7 +157,7 @@ const http = {
},
// POST请求
post(url, data = {}, config = {}) {
post(url, data, config) {
return service({
method: 'post',
url,