Browse Source

设备中新增字段

YaolongHan 4 years ago
parent
commit
bfa60a557f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/components/mapClass/EditScence.ts

+ 8 - 0
src/components/mapClass/EditScence.ts

@@ -67,6 +67,13 @@ export class EditScence extends SGraphScene {
     Markers: any = [];
     Markers: any = [];
     /**  管线对象 */
     /**  管线对象 */
     Relations: any = [];
     Relations: any = [];
+    _isEditStatus:Boolean = true; // 是否可编辑
+    set isEditStatus(bol:Boolean):void{
+      this._isEditStatus = bol;
+    }
+    get isEditStatus():Boolean{
+      return this._isEditStatus
+    }
     constructor() {
     constructor() {
         super();
         super();
         // // 选择绑定选额item事件
         // // 选择绑定选额item事件
@@ -426,6 +433,7 @@ export class EditScence extends SGraphScene {
                 sHeight: 24,   //icon 的高
                 sHeight: 24,   //icon 的高
                 font: 12,    //font
                 font: 12,    //font
                 color: '',  //字体颜色
                 color: '',  //字体颜色
+                GraphCategoryId:this._legend.GraphCategoryId
             },
             },
         }
         }
         const item = new SImageLegendItem(null, LegendData);
         const item = new SImageLegendItem(null, LegendData);