mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-28 19:32:01 +00:00
[Update] 增加资产授权列表的刷新按钮
This commit is contained in:
parent
ae366715f3
commit
ebc87b12f7
@ -317,37 +317,8 @@ const cn = {
|
||||
'app_path': '应用路径'
|
||||
},
|
||||
perms: {
|
||||
'asset_permission': '资产授权',
|
||||
'asset_permission_list': '资产授权列表',
|
||||
'asset_permission_detail': '资产授权详情',
|
||||
'create_asset_permission': '创建资产授权规则',
|
||||
'update_asset_permission': '更新资产授权规则',
|
||||
'Asset permissions': '资产授权',
|
||||
'name': '名称',
|
||||
'user': '用户',
|
||||
'userGroup': '用户组',
|
||||
'asset': '资产',
|
||||
'node': '节点',
|
||||
'systemUser': '系统用户',
|
||||
'validity': '有效',
|
||||
'action': '动作',
|
||||
'update': '更新',
|
||||
'delete': '删除',
|
||||
'search': '搜索',
|
||||
'user_count': '用户数量',
|
||||
'user_group_count': '用户组数量',
|
||||
'asset_count': '资产数量',
|
||||
'node_count': '节点数量',
|
||||
'system_user_count': '系统用户数量',
|
||||
'date_start': '开始日期',
|
||||
'date_expired': '失效日期',
|
||||
'date_created': '创建日期',
|
||||
'created_by': '创建者',
|
||||
'comment': '备注',
|
||||
'quick_update': '快速更新',
|
||||
'active': '激活中',
|
||||
'users_and_user_groups': '用户或用户组',
|
||||
'assets_and_node': '资产或节点',
|
||||
'RefreshPermissionCache': '刷新授权缓存',
|
||||
'Basic': '基本',
|
||||
'User': '用户',
|
||||
'Asset': '资产',
|
||||
|
@ -14,8 +14,12 @@ export default {
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/perms/asset-permissions/',
|
||||
columns: ['name', 'users', 'user_groups', 'assets', 'nodes', 'system_users', 'is_active', 'actions'],
|
||||
hasSelection: false,
|
||||
columns: ['expand', 'name', 'users', 'user_groups', 'assets', 'nodes', 'system_users', 'is_active', 'actions'],
|
||||
columnsMeta: {
|
||||
expand: {
|
||||
type: 'expand'
|
||||
},
|
||||
users: {
|
||||
formatter: LengthFormatter
|
||||
},
|
||||
@ -36,7 +40,20 @@ export default {
|
||||
headerActions: {
|
||||
hasDelete: false,
|
||||
hasUpdate: false,
|
||||
createRoute: 'AssetPermissionCreate'
|
||||
hasBulkDelete: false,
|
||||
createRoute: 'AssetPermissionCreate',
|
||||
extraActions: [
|
||||
{
|
||||
name: 'RefreshPermissionCache',
|
||||
title: this.$t('perms.RefreshPermissionCache'),
|
||||
type: 'primary',
|
||||
has: true,
|
||||
callback: function() {
|
||||
const url = '/api/v1/perms/asset-permissions/cache/refresh/'
|
||||
console.log('刷新请求:', url)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user