Browse Source

save update from server

pull/2/head
root 12 months ago
parent
commit
bc9b855b75
  1. BIN
      src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp
  2. 2
      src/views/SimproV2/CreatedProyek/DialogHierarchy.js
  3. 14
      src/views/SimproV2/CreatedProyek/ImportActivity/index.js
  4. 2
      src/views/SimproV2/CreatedProyek/index.js

BIN
src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp

Binary file not shown.

2
src/views/SimproV2/CreatedProyek/DialogHierarchy.js

@ -47,7 +47,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek
setLoading(true);
getdataHierarchy();
}
}, [saveHierarchy, idTask, openDialog, closeDialog, openDialogFormGantt])
}, [idTask, openDialog, closeDialog, openDialogFormGantt])
useEffect(() => {
if (!openDialog) {

14
src/views/SimproV2/CreatedProyek/ImportActivity/index.js

@ -9,13 +9,13 @@ import './table.css';
import { BASE_OSPRO, ASSIGN_HR_PROJECT_SEARCH } from '../../../../const/ApiConst';
import { Prompt } from 'react-router-dom';
//
const config = {
headers:
{
Authorization: `Bearer ${token}`,
"Content-type": `application/json`
}
};
//const config = {
// headers:
// {
// Authorization: `Bearer ${token}`,
// "Content-type": `application/json`
// }
//};
//const token = window.localStorage.getItem('token');
const token = localStorage.getItem("token");
const HEADER = {

2
src/views/SimproV2/CreatedProyek/index.js

@ -304,7 +304,7 @@ const CreatedProyek = ({ params, ...props }) => {
const getDataProyek = async () => {
let start = 0;
let hierarchy = [];
hierarchy.push(JSON.parse(localStorage.getItem("hierarchy")));
//hierarchy.push(JSON.parse(localStorage.getItem("hierarchy")));
if (currentPage !== 1 && currentPage > 1) {
start = currentPage * rowsPerPage - rowsPerPage;
}

Loading…
Cancel
Save