ปรับ ui
This commit is contained in:
parent
5d6c63f242
commit
202079bb13
15 changed files with 281 additions and 102 deletions
|
|
@ -101,15 +101,15 @@ const objectComplaintsRef: MyObjectComplaintsRef = {
|
||||||
organizationId: organizationIdRef,
|
organizationId: organizationIdRef,
|
||||||
consideredAgency: consideredAgencyRef,
|
consideredAgency: consideredAgencyRef,
|
||||||
title: titleRef,
|
title: titleRef,
|
||||||
description: descriptionRef,
|
// description: descriptionRef,
|
||||||
dateReceived: dateReceivedRef,
|
dateReceived: dateReceivedRef,
|
||||||
dateConsideration: dateConsiderationRef,
|
// dateConsideration: dateConsiderationRef,
|
||||||
offenseDetails: offenseDetailsRef,
|
offenseDetails: offenseDetailsRef,
|
||||||
levelConsideration: levelConsiderationRef,
|
// levelConsideration: levelConsiderationRef,
|
||||||
dateNotification: dateNotificationRef,
|
// dateNotification: dateNotificationRef,
|
||||||
complaintFrom: complaintFromRef,
|
// complaintFrom: complaintFromRef,
|
||||||
appellant: appellantRef,
|
// appellant: appellantRef,
|
||||||
result: resultRef,
|
// result: resultRef,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ const filterKeyword = ref<string>("");
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
const rowsPerPage = ref<number>(10);
|
const rowsPerPage = ref<number>(10);
|
||||||
|
const statusFilter = ref<string>('ALL')
|
||||||
|
|
||||||
async function updatePagingProp(rowPerpage: number, pageCurrent: number) {
|
async function updatePagingProp(rowPerpage: number, pageCurrent: number) {
|
||||||
rowsPerPage.value = rowPerpage;
|
rowsPerPage.value = rowPerpage;
|
||||||
|
|
@ -68,6 +69,10 @@ function filterFn() {
|
||||||
getList();
|
getList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dataUpdate(){
|
||||||
|
console.log(statusFilter.value)
|
||||||
|
}
|
||||||
|
|
||||||
/** เรียกใช้งาน ฟังชั่น ตอนเริ่มโหลดหน้า */
|
/** เรียกใช้งาน ฟังชั่น ตอนเริ่มโหลดหน้า */
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getList();
|
await getList();
|
||||||
|
|
@ -78,6 +83,20 @@ onMounted(async () => {
|
||||||
<div class="toptitle text-dark col-12 row items-center">รายการเรื่องร้องเรียน</div>
|
<div class="toptitle text-dark col-12 row items-center">รายการเรื่องร้องเรียน</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||||
|
<div class="col-2">
|
||||||
|
<q-select
|
||||||
|
v-model="statusFilter"
|
||||||
|
label="สถานะ"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
:options="complainstStore.statusOptions"
|
||||||
|
@update:model-value="dataUpdate"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<q-btn
|
||||||
id="addComplaints"
|
id="addComplaints"
|
||||||
|
|
|
||||||
|
|
@ -132,25 +132,40 @@ const formData = reactive<FormData>({
|
||||||
|
|
||||||
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
||||||
const objectInvestigate: MyObjectInvestigateRef = {
|
const objectInvestigate: MyObjectInvestigateRef = {
|
||||||
complaint: complaintRef,
|
// complaint: complaintRef,
|
||||||
complaintdetail: complaintdetailRef,
|
// complaintdetail: complaintdetailRef,
|
||||||
investigationDescription: investigationDescriptionRef,
|
// investigationDescription: investigationDescriptionRef,
|
||||||
fault: faultRef,
|
// fault: faultRef,
|
||||||
investigationDetailOther: investigationDetailOtherRef,
|
// investigationDetailOther: investigationDetailOtherRef,
|
||||||
fileComplaint: fileComplaintRef,
|
// fileComplaint: fileComplaintRef,
|
||||||
date: dateRef,
|
// date: dateRef,
|
||||||
dateEnd: dateEndRef,
|
// dateEnd: dateEndRef,
|
||||||
investigationDetail: investigationDetailRef,
|
// investigationDetail: investigationDetailRef,
|
||||||
daysExtend: daysExtendRef,
|
// daysExtend: daysExtendRef,
|
||||||
investigationStatusResult: investigationStatusResultRef,
|
// investigationStatusResult: investigationStatusResultRef,
|
||||||
investigationCauseText: investigationCauseTextRef,
|
// investigationCauseText: investigationCauseTextRef,
|
||||||
result: resultRef,
|
// result: resultRef,
|
||||||
};
|
};
|
||||||
|
|
||||||
const rows = ref([]);
|
const rows = ref([]);
|
||||||
const statusStep = computed(() => {
|
const statusStep = computed(() => {
|
||||||
return route.name === "/discipline-disciplinaryEdit" ? true : false;
|
return route.name === "/discipline-disciplinaryEdit" ? true : false;
|
||||||
});
|
});
|
||||||
|
const dateEndInputStyle = computed(() => {
|
||||||
|
const currentDate = new Date();
|
||||||
|
const investigationDateEnd = new Date(formData.investigationDateEnd as Date);
|
||||||
|
|
||||||
|
const isInNext7Days =
|
||||||
|
investigationDateEnd >= currentDate &&
|
||||||
|
investigationDateEnd <=
|
||||||
|
new Date(currentDate.getTime() + 7 * 24 * 60 * 60 * 1000);
|
||||||
|
|
||||||
|
console.log(isInNext7Days);
|
||||||
|
return isInNext7Days
|
||||||
|
? { textDecoration: "underline", color: "red", borderColor: "red" }
|
||||||
|
: {};
|
||||||
|
});
|
||||||
|
|
||||||
const initialPagination = ref<any>({
|
const initialPagination = ref<any>({
|
||||||
rowsPerPage: 0,
|
rowsPerPage: 0,
|
||||||
});
|
});
|
||||||
|
|
@ -565,7 +580,7 @@ function closeEditDirector() {
|
||||||
modalEditDirector.value = false;
|
modalEditDirector.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveDuty(id: string, duty: string){
|
async function saveDuty(id: string, duty: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.investigateEditDuty(formData.id, id), { duty: duty })
|
.put(config.API.investigateEditDuty(formData.id, id), { duty: duty })
|
||||||
|
|
@ -580,7 +595,7 @@ async function saveDuty(id: string, duty: string){
|
||||||
props.getData?.();
|
props.getData?.();
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
mainStore.rowsAdd = [];
|
mainStore.rowsAdd = [];
|
||||||
|
|
@ -1024,7 +1039,7 @@ onMounted(async () => {
|
||||||
}}</template>
|
}}</template>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
for="#dateEnd"
|
for="#dateEndInvestigatefacts"
|
||||||
ref="dateEndRef"
|
ref="dateEndRef"
|
||||||
:class="inputEditExtend(isReadonly)"
|
:class="inputEditExtend(isReadonly)"
|
||||||
:readonly="
|
:readonly="
|
||||||
|
|
@ -1048,6 +1063,7 @@ onMounted(async () => {
|
||||||
`${'กรุณาเลือกวันที่สิ้นสุดการสืบสวน'}`,
|
`${'กรุณาเลือกวันที่สิ้นสุดการสืบสวน'}`,
|
||||||
]"
|
]"
|
||||||
:label="`${'วันที่สิ้นสุดการสืบสวน'}`"
|
:label="`${'วันที่สิ้นสุดการสืบสวน'}`"
|
||||||
|
:input-style="dateEndInputStyle"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
@ -1581,7 +1597,8 @@ onMounted(async () => {
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scope>
|
||||||
|
|
||||||
.q-banner {
|
.q-banner {
|
||||||
min-height: 25px;
|
min-height: 25px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const resetFilter = () => {
|
||||||
filterRef.value.focus();
|
filterRef.value.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const statusFilter = ref<string>('ALL')
|
||||||
const currentPage = ref<number>(1);
|
const currentPage = ref<number>(1);
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
|
|
@ -90,6 +90,10 @@ async function editPage(id: string) {
|
||||||
router.push(`/discipline/investigatefacts/${id}`);
|
router.push(`/discipline/investigatefacts/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dataUpdate(){
|
||||||
|
console.log(statusFilter.value)
|
||||||
|
}
|
||||||
|
|
||||||
/**เมื่อเริ่มโหลดหน้า
|
/**เมื่อเริ่มโหลดหน้า
|
||||||
* ส่งข้อมูลจำลองไปยัง store
|
* ส่งข้อมูลจำลองไปยัง store
|
||||||
*/
|
*/
|
||||||
|
|
@ -103,6 +107,20 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||||
|
<div class="col-2">
|
||||||
|
<q-select
|
||||||
|
v-model="statusFilter"
|
||||||
|
label="สถานะ"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
:options="dataInvestigate.statusOptions"
|
||||||
|
@update:model-value="dataUpdate"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
|
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, reactive, watch } from "vue";
|
import { ref, onMounted, reactive, watch,computed } from "vue";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
|
|
@ -108,6 +108,7 @@ const formData = reactive<FormData>({
|
||||||
disciplinaryCauseText: "",
|
disciplinaryCauseText: "",
|
||||||
disciplinaryResult: "",
|
disciplinaryResult: "",
|
||||||
disciplinaryExtendHistory: [],
|
disciplinaryExtendHistory: [],
|
||||||
|
disciplinaryFaultLevelOther: "",
|
||||||
});
|
});
|
||||||
const disciplineDisciplinary_DocRelevants = ref<FileLists[]>([]); // ยังไม่มีรอ api
|
const disciplineDisciplinary_DocRelevants = ref<FileLists[]>([]); // ยังไม่มีรอ api
|
||||||
const disciplineDisciplinary_DocSummaryEvidences = ref<FileLists[]>([]);
|
const disciplineDisciplinary_DocSummaryEvidences = ref<FileLists[]>([]);
|
||||||
|
|
@ -139,16 +140,16 @@ const disciplinaryResultRef = ref<Object | null>(null);
|
||||||
|
|
||||||
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
/** maping ref เข้าตัวแปรเพื่อเตรียมตรวจสอบ */
|
||||||
const objectdisciplinary: DisciplinaryRef = {
|
const objectdisciplinary: DisciplinaryRef = {
|
||||||
respondentType: respondentTypeRef,
|
// respondentType: respondentTypeRef,
|
||||||
organizationId: organizationIdRef,
|
// organizationId: organizationIdRef,
|
||||||
consideredAgency: consideredAgencyRef,
|
// consideredAgency: consideredAgencyRef,
|
||||||
disciplinaryFaultLevel: disciplinaryFaultLevelRef,
|
// disciplinaryFaultLevel: disciplinaryFaultLevelRef,
|
||||||
date: dateRef,
|
// date: dateRef,
|
||||||
dateEnd: dateEndRef,
|
// dateEnd: dateEndRef,
|
||||||
daysExtend: daysExtendRef,
|
// daysExtend: daysExtendRef,
|
||||||
disciplinaryDateResult: disciplinaryDateResultRef,
|
// disciplinaryDateResult: disciplinaryDateResultRef,
|
||||||
disciplinaryStatusResult: disciplinaryStatusResultRef,
|
// disciplinaryStatusResult: disciplinaryStatusResultRef,
|
||||||
disciplinaryResult: disciplinaryResultRef,
|
// disciplinaryResult: disciplinaryResultRef,
|
||||||
};
|
};
|
||||||
|
|
||||||
const initialPagination = ref<any>({
|
const initialPagination = ref<any>({
|
||||||
|
|
@ -172,6 +173,19 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
const emit = defineEmits(["submit:disciplinary"]);
|
const emit = defineEmits(["submit:disciplinary"]);
|
||||||
|
|
||||||
|
const dateEndInputStyle = computed(() => {
|
||||||
|
const currentDate = new Date();
|
||||||
|
const investigationDateEnd = new Date(formData.disciplinaryDateEnd as Date);
|
||||||
|
|
||||||
|
const isInNext7Days =
|
||||||
|
investigationDateEnd >= currentDate &&
|
||||||
|
investigationDateEnd <=
|
||||||
|
new Date(currentDate.getTime() + 7 * 24 * 60 * 60 * 1000);
|
||||||
|
|
||||||
|
console.log(isInNext7Days);
|
||||||
|
return isInNext7Days ? { textDecoration: "underline", color: "red" } : {};
|
||||||
|
});
|
||||||
|
|
||||||
/** เปิด dialog */
|
/** เปิด dialog */
|
||||||
function popup() {
|
function popup() {
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
|
|
@ -360,7 +374,6 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/** function เรียกรายชื่อหน่วยงาน*/
|
/** function เรียกรายชื่อหน่วยงาน*/
|
||||||
async function fetchOrganization() {
|
async function fetchOrganization() {
|
||||||
await http
|
await http
|
||||||
|
|
@ -377,7 +390,6 @@ async function fetchOrganization() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** function เรียกรายชื่อกรรมการ*/
|
/** function เรียกรายชื่อกรรมการ*/
|
||||||
async function fetchDListDirector() {
|
async function fetchDListDirector() {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -454,6 +466,9 @@ async function selectComplainant(val: string) {
|
||||||
/** ฟังก์ชั่นเช็คการแก้ไขฟอร์มแล้วไม่ได้กดบันทึก */
|
/** ฟังก์ชั่นเช็คการแก้ไขฟอร์มแล้วไม่ได้กดบันทึก */
|
||||||
function changeFormData() {
|
function changeFormData() {
|
||||||
isSave.value = true;
|
isSave.value = true;
|
||||||
|
if(formData.disciplinaryFaultLevel !== 'อื่นๆ'){
|
||||||
|
formData.disciplinaryFaultLevelOther = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function calendarOpen() {
|
function calendarOpen() {
|
||||||
|
|
@ -523,7 +538,6 @@ function emitPerson(data: PersonsArray[]) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function openEditDirector(idVal: string, duty: string) {
|
function openEditDirector(idVal: string, duty: string) {
|
||||||
editDirectorId.value = idVal;
|
editDirectorId.value = idVal;
|
||||||
modalEditDirector.value = true;
|
modalEditDirector.value = true;
|
||||||
|
|
@ -534,7 +548,7 @@ function closeEditDirector() {
|
||||||
modalEditDirector.value = false;
|
modalEditDirector.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function saveDuty(id: string, duty: string){
|
async function saveDuty(id: string, duty: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.put(config.API.disciplinaryEditDuty(props.data.id, id), { duty: duty })
|
.put(config.API.disciplinaryEditDuty(props.data.id, id), { duty: duty })
|
||||||
|
|
@ -549,7 +563,7 @@ async function saveDuty(id: string, duty: string){
|
||||||
props.fetchData();
|
props.fetchData();
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
/** Hook */
|
/** Hook */
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
@ -1103,6 +1117,7 @@ onMounted(async () => {
|
||||||
`${'กรุณาเลือกวันที่สิ้นสุดการสอบสวน'}`,
|
`${'กรุณาเลือกวันที่สิ้นสุดการสอบสวน'}`,
|
||||||
]"
|
]"
|
||||||
:label="`${'วันที่สิ้นสุดการสอบสวน'}`"
|
:label="`${'วันที่สิ้นสุดการสอบสวน'}`"
|
||||||
|
:input-style="dateEndInputStyle"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
@ -1320,7 +1335,10 @@ onMounted(async () => {
|
||||||
round
|
round
|
||||||
color="blue"
|
color="blue"
|
||||||
@click="
|
@click="
|
||||||
openEditDirector(props.row.idRaw, props.row.duty)
|
openEditDirector(
|
||||||
|
props.row.idRaw,
|
||||||
|
props.row.duty
|
||||||
|
)
|
||||||
"
|
"
|
||||||
icon="mdi-pencil-outline"
|
icon="mdi-pencil-outline"
|
||||||
>
|
>
|
||||||
|
|
@ -1433,7 +1451,15 @@ onMounted(async () => {
|
||||||
@update:model-value="changeFormData()"
|
@update:model-value="changeFormData()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-12" v-if="formData.disciplinaryFaultLevel === 'อื่นๆ'">
|
||||||
|
<q-input
|
||||||
|
:class="inputEdit(isReadonly)"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
label="ระดับโทษความผิดอื่นๆ"
|
||||||
|
v-model="formData.disciplinaryFaultLevelOther"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
<q-input
|
<q-input
|
||||||
:readonly="isReadonly"
|
:readonly="isReadonly"
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, useAttrs, watch } from "vue";
|
import { ref, useAttrs, watch } from "vue";
|
||||||
import type { Pagination } from "@/modules/04_registry/interface/index/Main";
|
import type { Pagination } from "@/modules/04_registry/interface/index/Main";
|
||||||
|
import { useInvestigateDisStore } from "@/modules/11_discipline/store/InvestigateDisStore";
|
||||||
|
|
||||||
|
const dataInvestigateDis = useInvestigateDisStore();
|
||||||
const table = ref<any>(null);
|
const table = ref<any>(null);
|
||||||
const filterRef = ref<any>(null);
|
const filterRef = ref<any>(null);
|
||||||
const attrs = ref<any>(useAttrs());
|
const attrs = ref<any>(useAttrs());
|
||||||
const paging = ref<boolean>(true);
|
const paging = ref<boolean>(true);
|
||||||
const currentPage = ref<number>(1);
|
const currentPage = ref<number>(1);
|
||||||
|
const statusFilter = ref<string>('ALL')
|
||||||
|
|
||||||
/** รับ props มาจากหน้าหลัก */
|
/** รับ props มาจากหน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -104,10 +107,29 @@ watch(
|
||||||
updateProp(pagination.value.rowsPerPage, currentPage.value);
|
updateProp(pagination.value.rowsPerPage, currentPage.value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function dataUpdate(){
|
||||||
|
console.log(statusFilter.value)
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="q-pb-sm row q-col-gutter-sm">
|
<div class="q-pb-sm row q-col-gutter-sm">
|
||||||
|
<div class="col-2">
|
||||||
|
<q-select
|
||||||
|
v-model="statusFilter"
|
||||||
|
label="สถานะ"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
:options="dataInvestigateDis.statusOptions"
|
||||||
|
@update:model-value="dataUpdate"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<!-- ค้นหาข้อความใน table -->
|
<!-- ค้นหาข้อความใน table -->
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, useAttrs, watch } from "vue";
|
import { ref, useAttrs, watch } from "vue";
|
||||||
|
import { useDisciplineResultStore } from "@/modules/11_discipline/store/ResultStore";
|
||||||
|
|
||||||
|
const store = useDisciplineResultStore();
|
||||||
const table = ref<any>(null);
|
const table = ref<any>(null);
|
||||||
const filterRef = ref<any>(null);
|
const filterRef = ref<any>(null);
|
||||||
const attrs = ref<any>(useAttrs());
|
const attrs = ref<any>(useAttrs());
|
||||||
const paging = ref<boolean>(true);
|
const paging = ref<boolean>(true);
|
||||||
|
const statusFilter = ref<string>("ALL");
|
||||||
/** รับ props มาจากหน้าหลัก */
|
/** รับ props มาจากหน้าหลัก */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
count: Number,
|
count: Number,
|
||||||
|
|
@ -89,11 +91,28 @@ watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => {
|
||||||
filter.value
|
filter.value
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function dataUpdate() {
|
||||||
|
console.log(statusFilter.value);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="q-pb-sm row q-col-gutter-sm">
|
<div class="q-pb-sm row q-col-gutter-sm">
|
||||||
<div class="q-gutter-sm" v-if="nornmalData == true">
|
<div class="q-gutter-sm" v-if="nornmalData == true"></div>
|
||||||
|
<div class="col-2">
|
||||||
|
<q-select
|
||||||
|
v-model="statusFilter"
|
||||||
|
label="สถานะ"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
emit-value
|
||||||
|
map-options
|
||||||
|
option-label="name"
|
||||||
|
option-value="id"
|
||||||
|
:options="store.statusOptions"
|
||||||
|
@update:model-value="dataUpdate"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -143,7 +162,6 @@ watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => {
|
||||||
:rows-per-page-options="[10, 25, 50, 100]"
|
:rows-per-page-options="[10, 25, 50, 100]"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
@update:pagination="updateRowsPerPage"
|
@update:pagination="updateRowsPerPage"
|
||||||
|
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
|
@ -184,7 +202,6 @@ watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => {
|
||||||
direction-links
|
direction-links
|
||||||
></q-pagination>
|
></q-pagination>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</d-table>
|
</d-table>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,10 @@ const props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
resolution: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
save: {
|
save: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
|
|
@ -31,6 +35,7 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const duty = ref<string>("");
|
const duty = ref<string>("");
|
||||||
|
const resolution = ref<string>("");
|
||||||
const myForm = ref<QForm | null>(null);
|
const myForm = ref<QForm | null>(null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -56,6 +61,7 @@ async function submit(){
|
||||||
|
|
||||||
watch(props, () => {
|
watch(props, () => {
|
||||||
duty.value = props?.duty;
|
duty.value = props?.duty;
|
||||||
|
resolution.value = props?.resolution;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -63,7 +69,7 @@ watch(props, () => {
|
||||||
<q-dialog v-model="props.modal" persistent>
|
<q-dialog v-model="props.modal" persistent>
|
||||||
<q-card style="width: 30vw">
|
<q-card style="width: 30vw">
|
||||||
<q-form ref="myForm">
|
<q-form ref="myForm">
|
||||||
<DialogHeader title="แก้ไขหน้าที่กรรมการ" :close="props.closePopup" />
|
<DialogHeader title="แก้ไขข้อมูลกรรมการ" :close="props.closePopup" />
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -74,6 +80,17 @@ watch(props, () => {
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="หน้าที่"
|
placeholder="หน้าที่"
|
||||||
:rules="[(val) => !!val || `กรุณากรอกหน้าที่`]"
|
:rules="[(val) => !!val || `กรุณากรอกหน้าที่`]"
|
||||||
|
hide-bottom-space
|
||||||
|
/>
|
||||||
|
<q-input
|
||||||
|
v-model="resolution"
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
class="col-12 q-mb-sm"
|
||||||
|
debounce="300"
|
||||||
|
placeholder="มติ/คำสั่งแต่งตั้ง"
|
||||||
|
:rules="[(val) => !!val || `กรุณากรอก มติ/คำสั่งแต่งตั้ง`]"
|
||||||
|
hide-bottom-space
|
||||||
/>
|
/>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,15 +44,15 @@ interface MyObjectComplaintsRef {
|
||||||
organizationId: object | null;
|
organizationId: object | null;
|
||||||
consideredAgency: object | null;
|
consideredAgency: object | null;
|
||||||
title: object | null;
|
title: object | null;
|
||||||
description: object | null;
|
// description: object | null;
|
||||||
dateReceived: object | null;
|
dateReceived: object | null;
|
||||||
dateConsideration: object | null;
|
// dateConsideration: object | null;
|
||||||
offenseDetails: object | null;
|
offenseDetails: object | null;
|
||||||
levelConsideration: object | null;
|
// levelConsideration: object | null;
|
||||||
dateNotification: object | null;
|
// dateNotification: object | null;
|
||||||
complaintFrom: object | null;
|
// complaintFrom: object | null;
|
||||||
appellant: object | null;
|
// appellant: object | null;
|
||||||
result: object | null;
|
// result: object | null;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ interface FormData {
|
||||||
disciplinaryCauseText: string;
|
disciplinaryCauseText: string;
|
||||||
disciplinaryResult: string;
|
disciplinaryResult: string;
|
||||||
disciplinaryExtendHistory: ExtendHistoryObject[];
|
disciplinaryExtendHistory: ExtendHistoryObject[];
|
||||||
|
disciplinaryFaultLevelOther:string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ExtendHistoryObject {
|
interface ExtendHistoryObject {
|
||||||
|
|
@ -91,22 +92,22 @@ interface ExtendHistoryObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DisciplinaryRef {
|
interface DisciplinaryRef {
|
||||||
respondentType: object | null;
|
// respondentType: object | null;
|
||||||
organizationId: object | null;
|
// organizationId: object | null;
|
||||||
// disciplinaryDateAllegation: object | null;
|
// disciplinaryDateAllegation: object | null;
|
||||||
// disciplinaryDateEvident: object | null;
|
// disciplinaryDateEvident: object | null;
|
||||||
// disciplinaryCaseFault: object | null;
|
// disciplinaryCaseFault: object | null;
|
||||||
// disciplinaryInvestigateAt: object | null;
|
// disciplinaryInvestigateAt: object | null;
|
||||||
disciplinaryFaultLevel: object | null;
|
// disciplinaryFaultLevel: object | null;
|
||||||
// disciplinaryRefLaw: object | null;
|
// disciplinaryRefLaw: object | null;
|
||||||
// disciplinarySummaryEvidence: object | null;
|
// disciplinarySummaryEvidence: object | null;
|
||||||
// disciplinaryRecordAccuser: object | null;
|
// disciplinaryRecordAccuser: object | null;
|
||||||
// disciplinaryWitnesses: object | null;
|
// disciplinaryWitnesses: object | null;
|
||||||
// result: object | null;
|
// result: object | null;
|
||||||
date: object | null;
|
// date: object | null;
|
||||||
dateEnd: object | null;
|
// dateEnd: object | null;
|
||||||
daysExtend: object | null;
|
// daysExtend: object | null;
|
||||||
disciplinaryDateResult: object | null;
|
// disciplinaryDateResult: object | null;
|
||||||
|
|
||||||
// filesRecordAccuser: object | null;
|
// filesRecordAccuser: object | null;
|
||||||
// filesWitnesses: object | null;
|
// filesWitnesses: object | null;
|
||||||
|
|
|
||||||
|
|
@ -44,18 +44,18 @@ interface ArrayPerson {
|
||||||
phone: string;
|
phone: string;
|
||||||
}
|
}
|
||||||
interface MyObjectInvestigateRef {
|
interface MyObjectInvestigateRef {
|
||||||
complaint: object | null;
|
// complaint: object | null;
|
||||||
complaintdetail: object | null;
|
// complaintdetail: object | null;
|
||||||
investigationDescription: object | null;
|
// investigationDescription: object | null;
|
||||||
fault: object | null;
|
// fault: object | null;
|
||||||
fileComplaint: object | null;
|
// fileComplaint: object | null;
|
||||||
date: object | null;
|
// date: object | null;
|
||||||
dateEnd: object | null;
|
// dateEnd: object | null;
|
||||||
investigationDetail: object | null;
|
// investigationDetail: object | null;
|
||||||
daysExtend: object | null;
|
// daysExtend: object | null;
|
||||||
investigationStatusResult: object | null;
|
// investigationStatusResult: object | null;
|
||||||
investigationCauseText: object | null;
|
// investigationCauseText: object | null;
|
||||||
result: object | null;
|
// result: object | null;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,16 +26,14 @@ export const useComplainstDataStore = defineStore(
|
||||||
let dataList: DataListRow[] = data.map((e: DataList) => ({
|
let dataList: DataListRow[] = data.map((e: DataList) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
personId: e.personId,
|
personId: e.personId,
|
||||||
title: e.title,
|
title: e.title ? e.title : '-',
|
||||||
dateReceived: e.dateReceived ? date2Thai(e.dateReceived) : "-",
|
dateReceived: e.dateReceived ? date2Thai(e.dateReceived) : "-",
|
||||||
respondentType: mainStore.convertComplaintType(e.respondentType),
|
respondentType: e.respondentType ? mainStore.convertComplaintType(e.respondentType) : '-',
|
||||||
offenseDetails: mainStore.convertOffenseDetailst(e.offenseDetails),
|
offenseDetails: e.offenseDetails ? mainStore.convertOffenseDetailst(e.offenseDetails) : '-',
|
||||||
createdAt: date2Thai(e.createdAt)!,
|
createdAt: e.createdAt ? date2Thai(e.createdAt)! : '-',
|
||||||
levelConsideration: levelConsiderationTran(e.levelConsideration),
|
levelConsideration: e.levelConsideration ? levelConsiderationTran(e.levelConsideration) : '-',
|
||||||
dateConsideration: e.dateConsideration
|
dateConsideration: e.dateConsideration ? date2Thai(e.dateConsideration) : "-",
|
||||||
? date2Thai(e.dateConsideration)
|
status: e.status ? statusTothai(e.status) : '-',
|
||||||
: "-",
|
|
||||||
status: statusTothai(e.status),
|
|
||||||
}));
|
}));
|
||||||
rows.value = dataList;
|
rows.value = dataList;
|
||||||
}
|
}
|
||||||
|
|
@ -69,6 +67,17 @@ export const useComplainstDataStore = defineStore(
|
||||||
const optionListNameMain = ref<DataOption[]>([]);
|
const optionListNameMain = ref<DataOption[]>([]);
|
||||||
const optionListName = ref<DataOption[]>([]);
|
const optionListName = ref<DataOption[]>([]);
|
||||||
|
|
||||||
|
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: "ปิดคำร้อง" },
|
||||||
|
]);
|
||||||
|
|
||||||
function levelConsiderationTran(val: string) {
|
function levelConsiderationTran(val: string) {
|
||||||
return (
|
return (
|
||||||
levelConsiderationtOptions.value.find((v: any) => v.id === val)?.name ??
|
levelConsiderationtOptions.value.find((v: any) => v.id === val)?.name ??
|
||||||
|
|
@ -121,6 +130,7 @@ export const useComplainstDataStore = defineStore(
|
||||||
organizationIdOp,
|
organizationIdOp,
|
||||||
ocListFn,
|
ocListFn,
|
||||||
levelConsiderationtOptions,
|
levelConsiderationtOptions,
|
||||||
|
statusOptions
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ export const useInvestigateDisStore = defineStore(
|
||||||
{ id: "4", name: "ร้ายแรง", disable: true },
|
{ id: "4", name: "ร้ายแรง", disable: true },
|
||||||
{ id: "ปลดออก", name: "ปลดออก", disable: false },
|
{ id: "ปลดออก", name: "ปลดออก", disable: false },
|
||||||
{ id: "ไล่ออก", name: "ไล่ออก", disable: false },
|
{ id: "ไล่ออก", name: "ไล่ออก", disable: false },
|
||||||
|
{ id: "อื่นๆ", name: "อื่นๆ", disable: false },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const statusOps = ref<DataOption[]>([
|
const statusOps = ref<DataOption[]>([
|
||||||
|
|
@ -66,7 +67,16 @@ export const useInvestigateDisStore = defineStore(
|
||||||
{ id: "ร้ายแรง", name: "ร้ายแรง" },
|
{ id: "ร้ายแรง", name: "ร้ายแรง" },
|
||||||
{ 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[]>([
|
const visibleColumns = ref<String[]>([
|
||||||
"no",
|
"no",
|
||||||
"title",
|
"title",
|
||||||
|
|
@ -235,9 +245,9 @@ export const useInvestigateDisStore = defineStore(
|
||||||
async function fetchList(data: investigateDisDataRowType[]) {
|
async function fetchList(data: investigateDisDataRowType[]) {
|
||||||
let datalist: any[] = data.map((e: any) => ({
|
let datalist: any[] = data.map((e: any) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
title: e.title,
|
title: e.title ? e.title :'-',
|
||||||
respondentType: convertRespondentType(e.respondentType),
|
respondentType: e.respondentType ? convertRespondentType(e.respondentType):'-',
|
||||||
offenseDetails: convertFault(e.offenseDetails),
|
offenseDetails: e.offenseDetails ? convertFault(e.offenseDetails):'-',
|
||||||
disciplinaryFaultLevel: e.disciplinaryFaultLevel ?? "-",
|
disciplinaryFaultLevel: e.disciplinaryFaultLevel ?? "-",
|
||||||
disciplinaryCaseFault: e.disciplinaryCaseFault ?? "-",
|
disciplinaryCaseFault: e.disciplinaryCaseFault ?? "-",
|
||||||
status: convertStatus(e.status) ?? "-",
|
status: convertStatus(e.status) ?? "-",
|
||||||
|
|
@ -322,6 +332,7 @@ export const useInvestigateDisStore = defineStore(
|
||||||
|
|
||||||
convertRespondentType,
|
convertRespondentType,
|
||||||
convertFault,
|
convertFault,
|
||||||
|
statusOptions
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,16 @@ export const useInvestigateFactStore = defineStore(
|
||||||
investigationDetailOps.value
|
investigationDetailOps.value
|
||||||
);
|
);
|
||||||
const faultOp = ref<DataOption[]>(faultOps.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[]>([
|
const visibleColumns = ref<string[]>([
|
||||||
"no",
|
"no",
|
||||||
"title",
|
"title",
|
||||||
|
|
@ -211,23 +221,21 @@ export const useInvestigateFactStore = defineStore(
|
||||||
rows.value = await data.map((e: ListData) => {
|
rows.value = await data.map((e: ListData) => {
|
||||||
return {
|
return {
|
||||||
id: e.id,
|
id: e.id,
|
||||||
title: e.title,
|
title: e.title ? e.title : '-',
|
||||||
respondentType: mainStore.convertComplaintType(e.respondentType),
|
respondentType: e.respondentType ? mainStore.convertComplaintType(e.respondentType) : '-',
|
||||||
offenseDetails: mainStore.convertOffenseDetailst(e.offenseDetails),
|
offenseDetails: e.offenseDetails ? mainStore.convertOffenseDetailst(e.offenseDetails) : '-',
|
||||||
investigationDetail: convertInvestigationDetail(
|
investigationDetail: e.investigationDetail ? convertInvestigationDetail(e.investigationDetail) : '-',
|
||||||
e.investigationDetail
|
|
||||||
),
|
|
||||||
dateInvestigate:
|
dateInvestigate:
|
||||||
e.investigationDateStart && e.investigationDateEnd
|
e.investigationDateStart && e.investigationDateEnd
|
||||||
? `${date2Thai(e.investigationDateStart)} - ${date2Thai(
|
? `${date2Thai(e.investigationDateStart)} - ${date2Thai(
|
||||||
e.investigationDateEnd
|
e.investigationDateEnd
|
||||||
)}`
|
)}`
|
||||||
: "-",
|
: "-",
|
||||||
investigationStatusResult: mainStore.convertStatusResult(
|
investigationStatusResult:e.investigationStatusResult ? mainStore.convertStatusResult(
|
||||||
e.investigationStatusResult
|
e.investigationStatusResult
|
||||||
),
|
):'-',
|
||||||
createdAt: date2Thai(e.createdAt as Date),
|
createdAt: e.createdAt ? date2Thai(e.createdAt as Date):'-',
|
||||||
status: convertStatus(e.status),
|
status: e.status ? convertStatus(e.status):'-',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -261,6 +269,7 @@ export const useInvestigateFactStore = defineStore(
|
||||||
respondentTypeOps,
|
respondentTypeOps,
|
||||||
organizationIdOp,
|
organizationIdOp,
|
||||||
ocListFn,
|
ocListFn,
|
||||||
|
statusOptions
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,17 @@ export const useDisciplineResultStore = defineStore(
|
||||||
storeMain.complainantoptionsMain
|
storeMain.complainantoptionsMain
|
||||||
);
|
);
|
||||||
|
|
||||||
|
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[]>([
|
const visibleColumns = ref<String[]>([
|
||||||
"no",
|
"no",
|
||||||
"title",
|
"title",
|
||||||
|
|
@ -257,9 +268,9 @@ export const useDisciplineResultStore = defineStore(
|
||||||
: "-",
|
: "-",
|
||||||
status: e.status && convertStatus(e.status),
|
status: e.status && convertStatus(e.status),
|
||||||
createdAt: e.createdAt && date2Thai(e.createdAt),
|
createdAt: e.createdAt && date2Thai(e.createdAt),
|
||||||
disciplineType: e.disciplineType ? e.disciplineType:'-' ,
|
disciplineType: e.disciplineType ? e.disciplineType : '-',
|
||||||
titleType: e.titleType ? e.titleType:'-' ,
|
titleType: e.titleType ? e.titleType : '-',
|
||||||
oc: e.oc ? e.oc:'-'
|
oc: e.oc ? e.oc : '-'
|
||||||
}));
|
}));
|
||||||
rows.value = datalist;
|
rows.value = datalist;
|
||||||
}
|
}
|
||||||
|
|
@ -285,6 +296,7 @@ export const useDisciplineResultStore = defineStore(
|
||||||
columnsDirector,
|
columnsDirector,
|
||||||
complainantoptions,
|
complainantoptions,
|
||||||
filterSelector,
|
filterSelector,
|
||||||
|
statusOptions
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue