Commit 5bf88780 by xue_wengang

权限管理

parent 307f4a25
......@@ -24,7 +24,7 @@
text-color="rgba(90, 93, 103, 1)"
ref="menu"
>
<div class="menu_wrap" v-for="item in leftMenus" :key="item.index">
<div class="menu_wrap" v-for="item in leftMenus" :key="item.index" v-permission='item.roles'>
<el-menu-item
:index="item.index"
v-if="item.hasChildren == false"
......@@ -43,6 +43,7 @@
v-for="(subitem, index) in item.children"
:key="index"
@click="goDetail(subitem)"
v-permission='subitem.roles'
><i
class="iconfont iconquanxianjiesuo"
v-show="subitem.disabled"
......@@ -56,17 +57,6 @@
</div>
<div class="rightContent">
<!-- <div v-if="$route.meta.isAdd" class="topMenu">
<el-breadcrumb separator="/" style="line-height: 48px">
<el-breadcrumb-item
v-for="(item, index) in Breadcrumbs"
:key="index"
><span @click="goDetail(item)" style="cursor: pointer" :class="item.isActive ? 'activeClass' : ''">{{
item.name
}}</span></el-breadcrumb-item
>
</el-breadcrumb>
</div> -->
<div v-if="!$route.meta.isAdd">
<el-tabs
v-model="activeName"
......
......@@ -108,7 +108,7 @@ export default {
type: "success",
callback: () => {
loading.close();
this.$router.push("queryRole");
Window.close()
},
});
} else {
......
......@@ -245,7 +245,7 @@ export default {
{
id: "queryUser",
label: "用户信息管理",
newAuth: "M01",
roles: ["F0101", "admin",'A0000'],
index: "queryUser",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -253,7 +253,7 @@ export default {
{
id: "queryRole",
label: "角色信息管理",
newAuth: "M01",
roles: ["F0102", "admin",'A0000'],
index: "queryRole",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -261,7 +261,7 @@ export default {
{
id: "queryMenu",
label: "菜单信息管理",
newAuth: "M01",
roles: ["F0103", "admin",'A0000'],
index: "queryMenu",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -269,7 +269,7 @@ export default {
{
id: "applyManager",
label: "三员申报管理",
newAuth: "M01",
roles: ["F0104", "admin",'A0000'],
index: "applyManager",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -277,7 +277,7 @@ export default {
{
id: "approvalManage",
label: "三员审批管理",
newAuth: "M01",
roles: ["F0105", "admin",'A0000'],
index: "approvalManage",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -285,7 +285,7 @@ export default {
{
id: "queryPWhite",
label: "白名单管理",
newAuth: "M01",
roles: ["F0106", "admin",'A0000'],
index: "queryPWhite",
className: "iconfont icongongnengfuwu",
hasChildren: true,
......@@ -293,7 +293,7 @@ export default {
{
id: "queryPWhite",
label: "用户白名单管理",
newAuth: "M01",
roles: ["F010601", "admin",'A0000'],
index: "queryPWhite",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -301,7 +301,7 @@ export default {
{
id: "queryCWhite",
label: "车辆白名单管理",
newAuth: "M01",
roles: ["F010602", "admin",'A0000'],
index: "queryCWhite",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -309,7 +309,7 @@ export default {
{
id: "queryTWhite",
label: "电话白名单管理",
newAuth: "M01",
roles: ["F010603", "admin",'A0000'],
index: "queryTWhite",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -477,7 +477,7 @@ export default {
this.$message.warning("只能单选");
return;
}
this.$nextTick(() => {
this.$nextTick(() => {
this.$refs.tree.setCheckedKeys([]);
});
// row.forEach((item) => {
......
......@@ -182,7 +182,7 @@ export default {
{
id: "queryJz",
label: "卷宗列表",
newAuth: "M01",
roles: ["E0901", "admin",'A0000'],
index: "queryJz",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -190,7 +190,7 @@ export default {
{
id: "querySqdlb",
label: "申请单列表",
newAuth: "M01",
roles: ["E0902", "admin",'A0000'],
index: "querySqdlb",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -198,7 +198,7 @@ export default {
{
id: "queryXslb",
label: "线索列表",
newAuth: "M01",
roles: ["E0903", "admin",'A0000'],
index: "queryXslb",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -206,7 +206,7 @@ export default {
{
id: "queryDwsp",
label: "待我审批",
newAuth: "M01",
roles: ["E0904", "admin",'A0000'],
index: "queryDwsp",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -214,7 +214,7 @@ export default {
{
id: "queryWysp",
label: "我已审批",
newAuth: "M01",
roles: ["E0905", "admin",'A0000'],
index: "queryWysp",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......@@ -222,7 +222,7 @@ export default {
{
id: "querySptj",
label: "审批统计",
newAuth: "M01",
roles: ["E0906", "admin",'A0000'],
index: "querySptj",
className: "iconfont icongongnengfuwu",
hasChildren: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment