chenxiong %!s(int64=3) %!d(string=hai) anos
pai
achega
5b0ec42787
Modificáronse 1 ficheiros con 22 adicións e 0 borrados
  1. 22 0
      pages2/plan/index.vue

+ 22 - 0
pages2/plan/index.vue

@@ -359,6 +359,28 @@ export default {
 			this.calendarStudyVo.miniDayStudyList = this.calendarStudyVo.dayStudyList.slice(start, start + 7);
 			this.showDayList = this.calendarStudyVo.miniDayStudyList;
 			console.log(this.showDayList)
+			
+			for (let i = 0; i < this.calendarStudyVo.dayStudyList.length; i++) {
+				let item = this.calendarStudyVo.dayStudyList[i];
+				
+				if (item.note > 0) {
+					item.note = 0;
+					this.showDayList.forEach(day => {
+						if(day.date == item.date) {
+							if(day.daySectionList) {
+								day.daySectionList.forEach(section => {
+									this.listItem.goodsVos.forEach(vos => {
+										if(vos.goodsId == section.goodsId) {
+											item.note += vos.classHours
+										}
+									})
+								})
+							}
+						}
+					})
+				}
+			}
+			
 		},
 		jumpDetail(item) {
 			this.$navTo.togo('/pages2/wd/course', {