|
@ -261,7 +261,10 @@ const daysInMonths = ref([]) |
|
|
const onChange = (field, value, formRef)=>{ |
|
|
const onChange = (field, value, formRef)=>{ |
|
|
if(field=='beginMonth'){ |
|
|
if(field=='beginMonth'){ |
|
|
let days = [] |
|
|
let days = [] |
|
|
for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){ |
|
|
let maxday = dayjs(`${value}-01`).daysInMonth() |
|
|
|
|
|
if(value==2) maxday = 29 |
|
|
|
|
|
|
|
|
|
|
|
for (let i=1;i<=maxday;i++){ |
|
|
days.push({ |
|
|
days.push({ |
|
|
value:i, |
|
|
value:i, |
|
|
label:i |
|
|
label:i |
|
|