fix bug kpi

This commit is contained in:
Warunee Tamkoo 2024-05-15 18:23:55 +07:00
parent 63611d0811
commit 1fa38897cf
7 changed files with 82 additions and 69 deletions

View file

@ -94,6 +94,10 @@ const formRound = reactive({
evaluatorId: "",
commanderId: "",
commanderHighId: "",
position: "",
posLevelName: "",
posTypeName: "",
posExecutiveName: "",
});
/** pagetion*/
@ -170,6 +174,27 @@ function changRound() {
function redirectViewDetail(id: string) {
store.tabMain = "1";
store.indicatorWeightTotal = 0;
store.indicatorWeight1Total = 0;
store.indicatorWeight2Total = 0;
store.indicatorPercentVal = 0;
store.indicatorScore = 0;
store.indicatorScoreVal = 0;
store.competencyScore = 0;
store.competencyScoreVal = 0;
store.devScore = 0;
store.devScoreVal = 0;
store.competencyDevScore = 0;
store.excusiveCompetencyScore = 0;
store.excusiveIndicator1PercentVal = 0;
store.excusiveIndicator1Weight = 0;
store.excusiveIndicator1ScoreVal = 0;
store.excusiveIndicator2Weight = 0;
store.excusiveIndicator2PercentVal = 0;
store.excusiveIndicator2ScoreVal = 0;
store.excusiveIndicatorScore = 0;
router.push(`/KPI/${id}`);
}
@ -194,6 +219,10 @@ function onSubmit() {
prefix: formRound.prefix,
firstName: formRound.firstName,
lastName: formRound.lastName,
// position: formRound.position,
// posLevelName: formRound.posLevelName,
// posTypeName: formRound.posTypeName,
// posExecutiveName: formRound.posExecutiveName,
evaluatorId: formRound.evaluatorId,
commanderId: formRound.commanderId == "" ? null : formRound.commanderId,
@ -227,6 +256,10 @@ function getProfile() {
formRound.prefix = data.prefix;
formRound.firstName = data.firstName;
formRound.lastName = data.lastName;
formRound.position = data.position;
formRound.posLevelName = data.posLevelName;
formRound.posTypeName = data.posTypeName;
formRound.posExecutiveName = data.posExecutiveName;
})
.catch((e) => {
messageError($q, e);