|
@@ -15,6 +15,7 @@ import bus from "@/bus";
|
|
|
import { saveGroup, readGroup } from "@/api/editer.js";
|
|
|
import { STopologyParser } from "./../lib/parsers/STopologyParser";
|
|
|
import { uuid } from "@/components/mapClass/until"
|
|
|
+import store from '../store'
|
|
|
|
|
|
let fengmap = null;
|
|
|
|
|
@@ -51,6 +52,7 @@ export default {
|
|
|
this.init();
|
|
|
// 挂在bus
|
|
|
this.getBus();
|
|
|
+ store.dispatch('getElementType',{PageSize:1000})
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
@@ -218,8 +220,8 @@ export default {
|
|
|
if (t.data.Type == val.key) {
|
|
|
return {
|
|
|
ID: uuid(),
|
|
|
- Name: t.name,
|
|
|
- GraphElementType: "Zone",
|
|
|
+ Name: val.name,
|
|
|
+ GraphElementType: val.properties.Type,
|
|
|
GraphElementId: "273d633cc5c54a4882794b34843d1a00",
|
|
|
AttachObjectIds: [],
|
|
|
Pos: { x: t.x, y: t.y },
|