ทุนการศึกษา=> fix bug
This commit is contained in:
parent
a9732db31f
commit
b1f7d9ece7
2 changed files with 21 additions and 19 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ interface ListSholarship {
|
|||
}
|
||||
|
||||
interface DataSholarship {
|
||||
profileId: string
|
||||
rank: string; //ยศ
|
||||
prefix: string; //คำนำหน้าชื่อ
|
||||
firstName: string; //ชื่อ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue