|
@@ -87,7 +87,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { SFengParser } from '@saga-web/feng-map'
|
|
|
|
|
|
+import { SFengParser, ProjectRf } from '@saga-web/feng-map'
|
|
import { SFloorParser, ItemOrder, ItemColor, SPolygonItem } from '@saga-web/big'
|
|
import { SFloorParser, ItemOrder, ItemColor, SPolygonItem } from '@saga-web/big'
|
|
import { FloorView } from '@/lib/FloorView'
|
|
import { FloorView } from '@/lib/FloorView'
|
|
import { FloorScene } from '@/lib/FloorScene'
|
|
import { FloorScene } from '@/lib/FloorScene'
|
|
@@ -135,6 +135,7 @@ export default {
|
|
},
|
|
},
|
|
activeItem: null,
|
|
activeItem: null,
|
|
showBtnWell: false,
|
|
showBtnWell: false,
|
|
|
|
+ count: 0, // 顶楼为多张图时计数器
|
|
}
|
|
}
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -289,13 +290,13 @@ export default {
|
|
if (floor == 'g80') {
|
|
if (floor == 'g80') {
|
|
// 屋顶
|
|
// 屋顶
|
|
if (window.fengmapData.frImg) {
|
|
if (window.fengmapData.frImg) {
|
|
- let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
|
|
|
|
- imgItem.showType = SImageShowType.AutoFit
|
|
|
|
- imgItem.connect('imgLoadOver', this, () => {
|
|
|
|
- this.readGraph()
|
|
|
|
- })
|
|
|
|
- this.scene.addItem(imgItem)
|
|
|
|
- this.view.scene = this.scene
|
|
|
|
|
|
+ let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
|
|
|
|
+ imgItem.showType = SImageShowType.AutoFit
|
|
|
|
+ imgItem.connect('imgLoadOver', this, () => {
|
|
|
|
+ this.readGraph()
|
|
|
|
+ })
|
|
|
|
+ this.scene.addItem(imgItem)
|
|
|
|
+ this.view.scene = this.scene
|
|
// this.view.fitSceneToView()
|
|
// this.view.fitSceneToView()
|
|
} else {
|
|
} else {
|
|
// 屋顶图不为图片
|
|
// 屋顶图不为图片
|
|
@@ -453,6 +454,15 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 顶楼为多张图时计数器
|
|
|
|
+ countRf(len) {
|
|
|
|
+ this.count++
|
|
|
|
+ if (len == this.count) {
|
|
|
|
+ this.readGraph();
|
|
|
|
+ } else {
|
|
|
|
+ console.log('所有图片未加载完成');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
clearGraphy() {
|
|
clearGraphy() {
|
|
if (this.view) {
|
|
if (this.view) {
|
|
this.view.scene = null
|
|
this.view.scene = null
|