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

@ -339,8 +339,10 @@ const handleChangeState = async (row: any) => {
/** 设计流程 */
const handleDesign = (row: any) => {
// TODO @goldenzqqq最好使用 name 哈
push(`/bpm/manager/model/create-update?id=${row.id}`)
push({
name: 'BpmModelUpdate',
params: { id: row.id }
})
}
/** 发布流程 */
@ -483,11 +485,13 @@ const handleDeleteCategory = async () => {
/** 添加流程模型弹窗 */
const modelFormRef = ref()
const openModelForm = (type: string, id?: number) => {
// TODO @goldenzqqq最好使用 name 哈
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 }
})
}
}