feat: 流程模型新增/修改页面-优化路由配置、新增修改分为两个并全部使用name进行跳转,每个步骤拆分出一个子组件

This commit is contained in:
GoldenZqqq
2024-12-16 17:23:27 +08:00
parent 5e386336b9
commit 6e6754e44a
7 changed files with 771 additions and 11 deletions

View File

@ -126,9 +126,12 @@ const handleQuery = () => {
const formRef = ref()
const openForm = (type: string, id?: number) => {
if (type === 'create') {
push('/bpm/manager/model/create-update')
push({ name: 'BpmModelCreate' })
} else {
push(`/bpm/manager/model/create-update?id=${id}`)
push({
name: 'BpmModelUpdate',
params: { id }
})
}
}