validate
This commit is contained in:
parent
033c666acc
commit
7fe32bc723
2 changed files with 5 additions and 0 deletions
|
|
@ -48,8 +48,10 @@ const modalHistory = ref<boolean>(false);
|
||||||
const date = ref<Date | null>(null);
|
const date = ref<Date | null>(null);
|
||||||
const detail = ref<string>();
|
const detail = ref<string>();
|
||||||
|
|
||||||
|
const dateRef = ref<object | null>(null);
|
||||||
const detailRef = ref<object | null>(null);
|
const detailRef = ref<object | null>(null);
|
||||||
const objectRef: MyObjectRef = {
|
const objectRef: MyObjectRef = {
|
||||||
|
date: dateRef,
|
||||||
detail: detailRef,
|
detail: detailRef,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -472,6 +474,8 @@ onMounted(() => {
|
||||||
outlined
|
outlined
|
||||||
dense
|
dense
|
||||||
:model-value="date2Thai(date)"
|
:model-value="date2Thai(date)"
|
||||||
|
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
|
||||||
|
hide-bottom-space
|
||||||
:label="`${'วันที่'}`"
|
:label="`${'วันที่'}`"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ interface FormFilter {
|
||||||
isProbation: boolean;
|
isProbation: boolean;
|
||||||
}
|
}
|
||||||
interface MyObjectRef {
|
interface MyObjectRef {
|
||||||
|
date: object | null;
|
||||||
detail: object | null;
|
detail: object | null;
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue