ปรับขนาดปฏิทิน และ validate ของฟอร์มสืบสวน

This commit is contained in:
Warunee Tamkoo 2023-12-07 14:07:24 +07:00
parent bc6c78c0a6
commit 9805a1d2c4
2 changed files with 4 additions and 6 deletions

View file

@ -345,7 +345,7 @@ function updateDateMonth(date: Date) {
</template>
<style scope lang="scss">
.main-content {
height: 65vh;
height: 85vh;
}
.color-main {

View file

@ -720,7 +720,7 @@ onMounted(async () => {
:rules="[
(val) =>
formData.investigationDetail === 'OTHER'
? !!val || 'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
? !!val || 'กรุณากรอกรายการอื่นๆ'
: true,
]"
@update:model-value="changeFormData()"
@ -796,10 +796,8 @@ onMounted(async () => {
map-options
:rules="[
(val) =>
formData.investigationExtendStatus
? !!val ||
'กรุณาเลือกจำนวนวันที่ต้องการขยาย'
: true,
(!!val && val != 0) ||
`${'กรุณาเลือกจำนวนวันที่ต้องการขยาย'}`,
]"
option-label="name"
option-value="id"