Commit 83fe25a2 authored by Riri Novita's avatar Riri Novita

oi

parent 81aff5b2
...@@ -186,7 +186,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -186,7 +186,7 @@ export default class OperatingIndicatorMR extends Component {
} }
// console.log(payload); // console.log(payload);
api.create().getHierarkiMontlyReportOI(payload).then(response => { api.create().getHierarkiMontlyReportOI(payload).then(response => {
// console.log(response); console.log(response);
let dataTable = [] let dataTable = []
let err = false let err = false
...@@ -282,7 +282,7 @@ export default class OperatingIndicatorMR extends Component { ...@@ -282,7 +282,7 @@ export default class OperatingIndicatorMR extends Component {
} }
}) })
} }
// console.log(dataTable); console.log(dataTable);
}) })
} }
......
...@@ -111,6 +111,7 @@ export default class OperatingIndicator extends Component { ...@@ -111,6 +111,7 @@ export default class OperatingIndicator extends Component {
"periode": this.state.periode.periode, "periode": this.state.periode.periode,
"report_type": "operating indicator", "report_type": "operating indicator",
} }
console.log(payload);
api.create().getAllOperatingInd(payload).then(response => { api.create().getAllOperatingInd(payload).then(response => {
console.log(response); console.log(response);
if (response.data) { if (response.data) {
...@@ -311,7 +312,7 @@ export default class OperatingIndicator extends Component { ...@@ -311,7 +312,7 @@ export default class OperatingIndicator extends Component {
}) })
} else if (String(item[1]).toLocaleLowerCase().includes("monthly report")) { } else if (String(item[1]).toLocaleLowerCase().includes("monthly report")) {
console.log(item[1]); console.log(item);
let month = String(item[1]).toLocaleLowerCase().includes('jan') ? 1 : let month = String(item[1]).toLocaleLowerCase().includes('jan') ? 1 :
String(item[1]).toLocaleLowerCase().includes('feb') ? 2 : String(item[1]).toLocaleLowerCase().includes('feb') ? 2 :
String(item[1]).toLocaleLowerCase().includes('mar') ? 3 : String(item[1]).toLocaleLowerCase().includes('mar') ? 3 :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment