|
@@ -384,9 +384,11 @@ export default {
|
|
|
? (num = row.dayOfWeek - date.getDay())
|
|
|
: (num = row.dayOfWeek - date.getDay() + 7);
|
|
|
let end = dayjs(val).add(num+(row.expectCourseNum*7), 'day')
|
|
|
- for (const d of this.holidays) {
|
|
|
- if (dayjs(d).isBetween(row.startDate, end.format('YYYY-MM-DD'), null, '[]')) {
|
|
|
- end = end.add(7, 'day')
|
|
|
+ if (row.holiday) {
|
|
|
+ for (const d of this.holidays) {
|
|
|
+ if (dayjs(d).isBetween(row.startDate, end.format('YYYY-MM-DD'), null, '[]')) {
|
|
|
+ end = end.add(7, 'day')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.$set(
|