From 9cee18fb4c788638b304786c9c916fbafcf24850 Mon Sep 17 00:00:00 2001 From: yaojn Date: Tue, 29 Jul 2025 15:15:10 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E5=8A=9F=E8=83=BD]=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=B5=81=E7=A8=8B=E5=9B=BE=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=20=20=20=20-=20[=E5=85=B3=E8=81=94]#[1475484813066240]?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=BC=E5=87=BA=E6=B5=81=E7=A8=8B=E5=9B=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20http://192.168.0.96:8090/demo/rdm.html#/st?= =?UTF-8?q?ory-detail/939050947543040/939050947543042/1475484813066240?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../catalog/catalog/catalog-viewprocess.vue | 12 +- .../pages/process/flow/flow-edit-new.vue | 1 + .../flow/floweditor/flow-editor-toolbar.vue | 106 +++++++++++++++++- .../process/task/process-topo-dialog.vue | 1 + .../common/processtask-topo-dialog.vue | 1 + 5 files changed, 115 insertions(+), 6 deletions(-) diff --git a/src/views/pages/process/catalog/catalog/catalog-viewprocess.vue b/src/views/pages/process/catalog/catalog/catalog-viewprocess.vue index e40e174a..161c1f25 100644 --- a/src/views/pages/process/catalog/catalog/catalog-viewprocess.vue +++ b/src/views/pages/process/catalog/catalog/catalog-viewprocess.vue @@ -7,6 +7,7 @@ mode="graph" :needMinimap="true" :readonly="true" + :processName="processName" >
@@ -210,7 +211,8 @@ export default { selectLeft: [], showhandler: [], noticeList: [], - notifyList: [] + notifyList: [], + processName: '' // 流程名称,用于导出流程图时使用,作为导出文件名 }; }, @@ -295,10 +297,10 @@ export default { }; this.$api.process.process.getProcess(data).then(res => { if (res.Status == 'OK') { - let formUuid = res.Return.formUuid; - let config = res.Return.config; - this.slaList = config.process.slaList; - this.canvasNodeList = config.topo.nodes; + const { formUuid = '', config = {}, name = '' } = res?.Return || {}; + this.slaList = config?.process?.slaList || []; + this.canvasNodeList = config?.topo?.nodes || []; + this.processName = name; this.getFormItem(formUuid); this.flowData = config; this.$nextTick(() => { diff --git a/src/views/pages/process/flow/flow-edit-new.vue b/src/views/pages/process/flow/flow-edit-new.vue index 7ae7341a..a7b449c3 100644 --- a/src/views/pages/process/flow/flow-edit-new.vue +++ b/src/views/pages/process/flow/flow-edit-new.vue @@ -71,6 +71,7 @@
+