From 1608b33667eef8ec0ae238a1469fa618ee77e6d3 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 17 Aug 2021 10:58:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9asset=20=E4=B8=BA?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E8=A1=A8=E6=A0=BC=E7=9A=84=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/rightBox/editEndpointBoxNew.vue | 54 +++++++++++++++++-- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue index 5b7e6ea1a..da6a29816 100644 --- a/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBoxNew.vue @@ -40,9 +40,26 @@ - - - + + + + @@ -652,6 +669,37 @@ export default { } ] }], + columns: [ + { title: 'id', data: 'id' }, + { + title: 'name', + data: function (row) { + if (row.name.length > 15) { + return row.name.substring(0, 12) + '...' + } + return row.name + } + }, + { title: 'Manage Ip', data: 'manageIp' }, + { + title: 'Type', + data: (row) => { + return row.type ? row.type.name : '' + } + }, + { + title: 'Model', + data: (row) => { + return row.model ? row.model.name : '' + } + }, + { + title: 'Datacenter', + data: (row) => { + return row.dc ? row.dc.name : '' + } + } + ], timestampList: ['ANSIC', 'UnixDate', 'RubyDate', 'RFC822', 'RFC822Z', 'RFC850', 'RFC1123', 'RFC1123Z', 'RFC3339', 'RFC3339Nano', 'Unix', 'UnixMs', 'UnixUs', 'UnixNs'], metricsShow: true, logsShow: true