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 @@