|
@@ -33,7 +33,7 @@ export default {
|
|
|
canvasHeight: 700, //画布高
|
|
|
havItem: false, //右击是否选中item
|
|
|
showTooltip: false, //是否显示tooltip
|
|
|
- topoName: '', //拓扑图名称
|
|
|
+ topoContent: {}, // 读图后存储图所有数据
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -127,9 +127,10 @@ export default {
|
|
|
const elements = this.scene.save();
|
|
|
const obj = {
|
|
|
elements,
|
|
|
- name: this.topoName, // 名称
|
|
|
+ name: this.topoContent.name, // 名称
|
|
|
categoryId: this.categoryId, // 图分类ID
|
|
|
projectId: this.projectId, // 项目ID
|
|
|
+ label: this.topoContent.label,
|
|
|
buildingId: "1", // 建筑ID
|
|
|
floorId: "1", // 楼层id
|
|
|
note: "1", // 图说明
|
|
@@ -197,7 +198,7 @@ export default {
|
|
|
// 读图成功回调
|
|
|
getDataSuc(res) {
|
|
|
this.SETCATEGROY(res.content.categoryId);
|
|
|
- this.topoName = res.content.name;
|
|
|
+ this.topoContent = res.content;
|
|
|
const parse = new PTopoParser();
|
|
|
parse.parseData(res.content.elements);
|
|
|
parse.markers.forEach((item) => {
|