From cbe7797a1c998d180469fcffd973734245b97480 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sat, 1 Nov 2025 22:55:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[antd]=20[bpm]=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=20todo=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bpm/model/definition/index.vue | 9 ++++--- .../src/views/bpm/model/form/index.vue | 2 -- .../model/form/modules/bpm-model-editor.vue | 10 +++---- .../modules/category-draggable-model.vue | 26 +++++++------------ .../bpm/processInstance/detail/index.vue | 11 ++++---- .../detail/modules/operation-button.vue | 6 +---- 6 files changed, 26 insertions(+), 38 deletions(-) diff --git a/apps/web-antd/src/views/bpm/model/definition/index.vue b/apps/web-antd/src/views/bpm/model/definition/index.vue index 759086bbb..d1c8bb7fb 100644 --- a/apps/web-antd/src/views/bpm/model/definition/index.vue +++ b/apps/web-antd/src/views/bpm/model/definition/index.vue @@ -32,15 +32,18 @@ function handleRefresh() { } /** 查看表单详情 */ -function handleFormDetail(row: BpmProcessDefinitionApi.ProcessDefinition) { +async function handleFormDetail( + row: BpmProcessDefinitionApi.ProcessDefinition, +) { if (row.formType === BpmModelFormType.NORMAL) { const data = { id: row.formId, }; formCreateDetailModalApi.setData(data).open(); } else { - // TODO 待实现 jason 这里要改么? - console.warn('业务表单待实现', row); + await router.push({ + path: row.formCustomCreatePath, + }); } } diff --git a/apps/web-antd/src/views/bpm/model/form/index.vue b/apps/web-antd/src/views/bpm/model/form/index.vue index 713bd440b..0a706750f 100644 --- a/apps/web-antd/src/views/bpm/model/form/index.vue +++ b/apps/web-antd/src/views/bpm/model/form/index.vue @@ -309,8 +309,6 @@ async function handleSave() { } } catch (error: any) { console.error('保存失败:', error); - // TODO @jason:这个提示,还要么??? - // message.warning(error.msg || '请完善所有步骤的必填信息'); } } diff --git a/apps/web-antd/src/views/bpm/model/form/modules/bpm-model-editor.vue b/apps/web-antd/src/views/bpm/model/form/modules/bpm-model-editor.vue index 781ab2a92..782c8974d 100644 --- a/apps/web-antd/src/views/bpm/model/form/modules/bpm-model-editor.vue +++ b/apps/web-antd/src/views/bpm/model/form/modules/bpm-model-editor.vue @@ -121,11 +121,9 @@ onBeforeUnmount(() => { /> - diff --git a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue index e285077d2..1188b4ea7 100644 --- a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue +++ b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue @@ -238,15 +238,16 @@ async function handleDeleteCategory() { } /** 处理表单详情点击 */ -function handleFormDetail(row: any) { +async function handleFormDetail(row: any) { if (row.formType === BpmModelFormType.NORMAL) { const data = { id: row.formId, }; formCreateDetailModalApi.setData(data).open(); } else { - // TODO 待实现 jason:是不是已经 ok 啦? - console.warn('业务表单待实现', row); + await router.push({ + path: row.formCustomCreatePath, + }); } } @@ -547,7 +548,7 @@ function handleRenameSuccess() { - diff --git a/apps/web-antd/src/views/bpm/processInstance/detail/index.vue b/apps/web-antd/src/views/bpm/processInstance/detail/index.vue index 578f9aaaf..d22cb7288 100644 --- a/apps/web-antd/src/views/bpm/processInstance/detail/index.vue +++ b/apps/web-antd/src/views/bpm/processInstance/detail/index.vue @@ -183,14 +183,13 @@ function setFieldPermission(field: string, permission: string) { } } -// TODO @jason:这个还要么? /** * 操作成功后刷新 */ -// const refresh = () => { -// // 重新获取详情 -// getDetail(); -// }; +const refresh = () => { + // 重新获取详情 + getDetail(); +}; /** 监听 Tab 切换,当切换到 "record" 标签时刷新任务列表 */ watch( @@ -369,7 +368,7 @@ onMounted(async () => { :normal-form="detailForm" :normal-form-api="fApi" :writable-fields="writableFields" - @success="getDetail" + @success="refresh" /> diff --git a/apps/web-antd/src/views/bpm/processInstance/detail/modules/operation-button.vue b/apps/web-antd/src/views/bpm/processInstance/detail/modules/operation-button.vue index b6ab093fd..c7536dc15 100644 --- a/apps/web-antd/src/views/bpm/processInstance/detail/modules/operation-button.vue +++ b/apps/web-antd/src/views/bpm/processInstance/detail/modules/operation-button.vue @@ -700,9 +700,6 @@ defineExpose({ loadTodoTask });