diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index a88626e..26530b4 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -62,7 +62,7 @@ const DashboardBOD = () => { // project expenditure const getCompanyCashFlow = async () => { - const URL = `${BASE_OSPRO}/api/dashboard/get-company-cashflow` + const URL = `${BASE_OSPRO}/api/dashboard/get-company-cashflow/${moment().format('YYYY')}` const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) const content = "Get Project Expenditure."; @@ -251,7 +251,7 @@ const DashboardBOD = () => { } const getTotalProjectValuePerDivision = async () => { - const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-value-per-division` + const URL = `${BASE_OSPRO}/api/dashboard/get-total-project-value-per-division/${moment().format('YYYY')}` const result = await axios.get(URL, HEADER).then(res => res).catch(err => err.response) const content = "Get Project Value by Division"; diff --git a/src/views/Report/k3/DialogForm.js b/src/views/Report/k3/DialogForm.js index b6e5d2d..95640d7 100644 --- a/src/views/Report/k3/DialogForm.js +++ b/src/views/Report/k3/DialogForm.js @@ -1,7 +1,7 @@ import React, { Component } from 'react' import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; -import { Col, Row, Button, Form, FormGroup, Label, Input } from 'reactstrap'; -import { Image } from 'antd'; +import { Button, Form, FormGroup, Label, Input } from 'reactstrap'; +import { Image, Col, Row } from 'antd'; import 'antd/dist/antd.css'; import { BASE_SIMPRO_LUMEN_IMAGE } from '../../../const/ApiConst.js'; export default class DialogForm extends Component { @@ -43,12 +43,25 @@ export default class DialogForm extends Component { } renderForm = () => { + const { dataImage } = this.props; return( -