Browse Source

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

3.0.0/version-upgrade
calvin 3 years ago committed by GitHub
parent
commit
ec9fe1733b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-environment-name.ts
  2. 2
      dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts

5
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)

2
dolphinscheduler-ui-next/src/views/projects/task/components/node/use-task.ts

@ -150,4 +150,4 @@ export function useTask({
}
return node
}
}
Loading…
Cancel
Save