Browse Source

[Improvement-10942][UI]The workflow or task name is too long and resu… (#10957)

* [Improvement-10942][UI]The workflow or task name is too long and results in incomplete display

* [improvement-10942][ui]The workflow or task name is too long and results in incomplete display
3.1.0-release
Assert 2 years ago committed by GitHub
parent
commit
db925f3216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts

8
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-dependent.ts

@ -17,7 +17,7 @@
import { ref, onMounted, watch, h } from 'vue'
import { useI18n } from 'vue-i18n'
import { NIcon } from 'naive-ui'
import { NEllipsis, NIcon } from 'naive-ui'
import { useRelationCustomParams, useDependentTimeout } from '.'
import { useTaskNodeStore } from '@/store/project/task-node'
import { queryAllProjectList } from '@/service/modules/projects'
@ -179,7 +179,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
const result = await queryAllProjectList()
projectList.value = result.map((item: { code: number; name: string }) => ({
value: item.code,
label: item.name
label: () => h(NEllipsis, null, item.name)
}))
return projectList
}
@ -190,7 +190,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
const result = await queryProcessDefinitionList(code)
const processList = result.map((item: { code: number; name: string }) => ({
value: item.code,
label: item.name
label: () => h(NEllipsis, null, item.name)
}))
processCache[code] = processList
@ -204,7 +204,7 @@ export function useDependent(model: { [field: string]: any }): IJsonItem[] {
const result = await getTasksByDefinitionList(code, processCode)
const taskList = result.map((item: { code: number; name: string }) => ({
value: item.code,
label: item.name
label: () => h(NEllipsis, null, item.name)
}))
taskList.unshift({
value: 0,

Loading…
Cancel
Save