|
|
|
@ -73,6 +73,13 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
this.game.init(this.canvas); |
|
|
|
|
this.companyData = (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization || {} |
|
|
|
|
let editMode = sessionStorage.getItem('isGasStation') |
|
|
|
|
let userdata = JSON.parse(sessionStorage.getItem('userdata')) |
|
|
|
|
if (userdata.userName == 'superadmin') { //是superadmin,是内部制作账号
|
|
|
|
|
editMode = "false"; //客户要求,关闭所有三维编辑权,只留下超级管理员可编辑 2022年7月21日
|
|
|
|
|
} else { |
|
|
|
|
editMode = "true"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (editMode == 'false') { |
|
|
|
|
this.editMode = true |
|
|
|
|
ModeManager.currentMode = ModeType.Edit |
|
|
|
@ -157,7 +164,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
ngOnDestroy(): void { //组件销毁前 销毁canvas
|
|
|
|
|
if (this.selectFence === 8) { //初始化 应急预案模块
|
|
|
|
|
this.initializePlan() |
|
|
|
|
}
|
|
|
|
|
} |
|
|
|
|
this.game.pauseRender(); |
|
|
|
|
this.game = null; |
|
|
|
|
} |
|
|
|
@ -265,8 +272,8 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
//监听inputValue change事件
|
|
|
|
|
changeTankFarmValue() { |
|
|
|
|
if (this.isShowChildComponent && this.leftDomain) { |
|
|
|
|
this.leftDomain.FacilityList.forEach(item=>{ |
|
|
|
|
item.getPropertyData().tankFarm != undefined? item.getPropertyData().tankFarm = this.tankFarm.content : null; |
|
|
|
|
this.leftDomain.FacilityList.forEach(item => { |
|
|
|
|
item.getPropertyData().tankFarm != undefined ? item.getPropertyData().tankFarm = this.tankFarm.content : null; |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -496,7 +503,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
let institutionKey = `${this.companyData.id}` || "ceshi"; //单位id
|
|
|
|
|
let buildingKey = this.buildingUIItems.find(item => { return item.getBuildingID() == this.beforeOneBuildingID }) |
|
|
|
|
let facility = this.beforeOnePropertyData |
|
|
|
|
let url = DataManager.getResPath_facilityProperty(institutionKey, buildingKey? buildingKey.getBuildingID() : "building", facility.getType(), facility.getID(), null) |
|
|
|
|
let url = DataManager.getResPath_facilityProperty(institutionKey, buildingKey ? buildingKey.getBuildingID() : "building", facility.getType(), facility.getID(), null) |
|
|
|
|
ServeManager.instance.openFileSelect(file, url, (name: string, path: string) => { //上传
|
|
|
|
|
this.beforeOnePropertyData.getPropertyData().img = ObjectsService.getFullPath(path + name) |
|
|
|
|
if (!this.beforeOnePropertyData.getPropertyData().is360) { |
|
|
|
|