diff --git a/frontend/src/pages/KnowledgeManagement/Detail/KnowledgeSetDetail.tsx b/frontend/src/pages/KnowledgeManagement/Detail/KnowledgeSetDetail.tsx
index d9a1294..3d980cf 100644
--- a/frontend/src/pages/KnowledgeManagement/Detail/KnowledgeSetDetail.tsx
+++ b/frontend/src/pages/KnowledgeManagement/Detail/KnowledgeSetDetail.tsx
@@ -8,7 +8,6 @@ import {
Empty,
Modal,
Table,
- Tag,
Tooltip,
} from "antd";
import { DeleteOutlined, DownloadOutlined, EditOutlined, EyeOutlined, PlusOutlined } from "@ant-design/icons";
@@ -148,7 +147,7 @@ const KnowledgeSetDetail = () => {
return lastSegment;
}
}
- return record.title || "文件";
+ return "文件";
};
const handlePreviewItemFile = async (record: KnowledgeItemView) => {
@@ -268,21 +267,21 @@ const KnowledgeSetDetail = () => {
const itemColumns = [
{
- title: "标题",
- dataIndex: "title",
- key: "title",
+ title: "文件名",
+ dataIndex: "sourceFileId",
+ key: "sourceFileId",
fixed: "left" as const,
- width: 220,
+ width: 260,
ellipsis: true,
- },
- {
- title: "状态",
- dataIndex: "status",
- key: "status",
- width: 120,
- render: (status: KnowledgeItemView["status"]) => (
- {status?.label}
- ),
+ render: (_: string, record: KnowledgeItemView) => {
+ if (
+ record.contentType === KnowledgeContentType.FILE ||
+ record.sourceType === KnowledgeSourceType.FILE_UPLOAD
+ ) {
+ return resolvePreviewFileName(record);
+ }
+ return record.sourceFileId || "-";
+ },
},
{
title: "类型",
@@ -293,13 +292,6 @@ const KnowledgeSetDetail = () => {
knowledgeContentTypeOptions.find((opt) => opt.value === contentType)?.label ||
contentType,
},
- {
- title: "负责人",
- dataIndex: "owner",
- key: "owner",
- width: 120,
- ellipsis: true,
- },
{
title: "来源",
dataIndex: "sourceType",
@@ -474,7 +466,7 @@ const KnowledgeSetDetail = () => {
setSearchParams({ ...searchParams, filter: { type: [], status: [], tags: [] } })}