|
@@ -59,23 +59,23 @@ export default {
|
|
this.appName,
|
|
this.appName,
|
|
null
|
|
null
|
|
);
|
|
);
|
|
- this.fmap.parseData("1001724_29", 6, res => {
|
|
|
|
- this.fParser = new SFloorParser(null);
|
|
|
|
- this.fParser.parseData(res);
|
|
|
|
- this.fParser.wallList.forEach(t => this.scene.addItem(t));
|
|
|
|
- this.fParser.virtualWallList.forEach(t => this.scene.addItem(t));
|
|
|
|
- this.fParser.doorList.forEach(t => this.scene.addItem(t));
|
|
|
|
- this.fParser.columnList.forEach(t => this.scene.addItem(t));
|
|
|
|
- this.fParser.casementList.forEach(t => this.scene.addItem(t));
|
|
|
|
- this.fParser.spaceList.forEach(t => {
|
|
|
|
- t.selectable = true;
|
|
|
|
- // t.connect("click", this, this.spaceClick);
|
|
|
|
- this.scene.addItem(t);
|
|
|
|
- });
|
|
|
|
|
|
+ // this.fmap.parseData("1001724_29", 6, res => {
|
|
|
|
+ // this.fParser = new SFloorParser(null);
|
|
|
|
+ // this.fParser.parseData(res);
|
|
|
|
+ // this.fParser.wallList.forEach(t => this.scene.addItem(t));
|
|
|
|
+ // this.fParser.virtualWallList.forEach(t => this.scene.addItem(t));
|
|
|
|
+ // this.fParser.doorList.forEach(t => this.scene.addItem(t));
|
|
|
|
+ // this.fParser.columnList.forEach(t => this.scene.addItem(t));
|
|
|
|
+ // this.fParser.casementList.forEach(t => this.scene.addItem(t));
|
|
|
|
+ // this.fParser.spaceList.forEach(t => {
|
|
|
|
+ // t.selectable = true;
|
|
|
|
+ // // t.connect("click", this, this.spaceClick);
|
|
|
|
+ // this.scene.addItem(t);
|
|
|
|
+ // });
|
|
this.view.scene = this.scene;
|
|
this.view.scene = this.scene;
|
|
this.view.fitSceneToView();
|
|
this.view.fitSceneToView();
|
|
// this.$loading.close(loadings)
|
|
// this.$loading.close(loadings)
|
|
- });
|
|
|
|
|
|
+ // });
|
|
this.scene.emitChange = this.emitChange;
|
|
this.scene.emitChange = this.emitChange;
|
|
},
|
|
},
|
|
// 监听变化
|
|
// 监听变化
|
|
@@ -117,7 +117,7 @@ export default {
|
|
this.scene.updatedHeight(Number(val));
|
|
this.scene.updatedHeight(Number(val));
|
|
});
|
|
});
|
|
bus.$on("itemPositon", (x, y) => {
|
|
bus.$on("itemPositon", (x, y) => {
|
|
- this.scene.updatedPosition(Number(x, y));
|
|
|
|
|
|
+ this.scene.updatedPosition(Number(x),Number(y));
|
|
});
|
|
});
|
|
bus.$on("changebackColor", val => {
|
|
bus.$on("changebackColor", val => {
|
|
this.scene.updatedbackColor(val);
|
|
this.scene.updatedbackColor(val);
|