角色管理

master
jiangyunjie 6 years ago
parent 5e0a9acf85
commit 0383e8a795

@ -16,20 +16,66 @@
/deep/.ivu-radio-group-button .ivu-radio-wrapper-checked:first-child { /deep/.ivu-radio-group-button .ivu-radio-wrapper-checked:first-child {
color: #2d8cf0; color: #2d8cf0;
} }
/deep/.system-role-div {
height: 39px;
padding: 10px;
}
/deep/.system-role-img {
height: 12px;
width: 12px;
display: inline-block;
margin-right: 9px;
}
/deep/.system-role-name-selected {
font-size: 14px;
display: inline-block;
color: #2074E2;
}
/deep/.system-role-name-un-select {
font-size: 14px;
display: inline-block;
color: #535353;
}
/deep/.system-role-number-selected {
font-size: 13px;
display: inline-block;
color: #2074E2;
float: right;
margin-right: 11px;
}
/deep/.system-role-number-un-select {
font-size: 13px;
display: inline-block;
color: #535353;
float: right;
margin-right: 11px;
}
</style> </style>
<template> <template>
<div> <div>
<Row> <Row>
<Col span="6"> <i-col span="6">
<div style="border: 1px solid #EDEFF1"> <div style="border: 1px solid #EDEFF1">
<div style="margin: 15px 0 15px 15px"> <div style="margin: 15px 0 15px 15px">
<span style="color: #697882;font-size: 12px;font-weight: 700">角色:</span> <span style="color: #697882;font-size: 12px;font-weight: 700">系统角色</span>
</div>
</div>
<div>
<div class="system-role-div" v-for="item in roleList" :value="item.index" :key="item.id">
<img :src="roleSelectId === item.id ? '../../../static/img/role-selected.png' : '../../../static/img/role-un-select.png'" class="system-role-img"/>
<span :class="roleSelectId === item.id ? 'system-role-name-selected' : 'system-role-name-un-select'">{{item.name}}</span>
<span :class="roleSelectId === item.id ? 'system-role-number-selected' : 'system-role-number-un-select'" @click="goToAccManagerPage">{{item.number}}</span>
</div> </div>
<!--<div class="system-role-div">
<img src="../../../static/img/role-un-select.png" class="system-role-img"/>
<span class="system-role-name-un-select">运营人员</span>
<span class="system-role-number-un-select">18</span>
</div>-->
</div> </div>
</col> </i-col>
<!--权限多选--> <!--权限多选-->
<Col span="18"> <i-col span="18">
<div v-for="(item,index) in permissionList" :key="item.id" style="margin-top: 25px"> <div v-for="(item,index) in permissionList" :key="item.id" style="margin-top: 25px">
<div style="border-bottom: 1px solid #e9e9e9;padding-bottom:6px;margin-bottom:6px;"> <div style="border-bottom: 1px solid #e9e9e9;padding-bottom:6px;margin-bottom:6px;">
<Checkbox :indeterminate="item.indeterminate" :value="item.check" <Checkbox :indeterminate="item.indeterminate" :value="item.check"
@ -39,22 +85,41 @@
<Checkbox v-for="itemSon in item.sonPermissionList" :key="itemSon.id" style="margin-left: 30px;color:#697882" :label="itemSon.id" >{{itemSon.name}}</Checkbox> <Checkbox v-for="itemSon in item.sonPermissionList" :key="itemSon.id" style="margin-left: 30px;color:#697882" :label="itemSon.id" >{{itemSon.name}}</Checkbox>
</CheckboxGroup> </CheckboxGroup>
</div> </div>
</Col> </i-col>
</Row> </Row>
</div> </div>
</template> </template>
<script> <script>
import roleManager from '../../services/user/RoleManager' // import RoleManager from '../../services/user/RoleManager'
export default { export default {
data() { data() {
return { return {
name: "roleManager", name: "RoleManager",
// //id
roleSelect: null, roleSelectId: 1,
// //
roleList:[], roleList:[
// {
id: 1,
name: "系统管理员",
number: 6
},
{
id: 2,
name: "运营人员",
number: 18
},
{
id: 3,
name: "店长",
number: 123
},
{
id: 4,
name: "导购",
number: 423
},
],
// //
permissionList: [ permissionList: [
{ {
@ -99,8 +164,6 @@
]}, ]},
] ]
} }
}, },
mounted: function () { mounted: function () {
@ -149,6 +212,10 @@
}, },
removeRoleModalShow: function () { removeRoleModalShow: function () {
},
// todo
goToAccManagerPage: function () {
this.$Message.info("进入账号管理!");
} }
} }

Before

Width:  |  Height:  |  Size: 283 B

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Loading…
Cancel
Save