|
@@ -18,7 +18,8 @@ import {
|
|
|
saveGroup,
|
|
|
readGroup,
|
|
|
queryTypeGraph,
|
|
|
- publishGraph
|
|
|
+ publishGraph,
|
|
|
+ graphQuery
|
|
|
} from "@/api/editer.js";
|
|
|
import { STopologyParser } from "./../lib/parsers/STopologyParser";
|
|
|
import { uuid } from "@/components/mapClass/until";
|
|
@@ -154,7 +155,16 @@ export default {
|
|
|
)
|
|
|
.then(response => {
|
|
|
console.log("获取rf成功", response);
|
|
|
- this.parserData(floorid);
|
|
|
+ this.getGraphDetail().then(res => {
|
|
|
+ if (res.Content.length == 1) {
|
|
|
+ const data = res.Content[0];
|
|
|
+ if (data.MaxY && data.MinX) {
|
|
|
+ window.FENGMAP.maxY = data.MaxY;
|
|
|
+ window.FENGMAP.minX = data.MinX;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.parserData(floorid);
|
|
|
+ });
|
|
|
// this.readGraph();
|
|
|
// loadings.close();
|
|
|
})
|
|
@@ -716,6 +726,13 @@ export default {
|
|
|
this.scene.changeLengendItem(item)
|
|
|
})
|
|
|
},
|
|
|
+ // 获取图最大最小值
|
|
|
+ getGraphDetail(){
|
|
|
+ const data = {
|
|
|
+ Filters:`categoryId='${this.urlMsg.categoryId}';projectId='${this.urlMsg.projectId}';BuildingID='${this.urlMsg.BuildingID}';FloorID='${this.urlMsg.FloorID}'`
|
|
|
+ };
|
|
|
+ return graphQuery(data);
|
|
|
+ },
|
|
|
// 读取数据
|
|
|
readGroup() {
|
|
|
const data = {
|
|
@@ -796,7 +813,9 @@ export default {
|
|
|
ProjectID: this.urlMsg.projectId, // 项目ID
|
|
|
BuildingID: this.urlMsg.BuildingID, // 建筑ID
|
|
|
FloorID: this.urlMsg.FloorID, // 楼层id
|
|
|
- Seq // 楼层id
|
|
|
+ Seq, // 楼层id
|
|
|
+ MinX: window.FENGMAP.minX,
|
|
|
+ MaxY: window.FENGMAP.maxY
|
|
|
};
|
|
|
return new Promise(resolve => {
|
|
|
saveGroup(data)
|
|
@@ -838,7 +857,9 @@ export default {
|
|
|
ProjectID: this.urlMsg.projectId, // 项目ID
|
|
|
BuildingID: this.urlMsg.BuildingID, // 建筑ID
|
|
|
FloorID: this.urlMsg.FloorID, // 楼层id
|
|
|
- Seq // 楼层id
|
|
|
+ Seq, // 楼层id
|
|
|
+ MinX: window.FENGMAP.minX,
|
|
|
+ MaxY: window.FENGMAP.maxY
|
|
|
};
|
|
|
saveGroup(data)
|
|
|
.then(res => {
|