fix bug rules

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-27 16:56:52 +07:00
parent 0c1ae8c74f
commit 751953b569
83 changed files with 422 additions and 422 deletions

View file

@ -102,7 +102,7 @@
:borderless="!edit"
v-model="name"
autogrow
:rules="[(val) => (val && val.length > 0) || '']"
:rules="[(val:string) => (val && val.length > 0) || '']"
/>
<q-option-group
v-if="showEdit == false"

View file

@ -149,7 +149,7 @@
class="full-width datepicker q-pb-none"
v-model="name"
type="textarea"
:rules="[(val) => (val && val.length > 0) || '']"
:rules="[(val:string) => (val && val.length > 0) || '']"
/>
</div>
</div>

View file

@ -84,8 +84,8 @@
autofocus
hide-bottom-space
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val) =>
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val:string) =>
checkDupDataName(val) || 'ชื่อซ้ำกันกับข้อมูลที่มีอยู่แล้ว',
]"
></q-input>
@ -104,8 +104,8 @@
lazy-rules
hide-bottom-space
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val) =>
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val:string) =>
checkDupDataShortName(val) ||
'ชื่อซ้ำกันกับข้อมูลที่มีอยู่แล้ว',
]"

View file

@ -72,8 +72,8 @@
autofocus
hide-bottom-space
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val) =>
(val:string) => (val && val.length > 0) || 'กรุณากรอกข้อมูลให้ครบ',
(val:string) =>
checkDupDataName(val) || 'ชื่อซ้ำกันกับข้อมูลที่มีอยู่แล้ว',
]"
></q-input>