ปรับ ui
This commit is contained in:
parent
5d6c63f242
commit
202079bb13
15 changed files with 281 additions and 102 deletions
|
|
@ -54,6 +54,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
{ id: "4", name: "ร้ายแรง", disable: true },
|
||||
{ id: "ปลดออก", name: "ปลดออก", disable: false },
|
||||
{ id: "ไล่ออก", name: "ไล่ออก", disable: false },
|
||||
{ id: "อื่นๆ", name: "อื่นๆ", disable: false },
|
||||
]);
|
||||
|
||||
const statusOps = ref<DataOption[]>([
|
||||
|
|
@ -66,7 +67,16 @@ export const useInvestigateDisStore = defineStore(
|
|||
{ id: "ร้ายแรง", name: "ร้ายแรง" },
|
||||
{ id: "ไม่ร้ายแรง", name: "ไม่ร้ายแรง" },
|
||||
]);
|
||||
|
||||
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",
|
||||
|
|
@ -235,9 +245,9 @@ export const useInvestigateDisStore = defineStore(
|
|||
async function fetchList(data: investigateDisDataRowType[]) {
|
||||
let datalist: any[] = data.map((e: any) => ({
|
||||
id: e.id,
|
||||
title: e.title,
|
||||
respondentType: convertRespondentType(e.respondentType),
|
||||
offenseDetails: convertFault(e.offenseDetails),
|
||||
title: e.title ? e.title :'-',
|
||||
respondentType: e.respondentType ? convertRespondentType(e.respondentType):'-',
|
||||
offenseDetails: e.offenseDetails ? convertFault(e.offenseDetails):'-',
|
||||
disciplinaryFaultLevel: e.disciplinaryFaultLevel ?? "-",
|
||||
disciplinaryCaseFault: e.disciplinaryCaseFault ?? "-",
|
||||
status: convertStatus(e.status) ?? "-",
|
||||
|
|
@ -322,6 +332,7 @@ export const useInvestigateDisStore = defineStore(
|
|||
|
||||
convertRespondentType,
|
||||
convertFault,
|
||||
statusOptions
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue