| 
					
				 | 
			
			
				@@ -9,12 +9,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-card class="box-card" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              v-for="(card,index) in dataList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             :key='index' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             :key='index+"index"' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				              style="width:1000px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <p class="timeTitle"> {{card.monday}} - {{card.sunday}}</p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="listWrap" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           v-for="(item,index) in card.data" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-           :key="index"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           v-for="(item,subIndex) in card.data" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           :key="subIndex"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="m-row"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div class="textWrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <p class="title">类型 : </p> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -59,7 +59,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class="arrowBox" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-             @click="getComment(item)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+             @click="getComment(item,index,subIndex)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div class="border"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <i :class="item.up?'el-icon-arrow-up':'el-icon-arrow-down'"></i> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,7 +188,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.dataList[i].data = this.dataList[i].data.map(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               res.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               res.homeWork = res.attachments.split(',') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              console.log(res.homeWork) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               return res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -200,10 +199,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     goBack () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$router.push({ path: '/operateManager/serverIndexList', query: { search: this.Fsearch, rules: this.Frules } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    getComment (item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getComment (item,index,subIndex) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 数据处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (item.up) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        item.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          item.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$forceUpdate() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // item.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let extra; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (item.homeworkType == 'EXTRA') { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -215,11 +216,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         findStudentHomeworkComments({ studentCourseHomeworkId: item.studentHomeworkId, extra, rows: 9999 }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (res.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.activeCommit = res.data.rows; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.up = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.dataList.map(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              res.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              return res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // item.up = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (let i in this.dataList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.dataList[i].data = this.dataList[i].data.map(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                res.up = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return res; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.up = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 |