YaolongHan 4 anni fa
parent
commit
394f69322e
2 ha cambiato i file con 10 aggiunte e 6 eliminazioni
  1. 4 2
      src/components/baseEditer.vue
  2. 6 4
      src/components/mapClass/EditScence.ts

+ 4 - 2
src/components/baseEditer.vue

@@ -397,7 +397,8 @@ export default {
                         GraphCategoryId: val.age.GraphCategoryId,
                         InfoSystemId: val.age.InfoSystemId?val.age.InfoSystemId:'',   //信息工程话分类ID分类
                         FID: t.data.SourceId,
-                        InfoTypeId:val.age.InfoTypeId.length? val.age.InfoTypeId :[]
+                        InfoTypeId:val.age.InfoTypeId.length? val.age.InfoTypeId :[],
+                        InfoLocal:val.age.InfoLocal.length ?val.age.InfoLocal :[]
                     },
                   };
                   const item = new SImageLegendItem(null, data)
@@ -436,7 +437,8 @@ export default {
                       color: "",
                       TextPos: { X: 0, Y: 0},
                       FID: t.data.SourceId,
-                      InfoTypeId:val.age.InfoTypeId.length? val.age.InfoTypeId :[]
+                      InfoTypeId:val.age.InfoTypeId.length? val.age.InfoTypeId :[],
+                      InfoLocal:val.age.InfoLocal.length ?val.age.InfoLocal :[]
                     },
                     Num: 1
                   };

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

@@ -280,7 +280,8 @@ export class EditScence extends SGraphScene {
                 color: '',
                 TextPos: { X: 0, Y: 0 },
                 InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],
-                InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :''
+                InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'',
+                InfoLocal:this._legend.InfoLocal.length ?this._legend.InfoLocal :[]
             },
         }
         let Polylines = null;
@@ -337,7 +338,8 @@ export class EditScence extends SGraphScene {
                     FID: item.data.SourceId,
                     TextPos: { X: item.data.Location.Points[0].X, Y: -item.data.Location.Points[0].Y },
                     InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],
-                    InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :''
+                    InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'',
+                    InfoLocal:this._legend.InfoLocal.length ?this._legend.InfoLocal :[]
                 },
             }
             let Polylines = null;
@@ -457,7 +459,7 @@ export class EditScence extends SGraphScene {
                 GraphCategoryId: this._legend.GraphCategoryId,
                 InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'' ,
                 InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],// 铺位可视化Typeid(用于编辑工程信息化时默认问题)
-
+                InfoLocal:this._legend.InfoLocal.length ?this._legend.InfoLocal :[]
             },
         }
         const item = new SImageLegendItem(null, LegendData);
@@ -717,7 +719,7 @@ export class EditScence extends SGraphScene {
             const item = this.focusItem;
             this.selectContainer.clear();
             this.selectContainer.toggleItem(item);
-            
+
             // 图标绑定工程信息化数据后设置状态
             if (item instanceof SImageLegendItem) {
                 if (item.data.AttachObjectIds && item.data.AttachObjectIds.length) {