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: "创建者",
|
label: "创建者",
|
||||||
children: dataset.createdBy || "未知",
|
children: dataset.createdBy || "未知",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: "targetLocation",
|
|
||||||
label: "存储路径",
|
|
||||||
children: dataset.targetLocation || "未知",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: "pvcName",
|
|
||||||
label: "存储名称",
|
|
||||||
children: dataset.pvcName || "未知",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: "createdAt",
|
key: "createdAt",
|
||||||
label: "创建时间",
|
label: "创建时间",
|
||||||
@@ -187,11 +177,11 @@ export default function Overview({ dataset, filesOperation, fetchDataset }) {
|
|||||||
fixed: "right",
|
fixed: "right",
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
const isDirectory = record.id.startsWith('directory-');
|
const isDirectory = record.id.startsWith('directory-');
|
||||||
|
|
||||||
if (isDirectory) {
|
if (isDirectory) {
|
||||||
const currentPath = filesOperation.pagination.prefix || '';
|
const currentPath = filesOperation.pagination.prefix || '';
|
||||||
const fullPath = `${currentPath}${record.fileName}/`;
|
const fullPath = `${currentPath}${record.fileName}/`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<Button
|
<Button
|
||||||
@@ -223,7 +213,7 @@ export default function Overview({ dataset, filesOperation, fetchDataset }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user