修改文案

main
陈博文 4 days ago
parent c7c8f36b2f
commit 22f3d1bb8f

@ -198,6 +198,7 @@ const columns = [
},
{
label: '使用模式',
width: 120,
value: 'mode',
render: ({ mode, type }) => (
<el-tag disable-transitions>

@ -66,6 +66,7 @@ const columns = [
},
{
title: '使用模式',
width: 120,
dataIndex: 'mode',
render: ({ mode, type }) => (
<el-tag disable-transitions>
@ -79,6 +80,7 @@ const columns = [
},
{
title: '所属资源池',
width: 100,
dataIndex: 'resourcePools',
render: ({ resourcePools }) => `${resourcePools.join('、')}`,
},
@ -97,6 +99,7 @@ const columns = [
},
{
title: '算力(已分配/总量)',
width: 120,
dataIndex: 'used',
render: ({ coreTotal, coreUsed, isExternal }) => (
<span>
@ -107,6 +110,7 @@ const columns = [
{
title: '显存(已分配/总量)',
dataIndex: 'w',
width: 120,
render: ({ memoryTotal, memoryUsed, isExternal }) => (
<span>
{isExternal ? '--' : roundToDecimal(memoryUsed / 1024, 1)}/

@ -264,6 +264,7 @@ const detailColumns = [
{
label: '节点状态',
value: 'status',
width: 100,
render: ({ isSchedulable, isExternal }) => {
if (detail.value && detail.value.isSchedulable !== undefined) {
return (

@ -128,6 +128,7 @@ const columns = [
},
{
title: '节点状态',
width: 100,
dataIndex: 'isSchedulable',
render: ({ isSchedulable, isExternal }) => (
<el-tag disable-transitions type={isExternal ? 'warning' : (isSchedulable ? 'success' : 'danger')}>
@ -173,6 +174,7 @@ const columns = [
},
{
title: '所属资源池',
width: 100,
dataIndex: 'resourcePools',
render: ({ resourcePools }) => `${resourcePools.join('、')}`,
},

@ -68,6 +68,7 @@ const columns = [
},
{
title: '节点状态',
width: 100,
dataIndex: 'isSchedulable',
render: ({ isSchedulable, isExternal }) => (
<el-tag disable-transitions type={isExternal ? 'warning' : (isSchedulable ? 'success' : 'danger')}>

@ -58,6 +58,7 @@ const columns = [
title: '任务状态',
dataIndex: 'status',
render: ({ status, deviceIds }) => {
if (!status) return '/';
const enums = {
closed: { text: '已完成', color: '#999' },
success: { text: '运行中', color: '#2563eb' },
@ -119,12 +120,15 @@ const columns = [
},
{
title: '所属资源池',
width: 100,
dataIndex: 'resourcePools',
render: ({ resourcePools }) => `${resourcePools.join('、')}`,
render: ({ resourcePools }) => `${resourcePools?.length ? resourcePools.join('、') : '/'}`,
},
{
title: '所属节点',
dataIndex: 'nodeName',
render: ({ nodeName }) => nodeName || '/',
},
{
title: 'CPU',
@ -138,6 +142,7 @@ const columns = [
},
{
title: '分配 vGPU',
width: 100,
dataIndex: 'deviceIds',
render: ({ deviceIds }) => {
return (
@ -178,6 +183,7 @@ const columns = [
{
title: '任务创建时间',
width: 140,
dataIndex: 'createTime',
render: ({ createTime }) => timeParse(createTime),
},

Loading…
Cancel
Save