|
|
|
@ -50,7 +50,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
public userMode: boolean = ModeManager.s_isMakeMode; //是否为 内部权限
|
|
|
|
|
public bucketName: string = ObjectsService.getFullPath("文件路径"); //当前桶名
|
|
|
|
|
public isShowLoading: boolean = true; //显隐 loading加载条
|
|
|
|
|
public companyData: any; //当前加油站 信息
|
|
|
|
|
public companyData: any; //当前加油站所属组织机构 data
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
PlanComponent.instance = this; |
|
|
|
@ -79,13 +79,14 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
let simpleData: InsitutionDataSimple = new InsitutionDataSimple(); |
|
|
|
|
simpleData.id = 1; //this.companyData.id || 来自选中的单位的信息 ,测试:1
|
|
|
|
|
simpleData.key = "ceshi"; //`${this.companyData.id}` || 测试:"ceshi"
|
|
|
|
|
simpleData.name = this.companyData.displayName || "测试"; //来自选中的单位的信息 ,测试:"测试"
|
|
|
|
|
|
|
|
|
|
this.getGasStationBaseInfo().then((res: any)=>{ //获取单位 基本信息
|
|
|
|
|
let has3dData = true;//是否有三维数据,来自选中单位的信息
|
|
|
|
|
console.log(res,"当前加油站信息") |
|
|
|
|
let simpleData: InsitutionDataSimple = new InsitutionDataSimple(); |
|
|
|
|
simpleData.id = res.id || 1; //来自选中的单位的信息 ,测试:1
|
|
|
|
|
simpleData.key = `${res.id}` || "ceshi"; //测试:"ceshi"
|
|
|
|
|
simpleData.name = res.stationName || "测试"; //来自选中的单位的信息 ,测试:"测试"
|
|
|
|
|
|
|
|
|
|
let has3dData = res.hasBuildingInfo; //是否有三维数据,来自选中单位的信息
|
|
|
|
|
let loginStatus = StatusManager.getStatus<LoginSatus>(LoginSatus); |
|
|
|
|
if (ModeManager.institutionDemoKey == ModeManager.c_demoKey_null) { //无指定测试单位,则为正式启动,根据当前单位key寻找
|
|
|
|
|
if (has3dData) { //如果已经有三维数据,直接进入
|
|
|
|
|