From a26cb120d1bcc1e0449215f4c4703a15b13bd372 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 2 Mar 2025 09:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91BPM=EF=BC=9A=E6=94=AF=E6=8C=81=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E2=80=9C=E5=8E=86=E5=8F=B2=E2=80=9D=E8=BF=9B=E8=A1=8C=E6=81=A2?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 1 + .../bpm/model/CategoryDraggableModel.vue | 8 +- src/views/bpm/model/definition/index.vue | 20 ++++ src/views/bpm/model/form/index.vue | 97 +++++++++++-------- 4 files changed, 79 insertions(+), 47 deletions(-) diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index 63b6af6a..67b1f2ad 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -31,6 +31,7 @@ export const getModelList = async (name: string | undefined) => { } export const getModel = async (id: string) => { + debugger return await request.get({ url: '/bpm/model/get?id=' + id }) } diff --git a/src/views/bpm/model/CategoryDraggableModel.vue b/src/views/bpm/model/CategoryDraggableModel.vue index 05cfc49d..4e4c1827 100644 --- a/src/views/bpm/model/CategoryDraggableModel.vue +++ b/src/views/bpm/model/CategoryDraggableModel.vue @@ -277,7 +277,6 @@ import { checkPermi } from '@/utils/permission' import { useUserStoreWithOut } from '@/store/modules/user' import { useAppStore } from '@/store/modules/app' import { cloneDeep, isEqual } from 'lodash-es' -import { useTagsView } from '@/hooks/web/useTagsView' import { useDebounceFn } from '@vueuse/core' import { subString } from '@/utils/index' @@ -589,8 +588,7 @@ const handleDeleteCategory = async () => { } catch {} } -/** 添加流程模型弹窗 */ -const tagsView = useTagsView() +/** 添加/修改/复制流程模型弹窗 */ const openModelForm = async (type: string, id?: number) => { if (type === 'create') { await push({ name: 'BpmModelCreate' }) @@ -599,10 +597,6 @@ const openModelForm = async (type: string, id?: number) => { name: 'BpmModelUpdate', params: { id, type } }) - // 设置标题 - if (type === 'copy') { - tagsView.setTitle('复制流程') - } } } diff --git a/src/views/bpm/model/definition/index.vue b/src/views/bpm/model/definition/index.vue index 8998a1c6..2b061f43 100644 --- a/src/views/bpm/model/definition/index.vue +++ b/src/views/bpm/model/definition/index.vue @@ -66,6 +66,18 @@ width="180" :formatter="dateFormatter" /> + + + { } } +/** 恢复流程模型弹窗 */ +const openModelForm = async (id?: number) => { + await push({ + name: 'BpmModelUpdate', + params: { id, type: 'definition' } + }) +} + /** 初始化 **/ onMounted(() => { getList() diff --git a/src/views/bpm/model/form/index.vue b/src/views/bpm/model/form/index.vue index 96ce5b91..e687360f 100644 --- a/src/views/bpm/model/form/index.vue +++ b/src/views/bpm/model/form/index.vue @@ -44,8 +44,13 @@
- 发 布 - 保 存 + + 发 布 + + + 恢 复 + 保 存 +
@@ -81,20 +86,23 @@