|
@@ -221,7 +221,6 @@ export default {
|
|
getGraphy() {
|
|
getGraphy() {
|
|
let that = this;
|
|
let that = this;
|
|
that.clearGraphy()
|
|
that.clearGraphy()
|
|
- that.view = new SGraphyView('floorCanvas')
|
|
|
|
that.scene = new DivideFloorScene();
|
|
that.scene = new DivideFloorScene();
|
|
that.canvasLoading = true;
|
|
that.canvasLoading = true;
|
|
that.scene.loadUrl(`/image-service/common/file_get?systemId=revit&key=${this.FloorMap}`).then(() => {
|
|
that.scene.loadUrl(`/image-service/common/file_get?systemId=revit&key=${this.FloorMap}`).then(() => {
|
|
@@ -486,10 +485,10 @@ export default {
|
|
// 清除canvas
|
|
// 清除canvas
|
|
clearGraphy() {
|
|
clearGraphy() {
|
|
if (this.view) {
|
|
if (this.view) {
|
|
- this.view = null;
|
|
|
|
- this.scene.root.children = null;
|
|
|
|
- this.scene = null;
|
|
|
|
|
|
+ this.view.scene = null;
|
|
|
|
+ return
|
|
}
|
|
}
|
|
|
|
+ this.view = new SGraphyView('floorCanvas')
|
|
},
|
|
},
|
|
// 工具栏操作
|
|
// 工具栏操作
|
|
// 移动底图
|
|
// 移动底图
|