|
@@ -171,6 +171,7 @@ export default {
|
171
|
171
|
serachKey: '', //关键字搜素
|
172
|
172
|
keys: [], //兴趣选项
|
173
|
173
|
days: [], //周期
|
|
174
|
+ daysMap: { 星期一: '1', 星期二: '2', 星期三: '3', 星期四: '4', 星期五: '5' },
|
174
|
175
|
interests: [], //兴趣
|
175
|
176
|
attends: [], //课程
|
176
|
177
|
week: [], //记录日期
|
|
@@ -276,8 +277,10 @@ export default {
|
276
|
277
|
if (this.attends.length > 0) {
|
277
|
278
|
this.attends.map((course, index) => {
|
278
|
279
|
const list = course.list
|
|
280
|
+ const week = course.week
|
|
281
|
+ const dayKey = this.daysMap[week]
|
279
|
282
|
const item = list[0]
|
280
|
|
- const class_attend_id = item.status > 0 ? item.class_attend_id : null
|
|
283
|
+ const class_attend_id = item.status == 0 || !this.params.week.includes(dayKey) ? null : item.class_attend_id
|
281
|
284
|
this.$set(this.checked, index, [class_attend_id])
|
282
|
285
|
const prop = item.prop.length > 0 ? [item.prop[0].id] : []
|
283
|
286
|
this.$set(this.checked_props, index, [{ class_attend_id: class_attend_id, prop: prop }])
|