Showing
2 changed files
with
3 additions
and
2 deletions
| @@ -37,7 +37,8 @@ export struct ENewspaperPageComponent { | @@ -37,7 +37,8 @@ export struct ENewspaperPageComponent { | ||
| 37 | onDateChange: (date: RMCalendarBean) => { | 37 | onDateChange: (date: RMCalendarBean) => { |
| 38 | console.log("onDateChange-日历选择弹框", "date:", JSON.stringify(date)) | 38 | console.log("onDateChange-日历选择弹框", "date:", JSON.stringify(date)) |
| 39 | if (date.fullYear && date.month && date.date) { | 39 | if (date.fullYear && date.month && date.date) { |
| 40 | - this.calendarDate = `${date.fullYear}-${date.month > 9 ? date.month + 1 : '0' + (date.month + 1)}-${date.date > 9 ? date.date : '0' + date.date}` | 40 | + let month: number = date.month + 1 |
| 41 | + this.calendarDate = `${date.fullYear}-${month > 9 ? month : '0' + month}-${date.date > 9 ? date.date : '0' + date.date}` | ||
| 41 | this.getNewspaperTime() | 42 | this.getNewspaperTime() |
| 42 | this.getNewspaperList() | 43 | this.getNewspaperList() |
| 43 | } | 44 | } |
| @@ -10,7 +10,7 @@ export struct ENewspaperCalendarDialog { | @@ -10,7 +10,7 @@ export struct ENewspaperCalendarDialog { | ||
| 10 | build() { | 10 | build() { |
| 11 | RMCalendar({ | 11 | RMCalendar({ |
| 12 | // 开始日期 | 12 | // 开始日期 |
| 13 | - startDate: new Date(2023, 8, 1), | 13 | + startDate: new Date(2000, 1, 1), |
| 14 | // 截止日期 | 14 | // 截止日期 |
| 15 | endDate: new Date(), | 15 | endDate: new Date(), |
| 16 | // 日期选择变化监听 | 16 | // 日期选择变化监听 |
-
Please register or login to post a comment