From 29de8951ee29d499bff628a45408ce9caa6fb799 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Sat, 7 Dec 2024 19:13:40 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/processDefinition/design.vue | 7 +++--- .../workflow/processDefinition/index.vue | 24 ++++++++++++++++--- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/views/workflow/processDefinition/design.vue b/src/views/workflow/processDefinition/design.vue index b5c75e9..cb11045 100644 --- a/src/views/workflow/processDefinition/design.vue +++ b/src/views/workflow/processDefinition/design.vue @@ -22,10 +22,9 @@ const iframeLoaded = () => { } }; }; -const open = async (definitionId) => { - let url = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=false`; +const open = async (definitionId, disabled) => { + let url = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}`; iframeUrl.value = url + '&Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID; - console.log(iframeUrl.value); }; /** 关闭按钮 */ function close() { @@ -35,7 +34,7 @@ function close() { onMounted(() => { iframeLoaded(); - open(proxy.$route.query.definitionId); + open(proxy.$route.query.definitionId, proxy.$route.query.disabled); }); /** * 对外暴露子组件方法 diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index 36ef246..3f5440a 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -115,8 +115,11 @@ 绑定业务 - - 流程设计 + + 流程设计 + 查看流程 发布流程 @@ -585,7 +588,22 @@ const design = async (row: FlowDefinitionVo) => { proxy.$router.push({ path: `/workflow/design/index`, query: { - definitionId: row.id + definitionId: row.id, + disabled: false + } + }); +}; + +/** + * 查看流程 + * @param row + */ +const designView = async (row: FlowDefinitionVo) => { + proxy.$router.push({ + path: `/workflow/design/index`, + query: { + definitionId: row.id, + disabled: true } }); };