This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-05-15 13:18:21 +07:00
parent ae9e989a14
commit 97000fb503

View file

@ -32,7 +32,6 @@ const {
const rows = ref<FormProprsalsRound2[]>([]); //
const rowsData = ref<FormProprsalsRound2[]>([]); //
const filterKeyword = ref<string>(""); //
const filterRef = ref<HTMLInputElement | null>(null);
const columns = ref<QTableProps["columns"]>([
{
name: "period_name",
@ -103,9 +102,7 @@ const modalForm = ref<boolean>(false); //แสดงรายละเอีย
const actionType = ref<string>(""); // ,
const roundId = ref<string>(""); //id ,
/**
* Function เรยกรายการรอบการเสนอขอพระราชทานเครองราชอสรยาภรณ
*/
/** Function เรียกรายการรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์*/
async function fetchData() {
showLoader();
await http
@ -149,7 +146,7 @@ function clickDelete(id: string) {
.delete(config.API.RoundInsignia(id))
.then(async () => {
await fetchData();
await success($q, "ลบข้อมูลสำเร็จ");
success($q, "ลบข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
@ -160,16 +157,6 @@ function clickDelete(id: string) {
});
}
/**
* Function กำหนดค filterKeyword เปนคาวาง
*/
function resetFilter() {
filterKeyword.value = "";
if (filterRef.value) {
filterRef.value.focus();
}
}
/**
* function อมลรายละเอยดรอบการเสนอขอพระราชทานเครองราชอสรยาภรณ
* @param action ประเภท รายละเอยด,แกไข
@ -189,9 +176,7 @@ function onSearch() {
);
}
/**
* ทำงานเม Componenets กเรยกใชงาน
*/
/** ทำงานเมื่อ Componenets ถูกเรียกใช้งาน*/
onMounted(async () => {
await fetchData();
});
@ -201,6 +186,7 @@ onMounted(async () => {
<div class="toptitle text-dark col-12 row items-center">
รายการรอบการเสนอขอพระราชทานเครองราชอสรยาภรณ
</div>
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
<div class="row q-col-gutter-sm">
<div class="row col-12 q-col-gutter-sm">
@ -222,7 +208,6 @@ onMounted(async () => {
standout
dense
v-model="filterKeyword"
ref="filterRef"
outlined
placeholder="ค้นหา"
@keydown.enter="onSearch"