|
|
|
@ -75,6 +75,7 @@ export class OilStationListComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
look(item) { |
|
|
|
|
console.log(item) |
|
|
|
|
let gastionobj = { |
|
|
|
|
organization: { |
|
|
|
|
displayName: item.stationName, |
|
|
|
@ -88,32 +89,29 @@ export class OilStationListComponent implements OnInit {
|
|
|
|
|
name: 'oilstation' |
|
|
|
|
} |
|
|
|
|
this.navChangeService.sendMessage(obj);//发布一条消息
|
|
|
|
|
if (!item.hasBuildingInfo) { |
|
|
|
|
this.modal.create({ |
|
|
|
|
nzContent: GasBaseInfoComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 700, |
|
|
|
|
nzBodyStyle: { |
|
|
|
|
'border': '1px solid #91CCFF', |
|
|
|
|
'border-radius': '0px', |
|
|
|
|
'padding': '7px', |
|
|
|
|
'box-shadow': '0 0 8px 0 #fff', |
|
|
|
|
'background-image': 'linear-gradient(#003665, #000f25)' |
|
|
|
|
}, |
|
|
|
|
nzStyle: { |
|
|
|
|
'top': '50px', |
|
|
|
|
}, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: { organizationId: (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization.id } |
|
|
|
|
}, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzClosable: false, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let params = { organizationUnitId: item.organizationUnitId } |
|
|
|
|
this.http.get('/api/services/app/GasStation/Get', { params: params }).subscribe((data: any) => { |
|
|
|
|
if (!data.result.hasBuildingInfo) { |
|
|
|
|
this.modal.create({ |
|
|
|
|
nzContent: GasBaseInfoComponent, |
|
|
|
|
nzViewContainerRef: this.viewContainerRef, |
|
|
|
|
nzWidth: 700, |
|
|
|
|
nzBodyStyle: { |
|
|
|
|
'border': '1px solid #91CCFF', |
|
|
|
|
'border-radius': '0px', |
|
|
|
|
'padding': '7px', |
|
|
|
|
'box-shadow': '0 0 8px 0 #fff', |
|
|
|
|
'background-image': 'linear-gradient(#003665, #000f25)' |
|
|
|
|
}, |
|
|
|
|
nzStyle: { |
|
|
|
|
'top': '50px', |
|
|
|
|
}, |
|
|
|
|
nzComponentParams: { |
|
|
|
|
data: { organizationId: (JSON.parse(sessionStorage.getItem('userdataOfgasstation'))).organization.id } |
|
|
|
|
}, |
|
|
|
|
nzFooter: null, |
|
|
|
|
nzClosable: false, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tableSpin: boolean |
|
|
|
|