เเก้ไข api insignia (file)

This commit is contained in:
AnandaTon 2023-08-11 11:13:14 +07:00
parent 5304e98617
commit bf80274f86
4 changed files with 20 additions and 12 deletions

View file

@ -319,6 +319,7 @@ const checkSave = async () => {
await editData(id.value);
} else {
await addData();
clickBack();
}
}
});

View file

@ -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