|
@@ -437,7 +437,7 @@ export class EditScence extends SGraphScene {
|
|
|
//获取信息工程化相关参数
|
|
|
const LegendData: Legend = {
|
|
|
ID: uuid(),
|
|
|
- Name: this._legend.Name,
|
|
|
+ Name: "",
|
|
|
GraphElementType: this._legend.Type,
|
|
|
Num: 1,
|
|
|
GraphElementId: this._legend.Id,
|
|
@@ -720,6 +720,18 @@ export class EditScence extends SGraphScene {
|
|
|
const item = this.focusItem;
|
|
|
this.selectContainer.clear();
|
|
|
this.selectContainer.toggleItem(item);
|
|
|
+ if (
|
|
|
+ item instanceof SImageLegendItem ||
|
|
|
+ item instanceof SZoneLegendItem ||
|
|
|
+ item instanceof SSCPZZoneLegendItem ||
|
|
|
+ item instanceof SFHFQZoneLegendItem
|
|
|
+ ) {
|
|
|
+ let arr = item.data.AttachObjectIds;
|
|
|
+ if (arr && arr.length && arr[arr.length-1].name) {
|
|
|
+ item.text = arr[arr.length-1].name;
|
|
|
+ item.name = arr[arr.length-1].name;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// 图标绑定工程信息化数据后设置状态
|
|
|
if (item instanceof SImageLegendItem) {
|