แก้ ทั้งหมด ส่ง ""

This commit is contained in:
setthawutttty 2024-10-08 10:45:25 +07:00
parent ca5b49d16b
commit a503664b7b
3 changed files with 23 additions and 22 deletions

View file

@ -13,7 +13,7 @@ import type { QTableProps } from "quasar";
import type {
FormMainProbation,
FormMainProbation2,
OpfillterType,
OpfillterTypeSt,
} from "@/modules/05_placement/interface/request/Main";
import DialogHeader from "@/modules/04_registry/components/DialogHeader.vue";
@ -33,19 +33,14 @@ const filterRef2 = ref<any>(null);
const attrs = ref<any>(useAttrs());
const paging2 = ref<boolean>(true);
const fillterStatus = ref<any>([]);
const fillter = ref<number | null>(0);
const fillter = ref<any>('');
const filterKeyword = ref<string>("");
const filterKeyword2 = ref<string>("");
const rows = ref<FormMainProbation[]>([]);
const rows2 = ref<FormMainProbation2[]>([]);
const dataUpdate = ref<FormMainProbation[]>([]);
const Opfillter = ref<OpfillterType[]>([]);
const Opfillter2 = ref<OpfillterType[]>([
{
id: 0,
value: "ทั้งหมด",
},
]);
const Opfillter = ref<OpfillterTypeSt[]>([]);
const Opfillter2 = ref<OpfillterTypeSt[]>([]);
const formProbation = reactive({ keyword: "", pageSize: 10, page: 1 });
const maxPage = ref<number>(1);
@ -240,6 +235,7 @@ async function getpersonalList() {
fillterStatus.value = data;
dataUpdate.value = rows.value;
Opfillter.value = storeFn.optionStatusProbation;
Opfillter2.value = storeFn.optionStatusProbation;
totalList.value = Math.ceil(resTotal / pagination.value.rowsPerPage);
total.value = resTotal;
hideLoader();
@ -352,7 +348,7 @@ function filterFn(val: string, update: any) {
if (val == "") {
update(() => {
Opfillter2.value = Opfillter.value;
fillter.value = null;
fillter.value = undefined;
});
} else {
update(() => {