distribution.vue 1.4 KB

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