diff --git a/src/api/customerService/script/index.ts b/src/api/customerService/script/index.ts index a8b57d2..9f68c6f 100644 --- a/src/api/customerService/script/index.ts +++ b/src/api/customerService/script/index.ts @@ -3,7 +3,7 @@ import request from '/@/utils/request'; //获取话术列表 export function getscriptList(data: object) { return request({ - url: '/customer-server/speechcraft/list', + url: '/customer-server/scripted/speech/list', method: 'get', params: data, }); @@ -12,7 +12,7 @@ export function getscriptList(data: object) { //增加话术 export function addScript(data: object) { return request({ - url: '/customer-server/speechcraft/add', + url: '/customer-server/scripted/speech/add', method: 'post', data: data, }); @@ -21,7 +21,7 @@ export function addScript(data: object) { //删除话术列表 export function deleteScript(data: object) { return request({ - url: '/customer-server/speechcraft/delete', + url: '/customer-server/scripted/speech/delete', method: 'post', data: data, }); @@ -30,8 +30,17 @@ export function deleteScript(data: object) { //更新话术列表 export function updateScript(data: object) { return request({ - url: '/customer-server/speechcraft/update', + url: '/customer-server/scripted/speech/update', method: 'post', data: data, }); } + +//获取话术详情 +export function getScriptDetail(data: object) { + return request({ + url: '/customer-server/scripted/speech/getOne', + method: 'get', + params: data, + }); +} diff --git a/src/api/knowledge/document/index.ts b/src/api/knowledge/document/index.ts index d8f93b1..d8da716 100644 --- a/src/api/knowledge/document/index.ts +++ b/src/api/knowledge/document/index.ts @@ -29,6 +29,7 @@ export interface UpdateDocumentParams { fileSize?: number; format?: string; title?: string; + status?: number; } // 文档分段查询参数 @@ -184,3 +185,12 @@ export function getDocumentProcess(id: string) { params: { id }, }); } + +// 生成向量 +export function generateVector(id: string, datasetId: string) { + return request({ + url: '/rag/document/vectorization', + method: 'post', + data: { id, datasetId }, + }); +} diff --git a/src/components/pagination/index.vue b/src/components/pagination/index.vue index ee3e06a..f229446 100644 --- a/src/components/pagination/index.vue +++ b/src/components/pagination/index.vue @@ -1,100 +1,113 @@ - - - + + + diff --git a/src/utils/request.ts b/src/utils/request.ts index ed1c693..c163cb3 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -108,8 +108,6 @@ const requestInterceptor = (config: InternalAxiosRequestConfig) => { // 没有变化,只传递 id config.data = { id: idField }; } - - console.log('[最小化传参] 原始字段数:', Object.keys(currentData).length, '-> 传递字段数:', Object.keys(config.data).length); } } @@ -155,7 +153,6 @@ const responseInterceptor = (response: AxiosResponse) => { if (code === 402 && !requestUrl.includes('/assets/asset/sku/')) { // 获取当前路由路径 const currentPath = window.location.hash.replace('#', '') || window.location.pathname; - console.log('[request.ts] 检测到403错误,当前路径:', currentPath); handleModuleNotEnabled(currentPath); // 直接返回,不再显示错误消息 return Promise.reject(new Error('模块未开通')); @@ -173,8 +170,6 @@ const responseInterceptor = (response: AxiosResponse) => { // 响应错误拦截器 const responseErrorHandler = (error: any) => { - console.error('API请求错误:', error); - if (error.code === 'ECONNABORTED' && error.message.includes('timeout')) { showErrorMessage('请求超时,请检查网络连接'); return Promise.reject(new Error('请求超时')); @@ -206,13 +201,11 @@ const responseErrorHandler = (error: any) => { const lastSubscribeTime = sessionStorage.getItem('lastSubscribeTime'); const now = Date.now(); if (lastSubscribeTime && now - parseInt(lastSubscribeTime) < 5000) { - console.log('[responseErrorHandler] 刚完成开通,跳过402处理'); showErrorMessage(responseMessage || '服务开通中,请稍后刷新页面'); return Promise.reject(new Error('模块开通中')); } const currentPath = window.location.hash.replace('#', '') || window.location.pathname; - console.log('[responseErrorHandler] 检测到HTTP 402错误,当前路径:', currentPath); handleModuleNotEnabled(currentPath); return Promise.reject(new Error('模块未开通')); } diff --git a/src/views/ads/summary/monitor/index.vue b/src/views/ads/summary/monitor/index.vue index 1b31f56..94f6572 100644 --- a/src/views/ads/summary/monitor/index.vue +++ b/src/views/ads/summary/monitor/index.vue @@ -1,135 +1,416 @@ - 监控总表 - - - - + + + 监控总表 + + + 设置 + + + + + + + + + + + 预算执行趋势 + + + + + + + + + + + 部门执行明细 + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + 部门达成率分析 + + + + + + + + + + + 部门预算执行明细 + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + {{ scope.row.achievementRate }}% + + + + + + + + + + + + + + + + + + + + + + + 任务进度分析 + + + + + + + + + + + 任务进度明细 + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + 客户数据趋势 + + + + + + + + + + + 监控总表 + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + {{ scope.row.date1 }} + + + + + + + {{ scope.row.date2 }} + + + + + + + {{ scope.row.date3 }} + + + + + + + {{ scope.row.date4 }} + + + + + + + {{ scope.row.date5 }} + + + + + + + {{ scope.row.date6 }} + + + + + + + {{ scope.row.date7 }} + + + + + + + {{ scope.row.date8 }} + + + + + + + {{ scope.row.date9 }} + + + + + + + {{ scope.row.date10 }} + + + + + + + {{ scope.row.date11 }} + + + + + + + {{ scope.row.date12 }} + + + + + + + {{ scope.row.date13 }} + + + + + + + {{ scope.row.date14 }} + + + + + + + {{ scope.row.date15 }} + + + + + + + {{ scope.row.date16 }} + + + + + + + {{ scope.row.date17 }} + + + + + + + {{ scope.row.date18 }} + + + + + + + {{ scope.row.date19 }} + + + + + + + {{ scope.row.date20 }} + + + + + + + + + + + + + + 月度任务 + 季度任务 + - - - 查询 - 重置 + + + + + 设置部门任务 - - - - - - 预算执行趋势 - - - - - - 部门达成率对比 - - - - - - - - 预算执行分布 - - - - - - 月度预算执行 - - - - - - - - 关键指标 - - - - 总预算 - ¥{{ totalStats.totalBudget }} - - - - - 已执行 - ¥{{ totalStats.executed }} - - - - - 总达成率 - {{ totalStats.overallRate }}% - - - - - 日均执行 - ¥{{ totalStats.dailyAverage }} - - - - - - - - 部门预算执行明细 - - - - - {{ scope.row.achievementRate }}% - - - - - - - - - - - - - - - - - + + + 取消 + 保存设置 + + + + + + + + + + + + + + + + 取消 + 保存分配 + + + @@ -735,6 +1286,10 @@ onMounted(() => { font-weight: 600; } +.setting-btn { + color: #409eff; +} + .search-container { margin-bottom: 20px; } @@ -760,8 +1315,12 @@ onMounted(() => { color: #303133; } -.granularity-group { - flex-wrap: wrap; +.tabs-container { + margin-top: 20px; +} + +.tabs-container :deep(.el-tabs__header) { + margin-bottom: 20px; } .chart-container { @@ -770,46 +1329,17 @@ onMounted(() => { .chart { width: 100%; - height: 400px; -} - -.data-container { - margin-bottom: 20px; -} - -.stats-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); - gap: 16px; -} - -.stats-card { - text-align: center; -} - -.stats-item { - padding: 10px; -} - -.stats-label { - font-size: 14px; - color: #606266; - margin-bottom: 8px; -} - -.stats-value { - font-size: 24px; - font-weight: 600; - color: #303133; + height: 600px; + min-height: 600px; } .table-container { margin-top: 20px; } -.pagination-container { - margin-top: 16px; +.dialog-footer { display: flex; justify-content: flex-end; + gap: 8px; } diff --git a/src/views/customerService/script/component/editRole.vue b/src/views/customerService/script/component/editRole.vue index 02a96cf..92223ba 100644 --- a/src/views/customerService/script/component/editRole.vue +++ b/src/views/customerService/script/component/editRole.vue @@ -4,14 +4,18 @@ - - + + + + + + + - - - + + @@ -29,18 +33,19 @@