KPI => ประกาศผล, report

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-15 17:05:33 +07:00
parent 4419b41a39
commit 823fe93528
8 changed files with 372 additions and 147 deletions

View file

@ -185,9 +185,6 @@ function fetchReport() {
.catch((err) => {
messageError($q, err);
hideLoader();
})
.finally(() => {
persanalId.value = "";
});
}
@ -236,13 +233,19 @@ function changOption(val: string) {
val === "KPI8" ||
val === "KPI9"
) {
persanalId.value = "";
if (round.value !== "" && organization.value !== "") {
persanalId.value = val === "KPI8" ? persanalId.value : "";
organization.value = val === "KPI8" ? "" : organization.value;
if (round.value && organization.value) {
fetchReport();
} else if (round.value && persanalId.value) {
fetchReport();
}
} else {
round.value = "";
organization.value = "";
if (persanalId.value) {
fetchReport();
}
}
}