รายการโครงการ
This commit is contained in:
parent
62bb318858
commit
ec36ffe6ba
9 changed files with 211 additions and 38 deletions
|
|
@ -33,7 +33,7 @@ const title = ref<string>(route.params.id ? "แก้ไข" : "เพิ่ม
|
|||
const scholarshipId = ref<string | null>(
|
||||
route.params.id ? route.params.id.toLocaleString() : null
|
||||
);
|
||||
const isStatus = ref<string>();
|
||||
const isStatus = ref<string>("");
|
||||
const modalDialogGov = ref<boolean>(false);
|
||||
|
||||
const budgetSourceOp = ref<DataOption[]>([
|
||||
|
|
@ -229,7 +229,14 @@ function fetchDataDetail(id: string) {
|
|||
}
|
||||
|
||||
function fetchStatus(id: string) {
|
||||
isStatus.value = "PENDING";
|
||||
// http
|
||||
// .get(config.API.devScholarshipStatus(id,"GRADUATE"))
|
||||
// .then((res) => {
|
||||
// const data = res.data.result;
|
||||
// console.log(data);
|
||||
isStatus.value = "PENDING";
|
||||
// })
|
||||
// .catch((err) => {});
|
||||
}
|
||||
|
||||
function onSubmit() {
|
||||
|
|
@ -312,7 +319,22 @@ function changeStartDate(type: string) {
|
|||
|
||||
function onClickUpdateStatus(type: string) {
|
||||
dialogConfirm($q, () => {
|
||||
isStatus.value = type;
|
||||
if (scholarshipId.value) {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.devScholarshipStatus(scholarshipId.value, type))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
console.log(data);
|
||||
isStatus.value = type;
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue