Преглед изворни кода

图例data中添加系统分类id

YaolongHan пре 4 година
родитељ
комит
8b671389b9
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/components/mapClass/EditScence.ts

+ 3 - 2
src/components/mapClass/EditScence.ts

@@ -93,7 +93,6 @@ export class EditScence extends SGraphScene {
     };
     set setlegend(obj: any) {
         this._legend = obj;
-        console.log('aaaaaa', obj)
     }
     /** fid=>item映射,由解析器存入   */
     fidToItem = {}
@@ -426,6 +425,7 @@ export class EditScence extends SGraphScene {
      */
     addIconItem(event: SMouseEvent): void {
         //获取信息工程化相关参数
+        const InfoSystemId = this._legend.InfoSystemId ? this._legend.InfoSystemId  :''
         const LegendData: Legend = {
             ID: uuid(),
             Name: this._legend.Name,
@@ -446,7 +446,8 @@ export class EditScence extends SGraphScene {
                 sHeight: 24,   //icon 的高
                 font: 12,    //font
                 color: '',  //字体颜色
-                GraphCategoryId: this._legend.GraphCategoryId
+                GraphCategoryId: this._legend.GraphCategoryId,
+                InfoSystemId:InfoSystemId   //信息工程话分类ID分类
             },
         }
         const item = new SImageLegendItem(null, LegendData);