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/02/25 21:27:49 UTC

[dolphinscheduler] branch dev updated: [Improve][UI-Next] Work out a little kink about the select component of the environment in the task form.

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 ec9fe17  [Improve][UI-Next] Work out a little kink about the select component of the environment in the task form.
ec9fe17 is described below

commit ec9fe1733b8d564193af1500c8a19d4755fe655f
Author: calvin <ji...@163.com>
AuthorDate: Sat Feb 26 05:27:09 2022 +0800

    [Improve][UI-Next] Work out a little kink about the select component of the environment in the task form.
---
 .../projects/task/components/node/fields/use-environment-name.ts     | 5 +++--
 .../src/views/projects/task/components/node/use-task.ts              | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-environment-name.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-environment-name.ts
index 0799046..5a2c2a0 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-environment-name.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-environment-name.ts
@@ -36,9 +36,10 @@ export function useEnvironmentName(
     loading.value = true
     try {
       const res = await queryAllEnvironmentList()
-      environmentList = res.map((item: { code: string; name: string }) => ({
+      environmentList = res.map((item: { code: string; name: string; workerGroups: string[] }) => ({
         label: item.name,
-        value: item.code
+        value: item.code,
+        workerGroups: item.workerGroups
       }))
       options.value = environmentList.filter((option: IEnvironmentNameOption) =>
         filterByWorkerGroup(option)
diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts
index 85735f6..22438a9 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts
@@ -150,4 +150,4 @@ export function useTask({
   }
 
   return node
-}
+}
\ No newline at end of file