Commit bf95f386 authored by Rifka Kurnia's avatar Rifka Kurnia

Merge branch 'rifka' into 'master'

ui olpa cat

See merge request !1435
parents 19aa2c5b 3a855c6d
...@@ -226,6 +226,9 @@ export default class OutlookPA extends Component { ...@@ -226,6 +226,9 @@ export default class OutlookPA extends Component {
item.revision item.revision
] ]
}) })
dataTable.push([
5, "Corporate Annual Target", 0, "not-yet", 39, false, 0
])
let dataTableRevision = response.data.data.map((item, index) => { let dataTableRevision = response.data.data.map((item, index) => {
return [ return [
item.report_id, item.report_id,
...@@ -233,7 +236,7 @@ export default class OutlookPA extends Component { ...@@ -233,7 +236,7 @@ export default class OutlookPA extends Component {
"" ""
] ]
}) })
// console.log(dataTable); console.log(dataTable);
this.setState({ dataTable, loading: false, dataTableRevision, dataForRevision: response.data.data }) this.setState({ dataTable, loading: false, dataTableRevision, dataForRevision: response.data.data })
} else { } else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => { this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning', loading: false }, () => {
...@@ -618,7 +621,7 @@ export default class OutlookPA extends Component { ...@@ -618,7 +621,7 @@ export default class OutlookPA extends Component {
visibleBS: false, visibleBS: false,
visiblePL: false, visiblePL: false,
visibleTP: false, visibleTP: false,
visibleCF: true, visibleCF: false,
visibleCAT: true visibleCAT: true
}) })
} }
...@@ -1362,6 +1365,7 @@ export default class OutlookPA extends Component { ...@@ -1362,6 +1365,7 @@ export default class OutlookPA extends Component {
name: "Action", name: "Action",
options: { options: {
customBodyRender: (val, tableMeta) => { customBodyRender: (val, tableMeta) => {
console.log(tableMeta)
return ( return (
<div style={{ display: 'flex' }}> <div style={{ display: 'flex' }}>
<button <button
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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