mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 23:07:41 +00:00
perf: 修改资产详情账号列表页面
This commit is contained in:
parent
d66c6b59a2
commit
d6518019dd
@ -98,11 +98,24 @@ export default {
|
|||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['name', 'username', 'actions'],
|
min: ['name', 'username', 'actions'],
|
||||||
default: [
|
default: [
|
||||||
'name', 'hostname', 'ip', 'username',
|
'name', 'username', 'version', 'privileged', 'actions', 'secret_type', 'actions'
|
||||||
'version', 'privileged', 'actions'
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
columnsMeta: {
|
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: {
|
asset: {
|
||||||
label: this.$t('assets.Asset'),
|
label: this.$t('assets.Asset'),
|
||||||
showOverflowTooltip: true,
|
showOverflowTooltip: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user