例子
工具:element-UI树回显时,父节点联动无权限子节点的问题
1:问题原因:我们可能使用

this.$refs.tree.setCheckedKeys(this.defalutArr);
或者使用
:default-expanded-keys=“treeDataSelect” :default-checked-keys=“treeDataSelect”
来进行回显的

获取数据
工具:element-UI树回显时,父节点联动无权限子节点的问题
工具:element-UI树回显时,父节点联动无权限子节点的问题
解决:
if (res.data.code == 200) {
//默认选中的树的数据
let that = this
setTimeout(function() {
res.data.data.forEach(value => {
that.$refs.rootTree.setChecked(value, true, false);
});
}, 500);
}


原文链接:https://blog.csdn.net/jasmine0178/article/details/103600508

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-10-01
  • 2021-07-29
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2022-03-02
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案