Commit b4a8e681 authored by syadziy's avatar syadziy

update issue score MR CAT

parent 99c8d08f
...@@ -133,24 +133,28 @@ export default class CorporateAnnualTargetMR extends Component { ...@@ -133,24 +133,28 @@ export default class CorporateAnnualTargetMR extends Component {
} }
getParameterGroup() { getParameterGroup() {
api.create().getParameterByGroupName({ this.setState({ loading: true }, () => {
"group_name": 'ACHIEVEMENT_KPI' api.create().getParameterByGroupName({
}).then((response) => { "group_name": 'ACHIEVEMENT_KPI'
console.log(response.data) }).then((response) => {
if (response.data) { console.log(response.data)
this.setState({ parameterScore: response.data.data }) if (response.data) {
} this.setState({ parameterScore: response.data.data, loading: false })
}
})
}) })
} }
getParameterGroupPerfom() { getParameterGroupPerfom() {
api.create().getParameterByGroupName({ this.setState({ loading: true }, () => {
"group_name": "PERFORMANCE_KPI" api.create().getParameterByGroupName({
}).then((response) => { "group_name": "PERFORMANCE_KPI"
console.log(response.data) }).then((response) => {
if (response.data) { console.log(response.data)
this.setState({ parameterPerfom: response.data.data }) if (response.data) {
} this.setState({ parameterPerfom: response.data.data, loading: false })
}
})
}) })
} }
...@@ -582,7 +586,9 @@ export default class CorporateAnnualTargetMR extends Component { ...@@ -582,7 +586,9 @@ export default class CorporateAnnualTargetMR extends Component {
getOptionLabel: (option) => titleCase(option.value), getOptionLabel: (option) => titleCase(option.value),
}; };
// setTimeout(() => { // setTimeout(() => {
this.setState({ maxAchList: defaultProps }) this.setState({ maxAchList: defaultProps }, () => {
this.getItemHierarki()
})
// }, 300); // }, 300);
} else { } else {
this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => { this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'warning' }, () => {
...@@ -601,7 +607,7 @@ export default class CorporateAnnualTargetMR extends Component { ...@@ -601,7 +607,7 @@ export default class CorporateAnnualTargetMR extends Component {
} else { } else {
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' }) this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
} }
this.getItemHierarki()
}) })
} }
......
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