1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <div class="yui-tree-box">
- <project-item-tree @treeclick="treeclick" type="isInit" iconfontClass="el-icon-place"></project-item-tree>
- <div class="hui-tree-content" v-if="target.bimIntegrateId">
- <operation-models ref="operationModels" v-if="target.bimIntegrateId === '3102248339366592'"
- :target="target">
- </operation-models>
- <operation-model v-else></operation-model>
- </div>
- <div class="hui-tree-content" v-else>
- <operation-room></operation-room>
- </div>
- </div>
- </template>
- <script>
- import operationModel from '@/components/work/bim/operationModel'
- import operationModels from '@/components/work/bim/operationModels'
- import operationRoom from '@/components/work/bim/operationRoom'
- import projectItemTree from '@/components/common/projectItemTree'
- export default {
- data() {
- return {
- target: {}
- }
- },
- mounted() {},
- methods: {
- treeclick(e, type) {
- this.target = e;
- if (this.$refs.operationModels && type != 'isInit') this.$refs.operationModels.changeTarget(e);
- }
- },
- components: {
- operationModel,
- operationModels,
- projectItemTree,
- operationRoom
- }
- }
- </script>
- <style lang="scss">
- </style>
|