ทุนการศึกษา=> fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-31 14:50:53 +07:00
parent a9732db31f
commit b1f7d9ece7
2 changed files with 21 additions and 19 deletions

View file

@ -172,6 +172,7 @@ function fetchDataDetail(id: string) {
.then((res) => {
const data: DataSholarship = res.data.result;
console.log(data);
formBody.profileId = data.profileId;
formBody.rank = data.rank;
formBody.prefix = data.prefix;
formBody.firstName = data.firstName;
@ -382,7 +383,7 @@ function onClickUpdateStatus(type: string) {
/**
* update date
* @param startDate นทเร
* @param startDate นทเร
* @param endDate นทนส
* @param toDo true/false
*/
@ -483,25 +484,25 @@ async function checkFileBackReceived(id: string) {
function downloadFileBackReceived() {
showLoader();
if (scholarshipId.value !== null && fileBackReceived.value !== null) {
http
.get(
config.API.fileByFile(
"ระบบพัฒนาบุคคล",
"ฟอร์มรายงานตัวกลับเข้ารับราชการ",
scholarshipId.value,
fileBackReceived.value
http
.get(
config.API.fileByFile(
"ระบบพัฒนาบุคคล",
"ฟอร์มรายงานตัวกลับเข้ารับราชการ",
scholarshipId.value,
fileBackReceived.value
)
)
)
.then((res) => {
const data = res.data.downloadUrl;
window.open(data, "_blank");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
.then((res) => {
const data = res.data.downloadUrl;
window.open(data, "_blank");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
});
}
}

View file

@ -9,6 +9,7 @@ interface ListSholarship {
}
interface DataSholarship {
profileId: string
rank: string; //ยศ
prefix: string; //คำนำหน้าชื่อ
firstName: string; //ชื่อ