This commit is contained in:
dengqichen 2024-12-17 17:08:51 +08:00
parent df3f6017f2
commit 99bee5f162

View File

@ -73,13 +73,14 @@ const WorkflowInstanceList: React.FC = () => {
title: '操作', title: '操作',
key: 'action', key: 'action',
fixed: 'right', fixed: 'right',
width: 120, width: 230,
render: (_, record) => ( render: (_, record) => (
<Space size="middle"> <Space size="middle">
<a onClick={() => handleViewDetail(record)}></a> <a onClick={() => handleViewDetail(record)}></a>
{record?.lastExecutionStatus === 'RUNNING' && ( {record?.lastExecutionStatus === 'RUNNING' && (
<a onClick={() => console.log('终止流程', record)}></a> <a onClick={() => console.log('终止流程', record)}></a>
)} )}
<a onClick={() => handleViewDetail(record)}></a>
</Space> </Space>
), ),
}, },