|
@@ -160,6 +160,10 @@ export default {
|
|
|
});
|
|
|
// const loadings = this.$loading({type: 'global'});
|
|
|
document.getElementById(`canvas`).focus();
|
|
|
+ if(this.fmapID.includes('null')){
|
|
|
+ loadings.close();
|
|
|
+ this.getTreeData();
|
|
|
+ }
|
|
|
fengmap = new SFengParser(
|
|
|
"fengMap",
|
|
|
this.mapServerURL + "/fmap/" + this.fmapID,
|
|
@@ -198,7 +202,6 @@ export default {
|
|
|
`${this.mapServerURL}/webtheme/${this.fmapID}/${fengmap.frImg}`
|
|
|
);
|
|
|
this.scene.addItem(imgItem);
|
|
|
- this.view.scene = this.scene;
|
|
|
this.view.fitSceneToView();
|
|
|
this.loading = false;
|
|
|
this.isQuerying = false;
|
|
@@ -487,6 +490,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
+ this.view.scene = this.scene;
|
|
|
this.parserData(floorid);
|
|
|
this.readGroup(floorid).then(data => {
|
|
|
if (data.Result == "success") {
|