|
@@ -129,6 +129,15 @@ export default {
|
|
|
getLesson(date, time) {
|
|
|
this.$set(this, `length`, this.tr.length - 2);
|
|
|
let r = this.lessons.find(f => f.date == date && f.time == time);
|
|
|
+ // 需要查下,最后一天的下午第一节课,如果是,就要看day,为1则不显示
|
|
|
+ if (_.isArray(this.th) && _.isArray(this.tr) && this.th.length > 0 && this.tr.length > 0) {
|
|
|
+ const lastDate = _.last(this.th);
|
|
|
+ const timeIndex = this.tr.findIndex(f => f === time);
|
|
|
+ if (lastDate === date && timeIndex === 2) {
|
|
|
+ if (r.day === '1') return '--';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if (!r) return '--';
|
|
|
else {
|
|
|
let { subname, teaname = '', reason, time } = r;
|