From 09f2bd8dfea871573eefa284ebfd88e8c3dc5eb3 Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 11 Dec 2025 16:18:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(ide):=20=E4=BC=98=E5=8C=96=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E6=95=B0=E6=8D=AE=E8=A1=A8=E6=A0=BC=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ideContainer/components/runTimeData.tsx | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/pages/ideContainer/components/runTimeData.tsx b/src/pages/ideContainer/components/runTimeData.tsx index e8da0c1..f2c4da1 100644 --- a/src/pages/ideContainer/components/runTimeData.tsx +++ b/src/pages/ideContainer/components/runTimeData.tsx @@ -9,41 +9,47 @@ const TabPane = Tabs.TabPane; const columns: TableColumnProps[] = [ { title: '节点', - dataIndex: 'name' + dataIndex: 'name', + width: 120 }, { title: '时间', + width: 160, render: (_: any, record) => ( <> - 开始{dayjs(record.startTime).format('YYYY-MM-DD HH:mm:ss')} + 开始 {dayjs(record.startTime).format('MM-DD HH:mm:ss')}

- {record.endTime > 0 && 结束{dayjs(record.endTime).format('YYYY-MM-DD HH:mm:ss')}} + {record.endTime > 0 && 结束 {dayjs(record.endTime).format('MM-DD HH:mm:ss')}} ) }, { title: '耗时', dataIndex: 'duration', + width: 80, render: (_: any, record) => ( record.duration > 1000 ? {formatSeconds((record.duration / 1000).toString())} : - {record.duration}毫秒 + {record.duration}ms ) }, { title: '状态', dataIndex: 'state', + width: 60, + align: 'center', render: (_: any, record) => ( <> - {record.state === 1 && } - {record.state === 0 && } - {record.state === -1 && } + {record.state === 1 && } + {record.state === 0 && } + {record.state === -1 && } ) }, { title: '输入参数', dataIndex: 'input', + ellipsis: true, render: (_: any, record) => ( {JSON.stringify(record.input)} ) @@ -51,6 +57,7 @@ const columns: TableColumnProps[] = [ { title: '输出参数', dataIndex: 'output', + ellipsis: true, render: (_: any, record) => ( {JSON.stringify(record.output)} ) @@ -89,12 +96,12 @@ const RunTimeData = ({ logData }) => { }, [tabList]); return ( - <> +
{tabList.map((item) => ())} - - +
+ ); };