|
|
|
@ -80,7 +80,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
this.getGasStationBaseInfo().then((res: any) => { //获取单位 基本信息
|
|
|
|
|
console.log(res, "当前加油站信息") |
|
|
|
|
// console.log(res, "当前加油站信息")
|
|
|
|
|
let simpleData: InsitutionDataSimple = new InsitutionDataSimple(); |
|
|
|
|
simpleData.id = res.id || 6; //来自选中的单位的信息 ,测试:1
|
|
|
|
|
simpleData.key = `${res.id}` || "ceshi"; //测试:"ceshi"
|
|
|
|
@ -91,12 +91,12 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
if (ModeManager.institutionDemoKey == ModeManager.c_demoKey_null) { //无指定测试单位,则为正式启动,根据当前单位key寻找
|
|
|
|
|
if (has3dData) { //如果已经有三维数据,直接进入
|
|
|
|
|
this.beforeOneSatus = StatusManager.getStatus<LoginSatus>(LoginSatus); |
|
|
|
|
// console.log("单位数据", simpleData);
|
|
|
|
|
// console.log("进入三维单位", simpleData);
|
|
|
|
|
this.beforeOneSatus.onSelectInsSuccess(simpleData) |
|
|
|
|
} else { //如果没有三维数据
|
|
|
|
|
if (ModeManager.s_isMakeMode) //内部制作模式下,询问新建
|
|
|
|
|
{ |
|
|
|
|
let isAdd = confirm('没有单位' + simpleData.key + ',是否进行初始化?') |
|
|
|
|
let isAdd = confirm('没有单位:' + simpleData.name + ',是否进行初始化?') |
|
|
|
|
if (isAdd) { |
|
|
|
|
let name = simpleData.name; |
|
|
|
|
let id = simpleData.id;// 单位id
|
|
|
|
@ -106,6 +106,7 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
else //非内部制作模式,不开启
|
|
|
|
|
{ |
|
|
|
|
console.log("没有单位" + simpleData.key); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|