Browse Source

[Improvement] Add Set cluster name (#12074)

3.1.0-release
jackfanwan 2 years ago committed by caishunfeng
parent
commit
280b7c8545
  1. 6
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts

6
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts

@ -31,11 +31,11 @@ export function useNamespace(): IJsonItem {
loading.value = true loading.value = true
const totalList = await getAllNamespaces() const totalList = await getAllNamespaces()
options.value = (totalList || []).map( options.value = (totalList || []).map(
(item: { id: string; namespace: string; k8s: string }) => ({ (item: { id: string; namespace: string; clusterName: string }) => ({
label: `${item.namespace}(${item.k8s})`, label: `${item.namespace}(${item.clusterName})`,
value: JSON.stringify({ value: JSON.stringify({
name: item.namespace, name: item.namespace,
cluster: item.k8s cluster: item.clusterName
}) })
}) })
) )

Loading…
Cancel
Save