You've already forked DataMate
refactor(data-management): 移除数据集详情中的存储路径和存储名称字段
- 从数据集概览组件中移除 targetLocation 和 pvcName 字段显示 - 保留创建者、创建时间等核心信息展示 - 清理相关的代码结构和布局调整
This commit is contained in:
@@ -72,16 +72,6 @@ export default function Overview({ dataset, filesOperation, fetchDataset }) {
|
||||
label: "创建者",
|
||||
children: dataset.createdBy || "未知",
|
||||
},
|
||||
{
|
||||
key: "targetLocation",
|
||||
label: "存储路径",
|
||||
children: dataset.targetLocation || "未知",
|
||||
},
|
||||
{
|
||||
key: "pvcName",
|
||||
label: "存储名称",
|
||||
children: dataset.pvcName || "未知",
|
||||
},
|
||||
{
|
||||
key: "createdAt",
|
||||
label: "创建时间",
|
||||
@@ -187,11 +177,11 @@ export default function Overview({ dataset, filesOperation, fetchDataset }) {
|
||||
fixed: "right",
|
||||
render: (_, record) => {
|
||||
const isDirectory = record.id.startsWith('directory-');
|
||||
|
||||
|
||||
if (isDirectory) {
|
||||
const currentPath = filesOperation.pagination.prefix || '';
|
||||
const fullPath = `${currentPath}${record.fileName}/`;
|
||||
|
||||
|
||||
return (
|
||||
<div className="flex">
|
||||
<Button
|
||||
@@ -223,7 +213,7 @@ export default function Overview({ dataset, filesOperation, fetchDataset }) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<div className="flex">
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user