style:首页待办事项
Showing
2 changed files
with
8 additions
and
7 deletions
| ... | @@ -78,7 +78,6 @@ export default { | ... | @@ -78,7 +78,6 @@ export default { |
| 78 | return arr | 78 | return arr |
| 79 | } | 79 | } |
| 80 | this.defaultCheckeds = lookForAllId() | 80 | this.defaultCheckeds = lookForAllId() |
| 81 | console.log(this.defaultCheckeds, 'that.defaultCheckedsthat.defaultCheckedsthat.defaultCheckeds'); | ||
| 82 | }, | 81 | }, |
| 83 | dealCheckedItem () { | 82 | dealCheckedItem () { |
| 84 | }, | 83 | }, |
| ... | @@ -89,12 +88,15 @@ export default { | ... | @@ -89,12 +88,15 @@ export default { |
| 89 | //节点选择状态发生改变时 | 88 | //节点选择状态发生改变时 |
| 90 | handleClick (data, checked, node) { | 89 | handleClick (data, checked, node) { |
| 91 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | 90 | var checkedNodes = this.$refs.tree.getCheckedNodes(); |
| 92 | if (checked) { | 91 | if (checkedNodes.length > 6) { |
| 93 | checkedNodes.push(data); | 92 | this.$message({ |
| 93 | message: '最后选择6条数据', | ||
| 94 | type: 'warning', | ||
| 95 | customClass: 'messageIndex' | ||
| 96 | }) | ||
| 97 | this.$refs.tree.setChecked(data, false) // 取消当前节点的选中状态 | ||
| 94 | } | 98 | } |
| 95 | this.$refs.tree.setCheckedNodes(checkedNodes); | 99 | } |
| 96 | console.log(this.$refs.tree.getCheckedNodes()); | ||
| 97 | }, | ||
| 98 | } | 100 | } |
| 99 | } | 101 | } |
| 100 | </script> | 102 | </script> | ... | ... |
| ... | @@ -12,7 +12,6 @@ export default { | ... | @@ -12,7 +12,6 @@ export default { |
| 12 | mounted () { | 12 | mounted () { |
| 13 | let that = this | 13 | let that = this |
| 14 | window.addEventListener('message', function (messageEvent) { | 14 | window.addEventListener('message', function (messageEvent) { |
| 15 | console.log(23333333333333333); | ||
| 16 | that.getHomeNotice() | 15 | that.getHomeNotice() |
| 17 | }, false) | 16 | }, false) |
| 18 | }, | 17 | }, | ... | ... |
-
Please register or sign in to post a comment