This commit is contained in:
zhutianqi
2021-06-25 17:59:51 +08:00
parent b13af16c0b
commit 3ffc3520a1
+1 -3
View File
@@ -123,15 +123,13 @@
},
methods: {
add () {
console.log(this.$refs.tree.getCheckedNodes());
console.log(this.$refs.tree.getCheckedKeys());
console.log(this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys()));
},
handleCheckChange (checkedNodes, checkedKeys) {
var list = []
for (var a = 0; a < checkedKeys.checkedNodes.length; a++) {
list.push(checkedKeys.checkedNodes[a].id)
}
console.log(list);
},
getRole () {
this.$http.get('sarRole/role', {}, {}, res=> {