fix CurrentPage โครงสร้างอัตรากำลัง
This commit is contained in:
parent
136d22c7fc
commit
aa2a7a5f5d
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue