Commit f81c504b by 张杰

修复监控树勾选问题

1 parent d4b99f10
......@@ -741,13 +741,15 @@ export default {
// 展开树节点
expandTreeItems(arr, isDevice) {
let _this = this;
arr.forEach((item) => {
if (isDevice) {
console.log(item.id)
this.$refs.tree.setCheckedKeys(
this.$refs.tree.getCheckedKeys().concat(item.id)
);
//this.checkedKeys.push(item.id);
let keys = _this.$refs.tree.getCheckedKeys()
console.log('keys',keys)
//_this.$refs.tree.setCheckedKeys(keys);
_this.checkedKeys.push(item.id);
console.log(_this.checkedKeys)
this.addMonitor({
sn: item.label,
name: item.label1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!