แก้ไขการสอบสวนความผิดทางวินัย

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-11-28 10:39:59 +07:00
parent 342e848e0c
commit 8587a85133
4 changed files with 104 additions and 170 deletions

View file

@ -23,7 +23,6 @@ export const useComplainstDataStore = defineStore(
const visibleColumns = ref<string[]>([]);
const columns = ref<QTableProps["columns"]>([]);
function fetchComplainstAdd(data: ArrayPerson[]) {
rowsAdd.value = data;
}
@ -119,8 +118,7 @@ export const useComplainstDataStore = defineStore(
function filterSelector(val: string, update: Function, type: string) {
update(() => {
const needle = val.toLowerCase();
if (type === "filtercomplainantType") {
if (type === "filterrespondentType") {
complainantoptions.value = complainantoptionsMain.value.filter(
(v: any) => v.name.toLowerCase().indexOf(needle) > -1
);

View file

@ -47,29 +47,14 @@ export const useInvestigateDisStore = defineStore(
title: e.title,
respondentType: convertRespondentType(e.respondentType),
offenseDetails: convertFault(e.offenseDetails),
disciplinaryFaultLevel: e.disciplinaryFaultLevel,
disciplinaryCaseFault: e.disciplinaryCaseFault,
status: e.status,
createdAt: date2Thai(e.createdAt),
disciplinaryFaultLevel: e.disciplinaryFaultLevel ?? "-",
disciplinaryCaseFault: e.disciplinaryCaseFault ?? "-",
status: e.status ?? "-",
createdAt: e.createdAt ? date2Thai(e.createdAt) : "-",
}));
rows.value = datalist;
}
// async function fecthDirector(data: directorType[]) {
// let datalistDirector: responseType[] = data.map((e: directorType) => ({
// id: e.id,
// name: `${e.prefix}${e.firstName} ${e.lastName}`,
// prefix: e.prefix,
// firstName: e.firstName,
// lastName: e.lastName,
// position: e.position,
// email: e.email,
// phone: e.phone,
// }));
// rows2.value = datalistDirector;
// selected.value = rows2.value;
// // console.log(rows2.value);
// }
function convertRespondentType(val: string) {
switch (val) {
@ -90,6 +75,8 @@ export const useInvestigateDisStore = defineStore(
return "ความผิดวินัยไม่ร้ายแรง";
case "DEADLY":
return "ความผิดวินัยร้ายแรง";
default:
return "-";
}
}
function convertSatatus(val: string) {
@ -305,7 +292,7 @@ export const useInvestigateDisStore = defineStore(
rows2,
optionsTypefault,
optionsfaultLevel,
// fecthDirector,
visibleColumns,
columns,
visibleColumnsDirector,