From 128d0953b18f257340543fd548ca9059136919ff Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 20 Nov 2025 15:54:38 +0800 Subject: [PATCH] =?UTF-8?q?pref(componentDeployment):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=8A=82=E7=82=B9=E5=B1=95=E7=A4=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../componentDeployment/listNode.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/pages/componentDevelopment/componentDeployment/listNode.tsx b/src/pages/componentDevelopment/componentDeployment/listNode.tsx index dd91cf5..1a74e5a 100644 --- a/src/pages/componentDevelopment/componentDeployment/listNode.tsx +++ b/src/pages/componentDevelopment/componentDeployment/listNode.tsx @@ -1,7 +1,9 @@ import React, { useEffect, useState } from 'react'; -import { Button, Space, Table, TableColumnProps } from '@arco-design/web-react'; +import { Button, Space, Table, TableColumnProps, Tag } from '@arco-design/web-react'; import styles from '@/pages/componentDevelopment/componentDeployment/style/collapseList.module.less'; import { getInstanceList } from '@/api/componentInstance'; +import { runStatusDic, runTypeConstant, runTypeDic } from '@/const/isdp/componentDeploy'; +import dayjs from 'dayjs'; interface ListNodeProps { componentData: any; // 组件数据 @@ -57,17 +59,28 @@ const ListNode: React.FC = ({ componentData }) => { { title: '运行类型', dataIndex: 'runType', - align: 'center' + align: 'center', + render: (runType) => { + const item = runTypeDic.find(d => d.value === runTypeConstant[runType]); + return item ? item.label : '-'; + } }, { title: '运行状态', dataIndex: 'runStatus', - align: 'center' + align: 'center', + render: (runStatus) => { + const item = runStatusDic.find(d => d.value === runStatus); + return item ? {item.label} : '-'; + } }, { title: '创建时间', dataIndex: 'createTime', - align: 'center' + align: 'center', + render: (createTime) => { + return createTime ? dayjs(createTime).format('YYYY-MM-DD HH:mm:ss') : '-'; + } }, { title: '操作',