Commit 31649cc3 authored by r.kurnia's avatar r.kurnia

ui olpa cat

parent 16af3459
...@@ -225,6 +225,9 @@ export default class OutlookPA extends Component { ...@@ -225,6 +225,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,
...@@ -232,7 +235,7 @@ export default class OutlookPA extends Component { ...@@ -232,7 +235,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 }, () => {
...@@ -617,7 +620,7 @@ export default class OutlookPA extends Component { ...@@ -617,7 +620,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
}) })
} }
...@@ -1361,6 +1364,7 @@ export default class OutlookPA extends Component { ...@@ -1361,6 +1364,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