|
|
|
@ -38,9 +38,11 @@ export class BuildingBasicInfosService {
|
|
|
|
|
postBuildingBasicInfos(name: string, data: any): Observable<any> { |
|
|
|
|
let params = { |
|
|
|
|
name: name, |
|
|
|
|
// content: JSON.stringify(data),
|
|
|
|
|
} |
|
|
|
|
return this.http.post<any>(this.baseUrl + this.c_post, JSON.stringify(data), { params }) |
|
|
|
|
let headers = { |
|
|
|
|
"Content-Type": "application/json" |
|
|
|
|
} |
|
|
|
|
return this.http.post<any>(this.baseUrl + this.c_post, `'${JSON.stringify(data)}'`, { headers,params }) |
|
|
|
|
.pipe( |
|
|
|
|
catchError((err) => this.handleError(err)) |
|
|
|
|
); |
|
|
|
|