|
|
@ -7,9 +7,9 @@ import { DataManager } from "../../controller/data-manager"; |
|
|
|
import { EventManager } from "../../controller/event-manager/event-manager"; |
|
|
|
import { EventManager } from "../../controller/event-manager/event-manager"; |
|
|
|
import { Event_GetAllMarkPlanData } from "../../controller/event-manager/events/event-get-markplandata-success"; |
|
|
|
import { Event_GetAllMarkPlanData } from "../../controller/event-manager/events/event-get-markplandata-success"; |
|
|
|
import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; |
|
|
|
import { Event_KeyboardInput } from "../../controller/event-manager/events/event-keyboard-input"; |
|
|
|
|
|
|
|
import { Event_LoadingChange } from "../../controller/event-manager/events/event-loading-change"; |
|
|
|
import { Event_MarkInfoChange, MarkInfoChangeType } from "../../controller/event-manager/events/event-mark-info-change"; |
|
|
|
import { Event_MarkInfoChange, MarkInfoChangeType } from "../../controller/event-manager/events/event-mark-info-change"; |
|
|
|
import { InputController } from "../../controller/inputController"; |
|
|
|
import { InputController } from "../../controller/inputController"; |
|
|
|
import { ModeManager } from "../../controller/mode-manager"; |
|
|
|
|
|
|
|
import { SceneManager } from "../../controller/scene-manager"; |
|
|
|
import { SceneManager } from "../../controller/scene-manager"; |
|
|
|
import { BuildingStatus } from "../../controller/status/building-status"; |
|
|
|
import { BuildingStatus } from "../../controller/status/building-status"; |
|
|
|
import { IndoorStatus } from "../../controller/status/indoor-status"; |
|
|
|
import { IndoorStatus } from "../../controller/status/indoor-status"; |
|
|
@ -237,7 +237,7 @@ export class MarkWindow extends UIBase { |
|
|
|
* @param markPlanId 方案id,一级节点ID |
|
|
|
* @param markPlanId 方案id,一级节点ID |
|
|
|
* @param nodeId 节点id,二级节点id |
|
|
|
* @param nodeId 节点id,二级节点id |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
saveToOldNode(markPlanId: number, nodeId: number) { |
|
|
|
saveToOldNode(markPlanId: number, nodeId: number, newName?: string) { |
|
|
|
let markPlaneData = DataManager.allMarkPlanData.getMarkPlanById(markPlanId); |
|
|
|
let markPlaneData = DataManager.allMarkPlanData.getMarkPlanById(markPlanId); |
|
|
|
if (markPlaneData == null) { |
|
|
|
if (markPlaneData == null) { |
|
|
|
console.error("没找到标绘方案:" + markPlanId) |
|
|
|
console.error("没找到标绘方案:" + markPlanId) |
|
|
@ -248,6 +248,9 @@ export class MarkWindow extends UIBase { |
|
|
|
let copyNodeData = classToClass(this.currentMarkNodeDataCopy);//覆盖数据
|
|
|
|
let copyNodeData = classToClass(this.currentMarkNodeDataCopy);//覆盖数据
|
|
|
|
copyNodeData.id = oldNodeData.id; |
|
|
|
copyNodeData.id = oldNodeData.id; |
|
|
|
copyNodeData.index = oldNodeData.index; |
|
|
|
copyNodeData.index = oldNodeData.index; |
|
|
|
|
|
|
|
if (newName != null) { |
|
|
|
|
|
|
|
copyNodeData.name = newName; |
|
|
|
|
|
|
|
} |
|
|
|
// copyNodeData.name = oldNodeData.name;
|
|
|
|
// copyNodeData.name = oldNodeData.name;
|
|
|
|
markPlaneData.setNodeData(nodeId, copyNodeData);//覆盖数据
|
|
|
|
markPlaneData.setNodeData(nodeId, copyNodeData);//覆盖数据
|
|
|
|
|
|
|
|
|
|
|
@ -261,7 +264,7 @@ export class MarkWindow extends UIBase { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
createNewNodeAndSave(markPlanId: number, name: string) { |
|
|
|
createNewNodeAndSave(markPlanId: number, name: string) { |
|
|
|
let newNode = this.createMarkNodeData(markPlanId, name); |
|
|
|
let newNode = this.createMarkNodeData(markPlanId, name); |
|
|
|
this.saveToOldNode(markPlanId, newNode.id); |
|
|
|
this.saveToOldNode(markPlanId, newNode.id, name); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|