fix currentPage ===> จำนวนสิทธิ์และวันลาที่ใช้ไป
This commit is contained in:
parent
07338cdb63
commit
972bae6cd6
1 changed files with 6 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import { useQuasar } from "quasar";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import { checkPermission } from "@/utils/permissions";
|
import { checkPermission } from "@/utils/permissions";
|
||||||
|
import { updateCurrentPage } from "@/utils/function";
|
||||||
import { useCounterMixin } from "@/stores/mixin";
|
import { useCounterMixin } from "@/stores/mixin";
|
||||||
import { useLeaveHistoryDataStore } from "@/modules/09_leave/stores/LeaveHistoryStore";
|
import { useLeaveHistoryDataStore } from "@/modules/09_leave/stores/LeaveHistoryStore";
|
||||||
|
|
||||||
|
|
@ -186,6 +187,11 @@ function onDeleteLeaveBeginning(id: string) {
|
||||||
await http
|
await http
|
||||||
.delete(config.API.leaveBeginning + `/${id}`)
|
.delete(config.API.leaveBeginning + `/${id}`)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
formFilter.page = await updateCurrentPage(
|
||||||
|
formFilter.page,
|
||||||
|
maxPage.value,
|
||||||
|
rows.value.length
|
||||||
|
);
|
||||||
await fetchDataLeaveBeginning();
|
await fetchDataLeaveBeginning();
|
||||||
success($q, "ลบข้อมูลสำเร็จ");
|
success($q, "ลบข้อมูลสำเร็จ");
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue