Browse Source

update gantt for last_gantt, and hide tableDashboard

pull/2/head
bnu 2 years ago
parent
commit
39c9f2c175
  1. 7
      src/views/DashboardProject/ganttDashboard.js
  2. 4
      src/views/DashboardProject/index.js

7
src/views/DashboardProject/ganttDashboard.js

@ -2,12 +2,17 @@ import React, { useEffect, useMemo, useState } from 'react';
import Timeline from 'react-calendar-timeline'
// make sure you include the timeline stylesheet or the timeline will not be styled
import 'react-calendar-timeline/lib/Timeline.css'
import { useParams } from 'react-router-dom';
// import moment from 'moment';
// import { USER_VERSION_GANTT_SEARCH, BASE_SIMPRO_LUMEN } from '../../../const/ApiConst';
// import axios from "../../../const/interceptorApi"
const token = localStorage.getItem("token")
const url = `https://ospro-gantt.ospro.id/src/index.html?base_url=https://ospro-api.ospro.id/api&gantt_id=12&proyek_id=11&token=${token}&ro=0`
const Gantt = (props) => {
const { ID } = useParams();
const { GANTTID } = useParams();
const url = `https://ospro-gantt.ospro.id/src/index.html?base_url=https://ospro-api.ospro.id/api&gantt_id=${GANTTID}&proyek_id=${ID}&token=${token}&ro=0`
const RenderGantt = () => (
<iframe
id="frame-gantt"

4
src/views/DashboardProject/index.js

@ -211,10 +211,10 @@ const DashboardProject = () => {
<Row>
<Col span={19}>
<Gantt />
<div style={{ marginTop: 15 }}>
{/* <div style={{ marginTop: 15 }}>
<h6>Curva S</h6>
<TableDashboard />
</div>
</div> */}
</Col>
<Col span={5}>
<ChatDashboard />

Loading…
Cancel
Save