diff --git a/frontend/src/features/kb/components/KbAdminPanel.vue b/frontend/src/features/kb/components/KbAdminPanel.vue
index e9dd7b90..131328d5 100644
--- a/frontend/src/features/kb/components/KbAdminPanel.vue
+++ b/frontend/src/features/kb/components/KbAdminPanel.vue
@@ -36,6 +36,7 @@ import {
type KbGroup,
type KbJob,
} from '../api/kb.api';
+import { formatDateTime } from '../utils/kb-display.utils';
type GroupFilterMode = 'all' | 'withDocs' | 'empty';
type GroupSortMode = 'updatedDesc' | 'updatedAsc' | 'docsDesc' | 'docsAsc' | 'nameAsc';
@@ -99,6 +100,9 @@ const pagedGroups = computed(() => {
return filteredGroups.value.slice(start, start + pageSize.value);
});
+/** 格式化分组更新时间,避免管理台表格直接暴露后端 ISO 时间字符串。 */
+const formatGroupUpdatedAt = (value?: string | null) => formatDateTime(value);
+
/** 加载知识库治理页的分组与任务队列,供页面初始渲染和操作后刷新复用。 */
const loadData = async () => {
isRefreshing.value = true;
@@ -315,8 +319,8 @@ defineExpose({ loadData });
{{ group.description || t('kbAdmin.noDescription') }}
-
{{ t('kbAdmin.documentCount', { count: group.document_count ?? 0 }) }} |
- {{ group.updated_at || '--' }} |
+ {{ group.document_count ?? 0 }} |
+ {{ formatGroupUpdatedAt(group.updated_at) }} |
@@ -335,10 +339,10 @@ defineExpose({ loadData });
{{ group.name }}
{{ group.description || t('kbAdmin.noDescription') }}
- {{ t('kbAdmin.documentCount', { count: group.document_count ?? 0 }) }}
+ {{ group.document_count ?? 0 }}
- {{ group.updated_at || '--' }}
+ {{ formatGroupUpdatedAt(group.updated_at) }}
diff --git a/frontend/src/features/kb/views/KbWorkspaceView.vue b/frontend/src/features/kb/views/KbWorkspaceView.vue
index 4217bc6c..35069b96 100644
--- a/frontend/src/features/kb/views/KbWorkspaceView.vue
+++ b/frontend/src/features/kb/views/KbWorkspaceView.vue
@@ -3,7 +3,7 @@
* features/kb/views/KbWorkspaceView.vue
* 知识库作业面视图壳:模板与弹窗布局,业务逻辑见 useKbWorkspace。
*/
-import { ArrowLeft, BookOpen, ChevronDown, ChevronUp, FileText, Info, RefreshCw, Search, Trash2, Upload } from 'lucide-vue-next';
+import { ArrowLeft, BookOpen, ChevronDown, ChevronUp, FileText, Info, RefreshCw, Search, Settings, Trash2, Upload } from 'lucide-vue-next';
import KbWorkspaceOverlays from '../components/KbWorkspaceOverlays.vue';
import { useKbWorkspace } from '../composables/useKbWorkspace';
@@ -52,6 +52,15 @@ const kb = useKbWorkspace({ embedded: props.embedded });
{{ kb.viewMode === 'group_overview' ? kb.t('kbWorkspace.actions.refreshGroups') : kb.t('kbWorkspace.actions.refreshDocuments') }}
+
@@ -65,24 +74,26 @@ const kb = useKbWorkspace({ embedded: props.embedded });
{{ kb.t('kbWorkspace.overview.emptyGroups') }}
-
+
{{ group.name }}
- {{ group.description || kb.t('kbWorkspace.overview.noDescription') }}
+
+ {{ group.description || kb.t('kbWorkspace.overview.noDescription') }}
+
{{ kb.t('kbWorkspace.overview.documentCount', { count: group.document_count ?? 0 }) }}
- {{ kb.t('kbWorkspace.overview.updatedAt') }}{{ kb.formatDateTime(group.updated_at) }}
+ {{ kb.t('kbWorkspace.overview.updatedAt') }}{{ kb.formatDateTime(group.updated_at) }}
diff --git a/frontend/src/locales/en/kb.json b/frontend/src/locales/en/kb.json
index 64472dce..af062a86 100644
--- a/frontend/src/locales/en/kb.json
+++ b/frontend/src/locales/en/kb.json
@@ -117,7 +117,8 @@
"backToOverview": "Back to Group Overview",
"backToWorkspace": "Back to Workspace",
"refreshGroups": "Refresh Groups",
- "refreshDocuments": "Refresh Documents"
+ "refreshDocuments": "Refresh Documents",
+ "manageGroups": "Manage Groups"
},
"overview": {
"title": "Select a Group",
diff --git a/frontend/src/locales/th/kb.json b/frontend/src/locales/th/kb.json
index 2ead9ed2..1ee33c61 100644
--- a/frontend/src/locales/th/kb.json
+++ b/frontend/src/locales/th/kb.json
@@ -117,7 +117,8 @@
"backToOverview": "กลับไปรายการกลุ่ม",
"backToWorkspace": "กลับไปเวิร์กสเปซ",
"refreshGroups": "รีเฟรชกลุ่ม",
- "refreshDocuments": "รีเฟรชเอกสาร"
+ "refreshDocuments": "รีเฟรชเอกสาร",
+ "manageGroups": "จัดการกลุ่ม"
},
"overview": {
"title": "เลือกกลุ่ม",
diff --git a/frontend/src/locales/zh-CN/kb.json b/frontend/src/locales/zh-CN/kb.json
index c7f4badd..e14041d8 100644
--- a/frontend/src/locales/zh-CN/kb.json
+++ b/frontend/src/locales/zh-CN/kb.json
@@ -117,7 +117,8 @@
"backToOverview": "返回分组列表",
"backToWorkspace": "返回工作台",
"refreshGroups": "刷新分组",
- "refreshDocuments": "刷新文档"
+ "refreshDocuments": "刷新文档",
+ "manageGroups": "管理分组"
},
"overview": {
"title": "选择分组",
diff --git a/frontend/src/locales/zh-TW/kb.json b/frontend/src/locales/zh-TW/kb.json
index 9fc6523d..c1eeba5b 100644
--- a/frontend/src/locales/zh-TW/kb.json
+++ b/frontend/src/locales/zh-TW/kb.json
@@ -117,7 +117,8 @@
"backToOverview": "返回分組列表",
"backToWorkspace": "返回工作台",
"refreshGroups": "刷新分組",
- "refreshDocuments": "刷新文檔"
+ "refreshDocuments": "刷新文檔",
+ "manageGroups": "管理分組"
},
"overview": {
"title": "選擇分組",
|