fix CurrentPage โครงสร้างอัตรากำลัง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-11 09:33:55 +07:00
parent 136d22c7fc
commit aa2a7a5f5d

View file

@ -6,6 +6,7 @@ import config from "@/app.config";
import http from "@/plugins/http";
import genreport from "@/plugins/genreportxlsx";
import { checkPermission } from "@/utils/permissions";
import { updateCurrentPage } from "@/utils/function";
import { useOrganizational } from "@/modules/02_organization/store/organizational";
import { useCounterMixin } from "@/stores/mixin";
@ -322,6 +323,11 @@ function onClickDelete(id: string) {
await http
.delete(config.API.orgPosMasterById(id))
.then(async () => {
reqMaster.value.page = await updateCurrentPage(
reqMaster.value.page,
totalPage.value,
posMaster.value.length
);
await Promise.all([
props.fetchDataTable?.(
reqMaster.value.id,