แก้ data probation
This commit is contained in:
parent
c776d4e7f1
commit
7c63c3c32c
22 changed files with 167 additions and 118 deletions
|
|
@ -247,8 +247,8 @@ async function getpersonalList() {
|
|||
`?status=${fillter.value}&page=${pagination.value.page}&pageSize=${pagination.value.rowsPerPage}&keyword=${filterKeyword.value}`
|
||||
)
|
||||
.then(async (res) => {
|
||||
const data = await res.data.data.data;
|
||||
const resTotal = await res.data.data.total;
|
||||
const data = await res.data.result.data;
|
||||
const resTotal = await res.data.result.total;
|
||||
rows.value = data;
|
||||
fillterStatus.value = data;
|
||||
dataUpdate.value = rows.value;
|
||||
|
|
@ -378,7 +378,7 @@ async function clickClose() {
|
|||
function resetFilter() {
|
||||
filterKeyword.value = "";
|
||||
filterRef.value.focus();
|
||||
getSearchMain()
|
||||
getSearchMain();
|
||||
}
|
||||
|
||||
/** reset ฟิลเตอร์ ใน dialog */
|
||||
|
|
@ -435,7 +435,7 @@ function onSubmitAdd() {
|
|||
if (res) {
|
||||
closeAdd();
|
||||
hideLoader();
|
||||
router.push(`/probation/assign/${res.data.data}`);
|
||||
router.push(`/probation/assign/${res.data.result}`);
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -459,9 +459,9 @@ function closeAdd() {
|
|||
topic.value = "แต่งตั้งคณะกรรมการประเมินผลการทดลองปฏิบัติหน้าที่ราชการ";
|
||||
}
|
||||
|
||||
function getSearchMain(){
|
||||
pagination.value.page = 1
|
||||
getpersonalList()
|
||||
function getSearchMain() {
|
||||
pagination.value.page = 1;
|
||||
getpersonalList();
|
||||
}
|
||||
|
||||
watch([() => formProbation.page, () => formProbation.pageSize], () => {
|
||||
|
|
@ -471,7 +471,7 @@ watch([() => formProbation.page, () => formProbation.pageSize], () => {
|
|||
watch(
|
||||
() => pagination.value.rowsPerPage,
|
||||
async () => {
|
||||
getSearchMain()
|
||||
getSearchMain();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue