feat:考试详情

pg_adapter
wangxy 9 months ago
parent 41b21c0f8d
commit 4d0a96e740

@ -63,7 +63,7 @@ public class UserExamController extends BaseController {
public String detail(@PathVariable("examId") String examId, @PathVariable("userId") Long userId, ModelMap mmap) { public String detail(@PathVariable("examId") String examId, @PathVariable("userId") Long userId, ModelMap mmap) {
List<PaperListRespDTO> list = userExamManager.detail(examId, userId); List<PaperListRespDTO> list = userExamManager.detail(examId, userId);
mmap.put("list", list); mmap.put("list", list);
return prefix + "/userExam"; return prefix + "/view";
} }

@ -80,7 +80,7 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="detail(\'' + row.id + '\',\'' + row.userId + '\')"><i class="fa fa-search"></i>考试明细</a> '); actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="detail(\'' + row.examId + '\',\'' + row.userId + '\')"><i class="fa fa-search"></i>考试明细</a> ');
return actions.join(''); return actions.join('');
} }
}] }]

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('详情')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content" >
<tbody th:each="columns : ${list}">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label is-required">考试时间:</label>
<div class="col-sm-8">
<span class="date">[[${#dates.format(columns.updateTime, 'yyyy-MM-dd hh:MM:ss')}]]</span>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">考试用时:</label>
<div class="col-sm-8">
<span class="date">[[${columns.userTime}]]分钟</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">考试得分:</label>
<div class="col-sm-8">
<span class="date">[[${columns.userScore}]]</span>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">及格分:</label>
<div class="col-sm-8">
<span class="date">[[${columns.qualifyScore}]]</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">考试状态:</label>
<div class="col-sm-8">
<span th:if="${columns.state} eq 0 ">考试中</span>
<span th:if="${columns.state} eq 1 ">待阅卷</span>
<span th:if="${columns.state} eq 2 ">已完成</span>
<span th:if="${columns.state} eq 3 ">弃考</span>
</div>
</div>
</div>
</div>
</tbody>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
</script>
</body>
</html>
Loading…
Cancel
Save