|
@@ -205,19 +205,20 @@ export default {
|
|
that.scene.getFloorData('/modelapi/base-graph/query', { ModelId: modelId }).then(res => {
|
|
that.scene.getFloorData('/modelapi/base-graph/query', { ModelId: modelId }).then(res => {
|
|
that.canvasLoading = false;
|
|
that.canvasLoading = false;
|
|
if (res == 'error') {
|
|
if (res == 'error') {
|
|
- this.FloorMap = '';
|
|
|
|
- console.log('数据解析异常');
|
|
|
|
- return;
|
|
|
|
|
|
+ this.FloorMap = '';
|
|
|
|
+ console.log('数据解析异常');
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
let equipId = can[this.i].dataset.equipid;
|
|
let equipId = can[this.i].dataset.equipid;
|
|
let X = Number(can[this.i].dataset.x);
|
|
let X = Number(can[this.i].dataset.x);
|
|
let Y = can[this.i].dataset.y * -1;
|
|
let Y = can[this.i].dataset.y * -1;
|
|
that.view.scene = that.scene;
|
|
that.view.scene = that.scene;
|
|
this.scene.addMarker({
|
|
this.scene.addMarker({
|
|
- Id: equipId,
|
|
|
|
- X: X,
|
|
|
|
- Y: Y
|
|
|
|
|
|
+ Id: equipId,
|
|
|
|
+ X: X,
|
|
|
|
+ Y: Y
|
|
})
|
|
})
|
|
|
|
+ that.scene.isShowSpaceName = false;
|
|
that.view.fitSceneToView();
|
|
that.view.fitSceneToView();
|
|
that.view.scalable = false;
|
|
that.view.scalable = false;
|
|
this.scene.isSpaceSelectable = false;
|
|
this.scene.isSpaceSelectable = false;
|