From b02d3c966751a3ee52a06b04eaf0d9d549926a6e Mon Sep 17 00:00:00 2001 From: Jam Date: Wed, 3 May 2023 23:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E6=B5=81=E7=A8=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=94=B9=E6=88=90=E6=8A=BD=E5=B1=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/flow/processFlow.html | 11 +- .../component/tpl/formItemListGenerator.html | 9 +- app/view/component/workflowEditorDrawer.html | 340 ++++++++++++++++++ app/view/page/workflowManagement.html | 20 +- 4 files changed, 365 insertions(+), 15 deletions(-) create mode 100644 app/view/component/workflowEditorDrawer.html diff --git a/app/view/component/flow/processFlow.html b/app/view/component/flow/processFlow.html index 458db8b..2008183 100644 --- a/app/view/component/flow/processFlow.html +++ b/app/view/component/flow/processFlow.html @@ -1,15 +1,15 @@ @@ -116,7 +116,6 @@ Vue.component("process-flow", { } }, mounted() { - this.init(); }, methods: { init() { diff --git a/app/view/component/tpl/formItemListGenerator.html b/app/view/component/tpl/formItemListGenerator.html index 6fc188b..b4af1ee 100644 --- a/app/view/component/tpl/formItemListGenerator.html +++ b/app/view/component/tpl/formItemListGenerator.html @@ -1,7 +1,7 @@ @@ -132,7 +132,11 @@ mdi-close - + + + + + @@ -163,6 +167,7 @@ {% include 'component/formItem.html' %} +{% include 'component/workflowEditorDrawer.html' %} {% include 'common/jianghuJs/fixedTableHeightV4.html' %} @@ -230,6 +235,9 @@ case 'jumpUpdateWorkflow': await this.jumpUpdateWorkflow(uiActionData); break; + case 'openWorkflowEditorDrawer': + await this.openWorkflowEditorDrawer(uiActionData); + break; default: console.error("[doUiAction] uiActionId not find", { uiActionId }); break; @@ -357,8 +365,12 @@ jumpToCreateWorkflow() { window.location.href = '/<$ ctx.app.config.appId $>/page/workflowEditor'; - } + }, // ---------- jump >>>>>>>>>> -------- + + openWorkflowEditorDrawer(item) { + this.$refs.workflowEditorDrawer.doUiAction('open', item); + } } })