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/22 07:07:04 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha]Fix default display of node name in sub process node. (#9075)

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 936ea99  [Fix][UI Next][V1.0.0-Alpha]Fix default display of node name in sub process node. (#9075)
936ea99 is described below

commit 936ea993031fdc2fbfacfba4bdd8588099fd380f
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Tue Mar 22 15:06:55 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha]Fix default display of node name in sub process node. (#9075)
---
 .../src/views/projects/task/components/node/fields/use-child-node.ts   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts
index 8cdcf8f..7dcee5d 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-child-node.ts
@@ -54,6 +54,7 @@ export function useChildNode({
     loading.value = false
     if (!model.processDefinitionCode) {
       model.processDefinitionCode = options.value[0].value
+      if (!model.name) model.name = options.value[0].label
     }
   }
   const getProcessListByCode = async (processCode: number) => {
@@ -63,7 +64,7 @@ export function useChildNode({
   }
 
   const onChange = (code: number, options: { label: string }) => {
-    model.name = options.label
+    if (!model.name) model.name = options.label
   }
 
   onMounted(() => {