Commit 85808c82 authored by d.arizona's avatar d.arizona

update

parent fa6bc23e
......@@ -75,7 +75,8 @@ export default class CorporateAnnualTarget extends Component {
// formulaYTDList: null,,
dataDelete: [],
dataReal: [],
buttonDraft: true
buttonDraft: true,
updateBy: ''
}
this.fileHandler = this.fileHandler.bind(this);
......@@ -83,10 +84,11 @@ export default class CorporateAnnualTarget extends Component {
componentDidMount() {
this.getItemHierarki()
this.getLatestUpdate()
console.log(this.props);
this.getKPIType(
this.getKPIType()
this.getMaxAch()
)
}
getItemHierarki() {
......@@ -628,6 +630,25 @@ export default class CorporateAnnualTarget extends Component {
})
}
getLatestUpdate() {
let payload = {
"report_id": this.props.report_id,
"revision": Number(this.props.revision),
"periode": this.props.periode,
"company_id": this.props.company.company_id,
"submission_id": this.props.submissionID
}
api.create().getLastestUpdateMB(payload).then(response => {
if (response.data) {
if (response.data.status === "success") {
this.setState({
updateBy: response.data.data.latest_update === null ? '-' : response.data.data.latest_update
})
}
}
})
}
render() {
let dataTable2 = this.state.dataTable
let dataDelete = this.state.dataDelete
......@@ -1952,6 +1973,7 @@ export default class CorporateAnnualTarget extends Component {
/>
</MuiThemeProvider>
</div>
<Typography style={{ fontSize: '11px', color: '#4b4b4b', marginTop: 20 }}>Last Updated by : {this.state.updateBy}</Typography>
</div>
<div className="grid grid-2x">
<div className="col-1">
......
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