Commit 83105c92 by huangqy

111

parent 209fe890
......@@ -24,12 +24,14 @@
<el-tree
class="tree"
:key="this.roleDataActive.roleId"
:default-checked-keys="treeArr"
node-key="menuId"
:data="treeData"
show-checkbox
node-key="menuId"
check-strictly
ref="tree"
default-expand-all
:default-checked-keys="treeArr"
accordion
:props="replaceFields"
>
</el-tree>
......@@ -299,7 +301,8 @@ export default {
// 分配权限
async putPow () {
this.treeArr = this.$refs.tree.getCheckedKeys()
this.treeArr = [...this.$refs.tree.getCheckedKeys(), ...this.$refs.tree.getHalfCheckedKeys()]
//this.treeArr = this.$refs.tree.getCheckedKeys()
const obj = {
roleId: this.roleDataActive.roleId,
grantMenuIdList: this.treeArr
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论