Browse Source

“-m测试

YaolongHan 4 years ago
parent
commit
a77707c1c9
2 changed files with 5 additions and 5 deletions
  1. 1 1
      src/components/edit/left_toolbar.vue
  2. 4 4
      src/components/mapClass/EditScence.ts

+ 1 - 1
src/components/edit/left_toolbar.vue

@@ -321,7 +321,7 @@ export default {
       // 打开提取元素列表
       this.isExtract = true;
       this.visible = !this.visible;
-      bus.$emit("extractItem");
+      bus.$emit("extr actItem");
     },
     getBus() {
       bus.$on("exportItem", data => {

+ 4 - 4
src/components/mapClass/EditScence.ts

@@ -163,7 +163,7 @@ export class EditScence extends SGraphScene {
             ID: uuid(),
             Name: this._legend.Name,
             GraphElementType: this._legend.Type,
-            Num: 0,
+            Num: 1,
             GraphElementId: this._legend.Id,
             AttachObjectIds: [],
             Type: "Line",
@@ -198,7 +198,7 @@ export class EditScence extends SGraphScene {
             ID: uuid(),
             Name: this._legend.Name,
             GraphElementType: this._legend.Type,
-            Num: 0,
+            Num: 1,
             GraphElementId: this._legend.Id,
             AttachObjectIds: [],
             Type: "Zone",
@@ -234,7 +234,7 @@ export class EditScence extends SGraphScene {
             ID: uuid(),
             /** 名称  */
             Name: '图片',
-            Num: 3,
+            Num: 1,
             /** 图标(Image),线类型(Line) */
             Type: "Image",
             /** 位置  */
@@ -296,7 +296,7 @@ export class EditScence extends SGraphScene {
             ID: uuid(),
             Name: this._legend.Name,
             GraphElementType: this._legend.Type,
-            Num: 0,
+            Num: 1,
             GraphElementId: this._legend.Id,
             AttachObjectIds: [],
             Pos: { X: event.x, Y: event.y },