filter ทะเบียนประวัติ
This commit is contained in:
parent
bd64e91628
commit
8db24538e0
4 changed files with 25 additions and 24 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue