You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/29 15:11:46 UTC
[dolphinscheduler] branch dev updated: [Fix] [UI-Next] [V1.0.0-Alpha] Fix the resource options in task node display incorrect after creating a new file. (#9269)
This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 4ad1764 [Fix] [UI-Next] [V1.0.0-Alpha] Fix the resource options in task node display incorrect after creating a new file. (#9269)
4ad1764 is described below
commit 4ad17649323028fbb849235f0d6c01573a727187
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Tue Mar 29 23:11:41 2022 +0800
[Fix] [UI-Next] [V1.0.0-Alpha] Fix the resource options in task node display incorrect after creating a new file. (#9269)
---
dolphinscheduler-ui-next/src/store/project/task-node.ts | 7 +++++++
.../src/views/projects/task/components/node/detail.tsx | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/dolphinscheduler-ui-next/src/store/project/task-node.ts b/dolphinscheduler-ui-next/src/store/project/task-node.ts
index 8dca166..d232040 100644
--- a/dolphinscheduler-ui-next/src/store/project/task-node.ts
+++ b/dolphinscheduler-ui-next/src/store/project/task-node.ts
@@ -115,6 +115,13 @@ export const useTaskNodeStore = defineStore({
},
updateMainJar(type: ProgramType, mainJar: IMainJar[]) {
this.mainJars[type] = mainJar
+ },
+ init() {
+ this.preTaskOptions = []
+ this.postTaskOptions = []
+ this.preTasks = []
+ this.resources = []
+ this.mainJars = {}
}
}
})
diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail.tsx b/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail.tsx
index 8cf7bac..8adc5e6 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail.tsx
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/detail.tsx
@@ -18,6 +18,7 @@
import { defineComponent, ref, watch, inject, Ref, unref } from 'vue'
import Form from '@/components/form'
import { useTask } from './use-task'
+import { useTaskNodeStore } from '@/store/project/task-node'
import type { ITaskData, EditWorkflowDefinition } from './types'
interface IDetailPanel {
@@ -33,6 +34,9 @@ const NodeDetail = defineComponent({
name: 'NodeDetail',
emits: ['taskTypeChange'],
setup(props, { expose, emit }) {
+ const taskStore = useTaskNodeStore()
+ taskStore.init()
+
const formRef = ref()
const detailData: IDetailPanel = inject('data') || {
projectCode: 0,