|
@@ -372,7 +372,7 @@
|
|
|
filterable
|
|
filterable
|
|
|
v-model="course.form.videoIds"
|
|
v-model="course.form.videoIds"
|
|
|
placeholder="请选择小节"
|
|
placeholder="请选择小节"
|
|
|
- :multiple-limit="getDiff(course.row.periodStartingTime, course.row.periodEndTime) - course.total"
|
|
|
|
|
|
|
+ :multiple-limit="getDiff(periodSettingsData.periodStartingTime, periodSettingsData.periodEndTime) - course.total"
|
|
|
multiple
|
|
multiple
|
|
|
clearable
|
|
clearable
|
|
|
size="small"
|
|
size="small"
|
|
@@ -1605,7 +1605,17 @@ export default {
|
|
|
const allVideoIds = this.videoList.map(video => parseInt(video.dictValue));
|
|
const allVideoIds = this.videoList.map(video => parseInt(video.dictValue));
|
|
|
|
|
|
|
|
// 获取剩余可选择数量
|
|
// 获取剩余可选择数量
|
|
|
- const remainingLimit = this.getDiff(this.course.row.periodStartingTime, this.course.row.periodEndTime) - this.course.total;
|
|
|
|
|
|
|
+ const remainingLimit = this.getDiff(this.periodSettingsData.periodStartingTime, this.periodSettingsData.periodEndTime) - this.course.total;
|
|
|
|
|
+
|
|
|
|
|
+ // 调试信息
|
|
|
|
|
+ console.log('批量选择调试信息:', {
|
|
|
|
|
+ 营期开始时间: this.periodSettingsData.periodStartingTime,
|
|
|
|
|
+ 营期结束时间: this.periodSettingsData.periodEndTime,
|
|
|
|
|
+ 营期总天数: this.getDiff(this.periodSettingsData.periodStartingTime, this.periodSettingsData.periodEndTime),
|
|
|
|
|
+ 已有课程数: this.course.total,
|
|
|
|
|
+ 剩余可选择数量: remainingLimit,
|
|
|
|
|
+ 可用小节总数: allVideoIds.length
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
// 只选择剩余数量内的小节
|
|
// 只选择剩余数量内的小节
|
|
|
const selectedVideoIds = allVideoIds.slice(0, remainingLimit);
|
|
const selectedVideoIds = allVideoIds.slice(0, remainingLimit);
|