|
@@ -383,7 +383,8 @@ export default {
|
|
|
row.dayOfWeek - date.getDay() >= 0
|
|
|
? (num = row.dayOfWeek - date.getDay())
|
|
|
: (num = row.dayOfWeek - date.getDay() + 7);
|
|
|
- let end = dayjs(val).add(num+(row.expectCourseNum*7), 'day')
|
|
|
+ const exp = Math.max(row.expectCourseNum - 1, 0)
|
|
|
+ let end = dayjs(val).add(num + (exp*7), 'day')
|
|
|
if (row.holiday) {
|
|
|
for (const d of this.holidays) {
|
|
|
if (dayjs(d).isBetween(row.startDate, end.format('YYYY-MM-DD'), null, '[]')) {
|