ทะเบียนประวัติ == > TableSort
This commit is contained in:
parent
e47184c4d4
commit
fd120a918f
35 changed files with 800 additions and 373 deletions
|
|
@ -201,9 +201,7 @@ const visibleColumns = ref<String[]>([
|
|||
"dateAppoint",
|
||||
]);
|
||||
|
||||
/**
|
||||
* ฟังก์ชันดึงข้อมูลรายชื่อลูกจ้างชั่วคราว
|
||||
*/
|
||||
/** ฟังก์ชันดึงข้อมูลรายชื่อลูกจ้างชั่วคราว*/
|
||||
async function fetchList() {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -256,24 +254,21 @@ function redirectToPageDetail(id: string) {
|
|||
router.push(`/registry-temp/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันเปิด popup เพิ่มข้อมูลลูกจ้างชั่วคราว
|
||||
*/
|
||||
/** ฟังก์ชันเปิด popup เพิ่มข้อมูลลูกจ้างชั่วคราว*/
|
||||
function onClickAddEmployee() {
|
||||
modalAddEmployee.value = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันเปิด popup เลือกหน่วยงานที่รับบรรจุ
|
||||
* @param data ข้อมูลลูกจ้างชั่วคราว
|
||||
*/
|
||||
function onClickSelectPos(data: DataEmployee) {
|
||||
modalPos.value = true;
|
||||
dataRow.value = data;
|
||||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันเปิด popup ส่งรายชื่อไปออกคำสั่ง
|
||||
*/
|
||||
/** ฟังก์ชันเปิด popup ส่งรายชื่อไปออกคำสั่ง*/
|
||||
function onClickSendOrder() {
|
||||
modalSendOrder.value = true;
|
||||
}
|
||||
|
|
@ -287,9 +282,7 @@ function updatePagination(newPagination: NewPagination) {
|
|||
queryParams.pageSize = newPagination.rowsPerPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* ทำงานเมื่อมีการเปลี่่ยนจำนวนข้อมูลต่อหน้า
|
||||
*/
|
||||
/** ทำงานเมื่อมีการเปลี่่ยนจำนวนข้อมูลต่อหน้า*/
|
||||
watch(
|
||||
() => queryParams.pageSize,
|
||||
() => {
|
||||
|
|
@ -297,8 +290,7 @@ watch(
|
|||
}
|
||||
);
|
||||
|
||||
/**
|
||||
* ทำงานเมื่อมีการเรียกใข้ Components
|
||||
/** ทำงานเมื่อมีการเรียกใข้ Components
|
||||
*/
|
||||
onMounted(async () => {
|
||||
await fetchList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue