8f3625b2 by 任超

style:首页待办事项

1 parent 188c6259
......@@ -78,7 +78,6 @@ export default {
return arr
}
this.defaultCheckeds = lookForAllId()
console.log(this.defaultCheckeds, 'that.defaultCheckedsthat.defaultCheckedsthat.defaultCheckeds');
},
dealCheckedItem () {
},
......@@ -89,12 +88,15 @@ export default {
//节点选择状态发生改变时
handleClick (data, checked, node) {
var checkedNodes = this.$refs.tree.getCheckedNodes();
if (checked) {
checkedNodes.push(data);
if (checkedNodes.length > 6) {
this.$message({
message: '最后选择6条数据',
type: 'warning',
customClass: 'messageIndex'
})
this.$refs.tree.setChecked(data, false) // 取消当前节点的选中状态
}
}
this.$refs.tree.setCheckedNodes(checkedNodes);
console.log(this.$refs.tree.getCheckedNodes());
},
}
}
</script>
......
......@@ -12,7 +12,6 @@ export default {
mounted () {
let that = this
window.addEventListener('message', function (messageEvent) {
console.log(23333333333333333);
that.getHomeNotice()
}, false)
},
......