refactor(probation): calculate score4 score5
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m43s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-07-13 15:01:41 +07:00
parent 8272a2b291
commit 4dfc9bf4d6
2 changed files with 14 additions and 12 deletions

View file

@ -214,21 +214,22 @@ const percent_sum: any = computed(() => {
}); });
const score4 = computed(() => { const score4 = computed(() => {
return ( return (
(Number(orientation.value) + Number(orientation.value) +
Number(self_learning.value) + Number(self_learning.value) +
Number(training_seminar.value) + Number(training_seminar.value) +
Number(other_training.value)) / (isSelectionPartfour.value ? Number(other_training.value) : 0)
(isSelectionPartfour.value ? 4 : 3)
); );
}); });
const score5 = computed(() => { const score5 = computed(() => {
const total = const rawTotal =
(Number(orientation_percent.value) + (Number(orientation_percent.value) +
Number(self_learning_percent.value) + Number(self_learning_percent.value) +
Number(training_seminar_percent.value) + Number(training_seminar_percent.value) +
Number(other_training_percent.value)) / Number(other_training_percent.value)) /
(isSelectionPartfour.value ? 4 : 3); (isSelectionPartfour.value ? 4 : 3);
const total = Math.round(rawTotal);
develop_result.value = total > 60 ? 1 : 0; develop_result.value = total > 60 ? 1 : 0;
return total; return total;

View file

@ -241,21 +241,22 @@ const percent_sum: any = computed(() => {
}); });
const score4 = computed(() => { const score4 = computed(() => {
return ( return (
(Number(orientation.value) + Number(orientation.value) +
Number(self_learning.value) + Number(self_learning.value) +
Number(training_seminar.value) + Number(training_seminar.value) +
Number(other_training.value)) / (isSelectionPartfour.value ? Number(other_training.value) : 0)
(isSelectionPartfour.value ? 4 : 3)
); );
}); });
const score5 = computed(() => { const score5 = computed(() => {
const total = const rawTotal =
(Number(orientation_percent.value) + (Number(orientation_percent.value) +
Number(self_learning_percent.value) + Number(self_learning_percent.value) +
Number(training_seminar_percent.value) + Number(training_seminar_percent.value) +
Number(other_training_percent.value)) / Number(other_training_percent.value)) /
(isSelectionPartfour.value ? 4 : 3); (isSelectionPartfour.value ? 4 : 3);
const total = Math.round(rawTotal);
develop_result.value = total > 60 ? 1 : 0; develop_result.value = total > 60 ? 1 : 0;
return total; return total;