Merge pull request #3534 from break60/1.3.2-release

[ui]It is forbidden to select non-existent resources and modify the t…
This commit is contained in:
xingchun-chen 2020-08-18 11:01:22 +08:00 committed by GitHub
commit 276c599c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 6 deletions

View File

@ -404,6 +404,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {

View File

@ -244,6 +244,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {

View File

@ -224,6 +224,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {

View File

@ -262,6 +262,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {

View File

@ -364,6 +364,7 @@
id: -1,
name: $t('No resources exist'),
fullName: '/'+$t('No resources exist'),
isDisabled: true,
children: []
}]
if(optionsCmp.length>0) {

View File

@ -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
}