Commit 8278c551 authored by Riri Novita's avatar Riri Novita

salah didam

parent 4b29c39f
...@@ -101,12 +101,14 @@ export default class SubHolding extends Component { ...@@ -101,12 +101,14 @@ export default class SubHolding extends Component {
"periode": this.state.periode.periode, "periode": this.state.periode.periode,
} }
api.create().getFullApproveMonthly(payload).then((response) => { api.create().getFullApproveMonthly(payload).then((response) => {
console.log(payload);
console.log(response); console.log(response);
if (response.data) { if (response.data) {
if (response.data.status == "success") { if (response.data.status == "success") {
console.log(response.data.data);
let approveMonthly = let approveMonthly =
this.state.month.month_id == 1? this.state.month.month_id == 1?
response.data.data.january.is_approve : response.data.data.januari.is_approve :
this.state.month.month_id == 2? this.state.month.month_id == 2?
response.data.data.februari.is_approve : response.data.data.februari.is_approve :
this.state.month.month_id == 3? this.state.month.month_id == 3?
...@@ -3224,7 +3226,8 @@ export default class SubHolding extends Component { ...@@ -3224,7 +3226,8 @@ export default class SubHolding extends Component {
width={this.props.width} width={this.props.width}
height={this.props.height} height={this.props.height}
open={this.props.open} open={this.props.open}
approved={this.state.approveMB && this.state.approveMonthly} approvedMB={this.state.approveMB}
approveMonthly={this.state.approveMonthly}
type={this.state.report ? this.state.report.value : 1} type={this.state.report ? this.state.report.value : 1}
dataTable={this.state.dataTable} dataTable={this.state.dataTable}
periode={this.state.periode ? this.state.periode.periode : null} periode={this.state.periode ? this.state.periode.periode : null}
......
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