Browse Source

Merge branch 'staging' of https://git.oslog.id/ordo/adw-frontend

pull/2/head
root 1 year ago
parent
commit
e6ceee595c
  1. 4
      src/views/Dashboard/DashboardBOD.js
  2. 14
      src/views/Dashboard/DashboardProject.js
  3. 13
      src/views/SimproV2/CreatedProyek/ReportAnalysis.js

4
src/views/Dashboard/DashboardBOD.js

@ -666,8 +666,8 @@ const DashboardBOD = () => {
label: "", label: "",
// data: [50, 120, 72, 60], // data: [50, 120, 72, 60],
data: PROJECT_VALUE_PER_DIVISION ? PROJECT_VALUE_PER_DIVISION.map((item, idx) => item.total).filter(value => value !== 0) : [], data: PROJECT_VALUE_PER_DIVISION ? PROJECT_VALUE_PER_DIVISION.map((item, idx) => item.total).filter(value => value !== 0) : [],
borderColor: ["#023E8A", "#C851B7", "#FD7034", "#3A0CA3", "#A36A16"], borderColor: PROJECT_VALUE_PER_DIVISION ? PROJECT_VALUE_PER_DIVISION.map((item, idx) => item.color) : [],
backgroundColor: ["#023E8A", "#C851B7", "#FD7034", "#3A0CA3", "#A36A16"], backgroundColor: PROJECT_VALUE_PER_DIVISION ? PROJECT_VALUE_PER_DIVISION.map((item, idx) => item.color) : [],
borderWidth: 2, borderWidth: 2,
borderSkipped: false borderSkipped: false
}, },

14
src/views/Dashboard/DashboardProject.js

@ -1018,7 +1018,7 @@ const DashboardProject = () => {
</Col> </Col>
</Row> </Row>
<Row> <Row>
<Col span={8}> <Col span={24}>
<div <div
style={{ style={{
border: "solid", border: "solid",
@ -1143,7 +1143,7 @@ const DashboardProject = () => {
</div> </div>
</div> </div>
</Col> </Col>
<Col span={16}> {/* <Col span={16}>
<div <div
style={{ style={{
border: "solid", border: "solid",
@ -1366,7 +1366,7 @@ const DashboardProject = () => {
</div> </div>
</div> </div>
</div> </div>
</Col> </Col> */}
</Row> </Row>
<div <div
style={{ style={{
@ -1553,7 +1553,7 @@ const DashboardProject = () => {
</Row> </Row>
</Col> </Col>
</Row> </Row>
<Row> {/* <Row>
<Col span={24}> <Col span={24}>
<div <div
style={{ style={{
@ -1565,12 +1565,12 @@ const DashboardProject = () => {
marginBottom: 5, marginBottom: 5,
marginRight: 2, marginRight: 2,
}} }}
> > */}
{/* <div style={{color: '#000000', textAlign: 'center', marginBottom: 10, fontWeight: 'bold', fontSize: 12}}>Health By Schedule</div> {/* <div style={{color: '#000000', textAlign: 'center', marginBottom: 10, fontWeight: 'bold', fontSize: 12}}>Health By Schedule</div>
<div style={{backgroundColor: '#52AC0B', color: '#FFFFFF', padding: 5, borderRadius: 10, marginBottom: 10}}> <div style={{backgroundColor: '#52AC0B', color: '#FFFFFF', padding: 5, borderRadius: 10, marginBottom: 10}}>
<div style={{textAlign: 'center', fontWeight: 500, fontSize: 12}}>On Budget</div> <div style={{textAlign: 'center', fontWeight: 500, fontSize: 12}}>On Budget</div>
</div> */} </div> */}
<Row> {/* <Row>
<Col span={12}>Total Invoice</Col> <Col span={12}>Total Invoice</Col>
<Col span={12} style={{ textAlign: "right" }}> <Col span={12} style={{ textAlign: "right" }}>
{isReadyIntegrationInvoice ? ( {isReadyIntegrationInvoice ? (
@ -1626,7 +1626,7 @@ const DashboardProject = () => {
</Row> </Row>
</div> </div>
</Col> </Col>
</Row> </Row> */}
<Row> <Row>
<Col span={24}> <Col span={24}>
<div <div

13
src/views/SimproV2/CreatedProyek/ReportAnalysis.js

@ -36,7 +36,10 @@ const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId }) =>
}; };
const columns = [ const columns = [
{title: "Activity Name", dataIndex: "name", key: "name"} {title: "Activity", dataIndex: "name", key: "name"},
{title: "Gantt", dataIndex: "name_version", key: "name_version"},
{title: "Assign HR", dataIndex: "user_name", key: "user_name"},
{title: "Progress (%)", dataIndex: "persentase_progress", key: "persentase_progress"},
] ]
const columnActivityToHr = [ const columnActivityToHr = [
@ -150,13 +153,19 @@ const ReportAnalysis = ({ openDialog, closeDialog, toggleDialog, projectId }) =>
value: search, value: search,
operator: "AND", operator: "AND",
}, },
{
name: "proyek_id",
logic_operator: "=",
value: projectId,
operator: "AND",
},
], ],
orders: { columns: ["id"], ascending: false }, orders: { columns: ["id"], ascending: false },
paging: { start: 0, length: -1 }, paging: { start: 0, length: -1 },
}; };
const result = await axios const result = await axios
.post(`${BASE_SIMPRO_LUMEN}/activity/search`, payload, HEADER) .post(`${BASE_SIMPRO_LUMEN}/activity/search-analysis`, payload, HEADER)
.then((res) => res) .then((res) => res)
.catch((error) => error.response); .catch((error) => error.response);

Loading…
Cancel
Save