| 
					
				 | 
			
			
				@@ -1,10 +1,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <div class="app-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <div class="elective-report-container"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <!--   print-hidden定义在PDF生成程序中   --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div v-if="electiveVisible" class="print-hidden text-right mb10"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-button type="primary" icon="el-icon-printer" @click="handlePrint">打印</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div class="width100"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-image :src="require('@/assets/images/elective/elective_report_cover.png')"></el-image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <el-divider class="new-page"><h1>选科测评报告</h1></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <elective-test-reports></elective-test-reports> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <el-divider><h1>选科大数据分析</h1></el-divider> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <group-subject-query class="print-page"></group-subject-query> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -26,6 +29,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import consts from '@/common/mx-const' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ElectiveTestReports from '@/views/elective/report/components/elective-test-reports' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import GroupSubjectQuery from '@/views/permission/components/group-subject-query' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import RoundSelect from '@/views/system/user/profile/round-select' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,6 +39,7 @@ import GroupScoreTable from '@/views/elective/report/components/group-score-tabl 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ElectiveFlowTable from '@/views/elective/report/components/elective-flow-table' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ElectiveEnrollAnalysis from '@/views/elective/report/components/elective-enroll-analysis' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import ElectiveAiAnalysis from '@/views/elective/report/components/elective-ai-analysis' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { getSelectedBookReport } from '@/api/webApi/elective/selected-subject' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'report-index', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,6 +70,19 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getOptionalMajors: () => this.optionalMajors, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       getEvaluationMajors: () => this.evaluationMajors 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    handlePrint() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (!this.generation?.status?.roundId) return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      getSelectedBookReport({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        roundId: this.generation.status.roundId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        reportType: consts.enum.electiveReportType.student 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.data?.url) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$router.push({ path: '/elective/report/flip', query: { path: res.data.url } }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 |