diff --git a/frontend/src/pages/Workflow/Definition/index.tsx b/frontend/src/pages/Workflow/Definition/index.tsx index 855ee205..a14f54c6 100644 --- a/frontend/src/pages/Workflow/Definition/index.tsx +++ b/frontend/src/pages/Workflow/Definition/index.tsx @@ -183,6 +183,8 @@ const WorkflowDefinitionList: React.FC = () => { { title: '操作', key: 'action', + fixed: 'right', + width: 200, render: (_: any, record: WorkflowDefinition) => ( {record.status === 'DRAFT' && ( @@ -212,21 +214,20 @@ const WorkflowDefinitionList: React.FC = () => { } > { - setQuery({ - ...query, - pageNum: page - 1, - pageSize - }); - } + total: pageData?.totalElements || 0, + onChange: (page, pageSize) => setQuery({ + ...query, + pageNum: page - 1, + pageSize + }), }} /> { render: (status: string) => { if (!status) return '暂无'; const statusMap: Record = { - TERMINATED: { color: 'red', text: '已终止' }, + TERMINATED: { color: 'red', text: '终止' }, COMPLETED: { color: 'green', text: '已完成' }, RUNNING: { color: 'blue', text: '运行中' }, }; @@ -72,6 +72,8 @@ const WorkflowInstanceList: React.FC = () => { { title: '操作', key: 'action', + fixed: 'right', + width: 120, render: (_, record) => ( handleViewDetail(record)}>查看详情 @@ -98,6 +100,7 @@ const WorkflowInstanceList: React.FC = () => { dataSource={data} loading={loading} rowKey="id" + scroll={{ x: 1200 }} locale={{ emptyText: }}