fix bug rules
This commit is contained in:
parent
0c1ae8c74f
commit
751953b569
83 changed files with 422 additions and 422 deletions
|
|
@ -468,7 +468,7 @@ onMounted(() => {
|
|||
:options="optionOrganization"
|
||||
label="หน่วยงานที่ถูกร้องเรียน"
|
||||
:rules="[
|
||||
(val) => !!val || `${'กรุณาเลือกหน่วยงานที่ถูกร้องเรียน'}`,
|
||||
(val:string) => !!val || `${'กรุณาเลือกหน่วยงานที่ถูกร้องเรียน'}`,
|
||||
]"
|
||||
@update:model-value="changeFormData()"
|
||||
use-input
|
||||
|
|
@ -706,7 +706,7 @@ onMounted(() => {
|
|||
"
|
||||
label="วันที่รับเรื่อง"
|
||||
:rules="[
|
||||
(val) => !!val || `${'กรุณาเลือกวันที่รับเรื่อง'}`,
|
||||
(val:any) => !!val || `${'กรุณาเลือกวันที่รับเรื่อง'}`,
|
||||
]"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import DialogHeader from "@/components/DialogHeader.vue";
|
|||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin;
|
||||
const { showLoader, messageError, hideLoader } = mixin;
|
||||
const listCheck = ref<number | null>();
|
||||
|
||||
const props = defineProps({
|
||||
|
|
|
|||
|
|
@ -351,8 +351,8 @@ onMounted(() => {
|
|||
|
||||
<DialogEdit
|
||||
v-model:modal="modalEdit"
|
||||
v-model:personalId="personalId"
|
||||
:isEdit="isEdit"
|
||||
:getList="getList"
|
||||
v-model:personal-id="personalId"
|
||||
:is-edit="isEdit"
|
||||
:get-list="getList"
|
||||
/>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@ interface FormData {
|
|||
status: string;
|
||||
result: string;
|
||||
persons: object | null;
|
||||
organizationId: string | null;
|
||||
organizationId: string | null | number;
|
||||
disciplineComplaintDocs: object | null;
|
||||
activeId?: string | null;
|
||||
organization?: string;
|
||||
consideredAgencyId?: string | null;
|
||||
consideredAgencyId?: string | null | number;
|
||||
}
|
||||
|
||||
interface ArrayPerson {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { defineStore } from "pinia";
|
|||
import type { QTableProps } from "quasar";
|
||||
|
||||
import type { DataOption } from "@/modules/11_discipline/interface/index/Main";
|
||||
import type { ArrayPersonAdd } from "@/modules/11_discipline/interface/response/Investigate";
|
||||
import type { ArrayPersonAdd } from "@/modules/11_discipline/interface/response/investigate";
|
||||
|
||||
export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
||||
/** option ผู้ถูกสอบสวน*/
|
||||
|
|
@ -333,23 +333,23 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* แปลง status เป็น text #กรรมการ
|
||||
* @param val status
|
||||
* @returns text
|
||||
*/
|
||||
function pathDirector(val: string) {
|
||||
switch (val) {
|
||||
case "disciplineInvestigatefactsEdit":
|
||||
case "disciplineInvestigatefactsDetail":
|
||||
return "inves";
|
||||
case "disciplineDisciplinaryEdit":
|
||||
case "disciplineDisciplinaryDetail":
|
||||
return "discip";
|
||||
case "disciplineDirector":
|
||||
return "main";
|
||||
}
|
||||
function pathDirector(val: string) {
|
||||
switch (val) {
|
||||
case "disciplineInvestigatefactsEdit":
|
||||
case "disciplineInvestigatefactsDetail":
|
||||
return "inves";
|
||||
case "disciplineDisciplinaryEdit":
|
||||
case "disciplineDisciplinaryDetail":
|
||||
return "discip";
|
||||
case "disciplineDirector":
|
||||
return "main";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* แปลง status เป็น text #สอบสวนความผิดทางวินัย
|
||||
|
|
@ -499,6 +499,6 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
|
|||
pathInves,
|
||||
pathDiscip,
|
||||
pathComplaintsChannal,
|
||||
pathDirector
|
||||
pathDirector,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue