diff --git a/chat-client/.env.development b/chat-client/.env.development index 9799822..9c24f36 100644 --- a/chat-client/.env.development +++ b/chat-client/.env.development @@ -2,17 +2,17 @@ # 此文件修改后需要重启项目 NODE_ENV=development #VUE_APP_BASE_URL='/vab-mock-server' -VUE_APP_BASE_URL='http://localhost:10001' -VUE_APP_API_BASE_URL='http://localhost:8080' +# VUE_APP_BASE_URL='http://localhost:10001' +# VUE_APP_API_BASE_URL='http://localhost:8080' #北京服务器配置 # VUE_APP_BASE_URL='http://192.168.1.211:80/brichat' # VUE_APP_API_BASE_URL='http://192.168.1.211:80/brichat' # #武汉公司服务器 -# VUE_APP_BASE_URL='http://192.168.8.253:80/brichat' -# VUE_APP_API_BASE_URL='http://192.168.8.253:80/brichat' +VUE_APP_BASE_URL='http://192.168.8.253:80/brichat' +VUE_APP_API_BASE_URL='http://192.168.8.253:80/brichat' #总部服务器配置 # VUE_APP_BASE_URL='http://192.168.0.33:80/brichat' # VUE_APP_API_BASE_URL='http://192.168.0.33:80/brichat' -VUE_APP_GITHUB_USER_NAME=test -VUE_APP_SECRET_KEY=preview +# VUE_APP_GITHUB_USER_NAME=test +# VUE_APP_SECRET_KEY=preview diff --git a/chat-client/.env.production b/chat-client/.env.production index d6534da..8d5124b 100644 --- a/chat-client/.env.production +++ b/chat-client/.env.production @@ -2,18 +2,18 @@ # 此文件修改后需要重启项目 NODE_ENV=production # VUE_APP_BASE_URL='/vab-mock-server' -VUE_APP_BASE_URL='http://localhost:10001' -VUE_APP_API_BASE_URL='http://localhost:10001' +# VUE_APP_BASE_URL='http://localhost:10001' +# VUE_APP_API_BASE_URL='http://localhost:10001' #北京服务器 # VUE_APP_BASE_URL='http://192.168.1.211:80/brichat' # VUE_APP_API_BASE_URL='http://192.168.1.211:80/brichat' #武汉公司服务器 -# VUE_APP_BASE_URL='http://192.168.8.253:80/brichat' -# VUE_APP_API_BASE_URL='http://192.168.8.253:80/brichat' +VUE_APP_BASE_URL='http://192.168.8.253:80/brichat' +VUE_APP_API_BASE_URL='http://192.168.8.253:80/brichat' # 总部服务器 # VUE_APP_BASE_URL='http://192.168.0.33:80/brichat' # VUE_APP_API_BASE_URL='http://192.168.0.33:80/brichat' -VUE_APP_GITHUB_USER_NAME=test -VUE_APP_SECRET_KEY=preview \ No newline at end of file +# VUE_APP_GITHUB_USER_NAME=test +# VUE_APP_SECRET_KEY=preview \ No newline at end of file diff --git a/chat-client/src/api/dataset.ts b/chat-client/src/api/dataset.ts index 8bf0248..c172975 100644 --- a/chat-client/src/api/dataset.ts +++ b/chat-client/src/api/dataset.ts @@ -138,4 +138,14 @@ export const deleteDataset = (id: string) => { datasetId } }) + } + + /** + * 获取深度解析任务列表 + */ + export const getDeepAnalysisList = () => { + return request({ + url: '/brichat-service/datasetManage/document/deepAnalysisList', + method: 'get' + }) } \ No newline at end of file diff --git a/chat-client/src/locales/en.ts b/chat-client/src/locales/en.ts index f3967c2..c0a7e63 100644 --- a/chat-client/src/locales/en.ts +++ b/chat-client/src/locales/en.ts @@ -295,6 +295,8 @@ export default { download: 'Download', rename: 'Rename', delete: 'Delete', + deepAnalysis: 'Deep Analysis', + taskMonitor: 'Task Monitor', }, search: { placeholder: 'Enter keywords to search', @@ -314,6 +316,8 @@ export default { segmentation: 'Segmentation Rules', separatorPlaceholder: 'Separator (default: ###)', maxTokens: 'Max Tokens', + deepAnalysis: 'Deep Analysis', + deepAnalysisOption: 'Enable deep analysis to improve document understanding accuracy', selectFile: 'Select the file', fileTip: 'Multiple selection supported, max 100MB per file. Accepted formats: TXT, MD, MARKDOWN, MDX, PDF, HTML, HTM, XLSX, XLS, DOCX, CSV, VTT, PROPERTIES', @@ -331,6 +335,46 @@ export default { confirm: 'Confirm', deleteconfirm: 'Delete Confirm', }, + deepAnalysisDialog: { + title: 'Deep Analysis Task List', + noTasks: 'No deep analysis tasks are currently in progress', + datasetName: 'Dataset', + taskId: 'Task ID', + createTime: 'Create Time', + close: 'Close', + totalTasks: 'Total Tasks', + runningTasks: 'Running', + completedTasks: 'Completed', + completed: 'Completed', + running: 'Running', + pending: 'Pending', + }, + progressPanel: { + title: 'Deep Analysis Progress', + show: 'Show Details', + hide: 'Hide Details', + }, + tooltips: { + hasRunningTasks: '{count} tasks in progress', + viewDeepAnalysis: 'View deep analysis tasks', + showSidebar: 'Show task monitor panel', + hideSidebar: 'Hide task monitor panel', + }, + sidebar: { + title: 'Task Monitor', + }, + timeAgo: { + justNow: 'Just now', + minutes: '{count} minutes ago', + hours: '{count} hours ago', + days: '{count} days ago', + }, + notifications: { + allTasksCompleted: 'Tasks Completed', + allTasksCompletedMessage: 'All deep analysis tasks have been completed!', + taskCompleted: 'Task Completed', + taskCompletedMessage: 'Deep analysis task "{name}" has been completed', + }, messages: { FilenamecantEmpty: 'Filename cannot be empty', uploadSuccess: 'Upload successfully', @@ -359,6 +403,7 @@ export default { fetchFailed: 'Failed to get document list: ', previewFailed: 'Preview failed: ', downloadFailed: 'Download failed: ', + fetchDeepAnalysisFailed: 'Failed to get deep analysis task list', }, }, }, @@ -515,63 +560,35 @@ export default { Tip: 'Tip', selectDeleteData: 'Please select the data to be deleted', confirmDeleteApiKeys: 'This operation will permanently delete selected ', - confirmDeleteApiKeysEnd: ' API key, are you sure?', - confirmDeleteApiKeysEndPlural: ' API keys, are you sure?', + confirmDeleteApiKeysEnd:' API key, are you sure?', + confirmDeleteApiKeysEndPlural:' API keys, are you sure?', confirmRefreshCache: 'This operation will refresh Redis cache, reloading all API keys, are you sure?', updateSuccess: 'Update Successfully', updateFail: 'Update Failed', addSuccess: 'Add Successfully', - addFail: 'Add Failed', + addFail:'Add Failed' }, - prologue: { - title: 'Opening Statement Management', - query: 'Query', - save: 'Save', + prologue:{ chatType: 'Chat Type', - chatTypes: { - '1': 'Fault Diagnosis', - '2': 'Intelligent Q&A', - '3': 'Chart Report', - '4': 'Emergency Assistant Q&A', - '5': 'Diagnostic Code Lookup', - }, - openingContent: 'Opening Statement Content', - addRecommend: 'Add Recommended Question', - recommendation: 'Recommended Question', - action: 'Action', + selectChatType: 'Select Chat Type', + prologueContent: 'Prologue Content', + addRecommend: 'Add Recommendation', + recommendQuestion: 'Recommended Question', + actions: 'Actions', edit: 'Edit', delete: 'Delete', - dialog: { - addTitle: 'Add Recommended Question', - editTitle: 'Edit Recommended Question', - questionContent: 'Recommended Question', - cancel: 'Cancel', - confirm: 'Confirm', - save: 'Save', - }, - message: { - loadSuccess: 'Loaded successfully', - loadFailed: 'Load failed, please try again later', - loadFailedMess: 'Failed to load recommended questions', - notFound: 'Opening statement not found', - saveSuccess: 'Saved successfully', - saveFailed: 'Save failed, please try again later', - addSuccess: 'Recommended question added successfully', - addFailed: 'Failed to add recommended question', - editSuccess: 'Recommended question edited successfully', - editFailed: 'Failed to edit recommended question, please try again later', - deleteSuccess: 'Deleted successfully', - deleteFailed: 'Deletion failed', - }, - confirm: { - save: 'Are you sure you want to save the changes?', - tips: 'Tips', - delete: 'Are you sure you want to delete this recommended question?', - deleteConfirm: 'Delete Confirmation', - }, - placeholder: { - selectType: 'Select chat type', - }, + confirmDelete: 'Are you sure you want to delete this recommendation?', + confirmSave: 'Are you sure you want to save the changes?', + deleteSuccess: 'Deleted successfully', + deleteFailure: 'Failed to delete, please try again later', + saveSuccess: 'Saved successfully', + saveFailure: 'Failed to save, please try again later', + loadSuccess: 'Loaded successfully', + loadFailure: 'Failed to load, please try again later', + noContent: 'No content found', + loading: 'Loading...', + updateRecommendation: 'Update Recommendation', + addRecommendation: 'Add Recommendation', }, vabtabs: { refresh: 'Refresh', diff --git a/chat-client/src/locales/zh-TW.ts b/chat-client/src/locales/zh-TW.ts index 563c203..6d1c8a6 100644 --- a/chat-client/src/locales/zh-TW.ts +++ b/chat-client/src/locales/zh-TW.ts @@ -293,6 +293,8 @@ export default { download: '下載', rename: '重命名', delete: '刪除', + deepAnalysis: '深度解析', + taskMonitor: '任務監控', }, search: { placeholder: '請輸入關鍵詞查詢', @@ -328,6 +330,46 @@ export default { confirm: '確定', deleteconfirm: '刪除確認', }, + deepAnalysisDialog: { + title: '深度解析任務列表', + noTasks: '當前沒有正在進行的深度解析任務', + datasetName: '知識庫', + taskId: '任務ID', + createTime: '創建時間', + close: '關閉', + totalTasks: '總任務數', + runningTasks: '進行中', + completedTasks: '已完成', + completed: '已完成', + running: '進行中', + pending: '等待中', + }, + progressPanel: { + title: '深度解析進度', + show: '展開詳情', + hide: '收起詳情', + }, + tooltips: { + hasRunningTasks: '有 {count} 個任務正在進行', + viewDeepAnalysis: '查看深度解析任務', + showSidebar: '顯示任務監控面板', + hideSidebar: '隱藏任務監控面板', + }, + sidebar: { + title: '任務監控', + }, + timeAgo: { + justNow: '剛剛', + minutes: '{count} 分鐘前', + hours: '{count} 小時前', + days: '{count} 天前', + }, + notifications: { + allTasksCompleted: '任務完成', + allTasksCompletedMessage: '所有深度解析任務已完成!', + taskCompleted: '任務完成', + taskCompletedMessage: '深度解析任務 "{name}" 已完成', + }, messages: { FilenamecantEmpty: '文件名不能为空', uploadSuccess: '上傳成功', diff --git a/chat-client/src/locales/zh.ts b/chat-client/src/locales/zh.ts index a417884..7ac4a2c 100644 --- a/chat-client/src/locales/zh.ts +++ b/chat-client/src/locales/zh.ts @@ -303,6 +303,8 @@ export default { download: '下载', rename: '重命名', delete: '删除', + deepAnalysis: '深度解析', + taskMonitor: '任务监控', }, search: { placeholder: '请输入关键词查询', @@ -322,6 +324,8 @@ export default { segmentation: '分段规则', separatorPlaceholder: '分隔符(默认###)', maxTokens: '最大Token数', + deepAnalysis: '深度解析', + deepAnalysisOption: '启用深度解析,提高文档理解精度', selectFile: '选择文件', fileTip: '支持多选,单个文件不超过100MB,可接受格式:TXT、MD、MARKDOWN、MDX、PDF、HTML、HTM、XLSX、XLS、DOCX、CSV、VTT、PROPERTIES', cancel: '取消', @@ -338,6 +342,46 @@ export default { confirm: '确定', deleteconfirm: '删除确认', }, + deepAnalysisDialog: { + title: '深度解析任务列表', + noTasks: '当前没有正在进行的深度解析任务', + datasetName: '知识库', + taskId: '任务ID', + createTime: '创建时间', + close: '关闭', + totalTasks: '总任务数', + runningTasks: '进行中', + completedTasks: '已完成', + completed: '已完成', + running: '进行中', + pending: '等待中', + }, + progressPanel: { + title: '深度解析进度', + show: '展开详情', + hide: '收起详情', + }, + tooltips: { + hasRunningTasks: '有 {count} 个任务正在进行', + viewDeepAnalysis: '查看深度解析任务', + showSidebar: '显示任务监控面板', + hideSidebar: '隐藏任务监控面板', + }, + sidebar: { + title: '任务监控', + }, + timeAgo: { + justNow: '刚刚', + minutes: '{count} 分钟前', + hours: '{count} 小时前', + days: '{count} 天前', + }, + notifications: { + allTasksCompleted: '任务完成', + allTasksCompletedMessage: '所有深度解析任务已完成!', + taskCompleted: '任务完成', + taskCompletedMessage: '深度解析任务 "{name}" 已完成', + }, messages: { FilenamecantEmpty: '文件名不能为空', uploadSuccess: '上传成功', @@ -367,6 +411,7 @@ export default { fetchFailed: '获取文档列表失败: ', previewFailed: '预览失败: ', downloadFailed: '下载失败: ', + fetchDeepAnalysisFailed: '获取深度解析任务列表失败', }, }, }, diff --git a/chat-client/src/views/datasets/components/DocumentList.vue b/chat-client/src/views/datasets/components/DocumentList.vue index 01ffb39..0d20213 100644 --- a/chat-client/src/views/datasets/components/DocumentList.vue +++ b/chat-client/src/views/datasets/components/DocumentList.vue @@ -3,13 +3,15 @@ -
+ +
+
@@ -27,16 +29,36 @@
- {{t('vabI18n.knowledge.document.buttons.batchDelete', { count: selectedRows.length })}} {{t('vabI18n.knowledge.document.buttons.refresh')}} + + + + + + + {{t('vabI18n.knowledge.document.buttons.taskMonitor')}} + + + + {{t('vabI18n.knowledge.document.buttons.upload')}}
@@ -53,9 +75,9 @@ @selection-change="handleSelectionChange" > - + +
- +