ทุนการศึกษา=> 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) => {
|
.then((res) => {
|
||||||
const data: DataSholarship = res.data.result;
|
const data: DataSholarship = res.data.result;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
formBody.profileId = data.profileId;
|
||||||
formBody.rank = data.rank;
|
formBody.rank = data.rank;
|
||||||
formBody.prefix = data.prefix;
|
formBody.prefix = data.prefix;
|
||||||
formBody.firstName = data.firstName;
|
formBody.firstName = data.firstName;
|
||||||
|
|
@ -382,7 +383,7 @@ function onClickUpdateStatus(type: string) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* update date
|
* update date
|
||||||
* @param startDate วันที่เริ่ม
|
* @param startDate วันที่เริ่ม
|
||||||
* @param endDate วันที่สิ้นสุด
|
* @param endDate วันที่สิ้นสุด
|
||||||
* @param toDo true/false
|
* @param toDo true/false
|
||||||
*/
|
*/
|
||||||
|
|
@ -483,25 +484,25 @@ async function checkFileBackReceived(id: string) {
|
||||||
function downloadFileBackReceived() {
|
function downloadFileBackReceived() {
|
||||||
showLoader();
|
showLoader();
|
||||||
if (scholarshipId.value !== null && fileBackReceived.value !== null) {
|
if (scholarshipId.value !== null && fileBackReceived.value !== null) {
|
||||||
http
|
http
|
||||||
.get(
|
.get(
|
||||||
config.API.fileByFile(
|
config.API.fileByFile(
|
||||||
"ระบบพัฒนาบุคคล",
|
"ระบบพัฒนาบุคคล",
|
||||||
"ฟอร์มรายงานตัวกลับเข้ารับราชการ",
|
"ฟอร์มรายงานตัวกลับเข้ารับราชการ",
|
||||||
scholarshipId.value,
|
scholarshipId.value,
|
||||||
fileBackReceived.value
|
fileBackReceived.value
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
.then((res) => {
|
||||||
.then((res) => {
|
const data = res.data.downloadUrl;
|
||||||
const data = res.data.downloadUrl;
|
window.open(data, "_blank");
|
||||||
window.open(data, "_blank");
|
})
|
||||||
})
|
.catch((e) => {
|
||||||
.catch((e) => {
|
messageError($q, e);
|
||||||
messageError($q, e);
|
})
|
||||||
})
|
.finally(async () => {
|
||||||
.finally(async () => {
|
hideLoader();
|
||||||
hideLoader();
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ interface ListSholarship {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DataSholarship {
|
interface DataSholarship {
|
||||||
|
profileId: string
|
||||||
rank: string; //ยศ
|
rank: string; //ยศ
|
||||||
prefix: string; //คำนำหน้าชื่อ
|
prefix: string; //คำนำหน้าชื่อ
|
||||||
firstName: string; //ชื่อ
|
firstName: string; //ชื่อ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue