mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 删除 <用户详情-授权账号> 页面, 删除UserGrantedAccounts 组件
This commit is contained in:
@@ -1,81 +0,0 @@
|
||||
<template>
|
||||
<ListTable ref="ListTable" :table-config="tableConfig" :header-actions="headerActions" class- />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ListTable from '@/components/ListTable'
|
||||
|
||||
export default {
|
||||
name: 'UserGrantedAccounts',
|
||||
components: {
|
||||
ListTable
|
||||
},
|
||||
props: {
|
||||
object: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
data() {
|
||||
const vm = this
|
||||
return {
|
||||
tableConfig: {
|
||||
url: `/api/v1/perms/users/${this.object.id}/accounts/`,
|
||||
columns: [
|
||||
'asset', 'name', 'username', 'privileged', 'version', 'comment'
|
||||
],
|
||||
columnsShow: {
|
||||
default: [
|
||||
'asset', 'name', 'username', 'privileged', 'version'
|
||||
],
|
||||
min: ['asset_name', 'name']
|
||||
},
|
||||
columnsMeta: {
|
||||
asset: {
|
||||
label: this.$t('assets.Asset'),
|
||||
showOverflowTooltip: true,
|
||||
formatter: function(row) {
|
||||
const to = {
|
||||
name: 'AssetDetail',
|
||||
params: { id: row.asset.id }
|
||||
}
|
||||
if (vm.$hasPerm('assets.view_asset')) {
|
||||
return <router-link to={ to } >{ row.asset.name }</router-link>
|
||||
} else {
|
||||
return <span>{ row.asset.name }</span>
|
||||
}
|
||||
}
|
||||
},
|
||||
name: {
|
||||
formatter: null
|
||||
},
|
||||
privileged: {
|
||||
width: '120px',
|
||||
label: this.$t('assets.Privileged'),
|
||||
formatterArgs: {
|
||||
showFalse: false
|
||||
}
|
||||
}
|
||||
},
|
||||
tableAttrs: {
|
||||
border: false
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasSearch: true,
|
||||
hasRefresh: true,
|
||||
hasLeftActions: true,
|
||||
hasRightActions: true,
|
||||
hasExport: false,
|
||||
hasImport: false,
|
||||
hasCreate: false,
|
||||
hasMoreActions: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -10,7 +10,6 @@
|
||||
import { GenericDetailPage } from '@/layout/components'
|
||||
import UserAssetPermissionRules from './UserAssetPermissionRules'
|
||||
import UserGrantedAssets from './UserGrantedAssets'
|
||||
import UserGrantedAccounts from './UserGrantedAccounts'
|
||||
import UserGrantedApplications from './UserGrantedApplications'
|
||||
import UserApplicationPermissionRules from './UserApplicationsPermissionRules'
|
||||
import UserLoginACLList from '@/views/acl/UserLoginACL/UserLoginACLList'
|
||||
@@ -21,7 +20,6 @@ export default {
|
||||
GenericDetailPage,
|
||||
UserInfo,
|
||||
UserGrantedAssets,
|
||||
UserGrantedAccounts,
|
||||
UserAssetPermissionRules,
|
||||
UserGrantedApplications,
|
||||
UserApplicationPermissionRules,
|
||||
@@ -46,12 +44,6 @@ export default {
|
||||
name: 'UserGrantedAssets',
|
||||
hidden: () => !vm.$hasPerm('perms.view_userassets')
|
||||
},
|
||||
// {
|
||||
// title: this.$t('users.tabs.grantedAccounts'),
|
||||
// name: 'UserGrantedAccounts',
|
||||
// // Todo: perms.view_useraccounts
|
||||
// hidden: () => !vm.$hasPerm('perms.view_userassets')
|
||||
// },
|
||||
{
|
||||
title: this.$t('users.tabs.assetPermissionRules'),
|
||||
name: 'UserAssetPermissionRules',
|
||||
|
||||
Reference in New Issue
Block a user