ระบบพัฒนาบุคลากร>>ทุนการศึกษา/ฝึกอบรม (ชื่อผู้ค้ำประกันไม่แสดง)
This commit is contained in:
parent
29d605a9e1
commit
c116daba58
2 changed files with 28 additions and 25 deletions
|
|
@ -1076,7 +1076,7 @@ onMounted(async () => {
|
||||||
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
<div class="col-4 text-grey">ชื่อ-นามสกุล</div>
|
||||||
<div class="col-8 text-weight-medium">
|
<div class="col-8 text-weight-medium">
|
||||||
{{
|
{{
|
||||||
dataGuarantor.firstName ? dataGuarantor.name : "-"
|
dataGuarantor.name ? dataGuarantor.name : "-"
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 text-grey">ตำแหน่ง</div>
|
<div class="col-4 text-grey">ตำแหน่ง</div>
|
||||||
|
|
|
||||||
|
|
@ -79,49 +79,52 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
const visibleColumns = ref<string[]>(["scholarshipYear", "scholarshipType"]);
|
const visibleColumns = ref<string[]>(["scholarshipYear", "scholarshipType"]);
|
||||||
|
|
||||||
/** ดึงข้อมูล */
|
/** ดึงข้อมูล */
|
||||||
function getData() {
|
async function getData() {
|
||||||
http
|
showLoader();
|
||||||
|
await http
|
||||||
.get(
|
.get(
|
||||||
config.API.developmentScholarship +
|
config.API.developmentScholarship +
|
||||||
`/user/${profilId.value}?year=${year.value}&type=${type.value}`
|
`/user/${profilId.value}?year=${year.value}&type=${type.value}`
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then(async (res) => {
|
||||||
rows.value = res.data.result;
|
rows.value = res.data.result;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
})
|
})
|
||||||
.finally(() => {});
|
.finally(() => {
|
||||||
|
hideLoader();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEdit(id: string) {
|
function onEdit(id: string) {
|
||||||
router.push(`/scholarship/${id}`);
|
router.push(`/scholarship/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
// watch(
|
||||||
() => currentPage.value,
|
// () => currentPage.value,
|
||||||
() => {
|
// () => {
|
||||||
rowsPerPage.value = pagination.value.rowsPerPage;
|
// rowsPerPage.value = pagination.value.rowsPerPage;
|
||||||
getData();
|
// getData();
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
|
|
||||||
watch(
|
// watch(
|
||||||
() => pagination.value.rowsPerPage,
|
// () => pagination.value.rowsPerPage,
|
||||||
() => {
|
// () => {
|
||||||
rowsPerPage.value = pagination.value.rowsPerPage;
|
// rowsPerPage.value = pagination.value.rowsPerPage;
|
||||||
currentPage.value = 1;
|
// currentPage.value = 1;
|
||||||
getData();
|
// getData();
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
|
|
||||||
function getProfileId() {
|
async function getProfileId() {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
await http
|
||||||
.get(config.API.profilePosition())
|
.get(config.API.profilePosition())
|
||||||
.then((res) => {
|
.then(async (res) => {
|
||||||
profilId.value = res.data.result.profileId;
|
profilId.value = res.data.result.profileId;
|
||||||
getData();
|
await getData();
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -147,7 +150,7 @@ function convertType(val: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getProfileId();
|
await getProfileId();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue