Commit 3882b5b0 authored by 黄奎's avatar 黄奎

参数修改

parent 7901195d
......@@ -185,7 +185,6 @@
<i class="iconfont icon-sanjiaoxing-you" v-if="x.showChildren==false && x.SubList.length>0" style="font-size: 5px;color: #DDDEE0"></i>
<i class="iconfont icon-sanjiaoxingx" v-if="x.showChildren==true && x.SubList.length>0" style="font-size: 5px;color: #DDDEE0" ></i>
</span>
<q-checkbox v-model="x.IsChecked" size="30px" style="margin-bottom: 2px" @input="threecheck(subIndex,j)"></q-checkbox>
<span >{{x.MenuName}}</span>
<ul v-if="x.SubList.length>0&& x.showChildren==true" style="margin-left: 35px">
......@@ -196,10 +195,6 @@
</ul>
</li>
</ul>
<!-- <q-tree v-if="subItem.SubList.length>0" :nodes="subItem.SubList" node-key="MenuId" label-key="MenuName"-->
<!-- children-key="SubList" tick-strategy="strict" :default-expand-all="true" no-connectors-->
<!-- :ticked.sync="chooseCategroyArray">-->
<!-- </q-tree>-->
</div>
</div>
</div>
......@@ -267,22 +262,18 @@
this.SubMenuList = item.SubList;
}
},
//点击选中
getItem(item, index) {
if (this.checkedIndex != index) {
this.checkedIndex = index;
this.SubMenuList = [];
this.SubMenuList = item.SubList;
} else {
// this.checkedIndex = -1;
// this.SubMenuList = [];
}
},
//获取权限
queryRolePermission() {
var qMsg = {
Role_Id: this.objOption.RoleId
RoleId: this.saveObj.RoleId
};
GetRolePermission(qMsg).then(res => {
if (res.Code == 1) {
......@@ -347,17 +338,14 @@
}
},
onecheck(index){//第1级的操作
let AuthMenuList = this.AuthMenuList;//全部数据
let checkedIndex = index;//当前选择
if(AuthMenuList[checkedIndex].IsChecked==true){
this.onecommon(AuthMenuList,checkedIndex,true)
}else {
this.onecommon(AuthMenuList,checkedIndex,false)
}
this.AuthMenuList = AuthMenuList
this.AuthMenuList = AuthMenuList;
},
twocommon(AuthMenuList,twoiIsChecked,type){
if(twoiIsChecked.SubList.length>0){
......@@ -390,7 +378,6 @@
if(type==false){
AuthMenuList[checkedIndex].IsChecked=false
}
}
},
threecheck(twoindex,threeindex){//第3级的操作
......@@ -430,7 +417,6 @@
if(type==false){
AuthMenuList[checkedIndex].IsChecked=false
}
}
},
fourcheck(twoindex,threeindex,fourindex){//第4级的操作
......@@ -479,7 +465,7 @@
},
//保存菜单
saveRole() {
//this.saveLoading = true;
this.saveLoading = true;
//角色菜单权限
var rolePermissionList = [];
//角色功能权限
......
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