|
@@ -61,7 +61,7 @@ export default {
|
|
|
that.drawMainScene.getFloorData('/modelapi/base-graph/query', { ModelId: ModelId }).then(res => {
|
|
|
that.canvasLoading = false;
|
|
|
if (res.Result == 'failure') {
|
|
|
- this.showTools = false;
|
|
|
+ that.showTools = false;
|
|
|
that.$message.warning(res.Message);
|
|
|
return;
|
|
|
}
|
|
@@ -75,14 +75,14 @@ export default {
|
|
|
if (flag) {
|
|
|
that.view.scene = that.drawMainScene
|
|
|
that.view.fitSceneToView();
|
|
|
- that.view.maxScale = that.view.scale * 10;
|
|
|
- that.view.minScale = that.view.scale;
|
|
|
that.drawMainScene.isSpaceSelectable = false;
|
|
|
- if (this.$refs.canvasFun) {
|
|
|
+ if (that.$refs.canvasFun) {
|
|
|
+ that.view.maxScale = that.view.scale * 10;
|
|
|
+ that.view.minScale = that.view.scale;
|
|
|
that.$refs.canvasFun.everyScale = that.view.scale;
|
|
|
}
|
|
|
if (that.OutlineFlag) {
|
|
|
- this.getFloorData()
|
|
|
+ that.getFloorData()
|
|
|
}
|
|
|
}
|
|
|
})
|