From a8d794abe6028834f742a7a3c019863de320ad09 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 5 Sep 2024 14:14:15 +0700 Subject: [PATCH 1/6] Refactoring code module 01_metadata => 02_position --- .../components/position/01ListPosition.vue | 309 +++++----- .../components/position/02ListType.vue | 294 +++------- ...4ListExecutive.vue => 03ListExecutive.vue} | 104 ++-- .../components/position/03ListLevel.vue | 30 - .../components/position/05ListLevelDetail.vue | 544 ------------------ .../position/DialogAddExecutive.vue | 214 ------- .../position/DialogFormExecutive.vue | 175 ++++++ ...AddPosition.vue => DialogFormPosition.vue} | 368 ++++++------ .../components/position/ListLevel.vue | 485 ++++++++++++++++ .../interface/response/position/Main.ts | 15 + src/modules/01_metadata/router.ts | 2 +- .../01_metadata/stores/positionTypeStore.ts | 10 +- src/modules/01_metadata/views/02_position.vue | 16 +- src/views/Dashboard.vue | 29 +- src/views/MainLayout.vue | 29 +- 15 files changed, 1188 insertions(+), 1436 deletions(-) rename src/modules/01_metadata/components/position/{04ListExecutive.vue => 03ListExecutive.vue} (69%) delete mode 100644 src/modules/01_metadata/components/position/03ListLevel.vue delete mode 100644 src/modules/01_metadata/components/position/05ListLevelDetail.vue delete mode 100644 src/modules/01_metadata/components/position/DialogAddExecutive.vue create mode 100644 src/modules/01_metadata/components/position/DialogFormExecutive.vue rename src/modules/01_metadata/components/position/{DialogAddPosition.vue => DialogFormPosition.vue} (51%) create mode 100644 src/modules/01_metadata/components/position/ListLevel.vue create mode 100644 src/modules/01_metadata/interface/response/position/Main.ts diff --git a/src/modules/01_metadata/components/position/01ListPosition.vue b/src/modules/01_metadata/components/position/01ListPosition.vue index 94df8d65..8d058bd3 100644 --- a/src/modules/01_metadata/components/position/01ListPosition.vue +++ b/src/modules/01_metadata/components/position/01ListPosition.vue @@ -1,8 +1,10 @@ + diff --git a/src/modules/01_metadata/components/position/01ListPosition.vue b/src/modules/01_metadata/components/position/01_Position.vue similarity index 100% rename from src/modules/01_metadata/components/position/01ListPosition.vue rename to src/modules/01_metadata/components/position/01_Position.vue diff --git a/src/modules/01_metadata/components/position/02ListType.vue b/src/modules/01_metadata/components/position/02_Type.vue similarity index 100% rename from src/modules/01_metadata/components/position/02ListType.vue rename to src/modules/01_metadata/components/position/02_Type.vue diff --git a/src/modules/01_metadata/components/position/03ListExecutive.vue b/src/modules/01_metadata/components/position/03_Executive.vue similarity index 100% rename from src/modules/01_metadata/components/position/03ListExecutive.vue rename to src/modules/01_metadata/components/position/03_Executive.vue diff --git a/src/modules/01_metadata/components/position/DialogFormExecutive.vue b/src/modules/01_metadata/components/position/DialogFormExecutive.vue index 4b938ea0..7fdc9b52 100644 --- a/src/modules/01_metadata/components/position/DialogFormExecutive.vue +++ b/src/modules/01_metadata/components/position/DialogFormExecutive.vue @@ -35,7 +35,7 @@ const formExecutive = reactive({ /** * ยืนยันการบันทึกข้อมูลรายการตำแหน่งทางการบริหาร * - * ุ ถ้า isEdit เป็น false จะทำการเพิ่มข้อมูลรายการตำแหน่งทางการบริหาร ถ่้าไม่จะทำการแก้ไขข้อมูล + * ุ ถ้า isEdit เป็น false จะทำการเพิ่มข้อมูลรายการตำแหน่งทางการบริหาร ถ้าไม่จะทำการแก้ไขข้อมูล * เมื่อบันทึกข้อมูลเสร็จจะเรียก function props.getData() เพื่อดึงข้อมูลรายการตำแหน่งทางการบริหาร * */ diff --git a/src/modules/01_metadata/components/position/ListLevel.vue b/src/modules/01_metadata/components/position/TypeDetail.vue similarity index 100% rename from src/modules/01_metadata/components/position/ListLevel.vue rename to src/modules/01_metadata/components/position/TypeDetail.vue diff --git a/src/modules/01_metadata/interface/index/positionEmployee.ts b/src/modules/01_metadata/interface/index/positionEmployee.ts index b23a01a7..1a9dacfa 100644 --- a/src/modules/01_metadata/interface/index/positionEmployee.ts +++ b/src/modules/01_metadata/interface/index/positionEmployee.ts @@ -25,4 +25,18 @@ interface FormQuery { keyword: string; } -export type { ObjectGroupRef, ObjectLevelRef, ObjectPosRef, FormQuery }; +interface DataGroup { + id: string; + posLevelAuthority: string; + posLevelName: number; + posLevelRank: number; + posTypeName: string; +} + +export type { + ObjectGroupRef, + ObjectLevelRef, + ObjectPosRef, + FormQuery, + DataGroup, +}; diff --git a/src/modules/01_metadata/interface/response/positionEmployee/Main.ts b/src/modules/01_metadata/interface/response/positionEmployee/Main.ts index 64ed9d67..a763ff98 100644 --- a/src/modules/01_metadata/interface/response/positionEmployee/Main.ts +++ b/src/modules/01_metadata/interface/response/positionEmployee/Main.ts @@ -21,6 +21,7 @@ interface ResPossition { posLevelName: number; posTypeId: string; posTypeName: string; + posTypeShortName: string; } export type { ResGroup, ResLevel, ResPossition }; diff --git a/src/modules/01_metadata/router.ts b/src/modules/01_metadata/router.ts index c177ad07..e2b5655b 100644 --- a/src/modules/01_metadata/router.ts +++ b/src/modules/01_metadata/router.ts @@ -16,7 +16,7 @@ const personalSubDistrict = () => const positionPage = () => import("@/modules/01_metadata/views/02_position.vue"); //ข้อมูลตำแหน่งข้าราชการ ฯ const positionLevelPage = () => - import("@/modules/01_metadata/components/position/ListLevel.vue"); //รายการระดับของประเภทตำแหน่งทั่วไป + import("@/modules/01_metadata/components/position/TypeDetail.vue"); //รายการระดับของประเภทตำแหน่งทั่วไป /** * ข้อมูลตำแหน่งลูกจ้างประจำ @@ -24,7 +24,7 @@ const positionLevelPage = () => const positionEmployeePage = () => import("@/modules/01_metadata/views/03_positionEmployee.vue"); //ข้อมูลตำแหน่งลูกจ้างประจำ const positionEmployeeLevelPage = () => - import("@/modules/01_metadata/components/position-employee/03ListLevel.vue"); //รายการระดับชั้นงานบริการพื้นฐาน + import("@/modules/01_metadata/components/position-employee/GroupDetail.vue"); //รายการระดับชั้นงานบริการพื้นฐาน /** * ข้อมูลปฏิทินวันหยุด diff --git a/src/modules/01_metadata/views/01_personal.vue b/src/modules/01_metadata/views/01_personal.vue index c9d3f727..198ad7f1 100644 --- a/src/modules/01_metadata/views/01_personal.vue +++ b/src/modules/01_metadata/views/01_personal.vue @@ -5,14 +5,14 @@ import { usePersonalDataStore } from "@/modules/01_metadata/stores/personalStore import type { MainTabs } from "@/modules/01_metadata/interface/index/Main"; -import ListPrefix from "@/modules/01_metadata/components/personal/01ListPrefix.vue"; // คำนำหน้าชื่อ -import ListRank from "@/modules/01_metadata/components/personal/02ListRank.vue"; //ยศ -import ListGender from "@/modules/01_metadata/components/personal/03ListGender.vue"; // เพศ -import ListRelationship from "@/modules/01_metadata/components/personal/04ListRelationship.vue"; //สถานภาพ -import ListBloodGroup from "@/modules/01_metadata/components/personal/05ListBloodGroup.vue"; // กลุ่มเลือด -import ListReligion from "@/modules/01_metadata/components/personal/06ListReligion.vue"; // ศาสนา -import ListProvince from "@/modules/01_metadata/components/personal/07ListProvince.vue"; // จังหวัด -import ListEducation from "@/modules/01_metadata/components/personal/08ListEducationLevel.vue"; // ระดับการศึกษา +import ListPrefix from "@/modules/01_metadata/components/personal/01_Prefix.vue"; // คำนำหน้าชื่อ +import ListRank from "@/modules/01_metadata/components/personal/02_Rank.vue"; //ยศ +import ListGender from "@/modules/01_metadata/components/personal/03_Gender.vue"; // เพศ +import ListRelationship from "@/modules/01_metadata/components/personal/04_Relationship.vue"; //สถานภาพ +import ListBloodGroup from "@/modules/01_metadata/components/personal/05_BloodGroup.vue"; // กลุ่มเลือด +import ListReligion from "@/modules/01_metadata/components/personal/06_Religion.vue"; // ศาสนา +import ListProvince from "@/modules/01_metadata/components/personal/07_Province.vue"; // จังหวัด +import ListEducation from "@/modules/01_metadata/components/personal/08_EducationLevel.vue"; // ระดับการศึกษา const store = usePersonalDataStore(); diff --git a/src/modules/01_metadata/views/02_position.vue b/src/modules/01_metadata/views/02_position.vue index 2c4aa96e..50a81fe7 100644 --- a/src/modules/01_metadata/views/02_position.vue +++ b/src/modules/01_metadata/views/02_position.vue @@ -5,9 +5,9 @@ import { usePositionDataStore } from "../stores/positionListStore"; import type { MainTabs } from "@/modules/01_metadata/interface/index/Main"; -import ListPosition from "@/modules/01_metadata/components/position/01ListPosition.vue"; //ตำแหน่ง -import ListType from "@/modules/01_metadata/components/position/02ListType.vue"; // รายการประเภทตำแหน่ง -import ListExecutive from "@/modules/01_metadata/components/position/03ListExecutive.vue"; // ตำแหน่งทางการบริหาร +import ListPosition from "@/modules/01_metadata/components/position/01_Position.vue"; //ตำแหน่ง +import ListType from "@/modules/01_metadata/components/position/02_Type.vue"; // รายการประเภทตำแหน่ง +import ListExecutive from "@/modules/01_metadata/components/position/03_Executive.vue"; // ตำแหน่งทางการบริหาร const store = usePositionDataStore(); diff --git a/src/modules/01_metadata/views/03_positionEmployee.vue b/src/modules/01_metadata/views/03_positionEmployee.vue index 827697eb..a74555db 100644 --- a/src/modules/01_metadata/views/03_positionEmployee.vue +++ b/src/modules/01_metadata/views/03_positionEmployee.vue @@ -1,13 +1,20 @@ -div + + + + diff --git a/src/modules/02_users/interface/index/Main.ts b/src/modules/02_users/interface/index/Main.ts index fcb0b824..c58034f9 100644 --- a/src/modules/02_users/interface/index/Main.ts +++ b/src/modules/02_users/interface/index/Main.ts @@ -52,4 +52,51 @@ interface DataSystem { parentNode: string; } -export type { Pagination, ItemsMenu, DataOption, SystemList, DataSystem }; +interface DataTree { + ancestorDNA: string; + createdAt: string; + createdFullName: string; + createdUserId: "94ba986d-f871-46a2-be92-46c0cbf0bc56"; + id: string; + lastUpdateFullName: string; + lastUpdateUserId: string; + lastUpdatedAt: string; + orgRevisionId: string; + orgRootCode: string; + orgRootFax: string; + orgRootName: string; + orgRootOrder: number; + orgRootPhoneEx: string; + orgRootPhoneIn: string; + orgRootRank: string; + orgRootRankSub: string; + orgRootShortName: string; + responsibility: string; +} + +interface DataProfile { + avatar: string; + avatarName: string; + firstName: string; + id: string; + lastName: string; + org: string; + orgNew?: string; + orgRootId?: string; + posLevel: string; + posNo: string; + posType: string; + position: string; + prefix: string; + rank: string; +} + +export type { + Pagination, + ItemsMenu, + DataOption, + SystemList, + DataSystem, + DataTree, + DataProfile, +}; diff --git a/src/modules/02_users/interface/request/Main.ts b/src/modules/02_users/interface/request/Main.ts index fd5d53c1..d2130a48 100644 --- a/src/modules/02_users/interface/request/Main.ts +++ b/src/modules/02_users/interface/request/Main.ts @@ -27,4 +27,12 @@ interface FilterReqMaster { keyword: string; revisionId: string; } -export type { FormUser, FormRole, Roles, FilterReqMaster }; + +interface QueryProfile { + searchKeyword: string; + searchField: string; + page: number; + pageSize: number; + id: string | null; +} +export type { FormUser, FormRole, Roles, FilterReqMaster, QueryProfile }; diff --git a/src/modules/02_users/router.ts b/src/modules/02_users/router.ts index 384eefec..b92b7397 100644 --- a/src/modules/02_users/router.ts +++ b/src/modules/02_users/router.ts @@ -12,6 +12,10 @@ const ListsPage2Role = () => const PermissionPage = () => import("@/modules/02_users/views/permissionsView.vue"); +/** roleOrganization */ +const roleOrgview = () => + import("@/modules/02_users/views/roleOrganization.vue"); + export default [ { path: "/users", @@ -55,4 +59,13 @@ export default [ Role: ["SUPER_ADMIN", "ADMIN"], }, }, + + { + path: "/roles-organization", + name: "roleOrganization", + component: roleOrgview, + meta: { + Role: ["SUPER_ADMIN", "ADMIN"], + }, + }, ]; diff --git a/src/modules/02_users/stores/main.ts b/src/modules/02_users/stores/main.ts index b96ea3e0..a9d80f8a 100644 --- a/src/modules/02_users/stores/main.ts +++ b/src/modules/02_users/stores/main.ts @@ -1,5 +1,33 @@ import { defineStore } from "pinia"; +import { ref } from "vue"; -export const useDataStore = defineStore("storeData", () => { - return {}; +import type { DataOption } from "@/modules/02_users/interface/index/Main"; + +export const useDataStoreUser = defineStore("storeDataUser", () => { + const searchFieldOption = ref([ + { + name: "ชื่อ-นามสกุล", + id: "fullName", + }, + { + name: "เลขที่ตำแห่นง", + id: "posNo", + }, + + { + name: "ตำแหน่งในสายงาน", + id: "position", + }, + { + name: "ประเภทตำแหน่ง", + id: "postype", + }, + { + name: "ระดับตำแหน่ง", + id: "poslevel", + }, + ]); + return { + searchFieldOption, + }; }); diff --git a/src/modules/02_users/views/roleOrganization.vue b/src/modules/02_users/views/roleOrganization.vue new file mode 100644 index 00000000..a0035395 --- /dev/null +++ b/src/modules/02_users/views/roleOrganization.vue @@ -0,0 +1,418 @@ + + + + + From 09fdfe9f20d413fe3920e9db4edca37a3c287739 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 6 Sep 2024 16:30:07 +0700 Subject: [PATCH 5/6] =?UTF-8?q?=E0=B8=81=E0=B8=B3=E0=B8=AB=E0=B8=99?= =?UTF-8?q?=E0=B8=94=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=94=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=82?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RoleOrganization/DialogAddPerson.vue | 40 ++++++++--- .../02_users/views/roleOrganization.vue | 68 ++++++++++++++----- 2 files changed, 81 insertions(+), 27 deletions(-) diff --git a/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue b/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue index 6758d6ec..5db9d460 100644 --- a/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue +++ b/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue @@ -30,16 +30,15 @@ const props = defineProps({ }); const qurey = reactive({ - searchKeyword: "", - searchField: "fullName", - page: 1, - pageSize: 10, + searchKeyword: "", // คำค้นหา + searchField: "fullName", // field ที่ต้องการค้นหา + page: 1, // หน้า + pageSize: 10, // จำนวนที่ต้องการ }); -const selected = ref([]); -const rows = ref([]); -const total = ref(0); -const maxPage = ref(0); - +const selected = ref([]); //รายชื่อที่เลือก +const rows = ref([]); // ข้อมูลรายชื่อ +const total = ref(0); // จำนวนข้อมูลทั้งหมด +const maxPage = ref(0); // จำนวนหน้า const columns = ref([ { name: "fullName", @@ -83,6 +82,12 @@ const columns = ref([ }, ]); +/** + * ฟังก์ชันดึงข้อมูลรายชื่อ + * @param newPage โหลดหน้าแรก ถ้าเป็บ true โหลดหน้าแรก false ให้โหลดหน้าปัจจุบัน + * + * เก็บมูลรายชื่อไว่ใน rows.value + */ async function onSearchListPerson(newPage: boolean = false) { qurey.page = newPage ? 1 : qurey.page; selected.value = []; @@ -105,6 +110,11 @@ async function onSearchListPerson(newPage: boolean = false) { }); } +/** + * ฟังก์ชันยืนยันการเพิ่มราชื่อ + * + * เมื่อเพิ่มเสร็จจะดึงข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างตามหน่วยงาน + */ function onSubmitPerson() { dialogConfirm( $q, @@ -142,6 +152,11 @@ function updatePagination(newPagination: Pagination) { qurey.pageSize = newPagination.rowsPerPage; } +/** + * ฟังก์ชันปิด popup ราชชื่อ + * + * และกำหนดค่าของ qurey ไปเป็นค่า defult rows.value และ selected.value ไปเป็นค่าว่าง + */ function onClose() { modal.value = false; qurey.page = 1; @@ -152,6 +167,11 @@ function onClose() { selected.value = []; } +/** + * ดูการเปลี่ยนแปลงของ pageSize ใน queryBody + * + * เมื่อ pageSize มีการเปลี่ยนแปลงให้โหลดข้อมูลหน้าแรก + */ watch( () => qurey.pageSize, () => { @@ -165,7 +185,7 @@ watch( - +
([]); // ข้อมูลรายการโ const expanded = ref>([]); // เปิดรายการโครงสร้าง const orgId = ref(""); // id หน่วยงานที่เลือก -async function fatchOrgg() { +/** + * ฟังก์ชันดึงข้อมูลโครงสร้าง + * + * เก็บข้อมูลโครงสร้างไว้ใน nodeTree + */ +async function fatchOrg() { showLoader(); await http .get(config.API.permissionOrg) @@ -44,23 +49,34 @@ async function fatchOrgg() { }); } +/** + * ฟังก์ชันเลือกหน่วยงาน + * @param id หน่วยงานที่เลือก + * + * กำหนดค่าของ qureyBody ให้เป็นค่า defult และกำหนดค่าของ qureyBody.id เป็นหน่วยงานที่เลือก + * และดึงข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างในหน่วยงานที่เลือก + */ function selectedOrg(id: string) { orgId.value = id; qureyBody.id = id; + qureyBody.searchKeyword = ""; + qureyBody.searchField = "fullName"; + qureyBody.page = 1; + qureyBody.pageSize = 10; fetchListPerson(true); } /******* รายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง *******/ const qureyBody = reactive({ - searchKeyword: "", - searchField: "fullName", - page: 1, - pageSize: 10, - id: null, + searchKeyword: "", // คำค้นหา + searchField: "fullName", // field ที่ต้องการค้นหา + page: 1, // หน้า + pageSize: 10, // จำนวนที่ต้องการ + id: null, // หน่วยงานที่เลือก }); -const rows = ref([]); -const total = ref(0); -const maxPage = ref(0); +const rows = ref([]); // ข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง +const total = ref(0); // จำนวนข้อมูลทั้งหมด +const maxPage = ref(0); // จำนวนหน้า const columns = ref([ { name: "fullName", @@ -112,9 +128,14 @@ const columns = ref([ style: "font-size: 14px", }, ]); +const modalAdd = ref(false); // modal เพิ่มข้อมูลรายชื่อ -const modalAdd = ref(false); - +/** + * ฟังก์ชันดึงข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง + * @param newPage โหลดหน้าแรก ถ้าเป็บ true โหลดหน้าแรก false ให้โหลดหน้าปัจจุบัน + * + * เก็บมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างไว่ใน rows.value + */ async function fetchListPerson(newPage: boolean = false) { qureyBody.page = newPage ? 1 : qureyBody.page; showLoader(); @@ -122,8 +143,8 @@ async function fetchListPerson(newPage: boolean = false) { .post(config.API.permissionOrgProfile, qureyBody) .then(async (res) => { const data = await res.data.result; - maxPage.value = Math.ceil(data.total / qureyBody.pageSize); - total.value = data.total; + maxPage.value = Math.ceil(data.total / qureyBody.pageSize); // คำนวนหาจำนวนหน้า + total.value = data.total; // จำนวนรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง rows.value = data.data; }) .catch((err) => { @@ -134,19 +155,27 @@ async function fetchListPerson(newPage: boolean = false) { }); } +/** + * ฟังก์ชันยืนยันการลบรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง + * @param id รายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง + * + * ลบเสร็จจะโหลดข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง + */ function onDeletePerson(id: string) { dialogRemove($q, async () => { showLoader(); await http .delete(config.API.permissionOrg + `/${id}`) .then(async () => { + // ถ้า maxPage.value ไม่เท่ากับ 1 ให้ โหลดข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างหน้าปัจจุบัน if (maxPage.value !== 1) { + // ถ้ามีแค่หนึ่งแถวในหน้าปัจจุบัน ให้ลด page ลง 1 if (rows.value.length === 1) { qureyBody.page = qureyBody.page - 1; } - await fetchListPerson(false); + await fetchListPerson(false); // โหลดข้อมูลจากหน้าปัจจุบันโดยไม่รีเซ็ต } else { - await fetchListPerson(true); + await fetchListPerson(true); // โหลดข้อมูลหน้าแรก } success($q, "ลบข้อมูสำเร็จ"); }) @@ -167,6 +196,11 @@ function updatePagination(newPagination: Pagination) { qureyBody.pageSize = newPagination.rowsPerPage; } +/** + * ดูการเปลี่ยนแปลงของ pageSize ใน queryBody + * + * เมื่อ pageSize มีการเปลี่ยนแปลงให้โหลดข้อมูลหน้าแรก + */ watch( () => qureyBody.pageSize, () => { @@ -180,8 +214,8 @@ watch( */ onMounted(async () => { await Promise.all([ - fatchOrgg(), // ดึงข้อมูลโครงสร้าง - fetchListPerson(), + fatchOrg(), // ดึงข้อมูลโครงสร้าง + fetchListPerson(), // ดึงข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้าง ]); }); From de3a5d1aea25fc5d42e123a1413dd3a5cda678af Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 6 Sep 2024 16:32:19 +0700 Subject: [PATCH 6/6] fix bug --- src/modules/02_users/views/roleOrganization.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/02_users/views/roleOrganization.vue b/src/modules/02_users/views/roleOrganization.vue index 8e1bb8f4..f2d81aec 100644 --- a/src/modules/02_users/views/roleOrganization.vue +++ b/src/modules/02_users/views/roleOrganization.vue @@ -62,7 +62,6 @@ function selectedOrg(id: string) { qureyBody.searchKeyword = ""; qureyBody.searchField = "fullName"; qureyBody.page = 1; - qureyBody.pageSize = 10; fetchListPerson(true); } @@ -364,7 +363,7 @@ onMounted(async () => { flat bordered dense - :rows-per-page-options="[2, 10, 25, 50, 100]" + :rows-per-page-options="[10, 25, 50, 100]" @update:pagination="updatePagination" >