filter Date รายการลงเวลาปฏิบัติงาน และ ลบคำนำหน้าออกยืมคืนเครื่องราช

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-10-27 10:12:09 +07:00
parent 511fe670ae
commit 0939d490df
5 changed files with 209 additions and 56 deletions

View file

@ -7,7 +7,10 @@ import { useWorklistDataStore } from "@/modules/09_leave/stores/WorkStore";
import TableList from "@/modules/09_leave/components/1_Work/TableList.vue";
import ToolBar from "@/modules/09_leave/components/1_Work/ToolBar.vue";
// import Type
import type { TableRows } from "@/modules/09_leave/interface/response/work";
import type {
TableRows,
DataRes,
} from "@/modules/09_leave/interface/response/work";
// use Store
const mixin = useCounterMixin();
const workStore = useWorklistDataStore();
@ -19,7 +22,7 @@ onMounted(() => {
});
//
function fecthWorkList() {
const listData: TableRows[] = [
const listData: DataRes[] = [
{
fullName: "นายกัณฐิมา กาฬสินธ์ุ",
timeIn: "8:04",
@ -31,6 +34,7 @@ function fecthWorkList() {
latOut: "18.7903",
longOut: "99.0029",
status: "1",
date: new Date("2023-10-27"),
},
{
fullName: "นายนครชัย วันดี",
@ -43,6 +47,7 @@ function fecthWorkList() {
latOut: "18.7903",
longOut: "99.0029",
status: "2",
date: new Date("2023-10-28"),
},
{
fullName: "นายปิยรมย์ ศิริธาราฟ",
@ -55,6 +60,7 @@ function fecthWorkList() {
latOut: "18.7903",
longOut: "99.0029",
status: "3",
date: new Date("2023-10-27"),
},
{
fullName: "นางสาวปลาทอง ใจกล้า",
@ -67,6 +73,7 @@ function fecthWorkList() {
latOut: "18.7903",
longOut: "99.0029",
status: "1",
date: new Date("2023-10-27"),
},
];
fetchList(listData); // stores