[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:
Assert 2022-08-23 17:12:40 +08:00 committed by GitHub
parent 4893bef5a7
commit db925f3216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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