Surpriseplus
2022-10-25 6e0ef2d1f836680e6a55b7fc2d813b759038c144
src/views/AuthorizationManagement/userRoleAuthorization.vue
@@ -18,6 +18,7 @@
          :check-strictly="true"
          node-key="id"
          @check="treeCheck"
          :default-expanded-keys="[1]"
          ref="treeForm"
        >
        </el-tree>
@@ -379,7 +380,7 @@
    treeCheck(node, list) {
      //node 该节点所对应的对象、list 树目前的选中状态对象
      //选中事件在选中后执行,当lis中有两个选中时,使用setCheckedKeys方法,选中一个节点
      console.log(node, list);
      if (list.checkedNodes.length > 0) {
        this.listData.depid = node.id;
        this.debid = node.id;