fix: More than 18 years old
This commit is contained in:
parent
dccff8ef5a
commit
850f28e8db
1 changed files with 7 additions and 1 deletions
|
|
@ -151,7 +151,7 @@
|
|||
autoApply
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
:max-date="new Date()"
|
||||
:max-date="getMaxBirthDate(registerEndDate)"
|
||||
:disabled="!(status == 'register' || status == 'rejectRegister')"
|
||||
@update:modelValue="selectBirthDate"
|
||||
>
|
||||
|
|
@ -629,6 +629,12 @@ const idDialog = () => {
|
|||
cardid2.value = defaultInformation.value.cardid
|
||||
cardid1.value = defaultInformation.value.cardid
|
||||
}
|
||||
|
||||
function getMaxBirthDate(registerEndDate: Date | string): Date {
|
||||
const date = new Date(registerEndDate)
|
||||
date.setFullYear(date.getFullYear() - 18)
|
||||
return date
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue