|
@@ -1,8 +1,9 @@
|
|
|
<template>
|
|
|
<div class="hui-flex space-function">
|
|
|
<div class="hui-flex-box yui-tree-box">
|
|
|
- <project-item-tree @treeclick="treeclick" :hasRoom="true" type="isInit"
|
|
|
- :isCancel="false"></project-item-tree>
|
|
|
+ <project-item-tree @treeclick="treeclick" :hasRoom="true" type="isInit" :isCancel="false"
|
|
|
+ :isTargeClick="true" @targetClick="targetClick">
|
|
|
+ </project-item-tree>
|
|
|
<div class="hui-tree-content">
|
|
|
<div class="hui-flex hui-content box-background">
|
|
|
<div class="hui-content-title">
|
|
@@ -32,7 +33,9 @@
|
|
|
<img :src="nullImage" alt="" />
|
|
|
<div class="space-null-text">请上传楼层平面图</div>
|
|
|
</div>
|
|
|
- <floor-plan-set :roomId="target.roomId" :target="target.projectItemTarget" :key="target.roomId"></floor-plan-set>
|
|
|
+ <floor-plan-set :roomId="target.roomId" :target="target.projectItemTarget"
|
|
|
+ :key="target.roomId">
|
|
|
+ </floor-plan-set>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -68,7 +71,6 @@
|
|
|
this.target = e;
|
|
|
if (e.projectItemTarget.floorPlanType === 1) {
|
|
|
if (e.projectItem.bimIntegrateId === this.projectItem.bimIntegrateId) {
|
|
|
- console.log(this.$refs.modelSet);
|
|
|
if (this.$refs.modelSet) this.$refs.modelSet.init('update', e.roomId);
|
|
|
return;
|
|
|
}
|
|
@@ -78,6 +80,13 @@
|
|
|
});
|
|
|
} else if (e.projectItemTarget.floorPlanType === 2) {
|
|
|
|
|
|
+ }
|
|
|
+ },
|
|
|
+ targetClick(data, type) {
|
|
|
+ if (data.floorPlanType === 1 || !data.floorPlanType) {
|
|
|
+ if (this.$refs.modelSet) this.$refs.modelSet.previewRoom(data.projectItemTargetRoomList, type);
|
|
|
+ } else if (data.floorPlanType === 2) {
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|