feat: add DOCX + PDF
This commit is contained in:
parent
76411d2ad8
commit
3a23b1c8b5
32 changed files with 12 additions and 2 deletions
BIN
public/documents/build-and-deploy.docx
Normal file
BIN
public/documents/build-and-deploy.docx
Normal file
Binary file not shown.
BIN
public/documents/build-and-deploy.pdf
Normal file
BIN
public/documents/build-and-deploy.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-10-user-scholarship.docx
Normal file
BIN
public/documents/chapter-10-user-scholarship.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-10-user-scholarship.pdf
Normal file
BIN
public/documents/chapter-10-user-scholarship.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-11-user-retire.docx
Normal file
BIN
public/documents/chapter-11-user-retire.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-11-user-retire.pdf
Normal file
BIN
public/documents/chapter-11-user-retire.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-15-admin-leave.docx
Normal file
BIN
public/documents/chapter-15-admin-leave.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-15-admin-leave.pdf
Normal file
BIN
public/documents/chapter-15-admin-leave.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-19-admin-perf-evaluation.docx
Normal file
BIN
public/documents/chapter-19-admin-perf-evaluation.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-19-admin-perf-evaluation.pdf
Normal file
BIN
public/documents/chapter-19-admin-perf-evaluation.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-2-user-registry.docx
Normal file
BIN
public/documents/chapter-2-user-registry.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-2-user-registry.pdf
Normal file
BIN
public/documents/chapter-2-user-registry.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-3-user-evaluate.docx
Normal file
BIN
public/documents/chapter-3-user-evaluate.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-3-user-evaluate.pdf
Normal file
BIN
public/documents/chapter-3-user-evaluate.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-4-user-leave.docx
Normal file
BIN
public/documents/chapter-4-user-leave.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-4-user-leave.pdf
Normal file
BIN
public/documents/chapter-4-user-leave.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-5-admin-acting.docx
Normal file
BIN
public/documents/chapter-5-admin-acting.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-5-admin-acting.pdf
Normal file
BIN
public/documents/chapter-5-admin-acting.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-5-user-portfolio.docx
Normal file
BIN
public/documents/chapter-5-user-portfolio.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-5-user-portfolio.pdf
Normal file
BIN
public/documents/chapter-5-user-portfolio.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-6-admin-position-employee.docx
Normal file
BIN
public/documents/chapter-6-admin-position-employee.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-6-admin-position-employee.pdf
Normal file
BIN
public/documents/chapter-6-admin-position-employee.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-6-user-transfer.docx
Normal file
BIN
public/documents/chapter-6-user-transfer.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-6-user-transfer.pdf
Normal file
BIN
public/documents/chapter-6-user-transfer.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-7-user-appeal-complain.docx
Normal file
BIN
public/documents/chapter-7-user-appeal-complain.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-7-user-appeal-complain.pdf
Normal file
BIN
public/documents/chapter-7-user-appeal-complain.pdf
Normal file
Binary file not shown.
BIN
public/documents/chapter-9-user-KPI-evaluator.docx
Normal file
BIN
public/documents/chapter-9-user-KPI-evaluator.docx
Normal file
Binary file not shown.
BIN
public/documents/chapter-9-user-KPI-evaluator.pdf
Normal file
BIN
public/documents/chapter-9-user-KPI-evaluator.pdf
Normal file
Binary file not shown.
BIN
public/documents/debug.docx
Normal file
BIN
public/documents/debug.docx
Normal file
Binary file not shown.
BIN
public/documents/debug.pdf
Normal file
BIN
public/documents/debug.pdf
Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
|
|
@ -81,9 +81,19 @@ onMounted(async () => {
|
|||
|
||||
const downloadManual = () => {
|
||||
const fileName = route.fullPath.split("/").pop();
|
||||
const pdfUrl = window.location.href.replace("manual/", "documents/") + ".pdf";
|
||||
const origin = window.location.origin;
|
||||
const pathname = window.location.pathname;
|
||||
const url = ref<string>("");
|
||||
if (pathname.includes("manual")) {
|
||||
const pdfUrl = origin + pathname.replace("manual", "documents") + ".pdf";
|
||||
url.value = pdfUrl;
|
||||
} else {
|
||||
const pdfUrl = origin + "/documents" + pathname + ".pdf";
|
||||
url.value = pdfUrl;
|
||||
}
|
||||
|
||||
const link = document.createElement("a");
|
||||
link.href = pdfUrl;
|
||||
link.href = url.value;
|
||||
link.download = fileName ?? ""; // ชื่อไฟล์ที่ต้องการดาวน์โหลด
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue