filter ทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-20 13:33:26 +07:00
parent bd64e91628
commit 8db24538e0
4 changed files with 25 additions and 24 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, ref, reactive, computed, readonly } from "vue";
import { onMounted, ref, reactive, computed } from "vue";
import { useQuasar } from "quasar";
import { useRouter, useRoute } from "vue-router";
@ -80,8 +80,8 @@ async function fetchDataRequest() {
typeEmp.value == "employee" ? "-employee" : ""
) + `${requestId.value}`
)
.then((res) => {
const data = res.data.result;
.then(async (res) => {
const data = await res.data.result;
dataRequest.value = data;
formData.status = data.status;
@ -93,7 +93,7 @@ async function fetchDataRequest() {
isReadOnly.value = false;
}
onDownloadFile(requestId.value);
await onDownloadFile(requestId.value);
})
.catch((err) => {
messageError($q, err);
@ -161,7 +161,7 @@ const fileDownloadName = ref<string>("");
* function หาชอไฟล
* @param id รายการยนคำรองขอแกไขขอม
*/
function onDownloadFile(id: string) {
async function onDownloadFile(id: string) {
http
.get(
config.API.file(