diff --git a/react-ui/src/pages/Workspace/components/AssetsManagement/index.less b/react-ui/src/pages/Workspace/components/AssetsManagement/index.less index 122d3bf4..53f7af70 100644 --- a/react-ui/src/pages/Workspace/components/AssetsManagement/index.less +++ b/react-ui/src/pages/Workspace/components/AssetsManagement/index.less @@ -37,7 +37,18 @@ &__summary { display: flex; flex-direction: column; - width: 33.33%; + width: 40%; + text-align: left; + + &:nth-child(3n+2) { + text-align: center; + width: 30%; + } + + &:nth-child(3n) { + text-align: right; + width: 30%; + } &__title { margin-bottom: 12px; diff --git a/react-ui/src/pages/Workspace/components/AssetsManagement/index.tsx b/react-ui/src/pages/Workspace/components/AssetsManagement/index.tsx index 391ae1f6..1e5b2989 100644 --- a/react-ui/src/pages/Workspace/components/AssetsManagement/index.tsx +++ b/react-ui/src/pages/Workspace/components/AssetsManagement/index.tsx @@ -16,7 +16,7 @@ function AssetsManagement() { }; const [res] = await to(getWorkspaceAssetCountReq(params)); if (res && res.data) { - const { dataset, image, model, workflow } = res.data; + const { dataset, image, model, workflow, codeConfig, service } = res.data; const items = [ { title: '数据集', @@ -42,6 +42,14 @@ function AssetsManagement() { title: '流水线模版', value: workflow, }, + { + title: '代码配置', + value: codeConfig, + }, + { + title: '服务', + value: service, + }, ]; setAssetCounts(items); } @@ -67,11 +75,11 @@ function AssetsManagement() { /> {/*
今日新增数量:5
*/} - + {assetCounts.map((item, index) => (
{item.title}
-
{item.value}
+
{item.value ?? '-'}
))}