ปรับ ui
This commit is contained in:
parent
5d6c63f242
commit
202079bb13
15 changed files with 281 additions and 102 deletions
|
|
@ -62,6 +62,16 @@ export const useInvestigateFactStore = defineStore(
|
|||
investigationDetailOps.value
|
||||
);
|
||||
const faultOp = ref<DataOption[]>(faultOps.value);
|
||||
const statusOptions = ref<DataOption[]>([
|
||||
{ id: "ALL", name: "ทั้งหมด" },
|
||||
{ id: "NEW", name: "ใหม่" },
|
||||
{ id: "RECEIVE_DOC", name: "ได้รับเอกสารแล้ว" },
|
||||
{ id: "RECEIVE_APPEAL", name: "รับอุทธรณ์/ร้องทุกข์" },
|
||||
{ id: "NO_RECEIVE_APPEAL", name: "ไม่รับอุทธรณ์/ร้องทุกข์" },
|
||||
{ id: "DIAGNOSTIC", name: "ตั้งองค์คณะวินิจฉัย" },
|
||||
{ id: "SUMMARY", name: "สรุปผลการพิจารณา" },
|
||||
{ id: "DONE", name: "ปิดคำร้อง" },
|
||||
]);
|
||||
const visibleColumns = ref<string[]>([
|
||||
"no",
|
||||
"title",
|
||||
|
|
@ -206,28 +216,26 @@ export const useInvestigateFactStore = defineStore(
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async function fecthList(data: ListData[]) {
|
||||
rows.value = await data.map((e: ListData) => {
|
||||
return {
|
||||
id: e.id,
|
||||
title: e.title,
|
||||
respondentType: mainStore.convertComplaintType(e.respondentType),
|
||||
offenseDetails: mainStore.convertOffenseDetailst(e.offenseDetails),
|
||||
investigationDetail: convertInvestigationDetail(
|
||||
e.investigationDetail
|
||||
),
|
||||
title: e.title ? e.title : '-',
|
||||
respondentType: e.respondentType ? mainStore.convertComplaintType(e.respondentType) : '-',
|
||||
offenseDetails: e.offenseDetails ? mainStore.convertOffenseDetailst(e.offenseDetails) : '-',
|
||||
investigationDetail: e.investigationDetail ? convertInvestigationDetail(e.investigationDetail) : '-',
|
||||
dateInvestigate:
|
||||
e.investigationDateStart && e.investigationDateEnd
|
||||
? `${date2Thai(e.investigationDateStart)} - ${date2Thai(
|
||||
e.investigationDateEnd
|
||||
)}`
|
||||
: "-",
|
||||
investigationStatusResult: mainStore.convertStatusResult(
|
||||
investigationStatusResult:e.investigationStatusResult ? mainStore.convertStatusResult(
|
||||
e.investigationStatusResult
|
||||
),
|
||||
createdAt: date2Thai(e.createdAt as Date),
|
||||
status: convertStatus(e.status),
|
||||
):'-',
|
||||
createdAt: e.createdAt ? date2Thai(e.createdAt as Date):'-',
|
||||
status: e.status ? convertStatus(e.status):'-',
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
@ -261,6 +269,7 @@ export const useInvestigateFactStore = defineStore(
|
|||
respondentTypeOps,
|
||||
organizationIdOp,
|
||||
ocListFn,
|
||||
statusOptions
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue