|
|
|
@ -49,12 +49,14 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
public userMode: boolean = ModeManager.s_isMakeMode; //是否为 内部权限
|
|
|
|
|
public bucketName: string = ObjectsService.getFullPath("文件路径"); //当前桶名
|
|
|
|
|
public isShowLoading: boolean = true; //显隐 loading加载条
|
|
|
|
|
public companyData: any; //当前加油站 信息
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
PlanComponent.instance = this; |
|
|
|
|
ServeManager.Init(this.buildingBISrv, this.objectsSrv); |
|
|
|
|
this.canvas = this.element.nativeElement.querySelector('#center') as HTMLCanvasElement; |
|
|
|
|
this.game.init(this.canvas); |
|
|
|
|
this.companyData = (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization || {} |
|
|
|
|
let editMode = sessionStorage.getItem('isGasStation') |
|
|
|
|
if (editMode == 'false') { |
|
|
|
|
this.editMode = true |
|
|
|
@ -77,9 +79,9 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
let simpleData: InsitutionDataSimple = new InsitutionDataSimple(); |
|
|
|
|
simpleData.id = 1; //来自选中的单位的信息 ,测试:1
|
|
|
|
|
simpleData.key = "ceshi"; //正式: id.tostring(),测试:"ceshi"
|
|
|
|
|
simpleData.name = "测试"; //来自选中的单位的信息 ,测试:"测试"
|
|
|
|
|
simpleData.id = 1; //来自选中的单位的信息 ,测试:1
|
|
|
|
|
simpleData.key = "ceshi"; //正式: id.tostring(),测试:"ceshi"
|
|
|
|
|
simpleData.name = this.companyData.displayName || "测试"; //来自选中的单位的信息 ,测试:"测试"
|
|
|
|
|
|
|
|
|
|
let has3dData = true;//是否有三维数据,来自选中单位的信息
|
|
|
|
|
let loginStatus = StatusManager.getStatus<LoginSatus>(LoginSatus); |
|
|
|
@ -92,8 +94,8 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
{ |
|
|
|
|
let isAdd = confirm('没有单位' + simpleData.key + ',是否进行初始化?') |
|
|
|
|
if (isAdd) { |
|
|
|
|
let name = simpleData.key; |
|
|
|
|
let id = 2;// 单位id
|
|
|
|
|
let name = simpleData.name; |
|
|
|
|
let id = simpleData.id;// 单位id
|
|
|
|
|
loginStatus.createInsitution(simpleData.key, name, id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -144,7 +146,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
if (type === 7) { //初始化 应急预案 data
|
|
|
|
|
this.isShowChildComponent && this.leftDomain? this.leftDomain.initComponent(type) : null; //手动初始化子组件
|
|
|
|
|
this.selectFence = type |
|
|
|
|
this.isShowChildComponent = true |
|
|
|
|
this.editMode? this.isShowChildComponent = true : this.isShowChildComponent = false |
|
|
|
|
buildingWindow.changeJYZInfoModel(fenceType, true) |
|
|
|
|
MarkWindow.instance ? this.allMarkPlanData = MarkWindow.instance.allMarkPlanData : null; |
|
|
|
|
babylonEventManager.addListener(Event_GetAllMarkPlanData, (data: Event_GetAllMarkPlanData) => { |
|
|
|
@ -434,17 +436,15 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//选中 底部一级节点 开启自动播放
|
|
|
|
|
selectChildNode(item: MarkPlanData) { |
|
|
|
|
if (this.isShowChildComponent && this.leftDomain) { |
|
|
|
|
if (item.nodes.length) { |
|
|
|
|
this.updateTimer ? window.clearTimeout(this.updateTimer) : null //清除定时器
|
|
|
|
|
this.nzCurrent = 0 |
|
|
|
|
this.beforeEmergencyPlan = item |
|
|
|
|
this.updateProgressList().then(res => { |
|
|
|
|
this.publicToggleNode() |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
this.message.info('暂无数据节点'); |
|
|
|
|
} |
|
|
|
|
if (item.nodes.length) { |
|
|
|
|
this.updateTimer ? window.clearTimeout(this.updateTimer) : null //清除定时器
|
|
|
|
|
this.nzCurrent = 0 |
|
|
|
|
this.beforeEmergencyPlan = item |
|
|
|
|
this.updateProgressList().then(res => { |
|
|
|
|
this.publicToggleNode() |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
this.message.info('暂无数据节点'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|