From caedfac09a080804fb38447d0c7db23600d327c7 Mon Sep 17 00:00:00 2001 From: yiwenZhou <67539158+ywywZhou@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:56:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=94=81=E6=AD=BBvue=E7=89=88=E6=9C=AC?= =?UTF-8?q?=20&&=20=E8=8A=82=E7=82=B9=E8=AF=A6=E6=83=85loading=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=80=BB=E8=BE=91=E8=B0=83=E6=95=B4=20&&=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=88=86=E6=94=AF=E6=9D=A1=E4=BB=B6=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E5=A4=8D=20--ignore=20(#7389)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 锁死vue版本 --ignore * fix: 默认网关分支选中展示异常修复 --ignore * fix: 子画布默认网关分支缺少默认样式问题修复 --ignore * fix: 节点详情loading加载逻辑调整 #7386 # Reviewed, transaction id: 3786 --- frontend/desktop/package.json | 2 +- .../common/TemplateCanvas/index.vue | 3 +- .../pages/task/TaskExecute/ExecuteInfo.vue | 0 .../components/NodeCanvas/index.vue | 1 + .../components/TaskCondition.vue | 113 ++---------------- .../components/NodeExecuteInfo/index.vue | 40 +++---- .../ExecuteInfo/components/NodeTree/index.vue | 1 - .../task/TaskExecute/ExecuteInfo/index.vue | 28 ++--- .../pages/task/TaskExecute/TaskOperation.vue | 44 ++----- 9 files changed, 50 insertions(+), 182 deletions(-) delete mode 100644 frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo.vue diff --git a/frontend/desktop/package.json b/frontend/desktop/package.json index 8ad6a6ec3a..fad8cfa4d3 100644 --- a/frontend/desktop/package.json +++ b/frontend/desktop/package.json @@ -36,7 +36,7 @@ "qs": "^6.5.2", "serialize-javascript": "^3.0.0", "vee-validate": "^2.1.0-beta.6", - "vue": "^2.7.14", + "vue": "2.7.14", "vue-i18n": "^8.17.5", "vue-router": "^3.0.1", "vuedraggable": "^2.16.0", diff --git a/frontend/desktop/src/components/common/TemplateCanvas/index.vue b/frontend/desktop/src/components/common/TemplateCanvas/index.vue index 2663214d04..b889e0f23c 100644 --- a/frontend/desktop/src/components/common/TemplateCanvas/index.vue +++ b/frontend/desktop/src/components/common/TemplateCanvas/index.vue @@ -924,7 +924,8 @@ // 兼容旧数据,分支条件里没有 name 属性的情况 const labelName = conditionInfo.name || labelValue const loc = ('loc' in conditionInfo) ? conditionInfo.loc : -70 - const gatewayInfo = this.$store.state.template.gateways[line.source.id] + const gateways = this.canvasData.gateways || this.$store.state.template.gateways + const gatewayInfo = gateways[line.source.id] let defaultCls = conditionInfo.default_condition ? 'default-branch' : '' if (gatewayInfo && gatewayInfo.default_condition && gatewayInfo.default_condition.flow_id === lineId) { defaultCls = 'default-branch' diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo.vue deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeCanvas/index.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeCanvas/index.vue index a9843280a5..8aed215cf7 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeCanvas/index.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeCanvas/index.vue @@ -92,6 +92,7 @@ const code = item.type === 'tasknode' ? activities[item.id].component.code : '' return { ...item, mode: 'execute', checked: true, code, ready: true } }), + gateways, branchConditions } } diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeExecuteInfo/components/TaskCondition.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeExecuteInfo/components/TaskCondition.vue index 09c8794440..99958989b3 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeExecuteInfo/components/TaskCondition.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/components/NodeExecuteInfo/components/TaskCondition.vue @@ -17,8 +17,8 @@ {{ $t('分支类型') }} - {{ $t('自定义分支') }} - + {{ $t('自定义分支') }} + {{ $t('默认分支') }} @@ -47,14 +47,11 @@

{{ $t('包含:') }}${key} in (1,2,3)

+ :options="{ language: 'python', readOnly: true }"> - {{ veeErrors.first('expression') }} @@ -62,8 +59,6 @@