diff --git a/chat-client/src/locales/en.ts b/chat-client/src/locales/en.ts index 23cfb30..c0a7e63 100644 --- a/chat-client/src/locales/en.ts +++ b/chat-client/src/locales/en.ts @@ -296,6 +296,7 @@ export default { rename: 'Rename', delete: 'Delete', deepAnalysis: 'Deep Analysis', + taskMonitor: 'Task Monitor', }, search: { placeholder: 'Enter keywords to search', @@ -341,6 +342,38 @@ export default { 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', 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 36c7cd7..7ac4a2c 100644 --- a/chat-client/src/locales/zh.ts +++ b/chat-client/src/locales/zh.ts @@ -304,6 +304,7 @@ export default { rename: '重命名', delete: '删除', deepAnalysis: '深度解析', + taskMonitor: '任务监控', }, search: { placeholder: '请输入关键词查询', @@ -348,6 +349,38 @@ export default { 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: '文件名不能为空', diff --git a/chat-client/src/views/datasets/components/DocumentList.vue b/chat-client/src/views/datasets/components/DocumentList.vue index 528c2f6..0d20213 100644 --- a/chat-client/src/views/datasets/components/DocumentList.vue +++ b/chat-client/src/views/datasets/components/DocumentList.vue @@ -8,8 +8,10 @@ : 'vabI18n.knowledge.document.header.descriptionEnd') }} - -
+ + +
+
@@ -37,7 +39,26 @@ {{t('vabI18n.knowledge.document.buttons.batchDelete', { count: selectedRows.length })}} {{t('vabI18n.knowledge.document.buttons.refresh')}} - {{t('vabI18n.knowledge.document.buttons.deepAnalysis')}} + + + + + + + {{t('vabI18n.knowledge.document.buttons.taskMonitor')}} + + + + {{t('vabI18n.knowledge.document.buttons.upload')}}
@@ -153,6 +174,82 @@ />
+ + + +
+ + + +
+
+
@@ -275,43 +372,13 @@ - - -
-
- -
-
-
-
-
-

{{ task.name }}

-

{{t('vabI18n.knowledge.document.deepAnalysisDialog.datasetName')}}: {{ task.datasetName }}

-

{{t('vabI18n.knowledge.document.deepAnalysisDialog.taskId')}}: {{ task.taskId }}

-

{{t('vabI18n.knowledge.document.deepAnalysisDialog.createTime')}}: {{ formatTimestampToLocaleString(task.createTime) }}

-
-
- -
-
-
-
-
- -
+