ทะเบียนประวัติ ==> ข้อมูลส่วนตัว, รายการคำร้องขอแก้ไขทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-02 18:09:51 +07:00
parent b9cd90d70a
commit b21a4f53ac
13 changed files with 64 additions and 85 deletions

View file

@ -129,7 +129,7 @@ function fetchListRequset() {
page: page.value,
pageSize: pageSize.value,
status: status.value,
keyword: keyword.value,
keyword: keyword.value.trim(),
},
}
)
@ -197,59 +197,6 @@ function updatePageSizePagination(newPagination: Pagination) {
pageSize.value = newPagination.rowsPerPage;
}
/**
* function หาชอไฟล
* @param id รายการยนคำรองขอแกไขขอม
*/
function onDownloadFile(id: string) {
showLoader();
http
.get(
config.API.file(
"ระบบทะเบียนประวัติ",
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
id
)
)
.then(async (res) => {
if (res.data.length !== 0) {
await downloadUrl(id, res.data[0].fileName);
} else {
hideLoader();
}
})
.catch((e) => {
messageError($q, e);
hideLoader();
});
}
/**
* function โหลดไฟล
* @param id รายการยนคำรองขอแกไขขอม
* @param fileName อไฟล
*/
async function downloadUrl(id: string, fileName: string) {
await http
.get(
config.API.fileByFile(
"ระบบทะเบียนประวัติ",
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
id,
fileName
)
)
.then((res) => {
window.open(res.data.downloadUrl, "_blank");
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
/**
* การเปลยนแปลงของ pageSize
* เมอมการเปลยนแปลงจำทำการ งชอมลรายการคำรองขอแกไขทะเบยนประวตามจำนวน pageSize
@ -281,6 +228,8 @@ onMounted(() => {
map-options
option-label="name"
option-value="id"
hide-selected
fill-input
:options="statusOption"
@update:model-value="updateStatusValue"
:clearable="status !== ''"
@ -301,13 +250,14 @@ onMounted(() => {
<q-input
v-model="keyword"
outlined
clearable
dense
label="ค้นหา"
style="min-width: 250px"
@keydown.enter="updateStatusValue()"
class="col-xs-12 col-sm-3 col-md-2"
>
<template v-slot:append>
<q-icon name="search" />
</template>
</q-input>
<q-select
@ -321,7 +271,6 @@ onMounted(() => {
map-options
:options="columns"
option-value="name"
class="col-xs-12 col-sm-3 col-md-2"
style="min-width: 140px"
/>
</div>