|
@@ -122,7 +122,7 @@ export default class spaceGraph extends Vue {
|
|
mounted(): void {
|
|
mounted(): void {
|
|
this.canvasWidth = this.$refs.graphContainer.offsetWidth;
|
|
this.canvasWidth = this.$refs.graphContainer.offsetWidth;
|
|
this.canvasHeight = this.$refs.graphContainer.offsetHeight;
|
|
this.canvasHeight = this.$refs.graphContainer.offsetHeight;
|
|
- this.getGraph();
|
|
|
|
|
|
+ // this.getGraph();
|
|
}
|
|
}
|
|
// 父组件调用查询楼层底图
|
|
// 父组件调用查询楼层底图
|
|
getData(floor: any, zoneType: any) {
|
|
getData(floor: any, zoneType: any) {
|
|
@@ -189,6 +189,7 @@ export default class spaceGraph extends Vue {
|
|
this.canvasLoading = true;
|
|
this.canvasLoading = true;
|
|
this.clearGraphy();
|
|
this.clearGraphy();
|
|
this.scene = null;
|
|
this.scene = null;
|
|
|
|
+ console.log(this.floorKey);
|
|
scene.loadUrl(this.floorKey).then((res) => {
|
|
scene.loadUrl(this.floorKey).then((res) => {
|
|
if (this.view) {
|
|
if (this.view) {
|
|
this.view.scene = scene;
|
|
this.view.scene = scene;
|