Browse Source

project information

pull/1/head
khaidralirahman 8 months ago
parent
commit
9120cc187b
  1. 29
      src/views/SimproV2/CreatedProyek/index.js

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

@ -61,9 +61,6 @@ import {
IMAGE_GET_BY_ID,
IMAGE_DELETE,
} from "../../../const/ApiConst";
import {
formatThousand
} from "../../../const/CustomFunc";
import moment from "moment";
// import DialogFormResource from './DialogFormResource';
import DialogFormMaterial from "./DataRequestMaterial";
@ -72,6 +69,13 @@ import DialogDocument from "./DialogDocument";
import DialogInitDocument from "./DialogInitDocument";
import DialogGantt from "./DialogGantt";
import DialogHierarchy from "./DialogHierarchy";
import {
formatNumber,
formatRupiah,
formatThousand,
renderFormatRupiah,
checkActMenup,
} from "../../../const/CustomFunc";
// import DialogAsignHr from './AsignHrProject';
import AssignHrProject from "./AsignHrProject";
import AssignCustProject from "./AsignCustProject";
@ -80,7 +84,7 @@ import ViewProject from "./ViewProject";
import ReportAnalysis from "./ReportAnalysis";
import { Icon } from "@iconify/react";
// import SubProyekComp from './SubProyekComp';
import { Link, useHistory, withRouter } from "react-router-dom";
import { Link, useHistory, withRouter, useLocation } from "react-router-dom";
import { t } from "i18next";
const url = "";
@ -100,6 +104,7 @@ const CreatedProyek = ({ params, ...props }) => {
hierarchy = props.hierarchy;
user_name = props.user_name;
}
const location = useLocation();
const history = useHistory();
const HEADER = {
headers: {
@ -1727,10 +1732,17 @@ const CreatedProyek = ({ params, ...props }) => {
content={popupMenu(text, record)}
trigger="click"
>
{
checkActMenup(location.pathname, 'read') ?
<Button size="small" type="link" style={{ color: "green" }}>
<i className="fa fa-ellipsis-v"></i>
</Button>
:
null
}
</Popover>
{
checkActMenup(location.pathname, 'update') ?
<Popover
placement="rightTop"
title={text.nama}
@ -1752,6 +1764,9 @@ const CreatedProyek = ({ params, ...props }) => {
</Button>
)}
</Popover>
:
null
}
</>
),
},
@ -2106,12 +2121,18 @@ const CreatedProyek = ({ params, ...props }) => {
<Col>
{parseInt(role_id) == 44 ? null : ( // role kustomer
<Tooltip title="Add Project">
{
checkActMenup(location.pathname, 'create') ?
<Button
style={{ background: "#4caf50", color: "#fff" }}
onClick={() => handleOpenDialogProyek(0)}
>
<i className="fa fa-plus"></i>
</Button>
:
null
}
</Tooltip>
)}
<Tooltip title="Export">

Loading…
Cancel
Save