|
@@ -177,6 +177,7 @@ export default {
|
|
|
// 画板是否可拖动;
|
|
|
this.scene.addItem(imgItem);
|
|
|
this.view.DragMove = true;
|
|
|
+ this.planLoading = false;
|
|
|
this.view.fitSceneToView();
|
|
|
});
|
|
|
},
|
|
@@ -251,7 +252,7 @@ export default {
|
|
|
// 画板是否可拖动
|
|
|
this.view.DragMove = true;
|
|
|
this.view.fitSceneToView();
|
|
|
-
|
|
|
+ this.planLoading = false;
|
|
|
// 设置初始化缩放比例
|
|
|
this.initScale = this.view.scale;
|
|
|
bus.$emit("initScale", this.view.scale);
|
|
@@ -456,6 +457,10 @@ export default {
|
|
|
parser.casementList.forEach((t) => {
|
|
|
t.visible = val;
|
|
|
});
|
|
|
+ if (this.view?.scene) this.view.fitSceneToView();
|
|
|
+ // 设置初始化缩放比例
|
|
|
+ this.initScale = this.view.scale;
|
|
|
+ bus.$emit("initScale", this.view.scale);
|
|
|
},
|
|
|
// 读取拓扑图
|
|
|
readPlanMsg() {
|
|
@@ -641,6 +646,8 @@ export default {
|
|
|
zoneItem.visible = Boolean(zoneItem.legendData.outline);
|
|
|
// zoneItem.connect("finishCreated", this.scene, this.scene.finishCreated);
|
|
|
zoneItem.connect("onContextMenu", this, this.scene.getItem);
|
|
|
+ // TODO: addItem 需要写在 zoneDecorator 修饰器前,保证在 SPlanZone中能使用 this.scene.view.scale
|
|
|
+ this.scene.addItem(zoneItem);
|
|
|
if (this.styleMap[zone.id]) {
|
|
|
SPlanDecorator.zoneDecorator(zoneItem, this.styleMap[zone.id]);
|
|
|
} else if (this.styleMap[zone.classCode]) {
|
|
@@ -648,7 +655,6 @@ export default {
|
|
|
} else {
|
|
|
SPlanDecorator.zoneDecorator(zoneItem, this.styleMap["defaultZoneStyle"]);
|
|
|
}
|
|
|
- this.scene.addItem(zoneItem);
|
|
|
this.ADDZONE(zoneItem);
|
|
|
}
|
|
|
});
|
|
@@ -740,8 +746,6 @@ export default {
|
|
|
// 设置初始化缩放比例
|
|
|
this.initScale = this.view.scale;
|
|
|
bus.$emit("initScale", this.view.scale);
|
|
|
- // 关闭顶部的loading提示
|
|
|
- this.planLoading = false;
|
|
|
},
|
|
|
// 生成快照并保存草稿
|
|
|
savePlanDraft() {
|