Commit 50fa233f authored by Arfin Syadziy's avatar Arfin Syadziy

Merge branch 'dev/arfin' into 'ENV-DEPLOYMENT'

update issue score MR CAT

See merge request !1625
parents f5d21ced b4a8e681
...@@ -133,25 +133,29 @@ export default class CorporateAnnualTargetMR extends Component { ...@@ -133,25 +133,29 @@ export default class CorporateAnnualTargetMR extends Component {
} }
getParameterGroup() { getParameterGroup() {
this.setState({ loading: true }, () => {
api.create().getParameterByGroupName({ api.create().getParameterByGroupName({
"group_name": 'ACHIEVEMENT_KPI' "group_name": 'ACHIEVEMENT_KPI'
}).then((response) => { }).then((response) => {
console.log(response.data) console.log(response.data)
if (response.data) { if (response.data) {
this.setState({ parameterScore: response.data.data }) this.setState({ parameterScore: response.data.data, loading: false })
} }
}) })
})
} }
getParameterGroupPerfom() { getParameterGroupPerfom() {
this.setState({ loading: true }, () => {
api.create().getParameterByGroupName({ api.create().getParameterByGroupName({
"group_name": "PERFORMANCE_KPI" "group_name": "PERFORMANCE_KPI"
}).then((response) => { }).then((response) => {
console.log(response.data) console.log(response.data)
if (response.data) { if (response.data) {
this.setState({ parameterPerfom: response.data.data }) this.setState({ parameterPerfom: response.data.data, loading: false })
} }
}) })
})
} }
getLatestUpdate() { getLatestUpdate() {
...@@ -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