[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
This commit is contained in:
parent
4893bef5a7
commit
db925f3216
|
|
@ -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…
Reference in New Issue