Refactoring code module 11_probation
This commit is contained in:
parent
779e33d2a5
commit
606064c77c
5 changed files with 42 additions and 40 deletions
|
|
@ -5,12 +5,11 @@ import { useRoute, useRouter } from "vue-router";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import Criterion from "@/modules/11_probation/component/Criterion.vue";
|
||||
|
||||
import { useProbationStore } from "@/modules/11_probation/store/probation";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import Criterion from "@/modules/11_probation/component/Criterion.vue";
|
||||
|
||||
const Header = defineAsyncComponent(
|
||||
() => import("@/modules/11_probation/component/Header.vue")
|
||||
);
|
||||
|
|
@ -1481,7 +1480,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
class="bg-white"
|
||||
:rules="[
|
||||
(val) =>
|
||||
(val:string) =>
|
||||
(val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
]"
|
||||
/>
|
||||
|
|
@ -1557,7 +1556,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
class="bg-white"
|
||||
:rules="[
|
||||
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
]"
|
||||
/>
|
||||
</q-item-section>
|
||||
|
|
@ -1843,7 +1842,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
class="bg-white"
|
||||
:rules="[
|
||||
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
]"
|
||||
/>
|
||||
</q-item-section>
|
||||
|
|
@ -1909,7 +1908,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
class="bg-white"
|
||||
:rules="[
|
||||
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
|
||||
]"
|
||||
/>
|
||||
</q-item-section>
|
||||
|
|
@ -2332,7 +2331,7 @@ onMounted(async () => {
|
|||
dateAutherise != null ? date2Thai(dateAutherise) : null
|
||||
"
|
||||
:label="`${'ลงวันที่'}`"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
|
||||
:rules="[(val:string) => !!val || `${'กรุณาเลือกลงวันที่'}`]"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<q-icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue