แก้ไขการส่งค่าไปยังหน้ารายละเอียดของ การลา
This commit is contained in:
parent
36539b2274
commit
48eb9ebb6c
5 changed files with 21 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ import { useCounterMixin } from "@/stores/mixin";
|
|||
import type { DataOption } from "@/modules/09_leave/interface/index/Main";
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { DataRows } from "@/modules/09_leave/interface/response/leave";
|
||||
import type { ListsData } from "@/modules/09_leave/interface/request/leave";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, showLoader, hideLoader } = mixin;
|
||||
|
|
@ -18,8 +19,9 @@ export const useLeavelistDataStore = defineStore("leave", () => {
|
|||
const columns = ref<QTableProps["columns"]>([]);
|
||||
const visibleColumns = ref<string[]>([]);
|
||||
const loadTable = ref<boolean>(false);
|
||||
async function fetchList(data: DataRows[]) {
|
||||
let datalist = data.map((e: DataRows) => ({
|
||||
async function fetchList(data: ListsData[]) {
|
||||
let datalist = data.map((e: ListsData) => ({
|
||||
id: e.id,
|
||||
leaveType: e.leaveType,
|
||||
name: e.name,
|
||||
Date: date2Thai(e.Date),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue