fix
This commit is contained in:
parent
b0b077b1d4
commit
0d5db9160e
7 changed files with 30 additions and 68 deletions
|
|
@ -5,26 +5,18 @@ import { checkPermission } from "@/utils/permissions";
|
|||
import { useRouter } from "vue-router";
|
||||
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||
|
||||
/**
|
||||
*importType
|
||||
*/
|
||||
//importType
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { FormFilter } from "@/modules/04_registryPerson/interface/request/Main";
|
||||
|
||||
/**
|
||||
* importComponent
|
||||
*/
|
||||
//importComponent
|
||||
import DialogHistory from "@/modules/04_registryPerson/components/DialogHistory.vue";
|
||||
|
||||
/**
|
||||
* use
|
||||
*/
|
||||
//use
|
||||
const store = useRegistryNewDataStore();
|
||||
const router = useRouter();
|
||||
|
||||
/**
|
||||
* props
|
||||
*/
|
||||
//props
|
||||
const formFilter = defineModel<FormFilter>("formFilter", { required: true }); //ข้อมูลการค้นหา
|
||||
const maxPage = defineModel<Number>("maxPage", { required: true }); //จำนวนหน้าทั้งหมด
|
||||
const empType = defineModel<string>("empType", { required: true }); //ประเภท ข้ารายการ,ลูกจ้าง
|
||||
|
|
@ -36,12 +28,10 @@ const props = defineProps({
|
|||
total: { type: Number, default: 0 },
|
||||
});
|
||||
|
||||
/**
|
||||
* ตัวแปร
|
||||
*/
|
||||
//ตัวแปร
|
||||
const modalHistory = ref<boolean>(false); //ประวัติถือครองตำแหน่ง
|
||||
|
||||
/** ข้อมูล Table*/
|
||||
//ข้อมูล Table
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "no",
|
||||
|
|
@ -163,9 +153,7 @@ const pagination = ref({
|
|||
rowsPerPage: formFilter.value.pageSize,
|
||||
});
|
||||
|
||||
/**
|
||||
* function เปลี่ยนหน้า Table
|
||||
*/
|
||||
/** function เปลี่ยนหน้า Table*/
|
||||
function updatePagePagination() {
|
||||
props.fetchData?.();
|
||||
}
|
||||
|
|
@ -179,9 +167,7 @@ function updatePageSizePagination(newPagination: any) {
|
|||
formFilter.value.pageSize = newPagination.rowsPerPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* function เปิด popup ประวัติถือครองตำแหน่ง
|
||||
*/
|
||||
/** function เปิด popup ประวัติถือครองตำแหน่ง*/
|
||||
function onClickHistory() {
|
||||
modalHistory.value = !modalHistory.value;
|
||||
}
|
||||
|
|
@ -198,16 +184,13 @@ function onClickViewDetail(id: string) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* function redirect ไปหน้ารายการคำร้องขอแก้ไขข้อมูล
|
||||
*/
|
||||
/** function redirect ไปหน้ารายการคำร้องขอแก้ไขข้อมูล*/
|
||||
function redirectToPagePetition() {
|
||||
router.push(`/registry-officer/request-edit`);
|
||||
}
|
||||
|
||||
/**
|
||||
* ดูการเปลี่ยนแปลงของ formFilter.value.pageSize
|
||||
*
|
||||
* เมื่อมีการเปลี่ยนแปลงจำทำการดึงข้อมูลรายการทะเบียนประวัติใหม่ตามจำนวน formFilter.value.pageSize
|
||||
*/
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue