mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
perf: 修改资产详情账号列表页面
This commit is contained in:
parent
d66c6b59a2
commit
d6518019dd
@ -98,11 +98,24 @@ export default {
|
||||
columnsShow: {
|
||||
min: ['name', 'username', 'actions'],
|
||||
default: [
|
||||
'name', 'hostname', 'ip', 'username',
|
||||
'version', 'privileged', 'actions'
|
||||
'name', 'username', 'version', 'privileged', 'actions', 'secret_type', 'actions'
|
||||
]
|
||||
},
|
||||
columnsMeta: {
|
||||
name: {
|
||||
showOverflowTooltip: true,
|
||||
formatter: function(row) {
|
||||
const to = {
|
||||
name: 'AssetAccountDetail',
|
||||
params: { id: row.id }
|
||||
}
|
||||
if (vm.$hasPerm('assets.view_account')) {
|
||||
return <router-link to={ to } >{ row.name }</router-link>
|
||||
} else {
|
||||
return <span>{ row.name }</span>
|
||||
}
|
||||
}
|
||||
},
|
||||
asset: {
|
||||
label: this.$t('assets.Asset'),
|
||||
showOverflowTooltip: true,
|
||||
|
Loading…
Reference in New Issue
Block a user