Commit 47de9c68 by lixiaomin

修改角色

parent a296df13
......@@ -214,13 +214,7 @@ export default {
rules: {
roleName: [
{ required: true, message: "角色名称不能为空", trigger: "blur" },
],
roleKey: [
{ required: true, message: "权限字符不能为空", trigger: "blur" },
],
roleSort: [
{ required: true, message: "角色顺序不能为空", trigger: "blur" },
],
]
},
};
},
......@@ -332,7 +326,6 @@ export default {
roleId: undefined,
roleName: undefined,
roleKey: undefined,
roleSort: 0,
status: "0",
menuIds: [],
deptIds: [],
......@@ -373,19 +366,19 @@ export default {
// }
// },
// 树权限(展开/折叠)
handleCheckedTreeExpand(value, type) {
if (type == "menu") {
let treeList = this.menuOptions;
for (let i = 0; i < treeList.length; i++) {
this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value;
}
} else if (type == "dept") {
let treeList = this.deptOptions;
for (let i = 0; i < treeList.length; i++) {
this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value;
}
}
},
// handleCheckedTreeExpand(value, type) {
// if (type == "menu") {
// let treeList = this.menuOptions;
// for (let i = 0; i < treeList.length; i++) {
// this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value;
// }
// } else if (type == "dept") {
// let treeList = this.deptOptions;
// for (let i = 0; i < treeList.length; i++) {
// this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value;
// }
// }
// },
// // 树权限(全选/全不选)
// handleCheckedTreeNodeAll(value, type) {
// if (type == "menu") {
......@@ -431,11 +424,11 @@ export default {
});
},
/** 选择角色权限范围触发 */
dataScopeSelectChange(value) {
if (value !== "2") {
this.$refs.dept.setCheckedKeys([]);
}
},
// dataScopeSelectChange(value) {
// if (value !== "2") {
// this.$refs.dept.setCheckedKeys([]);
// }
// },
// /** 分配数据权限操作 */
// handleDataScope(row) {
// this.reset();
......
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