Changes in ProjectRepository api for getProjectInfraByProject
This commit is contained in:
parent
3693af3d00
commit
6928bbd309
@ -6,19 +6,19 @@ const ProjectRepository = {
|
||||
api.get(`/api/project/details/${projetid}`),
|
||||
|
||||
getProjectAllocation: (projectId, serviceId, organizationId, employeeStatus) => {
|
||||
let url = `/api/project/allocation/${projectId}`;
|
||||
let url = `/api/project/allocation/${projectId}`;
|
||||
|
||||
const params = [];
|
||||
if (organizationId) params.push(`organizationId=${organizationId}`);
|
||||
if (serviceId) params.push(`serviceId=${serviceId}`);
|
||||
if (employeeStatus !== undefined) params.push(`includeInactive=${employeeStatus}`);
|
||||
const params = [];
|
||||
if (organizationId) params.push(`organizationId=${organizationId}`);
|
||||
if (serviceId) params.push(`serviceId=${serviceId}`);
|
||||
if (employeeStatus !== undefined) params.push(`includeInactive=${employeeStatus}`);
|
||||
|
||||
if (params.length > 0) {
|
||||
url += `?${params.join("&")}`;
|
||||
}
|
||||
if (params.length > 0) {
|
||||
url += `?${params.join("&")}`;
|
||||
}
|
||||
|
||||
return api.get(url);
|
||||
},
|
||||
return api.get(url);
|
||||
},
|
||||
|
||||
|
||||
getEmployeesByProject: (projectId) =>
|
||||
@ -43,12 +43,13 @@ const ProjectRepository = {
|
||||
projectNameList: () => api.get("/api/project/list/basic"),
|
||||
|
||||
getProjectDetails: (id) => api.get(`/api/project/details/${id}`),
|
||||
|
||||
getProjectInfraByproject: (projectId, serviceId) => {
|
||||
let url = `/api/project/infra-details/${projectId}`;
|
||||
|
||||
if (serviceId) {
|
||||
url + `?serviceId=${serviceId}`;
|
||||
url = `${url}?serviceId=${serviceId}`;
|
||||
}
|
||||
|
||||
return api.get(url);
|
||||
},
|
||||
getProjectTasksByWorkArea: (workAreaId, serviceId) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user