AW-803 Fix casing issue. Remove unused parms.
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
0ba553cc40
commit
05705afdfe
@ -1,5 +1,5 @@
|
|||||||
export interface ICodeListItem {
|
export interface ICodeListItem {
|
||||||
codelist: string;
|
codeList: string;
|
||||||
code: string;
|
code: string;
|
||||||
codeGroup?: string;
|
codeGroup?: string;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
@ -12,7 +12,7 @@ export interface ICodeListItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class CodeListItem implements ICodeListItem {
|
export class CodeListItem implements ICodeListItem {
|
||||||
public codelist: string;
|
public codeList: string;
|
||||||
public code: string;
|
public code: string;
|
||||||
public codeGroup?: string;
|
public codeGroup?: string;
|
||||||
public unit?: string;
|
public unit?: string;
|
||||||
|
@ -15,13 +15,11 @@ export class CodeListItemService {
|
|||||||
return this.appConfig.getConfig("apiEndPoint");
|
return this.appConfig.getConfig("apiEndPoint");
|
||||||
}
|
}
|
||||||
|
|
||||||
getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable<ICodeListItem[]> {
|
getCodeListItems(codelist: string[]): Observable<ICodeListItem[]> {
|
||||||
var params = new HttpParams();
|
var params = new HttpParams();
|
||||||
for (const cl of codelist) {
|
for (const cl of codelist) {
|
||||||
params = params.append('cl', cl);
|
params = params.append('cl', cl);
|
||||||
}
|
}
|
||||||
if (codegroup) params = params.append("g", codegroup);
|
|
||||||
if (dataFilter) params = params.append("df", dataFilter);
|
|
||||||
return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });
|
return this.httpClient.get<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user