fix:label q-input year
This commit is contained in:
parent
7ecf76701a
commit
f3bd67c93f
12 changed files with 20 additions and 20 deletions
|
|
@ -1154,7 +1154,7 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
<label class="col-1 flex justify-center items-center">/</label>
|
<label class="col-1 flex justify-center items-center">/</label>
|
||||||
<div class="col-5">
|
<div class="col-5">
|
||||||
<!-- :rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]" -->
|
<!-- :rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']" -->
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="formData.commandYear"
|
v-model="formData.commandYear"
|
||||||
|
|
@ -1178,7 +1178,7 @@ onMounted(async () => {
|
||||||
? null
|
? null
|
||||||
: formData.commandYear + 543
|
: formData.commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -1118,7 +1118,7 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
<label class="col-1 flex justify-center items-center">/</label>
|
<label class="col-1 flex justify-center items-center">/</label>
|
||||||
<div class="col-5">
|
<div class="col-5">
|
||||||
<!-- :rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]" -->
|
<!-- :rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']" -->
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="formData.commandYear"
|
v-model="formData.commandYear"
|
||||||
|
|
@ -1142,7 +1142,7 @@ onMounted(async () => {
|
||||||
? null
|
? null
|
||||||
: formData.commandYear + 543
|
: formData.commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -253,8 +253,8 @@ function classInput(val: boolean) {
|
||||||
? null
|
? null
|
||||||
: formData.commandYear + 543
|
: formData.commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
:rules="isAddPosition ? [(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`] : []"
|
:rules="isAddPosition ? [(val:string) => !!val || 'กรุณากรอกปี พ.ศ.'] : []"
|
||||||
clearable
|
clearable
|
||||||
@clear="formData.commandYear = null"
|
@clear="formData.commandYear = null"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1112,7 +1112,7 @@ onMounted(async () => {
|
||||||
? null
|
? null
|
||||||
: formData.commandYear + 543
|
: formData.commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
clearable
|
clearable
|
||||||
@clear="formData.commandYear = null"
|
@clear="formData.commandYear = null"
|
||||||
@update:model-value="onUpdateData"
|
@update:model-value="onUpdateData"
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ onMounted(async () => {
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:model-value="year === null ? 'ทั้งหมด' : Number(year) + 543"
|
:model-value="year === null ? 'ทั้งหมด' : Number(year) + 543"
|
||||||
:label="`${'ปีพ.ศ.'}`"
|
:label="`${'ปี พ.ศ.'}`"
|
||||||
>
|
>
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ onMounted(async () => {
|
||||||
:model-value="
|
:model-value="
|
||||||
fiscalyear === null ? 'ทั้งหมด' : Number(fiscalyear) + 543
|
fiscalyear === null ? 'ทั้งหมด' : Number(fiscalyear) + 543
|
||||||
"
|
"
|
||||||
:label="`${'ปีพ.ศ.'}`"
|
:label="`${'ปี พ.ศ.'}`"
|
||||||
>
|
>
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -508,7 +508,7 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
borderless
|
borderless
|
||||||
:model-value="Number(year) + 543"
|
:model-value="Number(year) + 543"
|
||||||
:label="`${'ปีพ.ศ.'}`"
|
:label="`${'ปี พ.ศ.'}`"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -438,8 +438,8 @@ watch(
|
||||||
:model-value="
|
:model-value="
|
||||||
commandYear == null ? null : commandYear + 543
|
commandYear == null ? null : commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
|
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
@ -478,8 +478,8 @@ watch(
|
||||||
outlined
|
outlined
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
:model-value="commandYear == null ? null : commandYear + 543"
|
:model-value="commandYear == null ? null : commandYear + 543"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
|
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -431,8 +431,8 @@ watch(modal, async () => {
|
||||||
:model-value="
|
:model-value="
|
||||||
commandYear == null ? null : commandYear + 543
|
commandYear == null ? null : commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
|
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -182,8 +182,8 @@ watch(modal, () => {
|
||||||
:model-value="
|
:model-value="
|
||||||
commandYear == null ? null : commandYear + 543
|
commandYear == null ? null : commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
|
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ onMounted(async () => {
|
||||||
? null
|
? null
|
||||||
: formData.commandYear + 543
|
: formData.commandYear + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ onMounted(async () => {
|
||||||
:model-value="
|
:model-value="
|
||||||
queryParams.year == null ? null : queryParams.year + 543
|
queryParams.year == null ? null : queryParams.year + 543
|
||||||
"
|
"
|
||||||
:label="`${'พ.ศ.'}`"
|
label="ปี พ.ศ."
|
||||||
>
|
>
|
||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<q-icon
|
<q-icon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue