fix bug คำร้องขอแก้ไขทะเบียนประวัติ tab IDP ดาวโหลดเอกสารหลักฐาน
This commit is contained in:
parent
48c6a9e11d
commit
ec8dc22406
1 changed files with 3 additions and 9 deletions
|
|
@ -226,13 +226,7 @@ function onclickEdit(id: string) {
|
|||
function onDownloadFile(id: string) {
|
||||
showLoader();
|
||||
http
|
||||
.get(
|
||||
config.API.file(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
|
||||
id
|
||||
)
|
||||
)
|
||||
.get(config.API.file("IDP", "ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล", id))
|
||||
.then(async (res) => {
|
||||
if (res.data.length !== 0) {
|
||||
await downloadUrl(id, res.data[0].fileName);
|
||||
|
|
@ -255,8 +249,8 @@ async function downloadUrl(id: string, fileName: string) {
|
|||
await http
|
||||
.get(
|
||||
config.API.fileByFile(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานคำร้องขอแก้ไขข้อมูล",
|
||||
"IDP",
|
||||
"ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล",
|
||||
id,
|
||||
fileName
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue