| | |
| | | |
| | | <template v-else> |
| | | <a-tabs> |
| | | <a-tab-pane :key="1" tab="车间属性"> |
| | | <a-tab-pane :key="1" tab="属性"> |
| | | <WorkshopInfo :currentLevelDetails="currentTreeNodeInfo" :size="containerSize"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | |
| | | 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) |
| | | } |
| | | } |
| | | } |