สิทธิ์ สรุปผลการพิจารณาความผิดทางวินัย
This commit is contained in:
parent
47ce1ce70d
commit
f853c76401
8 changed files with 91 additions and 27 deletions
|
|
@ -1045,7 +1045,7 @@ function filterOptionFnAgency(val: string, update: Function) {
|
||||||
dense
|
dense
|
||||||
color="red"
|
color="red"
|
||||||
class="q-ml-sm"
|
class="q-ml-sm"
|
||||||
icon="mdi-delete-outline"
|
icon="mdi-delete"
|
||||||
@click="deleteFile(data.id)"
|
@click="deleteFile(data.id)"
|
||||||
><q-tooltip>ลบไฟล์</q-tooltip></q-btn
|
><q-tooltip>ลบไฟล์</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -901,7 +901,7 @@ onMounted(async () => {
|
||||||
col.label
|
col.label
|
||||||
}}</span>
|
}}</span>
|
||||||
</q-th>
|
</q-th>
|
||||||
<q-th auto-width></q-th>
|
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
|
|
@ -912,7 +912,7 @@ onMounted(async () => {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="info"
|
color="info"
|
||||||
icon="info"
|
icon="mdi-eye"
|
||||||
@click="onclickViewinfo(props.row.personId)"
|
@click="onclickViewinfo(props.row.personId)"
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
||||||
|
|
@ -1530,9 +1530,9 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="blue"
|
color="edit"
|
||||||
@click="openEditDirector(props.row)"
|
@click="openEditDirector(props.row)"
|
||||||
icon="mdi-pencil-outline"
|
icon="edit"
|
||||||
>
|
>
|
||||||
<q-tooltip>แก้ไข</q-tooltip>
|
<q-tooltip>แก้ไข</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
@ -1544,7 +1544,7 @@ onMounted(async () => {
|
||||||
round
|
round
|
||||||
color="red"
|
color="red"
|
||||||
@click="deleteDirector(props.row.id)"
|
@click="deleteDirector(props.row.id)"
|
||||||
icon="mdi-delete-outline"
|
icon="mdi-delete"
|
||||||
>
|
>
|
||||||
<q-tooltip>ลบข้อมูล</q-tooltip>
|
<q-tooltip>ลบข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ const modal = ref<boolean>(false);
|
||||||
const dataResult = ref<DataListRow[]>([]);
|
const dataResult = ref<DataListRow[]>([]);
|
||||||
const filterKeyword = ref<string>("");
|
const filterKeyword = ref<string>("");
|
||||||
const dataDisciplinary = ref<object>([]);
|
const dataDisciplinary = ref<object>([]);
|
||||||
|
const checkRoutePermisson = ref<boolean>(route.name == "disciplineResultDetail");
|
||||||
const dataInvestigatefacts = reactive<FormInvestigateFact>({
|
const dataInvestigatefacts = reactive<FormInvestigateFact>({
|
||||||
id: "",
|
id: "",
|
||||||
idComplaint: "",
|
idComplaint: "",
|
||||||
|
|
@ -285,9 +285,9 @@ onMounted(async () => {
|
||||||
class="q-mr-sm"
|
class="q-mr-sm"
|
||||||
@click="$router.push(`/discipline-result`)"
|
@click="$router.push(`/discipline-result`)"
|
||||||
/>
|
/>
|
||||||
<div class="q-ma-none">แก้ไขผลการพิจารณาทางวินัย</div>
|
<div class="q-ma-none">{{checkRoutePermisson ? 'รายละเอียดผลการพิจารณาทางวินัย':'แก้ไขผลการพิจารณาทางวินัย'}}</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="q-gutter-x-sm">
|
<div class="q-gutter-x-sm" v-if="!checkRoutePermisson">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="status === 'DONE'"
|
v-if="status === 'DONE'"
|
||||||
label="ส่งไปออกคำสั่ง"
|
label="ส่งไปออกคำสั่ง"
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,9 @@ const {
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const checkRoutePermisson = ref<boolean>(
|
||||||
|
route.name == "disciplineResultDetail"
|
||||||
|
);
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const id = ref<string>(route.params.id as string);
|
const id = ref<string>(route.params.id as string);
|
||||||
const isSave = ref<boolean>(false); // มีการแก้ไขรอบันทึก
|
const isSave = ref<boolean>(false); // มีการแก้ไขรอบันทึก
|
||||||
|
|
@ -382,24 +384,33 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<q-tr :props="props">
|
||||||
<td>
|
<td>
|
||||||
<q-btn
|
<q-btn
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="info"
|
color="info"
|
||||||
icon="info"
|
icon="mdi-eye"
|
||||||
@click="onclickViewinfo(props.row.personId)"
|
@click="onclickViewinfo(props.row.personId)"
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
<q-tooltip>ดูข้อมูลในทะเบียนประวัติ</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
<q-btn
|
||||||
|
dense
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
color="deep-purple"
|
||||||
|
icon="mdi-history"
|
||||||
|
@click="openDetial(props.row.personId)"
|
||||||
|
>
|
||||||
|
<q-tooltip>ประวัติ</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
</td>
|
</td>
|
||||||
<q-td
|
<q-td
|
||||||
v-for="col in props.cols"
|
v-for="col in props.cols"
|
||||||
:key="col.name"
|
:key="col.name"
|
||||||
:props="props"
|
:props="props"
|
||||||
@click="openDetial(props.row.personId)"
|
|
||||||
>
|
>
|
||||||
<div v-if="col.name == 'no'">
|
<div v-if="col.name == 'no'">
|
||||||
{{ props.rowIndex + 1 }}
|
{{ props.rowIndex + 1 }}
|
||||||
|
|
@ -430,6 +441,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
:class="inputEdit(isReadonly)"
|
:class="inputEdit(isReadonly)"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
dense
|
dense
|
||||||
|
|
@ -444,6 +456,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
v-model="formData.disciplineType"
|
v-model="formData.disciplineType"
|
||||||
dense
|
dense
|
||||||
:class="inputEdit(isReadonly)"
|
:class="inputEdit(isReadonly)"
|
||||||
|
|
@ -453,6 +466,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
v-model="formData.titleType"
|
v-model="formData.titleType"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -462,6 +476,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<q-input
|
<q-input
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
v-model="formData.oc"
|
v-model="formData.oc"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -476,6 +491,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
class="col-2"
|
class="col-2"
|
||||||
:locale="'th'"
|
:locale="'th'"
|
||||||
autoApply
|
autoApply
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
year-picker
|
year-picker
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
>
|
>
|
||||||
|
|
@ -487,6 +503,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
<q-input
|
<q-input
|
||||||
dense
|
dense
|
||||||
:class="inputEdit(isReadonly)"
|
:class="inputEdit(isReadonly)"
|
||||||
|
:readonly="checkRoutePermisson"
|
||||||
outlined
|
outlined
|
||||||
:model-value="
|
:model-value="
|
||||||
formData.year === 0 ? null : Number(formData.year) + 543
|
formData.year === 0 ? null : Number(formData.year) + 543
|
||||||
|
|
@ -501,7 +518,10 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
>
|
>
|
||||||
</q-icon>
|
</q-icon>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="formData.year" v-slot:append>
|
<template
|
||||||
|
v-if="!checkRoutePermisson && formData.year"
|
||||||
|
v-slot:append
|
||||||
|
>
|
||||||
<q-icon
|
<q-icon
|
||||||
name="cancel"
|
name="cancel"
|
||||||
@click.stop.prevent="formData.year = 0"
|
@click.stop.prevent="formData.year = 0"
|
||||||
|
|
@ -524,7 +544,10 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
อัปโหลดไฟล์เอกสารหลักฐาน
|
อัปโหลดไฟล์เอกสารหลักฐาน
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<div class="row col-12 q-col-gutter-y-sm q-pa-sm">
|
<div
|
||||||
|
class="row col-12 q-col-gutter-y-sm q-pa-sm"
|
||||||
|
v-if="!checkRoutePermisson"
|
||||||
|
>
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<q-file
|
<q-file
|
||||||
for="inputFiles"
|
for="inputFiles"
|
||||||
|
|
@ -581,6 +604,7 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
v-if="!checkRoutePermisson"
|
||||||
size="12px"
|
size="12px"
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
|
@ -600,8 +624,8 @@ function updatemodalPersonal(modal: boolean) {
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12" v-if="!checkRoutePermisson"><q-separator /></div>
|
||||||
<div class="row col-12 q-pa-sm">
|
<div class="row col-12 q-pa-sm" v-if="!checkRoutePermisson">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
for="ButtonOnSubmit"
|
for="ButtonOnSubmit"
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,13 @@ async function updateQueryString(p: number, pS: number, key: string) {
|
||||||
function openEdit(id: string) {
|
function openEdit(id: string) {
|
||||||
router.push(`/discipline-result/${id}`);
|
router.push(`/discipline-result/${id}`);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* ไปหน้าแก้ไข
|
||||||
|
* @param id ไอดีเฉพาะ รายบุคคล
|
||||||
|
*/
|
||||||
|
function openDetail(id: string) {
|
||||||
|
router.push(`/discipline-result-detail/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
function filterStatus(statusReturn: string) {
|
function filterStatus(statusReturn: string) {
|
||||||
status.value = statusReturn;
|
status.value = statusReturn;
|
||||||
|
|
@ -102,6 +109,7 @@ onMounted(async () => {
|
||||||
:totalList="totalList"
|
:totalList="totalList"
|
||||||
@update:queryString="updateQueryString"
|
@update:queryString="updateQueryString"
|
||||||
v-model:open-edit="openEdit"
|
v-model:open-edit="openEdit"
|
||||||
|
v-model:open-detail="openDetail"
|
||||||
:filterStatus="filterStatus"
|
:filterStatus="filterStatus"
|
||||||
>
|
>
|
||||||
</Table>
|
</Table>
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
import { ref, useAttrs, watch } from "vue";
|
import { ref, useAttrs, watch } from "vue";
|
||||||
import { useDisciplineResultStore } from "@/modules/11_discipline/store/ResultStore";
|
import { useDisciplineResultStore } from "@/modules/11_discipline/store/ResultStore";
|
||||||
|
|
||||||
|
import { checkPermission } from "@/utils/permissions";
|
||||||
|
|
||||||
const store = useDisciplineResultStore();
|
const store = useDisciplineResultStore();
|
||||||
const table = ref<any>(null);
|
const table = ref<any>(null);
|
||||||
const filterRef = ref<any>(null);
|
const filterRef = ref<any>(null);
|
||||||
|
|
@ -33,6 +35,10 @@ const props = defineProps({
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
},
|
},
|
||||||
|
openDetail: {
|
||||||
|
type: Function,
|
||||||
|
default: () => console.log("not function"),
|
||||||
|
},
|
||||||
filterStatus: {
|
filterStatus: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => console.log("not function"),
|
default: () => console.log("not function"),
|
||||||
|
|
@ -155,7 +161,11 @@ function filterOptionFn(val: string, update: Function) {
|
||||||
<template v-if="statusFilter !== 'ALL'" v-slot:append>
|
<template v-if="statusFilter !== 'ALL'" v-slot:append>
|
||||||
<q-icon
|
<q-icon
|
||||||
name="cancel"
|
name="cancel"
|
||||||
@click.stop.prevent="(option = store.statusOptions),(statusFilter = 'ALL'), dataUpdate()"
|
@click.stop.prevent="
|
||||||
|
(option = store.statusOptions),
|
||||||
|
(statusFilter = 'ALL'),
|
||||||
|
dataUpdate()
|
||||||
|
"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -213,6 +223,7 @@ function filterOptionFn(val: string, update: Function) {
|
||||||
>
|
>
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
|
<q-th auto-width></q-th>
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<span class="text-weight-medium" v-html="col.label" />
|
<span class="text-weight-medium" v-html="col.label" />
|
||||||
</q-th>
|
</q-th>
|
||||||
|
|
@ -220,12 +231,23 @@ function filterOptionFn(val: string, update: Function) {
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
<q-tr :props="props" class="cursor-pointer">
|
<q-tr :props="props" class="cursor-pointer">
|
||||||
<q-td
|
<q-td auto-width>
|
||||||
v-for="col in props.cols"
|
<q-btn flat round dense icon="mdi-eye" color="info" @click="openDetail(props.row.id)" v-if="checkPermission($route)?.attrIsGet">
|
||||||
:key="col.name"
|
<q-tooltip>รายละเอียด</q-tooltip>
|
||||||
:props="props"
|
</q-btn>
|
||||||
@click="openEdit(props.row.id)"
|
<q-btn
|
||||||
>
|
v-if="checkPermission($route)?.attrIsUpdate && checkPermission($route)?.attrIsGet"
|
||||||
|
flat
|
||||||
|
round
|
||||||
|
dense
|
||||||
|
icon="edit"
|
||||||
|
color="edit"
|
||||||
|
@click="openEdit(props.row.id)"
|
||||||
|
>
|
||||||
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
|
</q-btn>
|
||||||
|
</q-td>
|
||||||
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
<div v-if="col.name == 'no'">
|
<div v-if="col.name == 'no'">
|
||||||
{{
|
{{
|
||||||
(currentPage - 1) * Number(pagination.rowsPerPage) +
|
(currentPage - 1) * Number(pagination.rowsPerPage) +
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,6 @@ function downloadFile(link: string) {
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
size="12px"
|
|
||||||
color="blue"
|
color="blue"
|
||||||
icon="mdi-download-outline"
|
icon="mdi-download-outline"
|
||||||
@click="downloadFile(f.pathName)"
|
@click="downloadFile(f.pathName)"
|
||||||
|
|
@ -198,9 +197,8 @@ function downloadFile(link: string) {
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
size="12px"
|
|
||||||
color="red"
|
color="red"
|
||||||
icon="mdi-delete-outline"
|
icon="mdi-delete"
|
||||||
@click="popupRemove(f.id)"
|
@click="popupRemove(f.id)"
|
||||||
><q-tooltip>ลบเอกสาร</q-tooltip></q-btn
|
><q-tooltip>ลบเอกสาร</q-tooltip></q-btn
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ const resultMainPage = () =>
|
||||||
import("@/modules/11_discipline/components/4_Result/MainPage.vue");
|
import("@/modules/11_discipline/components/4_Result/MainPage.vue");
|
||||||
const resultEditPage = () =>
|
const resultEditPage = () =>
|
||||||
import("@/modules/11_discipline/components/4_Result/EditPage.vue");
|
import("@/modules/11_discipline/components/4_Result/EditPage.vue");
|
||||||
|
const resultDetailPage = () =>
|
||||||
|
import("@/modules/11_discipline/components/4_Result/EditPage.vue");
|
||||||
|
|
||||||
// รายชื่อผู้ถูกพักราชการ
|
// รายชื่อผู้ถูกพักราชการ
|
||||||
const listSuspendMainPage = () =>
|
const listSuspendMainPage = () =>
|
||||||
|
|
@ -227,6 +229,16 @@ export default [
|
||||||
Role: "STAFF",
|
Role: "STAFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/discipline-result-detail/:id",
|
||||||
|
name: "disciplineResultDetail",
|
||||||
|
component: resultDetailPage,
|
||||||
|
meta: {
|
||||||
|
Auth: true,
|
||||||
|
Key: "SYS_DISCIPLINE_RESULT",
|
||||||
|
Role: "STAFF",
|
||||||
|
},
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// path: "/discipline/report",
|
// path: "/discipline/report",
|
||||||
// name: "disciplineReport",
|
// name: "disciplineReport",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue