Commit 47de9c68 by lixiaomin

修改角色

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