mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-29 11:44:01 +00:00
[Update] 修改授权管理详情
This commit is contained in:
parent
a64cb4e1f8
commit
b3d4b4a89f
@ -3,7 +3,7 @@ export default {
|
|||||||
name: 'ItemValue',
|
name: 'ItemValue',
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: [String, Function, Array, Object],
|
type: [String, Number, Function, Array, Object],
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { DetailCard, QuickActions } from '@/components'
|
import { DetailCard, QuickActions } from '@/components'
|
||||||
// import { toSafeLocalDateStr } from '@/utils/common'
|
import { toSafeLocalDateStr } from '@/utils/common'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AssetPermissionDetail',
|
name: 'AssetPermissionDetail',
|
||||||
@ -60,24 +60,23 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.userCount'),
|
key: this.$t('perms.userCount'),
|
||||||
// value: this.getDataLength(this.object.users)
|
value: this.object.users_amount
|
||||||
value: JSON.stringify(this.object.users_amount)
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.userGroupCount'),
|
key: this.$t('perms.userGroupCount'),
|
||||||
value: JSON.stringify(this.object.assets_amount)
|
value: this.object.assets_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.assetCount'),
|
key: this.$t('perms.assetCount'),
|
||||||
value: JSON.stringify(this.object.users_amount)
|
value: this.object.users_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.nodeCount'),
|
key: this.$t('perms.nodeCount'),
|
||||||
value: JSON.stringify(this.object.nodes_amount)
|
value: this.object.nodes_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.systemUserCount'),
|
key: this.$t('perms.systemUserCount'),
|
||||||
value: JSON.stringify(this.object.system_users_amount)
|
value: this.object.system_users_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.dateStart'),
|
key: this.$t('perms.dateStart'),
|
||||||
@ -89,7 +88,7 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('common.dateCreated'),
|
key: this.$t('common.dateCreated'),
|
||||||
value: this.object.date_created
|
value: toSafeLocalDateStr(this.object.date_created)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('common.createdBy'),
|
key: this.$t('common.createdBy'),
|
||||||
@ -101,14 +100,6 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getDataLength(data) {
|
|
||||||
if (data instanceof Array) {
|
|
||||||
return JSON.stringify(data.length)
|
|
||||||
}
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -60,19 +60,19 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.userCount'),
|
key: this.$t('perms.userCount'),
|
||||||
value: this.getDataLength(this.object.users)
|
value: this.object.users_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.userGroupCount'),
|
key: this.$t('perms.userGroupCount'),
|
||||||
value: this.getDataLength(this.object.user_groups)
|
value: this.object.user_groups_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.remoteAppCount'),
|
key: this.$t('perms.remoteAppCount'),
|
||||||
value: this.getDataLength(this.object.remote_apps)
|
value: this.object.remote_apps_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.systemUserCount'),
|
key: this.$t('perms.systemUserCount'),
|
||||||
value: this.getDataLength(this.object.system_users)
|
value: this.object.system_users_amount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: this.$t('perms.dateStart'),
|
key: this.$t('perms.dateStart'),
|
||||||
@ -96,14 +96,6 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
getDataLength(data) {
|
|
||||||
if (data instanceof Array) {
|
|
||||||
return JSON.stringify(data.length)
|
|
||||||
}
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { GenericListPage } from '@/layout/components'
|
import { GenericListPage } from '@/layout/components'
|
||||||
import { LengthFormatter } from '@/components/ListTable/formatters/index'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -30,7 +29,6 @@ export default {
|
|||||||
label: this.$t('assets.RemoteApps')
|
label: this.$t('assets.RemoteApps')
|
||||||
},
|
},
|
||||||
system_users_amount: {
|
system_users_amount: {
|
||||||
formatter: LengthFormatter,
|
|
||||||
label: this.$t('assets.SystemUsers')
|
label: this.$t('assets.SystemUsers')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user