ทะเบียนประวัติ: แก้วันเดือนปีเกิด
This commit is contained in:
parent
f80a07b55e
commit
c885ecfffa
2 changed files with 16 additions and 1 deletions
|
|
@ -267,6 +267,12 @@ async function getData() {
|
|||
});
|
||||
}
|
||||
|
||||
const calculateMaxDate = () => {
|
||||
const today = new Date();
|
||||
today.setFullYear(today.getFullYear() - 18);
|
||||
return today;
|
||||
};
|
||||
|
||||
async function editData() {
|
||||
showLoader();
|
||||
await http
|
||||
|
|
@ -550,7 +556,9 @@ onMounted(async () => {
|
|||
<div class="col-xs-6 col-sm-6 col-md-6">
|
||||
<datepicker
|
||||
autoApply
|
||||
:max-date="calculateMaxDate()"
|
||||
borderless
|
||||
:enableTimePicker="false"
|
||||
week-start="0"
|
||||
menu-class-name="modalfix"
|
||||
v-model="formData.birthDate"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue