|
@@ -94,7 +94,7 @@
|
|
<script>
|
|
<script>
|
|
import Tree from "./../components/Tree/Tree.vue";
|
|
import Tree from "./../components/Tree/Tree.vue";
|
|
import { SFengParser, ProjectRf } from "@saga-web/feng-map";
|
|
import { SFengParser, ProjectRf } from "@saga-web/feng-map";
|
|
-import { SFloorParser } from "@saga-web/big";
|
|
|
|
|
|
+import { SFloorParser, SBoardItem } from "@saga-web/big";
|
|
import { FloorView } from "./../lib/FloorView";
|
|
import { FloorView } from "./../lib/FloorView";
|
|
import { EditScence } from "@/components/mapClass/EditScence";
|
|
import { EditScence } from "@/components/mapClass/EditScence";
|
|
import bus from "@/bus";
|
|
import bus from "@/bus";
|
|
@@ -270,6 +270,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 解析楼地板
|
|
|
|
+ loadBoard(floor){
|
|
|
|
+ fengmap.loadFloor(floor, res => {
|
|
|
|
+ const zone = new SBoardItem(null, res)
|
|
|
|
+ this.scene.addItem(zone);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 顶楼为多张图时计数器
|
|
// 顶楼为多张图时计数器
|
|
countRf(len) {
|
|
countRf(len) {
|
|
this.count++
|
|
this.count++
|
|
@@ -282,6 +289,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
readBaseMap(floor){
|
|
readBaseMap(floor){
|
|
|
|
+ this.loadBoard(this.floorList[floor])
|
|
fengmap.parseData(this.floorList[floor], res => {
|
|
fengmap.parseData(this.floorList[floor], res => {
|
|
if (res.err) {
|
|
if (res.err) {
|
|
console.log(res.err);
|
|
console.log(res.err);
|