| | |
| | | DeviceStructureMainBottom |
| | | }, |
| | | created() { |
| | | this.$bus.$on('sendCurrentTreeNodeInfo', this.receiveCurrentTreeNodeInfo) |
| | | this.$bus.$on('sendDeviceTreeNodeInfo', this.receiveCurrentTreeNodeInfo) |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | receiveCurrentTreeNodeInfo(treeNodeInfo) { |
| | | // 从树组件接受树节点信息后从父组件流入子组件 |
| | | this.currentTreeNodeInfo = treeNodeInfo |
| | | if (treeNodeInfo.equipmentId) { |
| | | if (treeNodeInfo.type === 2) { |
| | | this.$nextTick(() => { |
| | | if (this.$refs.mainTopRef) this.$refs.mainTopRef.loadHasSentDocumentListData() |
| | | if (this.$refs.mainTopRef) this.$refs.mainTopRef.releaseLoadDocumentListApi() |
| | | }) |
| | | } |
| | | console.log('currentTreeNodeInfo------------------', this.currentTreeNodeInfo) |
| | | } |
| | | } |
| | | } |