|
@@ -740,7 +740,7 @@ export class EditScence extends SGraphScene {
|
|
|
* 更新工程信息化的相关数据
|
|
|
* @param AttachObjectIds Array
|
|
|
*/
|
|
|
- upadatAttachObjectIds(AttachObjectIds: []): void {
|
|
|
+ upadatAttachObjectIds(AttachObjectIds: [], flag: boolean): void {
|
|
|
if (this.focusItem) {
|
|
|
this.focusItem.data.AttachObjectIds = AttachObjectIds;
|
|
|
// 重新选中focusitem
|
|
@@ -754,7 +754,7 @@ export class EditScence extends SGraphScene {
|
|
|
item instanceof SFHFQZoneLegendItem
|
|
|
) {
|
|
|
let arr = item.data.AttachObjectIds;
|
|
|
- if (arr && arr.length && arr[arr.length - 1].name) {
|
|
|
+ if (arr && arr.length && arr[arr.length - 1].name && flag) {
|
|
|
let name = item.name;
|
|
|
if (name) {
|
|
|
item.name = name + `\n${arr[arr.length - 1].name}`;
|