ราชการฯที่ได้รับทุนการศึกษา => status
This commit is contained in:
parent
ec36ffe6ba
commit
9591eed2f8
3 changed files with 7 additions and 18 deletions
|
|
@ -216,7 +216,7 @@ function fetchDataDetail(id: string) {
|
|||
dataGuarantor.positionSide = data.guarantorPosExecutive
|
||||
? data.guarantorPosExecutive
|
||||
: "-";
|
||||
|
||||
isStatus.value = data.status;
|
||||
isGov.value = data.citizenId ? 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() {
|
||||
dialogConfirm($q, async () => {
|
||||
showLoader();
|
||||
|
|
@ -323,10 +312,10 @@ function onClickUpdateStatus(type: string) {
|
|||
showLoader();
|
||||
http
|
||||
.get(config.API.devScholarshipStatus(scholarshipId.value, type))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
isStatus.value = type;
|
||||
.then(() => {
|
||||
if (scholarshipId.value) {
|
||||
fetchDataDetail(scholarshipId.value);
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
@ -399,7 +388,6 @@ function upDate(data: DataPerson) {
|
|||
onMounted(() => {
|
||||
if (scholarshipId.value) {
|
||||
fetchDataDetail(scholarshipId.value);
|
||||
fetchStatus(scholarshipId.value);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue