เพิ่ม tabMenu วินัย
This commit is contained in:
parent
e9529f11a7
commit
34b229e817
7 changed files with 288 additions and 158 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue