Browse Source

update filter by company

pull/1/head
farhantock 1 year ago
parent
commit
5c4c75fe6c
  1. 12
      src/views/Dashboard/DashboardProjectCarousell.js

12
src/views/Dashboard/DashboardProjectCarousell.js

@ -70,7 +70,15 @@ const center = {
};
const DashboardProject = (args) => {
const token = localStorage.getItem("token");
let role_id = '', user_id = '', proyek_id = '', isLogin = '', token = '', company_id = 0, all_project = '', hierarchy = [];
role_id = localStorage.getItem("role_id");
proyek_id = localStorage.getItem("proyek_id");
user_id = localStorage.getItem("user_id");
token = localStorage.getItem("token");
isLogin = localStorage.getItem("isLogin");
company_id = localStorage.getItem('company_id');
all_project = localStorage.getItem('all_project');
hierarchy.push(JSON.parse(localStorage.getItem("hierarchy")));
const HEADER = {
headers: {
"Content-Type": "application/json",
@ -116,7 +124,7 @@ const DashboardProject = (args) => {
setIsReadyProjectDetail(false);
setIsReadySCurve(false)
setIsReadySCurve(false);
const URL = `${BASE_OSPRO}/api/project-carausell`;
const URL = `${BASE_OSPRO}/api/project-carausell/${company_id}/${all_project}/${hierarchy}`;
const result = await axios
.get(URL, HEADER)
.then((res) => res)

Loading…
Cancel
Save