From 221918bba28d2384d03c596a68256d7832e4a0e0 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 06 一月 2025 13:30:50 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/bpm/model/index.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index bf43d29..c7d9417 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -106,6 +106,7 @@ defineOptions({ name: 'BpmModel' }) +const { push } = useRouter() const message = useMessage() // 消息弹窗 const loading = ref(true) // 列表的加载中 const isCategorySorting = ref(false) // 是否 category 正处于排序状态 @@ -124,7 +125,14 @@ /** 添加/修改操作 */ const formRef = ref() const openForm = (type: string, id?: number) => { - formRef.value.open(type, id) + if (type === 'create') { + push({ name: 'BpmModelCreate' }) + } else { + push({ + name: 'BpmModelUpdate', + params: { id } + }) + } } /** 流程表单的详情按钮操作 */ -- Gitblit v1.9.3