เพิ่ม tabMenu วินัย

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-22 11:26:10 +07:00
parent e9529f11a7
commit 34b229e817
7 changed files with 288 additions and 158 deletions

View file

@ -13,6 +13,7 @@ const { date2Thai } = mixin;
export const useInvestigateDisStore = defineStore(
"DisciplineInvestigateDis",
() => {
const tabMenu = ref<string>("disciplinary");
const rows = ref<investigateDisDataRowType[]>([]);
const rows2 = ref<directorType[]>([]);
const selected = ref<directorType[]>([]);
@ -32,7 +33,7 @@ export const useInvestigateDisStore = defineStore(
]);
async function fecthList(data: investigateDisDataRowType[]) {
let datalist: investigateDisDataRowType[] = data.map((e: any) => ({
id:e.id,
id: e.id,
subject: e.subject,
interrogated: e.interrogated,
fault: convertFault(e.fault),
@ -273,6 +274,7 @@ export const useInvestigateDisStore = defineStore(
},
]);
return {
tabMenu,
fecthList,
rows,
rows2,