feat: 设置主机分组内元素.
This commit is contained in:
@@ -138,7 +138,6 @@
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.grant-container {
|
.grant-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 16px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.role-container {
|
.role-container {
|
||||||
@@ -136,7 +136,6 @@
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.grant-container {
|
.grant-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 16px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.user-container {
|
.user-container {
|
||||||
@@ -3,21 +3,13 @@
|
|||||||
<a-tabs v-if="render"
|
<a-tabs v-if="render"
|
||||||
class="tabs-container"
|
class="tabs-container"
|
||||||
position="left"
|
position="left"
|
||||||
|
type="rounded"
|
||||||
|
size="large"
|
||||||
:destroy-on-hide="true"
|
:destroy-on-hide="true"
|
||||||
:justify="true"
|
:justify="true"
|
||||||
:lazy-load="true">
|
:lazy-load="true">
|
||||||
<!-- 左侧导航 -->
|
|
||||||
<a-tab-pane :key="1"
|
|
||||||
title="分组配置"
|
|
||||||
v-permission="['asset:host-group:query']">
|
|
||||||
<host-group-view-setting />
|
|
||||||
<template #title>
|
|
||||||
<icon-unordered-list />
|
|
||||||
|
|
||||||
</template>
|
|
||||||
</a-tab-pane>
|
|
||||||
<!-- 角色分配 -->
|
<!-- 角色分配 -->
|
||||||
<a-tab-pane :key="2" v-permission="['asset:host-group:grant']">
|
<a-tab-pane :key="1" v-permission="['asset:host-group:grant']">
|
||||||
<host-group-view-role-grant />
|
<host-group-view-role-grant />
|
||||||
<template #title>
|
<template #title>
|
||||||
<icon-safe />
|
<icon-safe />
|
||||||
@@ -25,7 +17,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<!-- 用户分配 -->
|
<!-- 用户分配 -->
|
||||||
<a-tab-pane :key="3" v-permission="['asset:host-group:grant']">
|
<a-tab-pane :key="2" v-permission="['asset:host-group:grant']">
|
||||||
<host-group-view-user-grant />
|
<host-group-view-user-grant />
|
||||||
<template #title>
|
<template #title>
|
||||||
<icon-user />
|
<icon-user />
|
||||||
@@ -47,7 +39,6 @@
|
|||||||
import { useCacheStore } from '@/store';
|
import { useCacheStore } from '@/store';
|
||||||
import { getHostList } from '@/api/asset/host';
|
import { getHostList } from '@/api/asset/host';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import HostGroupViewSetting from './components/host-group-view-setting.vue';
|
|
||||||
import HostGroupViewRoleGrant from './components/host-group-view-role-grant.vue';
|
import HostGroupViewRoleGrant from './components/host-group-view-role-grant.vue';
|
||||||
import HostGroupViewUserGrant from './components/host-group-view-user-grant.vue';
|
import HostGroupViewUserGrant from './components/host-group-view-user-grant.vue';
|
||||||
import { getUserList } from '@/api/user/user';
|
import { getUserList } from '@/api/user/user';
|
||||||
@@ -124,20 +115,22 @@
|
|||||||
|
|
||||||
.tabs-container {
|
.tabs-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: calc(100% - 32px);
|
||||||
height: 100%;
|
max-height: calc(100% - 32px);
|
||||||
position: relative;
|
position: absolute;
|
||||||
background: var(--color-bg-2);
|
background: var(--color-bg-2);
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.arco-tabs-nav-tab) {
|
||||||
|
border-right: 1px var(--color-neutral-3) solid;
|
||||||
|
padding-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.arco-tabs-tab-title) {
|
:deep(.arco-tabs-tab-title) {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.arco-tabs-content) {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.arco-tabs-content) {
|
:deep(.arco-tabs-content) {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// 创建前缀
|
||||||
|
export const createGroupGroupPrefix = 'create-';
|
||||||
|
|
||||||
|
// 根id
|
||||||
|
export const rootId = 0;
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
// 创建前缀
|
|
||||||
export const createGroupGroupPrefix = 'create-';
|
|
||||||
|
|
||||||
// 根id
|
|
||||||
export const rootId = 0;
|
|
||||||
Reference in New Issue
Block a user