feat(web): 优化流程任务编辑

This commit is contained in:
v-zhangjc9
2025-07-03 19:18:17 +08:00
parent 5f7eeb3596
commit 8ebaf5de8e
3 changed files with 23 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ const FlowableDiv = styled.div`
}
`
export type FlowEditorProps = {
}
function FlowEditor() {
const [messageApi, contextHolder] = message.useMessage()
const [nodeDef] = useState<{

View File

@@ -85,6 +85,25 @@ const FlowTaskTemplate: React.FC = () => {
},
},
},
{
type: 'action',
label: '编辑流程',
level: 'link',
size: 'sm',
onEvent: {
click: {
actions: [
{
actionType: 'custom',
// @ts-ignore
script: (context, doAction, event) => {
navigate(`/ai/flow_task_template/edit/${context.props.data['id']}`)
},
},
],
},
},
},
{
type: 'action',
label: '删除',

View File

@@ -255,7 +255,7 @@ export const menus = {
},
{
path: '/ai/flow_task_template',
name: '任务模板',
name: '流程模板',
icon: <FileTextOutlined/>,
},
]