distribution.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="yui-tree-box">
  3. <project-item-tree @treeclick="treeclick" type="isInit" iconfontClass="el-icon-place"></project-item-tree>
  4. <div class="hui-tree-content" v-if="target.bimIntegrateId">
  5. <operation-models ref="operationModels" v-if="target.bimIntegrateId === '3102248339366592'"
  6. :target="target">
  7. </operation-models>
  8. <operation-model v-else></operation-model>
  9. </div>
  10. <div class="hui-tree-content" v-else>
  11. <operation-room></operation-room>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. import operationModel from '@/components/work/bim/operationModel'
  17. import operationModels from '@/components/work/bim/operationModels'
  18. import operationRoom from '@/components/work/bim/operationRoom'
  19. import projectItemTree from '@/components/common/projectItemTree'
  20. export default {
  21. data() {
  22. return {
  23. target: {}
  24. }
  25. },
  26. mounted() {},
  27. methods: {
  28. treeclick(e, type) {
  29. this.target = e;
  30. if (this.$refs.operationModels && type != 'isInit') this.$refs.operationModels.changeTarget(e);
  31. }
  32. },
  33. components: {
  34. operationModel,
  35. operationModels,
  36. projectItemTree,
  37. operationRoom
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. </style>