|
|
|
@@ -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() { |
|
|
|
/> |
|
|
|
</Flex> |
|
|
|
{/* <div className={styles['assets-management__increase']}>今日新增数量:5</div> */} |
|
|
|
<Flex gap="22px 0" wrap="wrap" style={{ marginTop: '40px' }}> |
|
|
|
<Flex gap="22px 0" wrap="wrap" style={{ marginTop: '40px', padding: '0 8px' }}> |
|
|
|
{assetCounts.map((item, index) => ( |
|
|
|
<div className={styles['assets-management__summary']} key={index}> |
|
|
|
<div className={styles['assets-management__summary__title']}>{item.title}</div> |
|
|
|
<div className={styles['assets-management__summary__value']}>{item.value}</div> |
|
|
|
<div className={styles['assets-management__summary__value']}>{item.value ?? '-'}</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
</Flex> |
|
|
|
|