refactor(web): 调整部分图表的显示
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function time(field) {
|
||||
return {
|
||||
type: 'tpl',
|
||||
tpl: `\${${field}|date:YYYY-MM-DD HH\\:mm\\:ss:x}`
|
||||
tpl: `\${IF(${field}, DATETOSTR(${field}, 'YYYY-MM-DD HH:mm:ss'), undefined)}`
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,27 +32,6 @@ function cloudCrud(title, path) {
|
||||
align: 'center',
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
name: 'registrationTime',
|
||||
label: '注册时间',
|
||||
...time('registrationTime'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
name: 'lastRenewalTime',
|
||||
label: '上次更新时间',
|
||||
...time('lastRenewalTime'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
name: 'evictionTime',
|
||||
label: '驱逐时间',
|
||||
...time('evictionTime'),
|
||||
align: 'center',
|
||||
width: 140,
|
||||
},
|
||||
{name: 'url', label: '地址', width: 200},
|
||||
{name: 'serviceId', label: '服务', width: 180, fixed: 'right'},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user