รายการสรุปผลการพิจารณาทางวินัย เพิ่มฟิล

This commit is contained in:
setthawutttty 2023-12-15 17:54:28 +07:00
parent b659857c7b
commit db072c8ba5
4 changed files with 38 additions and 3 deletions

View file

@ -69,7 +69,7 @@ const formData = reactive<FormData>({
titleType: "",
oc: "",
file: null,
disciplineComplaint_Appeal_Docs: [ArrayFile],
disciplineComplaint_Appeal_Docs: [],
year: new Date().getFullYear(),
});
@ -577,7 +577,6 @@ onMounted(async () => {});
>
</div>
</div>
<div
v-if="formData.disciplineComplaint_Appeal_Docs.length > 0"
class="col-xs-12 q-pa-sm row"

View file

@ -4,7 +4,7 @@ interface FormData {
titleType: string;
oc: string;
file: any
disciplineComplaint_Appeal_Docs: [FileArray]
disciplineComplaint_Appeal_Docs: any
year: number | null;
}

View file

@ -6,6 +6,9 @@ interface DataResult {
disciplinaryFaultLevel: string; //ระดับโทษความผิด
disciplinaryCaseFault: string; //กรณีความผิด
status: string; //สถานะ
disciplineType: string; //สถานะ
titleType: string; //สถานะ
oc: string; //สถานะ
createdAt: Date | null; //วันที่ส่งเรื่องสอบสวน
}
interface DataResultList {

View file

@ -57,6 +57,9 @@ export const useDisciplineResultStore = defineStore(
: "-",
status: e.status && convertStatus(e.status),
createdAt: e.createdAt && date2Thai(e.createdAt),
disciplineType: e.disciplineType ? e.disciplineType:'-' ,
titleType: e.titleType ? e.titleType:'-' ,
oc: e.oc ? e.oc:'-'
}));
rows.value = datalist;
}
@ -83,6 +86,9 @@ export const useDisciplineResultStore = defineStore(
"disciplinaryFaultLevel",
"disciplinaryCaseFault",
"createdAt",
"disciplineType",
"titleType",
"oc",
"status",
]);
@ -158,6 +164,33 @@ export const useDisciplineResultStore = defineStore(
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "disciplineType",
align: "left",
label: "ประเภทวินัย",
sortable: true,
field: "disciplineType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "titleType",
align: "left",
label: "ประเภทของเรื่อง",
sortable: true,
field: "titleType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "oc",
align: "left",
label: "หน่วยงาน/ส่วนราชการ",
sortable: true,
field: "oc",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "status",
align: "left",