fixing response blob
This commit is contained in:
parent
a27091a81a
commit
74f1540203
25 changed files with 138 additions and 119 deletions
|
|
@ -84,8 +84,8 @@ function getPDF(url: string, type: string) {
|
|||
hideLoader();
|
||||
}, 1500);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
})
|
||||
.finally(() => {
|
||||
store.log = 0;
|
||||
|
|
@ -138,7 +138,9 @@ onMounted(async () => {
|
|||
active-class="text-primary"
|
||||
@click="handleItemClick(2)"
|
||||
>
|
||||
<q-item-section class="q-py-sm">แบบแสดงรายละเอียดการเสนอผลงาน</q-item-section>
|
||||
<q-item-section class="q-py-sm"
|
||||
>แบบแสดงรายละเอียดการเสนอผลงาน</q-item-section
|
||||
>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
|
|
@ -147,7 +149,8 @@ onMounted(async () => {
|
|||
active-class="text-primary"
|
||||
@click="handleItemClick(3)"
|
||||
>
|
||||
<q-item-section class="q-py-sm">แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลเพื่อประกอบการคัดเลือกบุคคล
|
||||
<q-item-section class="q-py-sm"
|
||||
>แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลเพื่อประกอบการคัดเลือกบุคคล
|
||||
(เอกสารแบบ ก)</q-item-section
|
||||
>
|
||||
</q-item>
|
||||
|
|
@ -158,7 +161,9 @@ onMounted(async () => {
|
|||
active-class="text-primary"
|
||||
@click="handleItemClick(4)"
|
||||
>
|
||||
<q-item-section class="q-py-sm"> แบบประเมินคุณลักษณะบุคคล </q-item-section>
|
||||
<q-item-section class="q-py-sm">
|
||||
แบบประเมินคุณลักษณะบุคคล
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
|
|
@ -178,7 +183,9 @@ onMounted(async () => {
|
|||
active-class="text-primary"
|
||||
@click="handleItemClick(6)"
|
||||
>
|
||||
<q-item-section class="q-py-sm"> ผลงานที่จะส่งประเมิน (เอกสารหมายเลข 11) </q-item-section>
|
||||
<q-item-section class="q-py-sm">
|
||||
ผลงานที่จะส่งประเมิน (เอกสารหมายเลข 11)
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -159,7 +159,9 @@ async function getPDF(url: string, type: string, fileName: string) {
|
|||
a.download = fileName;
|
||||
a.click();
|
||||
})
|
||||
.catch((e) => {})
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
})
|
||||
.finally(() => {});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -86,8 +86,8 @@ function getPDF(url: string, type: string) {
|
|||
hideLoader();
|
||||
}, 1500);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
.catch(async (e) => {
|
||||
messageError($q, JSON.parse(await e.response.data.text()));
|
||||
})
|
||||
.finally(() => {
|
||||
store.log = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue