remove setTimeout
This commit is contained in:
parent
8a87f084c9
commit
8e28b14935
2 changed files with 5 additions and 15 deletions
|
|
@ -20,9 +20,7 @@ async function onSubmit(data: any) {
|
|||
.post(config.API.complaintAdd(), data)
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
setTimeout(() => {
|
||||
router.push(`/discipline/complaints/${res.data.result}`);
|
||||
}, 1200);
|
||||
router.push(`/discipline/complaints/${res.data.result}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
|
|
@ -335,18 +335,9 @@ onMounted(async () => {
|
|||
showLoader();
|
||||
await Promise.all([
|
||||
fetchDataSigner(),
|
||||
formTemplates.value.forEach((e) => {
|
||||
downloadFileList(e.fileName);
|
||||
}),
|
||||
|
||||
// downloadFileList(
|
||||
// "แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)"
|
||||
// ),
|
||||
// downloadFileList("บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)"),
|
||||
// downloadFileList("แบบประเมินผลงาน (เอกสารหมายเลข 16)"),
|
||||
// downloadFileList("แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)"),
|
||||
// downloadFileList("แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)"),
|
||||
// downloadFileList("แบบสรุปผลการประเมิน (เอกสารแบบ ง)"),
|
||||
Promise.all(
|
||||
formTemplates.value.map((e) => downloadFileList(e.fileName))
|
||||
),
|
||||
checkDocEdit(),
|
||||
]);
|
||||
} catch (error) {
|
||||
|
|
@ -355,6 +346,7 @@ onMounted(async () => {
|
|||
hideLoader();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue