提交 0d180ae9 编写于 作者: B break60

[ui]It is forbidden to select non-existent resources and modify the tree display data format

上级 cc208279
......@@ -404,6 +404,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {
......
......@@ -244,6 +244,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {
......
......@@ -224,6 +224,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {
......
......@@ -262,6 +262,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {
......
......@@ -364,6 +364,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {
......
......@@ -23,16 +23,16 @@ import { tasksState } from '@/conf/home/pages/dag/_source/config'
*/
const rtInstancesTooltip = (data) => {
let str = '<div style="text-align: left;word-break:break-all">'
str += `id : ${data.id}</br>`
str += `host : ${data.host}</br>`
str += `name : ${data.name}</br>`
str += `state : ${data.state ? tasksState[data.state].desc : '-'}${data.state})</br>`
str += `id : ${data.id ? data.id : '-'}</br>`
str += `host : ${data.host ? data.host : '-'}</br>`
str += `name : ${data.name ? data.name : '-'}</br>`
str += `state : ${data.state ? tasksState[data.state].desc : '-'}${data.state ? data.state : '-'})</br>`
if (data.type) {
str += `type : ${data.type}</br>`
str += `type : ${data.type ? data.type : '-'}</br>`
}
str += `startTime : ${data.startTime ? formatDate(data.startTime) : '-'}</br>`
str += `endTime : ${data.endTime ? formatDate(data.endTime) : '-'}</br>`
str += `duration : ${data.duration}</br>`
str += `duration : ${data.duration ? data.duration : '-'}</br>`
str += '</div>'
return str
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册