feat(web): UI兼容新版本amis

This commit is contained in:
2024-01-03 17:52:09 +08:00
parent 4e8203daec
commit 6f3e3eccff
3 changed files with 5 additions and 3 deletions

View File

@@ -28,10 +28,10 @@ function cloudCrud(title, path) {
label: '启动时间', label: '启动时间',
...time('serviceUpTime'), ...time('serviceUpTime'),
align: 'center', align: 'center',
width: 140, width: 160,
}, },
{name: 'url', label: '地址', width: 200}, {name: 'url', label: '地址', width: 200},
{name: 'serviceId', label: '服务', width: 180, fixed: 'right'}, {name: 'serviceId', label: '服务', width: 200, fixed: 'right'},
] ]
} }
} }

View File

@@ -142,6 +142,7 @@ function yarnQueueCrud(clusters = undefined, queueNames = undefined) {
type: 'tooltip-wrapper', type: 'tooltip-wrapper',
body: '${TRUNCATE(queueName, 20)}', body: '${TRUNCATE(queueName, 20)}',
content: '${queueName}', content: '${queueName}',
inline: true,
}, },
{ {
label: '当前容量', label: '当前容量',
@@ -238,6 +239,7 @@ function yarnCrudColumns() {
className: 'nowrap', className: 'nowrap',
type: 'tpl', type: 'tpl',
tpl: "${IF(syncApplication, '<span class=\"rounded-xl label label-primary\">S</span>', IF(compactionApplication, '<span class=\"rounded-xl label label-primary\">C</span>', ''))}${IF(hudiApplication, '<span class=\"mx-2\"/>', '')}${IF(syncApplication, flinkJobName, IF(compactionApplication, alias, name))}", tpl: "${IF(syncApplication, '<span class=\"rounded-xl label label-primary\">S</span>', IF(compactionApplication, '<span class=\"rounded-xl label label-primary\">C</span>', ''))}${IF(hudiApplication, '<span class=\"mx-2\"/>', '')}${IF(syncApplication, flinkJobName, IF(compactionApplication, alias, name))}",
// tpl: '${name}',
backgroundScale: { backgroundScale: {
min: 0.001, min: 0.001,
max: 1.000, max: 1.000,