ประกาศผล => fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-16 13:08:40 +07:00
parent 45a06402fe
commit 2ebcb1961c
3 changed files with 11 additions and 14 deletions

View file

@ -259,7 +259,7 @@ function filterSelector(val: string, update: Function, type: string) {
switch (type) {
case "typereport":
update(() => {
typeReport.value = "";
typeReport.value = val ? "" : typeReport.value;
listReport.value = listReportMain.value.filter(
(v: DataOption) => v.name.toLowerCase().indexOf(val) > -1
);
@ -267,7 +267,7 @@ function filterSelector(val: string, update: Function, type: string) {
break;
case "organization":
update(() => {
organization.value = "";
organization.value = val ? "" : organization.value;
organizationOps.value = organizationOpsMain.value.filter(
(v: DataOption) => v.name.toLowerCase().indexOf(val) > -1
);