dialog เพิ่ม ปุ่มดาวโหลด
This commit is contained in:
parent
fb6f358ed9
commit
9887bcb3b0
2 changed files with 22 additions and 9 deletions
|
|
@ -216,7 +216,7 @@ async function getListData() {
|
|||
function onDownloadFile(id: string) {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.file("IDP", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล", id))
|
||||
.get(config.API.file("IDP", "หลักฐาน", id))
|
||||
.then((res) => {
|
||||
if (res.data.length !== 0) {
|
||||
downloadUrl(id, res.data[0].fileName);
|
||||
|
|
@ -240,7 +240,7 @@ function downloadUrl(id: string, fileName: string) {
|
|||
.get(
|
||||
config.API.fileByFile(
|
||||
"IDP",
|
||||
"ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล",
|
||||
"หลักฐาน",
|
||||
id,
|
||||
fileName
|
||||
)
|
||||
|
|
@ -494,6 +494,7 @@ onMounted(async () => {
|
|||
:get-data="getListData"
|
||||
v-model:is-edit="isEdit"
|
||||
v-model:id-row="idRow"
|
||||
:on-download-file="onDownloadFile"
|
||||
/>
|
||||
</template>
|
||||
<style scoped lang="scss"></style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue