parent
							
								
									3c5375027b
								
							
						
					
					
						commit
						d0a6303571
					
				| @ -0,0 +1,90 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"> | ||||
| <head> | ||||
|     <th:block th:include="include :: header('考试统计')" /> | ||||
|     <th:block th:include="include :: element-css" /> | ||||
| </head> | ||||
| <style> | ||||
|     .count_box{ | ||||
|         height: 97%; | ||||
|     } | ||||
|     .count_bottom{ | ||||
|         width: 100%; | ||||
|         height: 100%; | ||||
|         background-color: white; | ||||
|         border-radius: 10px; | ||||
|         margin-top: 10px; | ||||
|         overflow: auto; | ||||
|     } | ||||
| </style> | ||||
| <body class="gray-bg"> | ||||
| <div class="container-div" id="app"> | ||||
|     <div class="row"> | ||||
|         <div class="count_box"> | ||||
|             <div class="count_bottom"> | ||||
|                 <el-table | ||||
|                         :data="tableData" | ||||
|                         style="width: 100%;border-radius: 10px;" | ||||
|                         max-height="520" | ||||
|                 > | ||||
|                     <el-table-column | ||||
|                             prop="title" | ||||
|                             label="考试名称" | ||||
|                             align="center" | ||||
|                     > | ||||
|                     </el-table-column> | ||||
|                     <el-table-column | ||||
|                             prop="total" | ||||
|                             label="考试总数" | ||||
|                             align="center" | ||||
|                     > | ||||
|                     </el-table-column> | ||||
|                     <el-table-column | ||||
|                             prop="tg" | ||||
|                             label="通过人数" | ||||
|                             align="center"> | ||||
|                     </el-table-column> | ||||
|                     <el-table-column | ||||
|                             prop="wtg" | ||||
|                             label="未通过人数" | ||||
|                             align="center"> | ||||
|                     </el-table-column> | ||||
|                     <el-table-column label="操作" align="center"> | ||||
|                         <template slot-scope="scope"> | ||||
|                             <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">详情</el-button> | ||||
|                         </template> | ||||
|                     </el-table-column> | ||||
|                 </el-table> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| 
 | ||||
| </div> | ||||
| <th:block th:include="include :: footer" /> | ||||
| <th:block th:include="include :: element-js" /> | ||||
| <th:block th:include="include :: echarts-js" /> | ||||
| <script th:inline="javascript"> | ||||
|     var prefix = ctx + "system/examnum"; | ||||
|     var app = new Vue({ | ||||
|         el: '#app', | ||||
|         data: { | ||||
|             tableData: [], | ||||
|         }, | ||||
|         created(){ | ||||
|             this.init() | ||||
|         }, | ||||
|         methods:{ | ||||
|             init(){ | ||||
|                 axios.post(prefix + '/countExamList').then(response => { | ||||
|                     this.tableData = response.data.data | ||||
|                 }) | ||||
|             }, | ||||
|             handleEdit(index,row){ | ||||
|                 var url = prefix + '/examnum/' + row.examId | ||||
|                 $.modal.openTab("考试明细", url); | ||||
|             } | ||||
|         } | ||||
|     }) | ||||
| </script> | ||||
| </body> | ||||
| </html> | ||||
					Loading…
					
					
				
		Reference in new issue