no message
This commit is contained in:
parent
1b3218eade
commit
db8280d1bb
2 changed files with 11 additions and 15 deletions
|
|
@ -179,16 +179,6 @@ const getRequest = async (id: string) => {
|
|||
await fetchData();
|
||||
});
|
||||
};
|
||||
// filename: string
|
||||
const downloadFile = (response: any) => {
|
||||
const link = document.createElement("a");
|
||||
var fileName = "filename";
|
||||
link.href = window.URL.createObjectURL(new Blob([response.data]));
|
||||
link.setAttribute("download", fileName);
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
};
|
||||
|
||||
// ค้นหาในตาราง
|
||||
const filterKeyword = ref<string>("");
|
||||
|
|
@ -385,9 +375,8 @@ const paginationLabel = (start: string, end: string, total: string) => {
|
|||
round
|
||||
color="light-blue-8"
|
||||
icon="mdi-file-download"
|
||||
@click="downloadFile(props.row.period_doc)"
|
||||
:href="props.row.period_doc"
|
||||
>
|
||||
<!-- :href="props.row.period_doc" -->
|
||||
<q-tooltip>ดาวน์โหลดเอกสารประกอบ </q-tooltip>
|
||||
</q-btn>
|
||||
</q-td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue