|
|
@ -12,6 +12,7 @@ export class GasBaseInfoComponent implements OnInit { |
|
|
|
constructor(private modal: NzModalRef, private http: HttpClient) { } |
|
|
|
constructor(private modal: NzModalRef, private http: HttpClient) { } |
|
|
|
|
|
|
|
|
|
|
|
@Input() data?: any; |
|
|
|
@Input() data?: any; |
|
|
|
|
|
|
|
@Input() url?: any; |
|
|
|
isDetails: boolean = false; //是否是详情
|
|
|
|
isDetails: boolean = false; //是否是详情
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
@ -27,8 +28,11 @@ export class GasBaseInfoComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
otherData |
|
|
|
otherData |
|
|
|
getBaseInfo() { |
|
|
|
getBaseInfo() { |
|
|
|
let params = { organizationUnitId: this.data.organizationId } |
|
|
|
let params |
|
|
|
this.http.get('/api/services/app/GasStation/Get', { params }).subscribe((data: any) => { |
|
|
|
let httpUrl |
|
|
|
|
|
|
|
this.url ? httpUrl = this.url : httpUrl = '/api/services/app/GasStation/Get' |
|
|
|
|
|
|
|
this.url ? params = { orgId: this.data.organizationId } : params = { organizationUnitId: this.data.organizationId } |
|
|
|
|
|
|
|
this.http.get(httpUrl, { params }).subscribe((data: any) => { |
|
|
|
data.result.govUnitDetail ? data.result.govUnitDetail = JSON.parse(data.result.govUnitDetail) : null; |
|
|
|
data.result.govUnitDetail ? data.result.govUnitDetail = JSON.parse(data.result.govUnitDetail) : null; |
|
|
|
this.baseInfo = data.result |
|
|
|
this.baseInfo = data.result |
|
|
|
this.baseInfo.otherData ? this.otherData = JSON.parse(this.baseInfo.otherData) : null |
|
|
|
this.baseInfo.otherData ? this.otherData = JSON.parse(this.baseInfo.otherData) : null |
|
|
|