|
@@ -3,62 +3,67 @@ import publicFunc from "@/utils/publicFunc";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- tableData:[],
|
|
|
|
|
|
+ checkedUsers:[],
|
|
|
|
+ tableData: [],
|
|
roleListData: [
|
|
roleListData: [
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("group"),
|
|
id: publicFunc.buildGuid("group"),
|
|
- column_name: "普通员工角色组",
|
|
|
|
|
|
+ label: "普通员工角色组",
|
|
type: "group",
|
|
type: "group",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
systemListData: [
|
|
systemListData: [
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("system"),
|
|
id: publicFunc.buildGuid("system"),
|
|
- column_name: "空间管理系统",
|
|
|
|
|
|
+ label: "空间管理系统",
|
|
type: "system",
|
|
type: "system",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("system"),
|
|
id: publicFunc.buildGuid("system"),
|
|
type: "system",
|
|
type: "system",
|
|
- column_name: "停车管理系统",
|
|
|
|
|
|
+ label: "停车管理系统",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("system"),
|
|
id: publicFunc.buildGuid("system"),
|
|
type: "system",
|
|
type: "system",
|
|
- column_name: "能源管理系统",
|
|
|
|
|
|
+ label: "能源管理系统",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("system"),
|
|
id: publicFunc.buildGuid("system"),
|
|
type: "system",
|
|
type: "system",
|
|
- column_name: "中枢",
|
|
|
|
|
|
+ label: "中枢",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
userListData: [
|
|
userListData: [
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("user"),
|
|
id: publicFunc.buildGuid("user"),
|
|
- column_name: "超级管理员",
|
|
|
|
|
|
+ label: "超级管理员",
|
|
type: "user",
|
|
type: "user",
|
|
|
|
+ value:"超级管理员"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("user"),
|
|
id: publicFunc.buildGuid("user"),
|
|
- column_name: "普通管理员",
|
|
|
|
|
|
+ label: "普通管理员",
|
|
type: "user",
|
|
type: "user",
|
|
|
|
+ value:"普通管理员"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("user"),
|
|
id: publicFunc.buildGuid("user"),
|
|
- column_name: "决策组",
|
|
|
|
|
|
+ label: "决策组",
|
|
type: "user",
|
|
type: "user",
|
|
|
|
+ value:"决策组"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: publicFunc.buildGuid("user"),
|
|
id: publicFunc.buildGuid("user"),
|
|
- column_name: "普通用户",
|
|
|
|
|
|
+ label: "普通用户",
|
|
type: "user",
|
|
type: "user",
|
|
|
|
+ value: "普通用户",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.initRoleData();
|
|
|
|
|
|
+ // this.initRoleData();
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
methods: {},
|
|
methods: {},
|
|
@@ -76,7 +81,7 @@ export default {
|
|
:key="item.id"
|
|
:key="item.id"
|
|
>
|
|
>
|
|
<div class="group-icon"></div>
|
|
<div class="group-icon"></div>
|
|
- <div class="text">{{ item.column_name }}</div>
|
|
|
|
|
|
+ <div class="text">{{ item.label }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="left-box-list">
|
|
<div class="left-box-list">
|
|
@@ -86,23 +91,25 @@ export default {
|
|
:key="item.id"
|
|
:key="item.id"
|
|
>
|
|
>
|
|
<div class="system-icon"></div>
|
|
<div class="system-icon"></div>
|
|
- <div class="text">{{ item.column_name }}</div>
|
|
|
|
|
|
+ <div class="text">{{ item.label }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="left-box-list">
|
|
<div class="left-box-list">
|
|
- <div
|
|
|
|
|
|
+ <a-checkbox-group :options="userListData" :value="checkedUsers"></a-checkbox-group>
|
|
|
|
+ <!-- <div
|
|
class="left-box-list-item"
|
|
class="left-box-list-item"
|
|
v-for="item in userListData"
|
|
v-for="item in userListData"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
>
|
|
>
|
|
<div class="role-icon"></div>
|
|
<div class="role-icon"></div>
|
|
- <div class="text">{{ item.column_name }}</div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="text">{{ item.label }}</div>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="right-box">
|
|
<div class="right-box">
|
|
<div class="title">权限列表</div>
|
|
<div class="title">权限列表</div>
|
|
- <a-table :data-source="tableData" bordered></a-table>
|
|
|
|
|
|
+ <a-table :data-source="tableData" bordered></a-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="auth-role-infolist">123</div>
|
|
<div class="auth-role-infolist">123</div>
|
|
@@ -163,7 +170,7 @@ export default {
|
|
.group-icon {
|
|
.group-icon {
|
|
background: url("@/assets/images/auth/group_gray.png") no-repeat
|
|
background: url("@/assets/images/auth/group_gray.png") no-repeat
|
|
center;
|
|
center;
|
|
- &-click {
|
|
|
|
|
|
+ &.active {
|
|
background: url("@/assets/images/auth/group_blue.png") no-repeat
|
|
background: url("@/assets/images/auth/group_blue.png") no-repeat
|
|
center;
|
|
center;
|
|
}
|
|
}
|
|
@@ -171,7 +178,7 @@ export default {
|
|
.system-icon {
|
|
.system-icon {
|
|
background: url("@/assets/images/auth/system_gray.png") no-repeat
|
|
background: url("@/assets/images/auth/system_gray.png") no-repeat
|
|
center;
|
|
center;
|
|
- &-click {
|
|
|
|
|
|
+ &.active {
|
|
background: url("@/assets/images/auth/system_blue.png") no-repeat
|
|
background: url("@/assets/images/auth/system_blue.png") no-repeat
|
|
center;
|
|
center;
|
|
}
|
|
}
|
|
@@ -179,7 +186,7 @@ export default {
|
|
.role-icon {
|
|
.role-icon {
|
|
background: url("@/assets/images/auth/role_gray.png") no-repeat
|
|
background: url("@/assets/images/auth/role_gray.png") no-repeat
|
|
center;
|
|
center;
|
|
- &-click {
|
|
|
|
|
|
+ &.active {
|
|
background: url("@/assets/images/auth/role_blue.png") no-repeat
|
|
background: url("@/assets/images/auth/role_blue.png") no-repeat
|
|
center;
|
|
center;
|
|
}
|
|
}
|
|
@@ -198,7 +205,7 @@ export default {
|
|
height: 100%;
|
|
height: 100%;
|
|
width: 45%;
|
|
width: 45%;
|
|
background: rgb(255, 165, 0, 0.1);
|
|
background: rgb(255, 165, 0, 0.1);
|
|
- .title{
|
|
|
|
|
|
+ .title {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 12%;
|
|
height: 12%;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -207,7 +214,7 @@ export default {
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
- .table{
|
|
|
|
|
|
+ .table {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 88%;
|
|
height: 88%;
|
|
display: flex;
|
|
display: flex;
|