อัพไฟล์ ฉบับเต็ม
This commit is contained in:
parent
3f6cfc93d8
commit
f457b5c9b9
4 changed files with 33 additions and 5 deletions
BIN
public/documents/manual-admin.pdf
Normal file
BIN
public/documents/manual-admin.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/documents/manual-user.pdf
Normal file
BIN
public/documents/manual-user.pdf
Normal file
Binary file not shown.
|
|
@ -101,9 +101,9 @@ const downloadManual = () => {
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
};
|
};
|
||||||
|
|
||||||
const downloadManualAll = () => {
|
const downloadManualAll = (title:string) => {
|
||||||
const fileName = "manual-all.pdf";
|
const fileName = `manual-${title}.pdf`;
|
||||||
const pdfUrl = window.location.origin + "/documents/manual-all.pdf";
|
const pdfUrl = window.location.origin + `/documents/manual-${title}.pdf`;
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = pdfUrl;
|
link.href = pdfUrl;
|
||||||
link.download = `${fileName}`; // ชื่อไฟล์ที่ต้องการดาวน์โหลด
|
link.download = `${fileName}`; // ชื่อไฟล์ที่ต้องการดาวน์โหลด
|
||||||
|
|
@ -190,7 +190,7 @@ function defaultOpen(index: number) {
|
||||||
clickable
|
clickable
|
||||||
class="row items-center no-wrap"
|
class="row items-center no-wrap"
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="downloadManualAll()"
|
@click="downloadManualAll('admin')"
|
||||||
>
|
>
|
||||||
<q-icon
|
<q-icon
|
||||||
color="red"
|
color="red"
|
||||||
|
|
@ -198,7 +198,35 @@ function defaultOpen(index: number) {
|
||||||
name="mdi-file-pdf"
|
name="mdi-file-pdf"
|
||||||
class="q-mr-md"
|
class="q-mr-md"
|
||||||
/>
|
/>
|
||||||
ดาวน์โหลดคู่มือทั้งหมด
|
ดาวน์โหลดคู่มือการใช้งานระบบแอดมิน (ฉบับเต็ม)
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
clickable
|
||||||
|
class="row items-center no-wrap"
|
||||||
|
v-close-popup
|
||||||
|
@click="downloadManualAll('staff')"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
color="red"
|
||||||
|
size="28px"
|
||||||
|
name="mdi-file-pdf"
|
||||||
|
class="q-mr-md"
|
||||||
|
/>
|
||||||
|
ดาวน์โหลดคู่มือการใช้งานระบบบริหารจัดการ (ฉบับเต็ม)
|
||||||
|
</q-item>
|
||||||
|
<q-item
|
||||||
|
clickable
|
||||||
|
class="row items-center no-wrap"
|
||||||
|
v-close-popup
|
||||||
|
@click="downloadManualAll('user')"
|
||||||
|
>
|
||||||
|
<q-icon
|
||||||
|
color="red"
|
||||||
|
size="28px"
|
||||||
|
name="mdi-file-pdf"
|
||||||
|
class="q-mr-md"
|
||||||
|
/>
|
||||||
|
ดาวน์โหลดคู่มือการใช้งานระบบผู้ใช้งานทั่วไป (ฉบับเต็ม)
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-menu>
|
</q-menu>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue