เเก้ไข api insignia (file)
This commit is contained in:
parent
5304e98617
commit
bf80274f86
4 changed files with 20 additions and 12 deletions
|
|
@ -319,6 +319,7 @@ const checkSave = async () => {
|
|||
await editData(id.value);
|
||||
} else {
|
||||
await addData();
|
||||
clickBack();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@
|
|||
flat
|
||||
round
|
||||
color="light-blue-8"
|
||||
@click.stop.prevent="clickProposals(props.row.id)"
|
||||
@click.stop.prevent="clickProposals(props.row.file)"
|
||||
icon="mdi-file-download"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดเอกสารประกอบ </q-tooltip>
|
||||
|
|
@ -341,6 +341,7 @@ const fetchData = async () => {
|
|||
endDate:
|
||||
e.period_end == null ? null : date2Thai(new Date(e.period_end)),
|
||||
status: e.period_status,
|
||||
file: e.period_doc,
|
||||
});
|
||||
});
|
||||
})
|
||||
|
|
@ -356,8 +357,10 @@ const clickEdit = (col: any) => {
|
|||
router.push(`/coin/round-add/${col.id}`);
|
||||
};
|
||||
|
||||
const clickProposals = (id: string) => {
|
||||
// window.open(config.API.exportDisablePassExamList(id));
|
||||
const clickProposals = (file: string) => {
|
||||
if (file !== null) {
|
||||
window.open(file);
|
||||
}
|
||||
};
|
||||
|
||||
// หัวตาราง2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue