mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-28 11:24:25 +00:00
perf: 修改 Domain 列表页面
This commit is contained in:
parent
2ec9c02d0c
commit
bef1e8f49a
@ -4,7 +4,6 @@
|
||||
|
||||
<script>
|
||||
import { GenericListPage } from '@/layout/components'
|
||||
import { DetailFormatter } from '@/components/TableFormatters'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -15,28 +14,26 @@ export default {
|
||||
tableConfig: {
|
||||
url: '/api/v1/assets/domains/',
|
||||
columns: [
|
||||
'name', 'asset_count', 'application_count', 'gateway_count', 'date_created',
|
||||
'comment', 'org_name', 'actions'
|
||||
'name', 'asset_count', 'gateway_count', 'comment',
|
||||
'date_created', 'org_name', 'actions'
|
||||
],
|
||||
columnsShow: {
|
||||
min: ['name', 'actions'],
|
||||
default: ['name', 'asset_count', 'application_count', 'gateway_count', 'comment', 'actions']
|
||||
default: ['name', 'asset_count', 'gateway_count', 'comment', 'actions']
|
||||
},
|
||||
columnsMeta: {
|
||||
asset_count: {
|
||||
label: this.$t('assets.Assets')
|
||||
},
|
||||
application_count: {
|
||||
label: this.$t('assets.Applications')
|
||||
prop: 'assets',
|
||||
label: this.$t('assets.Assets'),
|
||||
formatter: function(row) {
|
||||
return <span> { row.assets.length } </span>
|
||||
}
|
||||
},
|
||||
gateway_count: {
|
||||
prop: 'gateways',
|
||||
label: this.$t('assets.Gateway'),
|
||||
formatter: DetailFormatter,
|
||||
formatterArgs: {
|
||||
permissions: 'assets.view_gateway',
|
||||
routeQuery: {
|
||||
activeTab: 'GatewayList'
|
||||
}
|
||||
formatter: function(row) {
|
||||
return <span> { row.gateways.length } </span>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user