|
|
@ -157,6 +157,8 @@ const handleDateChange=async(value)=> { |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
console.log(data) |
|
|
|
if (formType === 'create') { |
|
|
|
data.calendarDateList=data.calendarDate |
|
|
|
data.calendarDate=[] |
|
|
|
await ReceivedCalendarApi.createReceivedCalendar(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
@ -214,7 +216,7 @@ const getData=async () =>{ |
|
|
|
const month = today.getMonth(); // 注意:月份是从0开始的,0代表1月,11代表12月 |
|
|
|
dayData.value = await ReceivedCalendarApi.getMonthReceivedCalendar({ |
|
|
|
receivedNumber:'', |
|
|
|
calendarDate:year + '-' + (month + 1 >= 10 ? month + 1 : '0' +( month + 1)), |
|
|
|
calendarDateString:year + '-' + (month + 1 >= 10 ? month + 1 : '0' +( month + 1)), |
|
|
|
}) |
|
|
|
await getDatesInCurrentMonth(year,month) |
|
|
|
} |
|
|
|