fix รายชื่อผู้สอบ ออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-07 15:31:40 +07:00
parent 23dbf79067
commit be7557abb5
2 changed files with 17 additions and 6 deletions

View file

@ -188,11 +188,19 @@ function saveOrder() {
}
/** ฟังก์ชั่นสำหรับ filter รายการข้อมูลคนตามประเภทคำสั่งที่เลือก */
function filterSelectOrder() {
function filterSelectOrder(val: string) {
const data = props.rows ? props.rows : [];
selected.value = [];
rows.value = data;
rowsData.value = data;
if (val === "C-PM-01" || val === "C-PM-02") {
rows.value = rowsData.value = data;
} else {
rows.value = rowsData.value = data.filter(
(e: any) => e?.bmaOfficerCheck === "OFFICER"
);
}
onSearch();
}
/** ปิด Modal และล้างค่าที่เลือก */
@ -248,7 +256,7 @@ watch(
<template>
<q-dialog v-model="modal" persistent>
<q-card style="width: 1200px; max-width: 80vw">
<q-card style="min-width: 80%">
<DialogHeader :tittle="'ส่งไปออกคำสั่ง'" :close="closeModal" />
<q-separator />
<q-card-section>