|
|
|
@ -75,12 +75,15 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
menuList2 = [] |
|
|
|
|
selectedItem |
|
|
|
|
routerChange(item) { |
|
|
|
|
// console.log( sessionStorage.getItem("3dSceneData"));
|
|
|
|
|
let a=JSON.parse(sessionStorage.getItem("3dSceneData")) |
|
|
|
|
if(!a.hasBuildingInfo && item.url == "/plan/petrolStation"){ |
|
|
|
|
this.message.info("当前油站未开通!"); |
|
|
|
|
return |
|
|
|
|
console.log( sessionStorage.getItem("3dSceneData")); |
|
|
|
|
if(JSON.parse(sessionStorage.getItem('isGasStation'))){ |
|
|
|
|
let a=JSON.parse(sessionStorage.getItem("3dSceneData")) |
|
|
|
|
if(!a.hasBuildingInfo && item.url == "/plan/petrolStation"){ |
|
|
|
|
this.message.info("当前油站未开通!"); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (item.name == this.selectedItem) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|