ราชการฯที่ได้รับทุนการศึกษา => status
This commit is contained in:
parent
ec36ffe6ba
commit
9591eed2f8
3 changed files with 7 additions and 18 deletions
|
|
@ -21,7 +21,7 @@ export default {
|
||||||
devScholarship,
|
devScholarship,
|
||||||
devScholarshipByid: (id: string) => `${devScholarship}/${id}`,
|
devScholarshipByid: (id: string) => `${devScholarship}/${id}`,
|
||||||
devScholarshipStatus: (id: string, status: string) =>
|
devScholarshipStatus: (id: string, status: string) =>
|
||||||
`${devScholarship}/${id}/${status}`,
|
`${devScholarship}/status/${id}/${status}`,
|
||||||
|
|
||||||
/** download File */
|
/** download File */
|
||||||
developmentReportMain: () => `${developmentReport}/main`,
|
developmentReportMain: () => `${developmentReport}/main`,
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ function fetchDataDetail(id: string) {
|
||||||
dataGuarantor.positionSide = data.guarantorPosExecutive
|
dataGuarantor.positionSide = data.guarantorPosExecutive
|
||||||
? data.guarantorPosExecutive
|
? data.guarantorPosExecutive
|
||||||
: "-";
|
: "-";
|
||||||
|
isStatus.value = data.status;
|
||||||
isGov.value = data.citizenId ? true : false;
|
isGov.value = data.citizenId ? true : false;
|
||||||
isGuarantor.value = data.guarantorCitizenId ? true : false;
|
isGuarantor.value = data.guarantorCitizenId ? true : false;
|
||||||
})
|
})
|
||||||
|
|
@ -228,17 +228,6 @@ function fetchDataDetail(id: string) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchStatus(id: string) {
|
|
||||||
// http
|
|
||||||
// .get(config.API.devScholarshipStatus(id,"GRADUATE"))
|
|
||||||
// .then((res) => {
|
|
||||||
// const data = res.data.result;
|
|
||||||
// console.log(data);
|
|
||||||
isStatus.value = "PENDING";
|
|
||||||
// })
|
|
||||||
// .catch((err) => {});
|
|
||||||
}
|
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -323,10 +312,10 @@ function onClickUpdateStatus(type: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.get(config.API.devScholarshipStatus(scholarshipId.value, type))
|
.get(config.API.devScholarshipStatus(scholarshipId.value, type))
|
||||||
.then((res) => {
|
.then(() => {
|
||||||
const data = res.data.result;
|
if (scholarshipId.value) {
|
||||||
console.log(data);
|
fetchDataDetail(scholarshipId.value);
|
||||||
isStatus.value = type;
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
@ -399,7 +388,6 @@ function upDate(data: DataPerson) {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (scholarshipId.value) {
|
if (scholarshipId.value) {
|
||||||
fetchDataDetail(scholarshipId.value);
|
fetchDataDetail(scholarshipId.value);
|
||||||
fetchStatus(scholarshipId.value);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ interface DataSholarship {
|
||||||
studyAbroadStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงานต่างประเทศ
|
studyAbroadStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงานต่างประเทศ
|
||||||
studyAbroadEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงานต่างประเทศ
|
studyAbroadEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงานต่างประเทศ
|
||||||
totalPeriod: string; //รวมระยะเวลาในการศึกษา/รวมระยะเวลาในการฝึกอบรม
|
totalPeriod: string; //รวมระยะเวลาในการศึกษา/รวมระยะเวลาในการฝึกอบรม
|
||||||
|
status: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type { DataSholarship, ListSholarship };
|
export type { DataSholarship, ListSholarship };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue