Commit 2b97d188 by xue_wengang

Update queryRole.vue

parent cd844a51
......@@ -12,7 +12,7 @@
@toInfor="toInfor"
@selectionChange="selectionChange"
>
<template #listOperation="scope">
<template #listOperation="scope">
<span class="hbyps" @click="editMenu(scope.scope)"> 菜单配置</span>
<span class="flTtitle Add" @click="add(scope.scope)">
<i class="el-icon-plus"></i>新增</span
......@@ -72,7 +72,7 @@ export default {
limit: 10,
page: 1,
roleAlias: "",
parentId:0
parentId: 0,
},
cxQueryField: [
{
......@@ -139,7 +139,7 @@ export default {
selectedTree: [],
//全选
checkAll: false,
selec: []
selec: [],
};
},
created() {
......@@ -189,7 +189,7 @@ export default {
this.checkAll = false;
},
submitMenu() {
console.log(this.selec);
debugger;
let userIds = "";
this.selectedId.forEach((item) => {
userIds = item.id;
......@@ -230,7 +230,6 @@ export default {
// row.forEach((item) => {
// this.selectedId.push(item.id);
// });
this.selectedId = val;
this.checkAll = false;
this.selec = [];
......@@ -291,7 +290,7 @@ export default {
});
},
dele(obj) {
this.$confirm("此操作将永久删除该角色, 是否继续?", "提示", {
this.$confirm("此操作将永久删除该用户, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
......@@ -305,7 +304,7 @@ export default {
type: "success",
message: "删除成功",
});
this.$router.go(0)
this.$refs.rightContent.doQuery("yes");
}
});
})
......@@ -319,10 +318,14 @@ export default {
//全选
handleCheckAllChange(val) {
if (this.checkAll) {
this.treeData.forEach((item) => {
this.selectedTree.push(item.id);
});
this.$refs.tree.setCheckedNodes(this.treeData);
} else {
this.$refs.tree.setCheckedKeys([]);
this.selec = [];
this.selectedTree = []
}
},
},
......
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