考试增加考试类型

This commit is contained in:
flower 2019-01-10 23:16:59 +08:00
parent 414690c9bd
commit 1d2b1e62c4
3 changed files with 218 additions and 185 deletions

View File

@ -31,6 +31,16 @@
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">考试类型</label>
<div class="col-sm-8">
<select id="type" name="type" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">是否控制开始结束时间:</label> <label class="col-sm-3 control-label">是否控制开始结束时间:</label>

View File

@ -19,7 +19,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">考试试卷:</label> <label class="col-sm-3 control-label">考试试卷:</label>
<div class="col-sm-3"> <div class="col-sm-3">
<input id="treeName" name="treeName" value="试卷分类" onclick="selectExamPaperCategoryTree()" class="form-control" type="text" readonly="true"> <input id="treeName" name="treeName" value="试卷分类" onclick="selectExamPaperCategoryTree()"
class="form-control" type="text" readonly="true">
</div> </div>
<div class="col-sm-5"> <div class="col-sm-5">
<select id="examPaperId" name="examPaperId" class="form-control m-b"> <select id="examPaperId" name="examPaperId" class="form-control m-b">
@ -27,12 +28,25 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">考试类型</label>
<div class="col-sm-8">
<select id="type" name="type" class="form-control m-b" th:field="*{type}" th:with="type=${@dict.getType('exam_ination_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">是否控制开始结束时间:</label> <label class="col-sm-3 control-label">是否控制开始结束时间:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="enableControlTime" name="enableControlTime" th:field="*{enableControlTime}" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_enableControlTime')}"> <select id="enableControlTime" name="enableControlTime" th:field="*{enableControlTime}"
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> class="form-control m-b" th:with="type=${@dict.getType('exam_ination_enableControlTime')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
@ -69,32 +83,41 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">题目乱序:</label> <label class="col-sm-3 control-label">题目乱序:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="questionDisorder" name="questionDisorder" th:field="*{questionDisorder}" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_questionDisorder')}"> <select id="questionDisorder" name="questionDisorder" th:field="*{questionDisorder}"
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> class="form-control m-b" th:with="type=${@dict.getType('exam_ination_questionDisorder')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">交卷后:</label> <label class="col-sm-3 control-label">交卷后:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="finishedPaper" name="finishedPaper" th:field="*{finishedPaper}" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_finishedPaper')}"> <select id="finishedPaper" name="finishedPaper" th:field="*{finishedPaper}" class="form-control m-b"
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> th:with="type=${@dict.getType('exam_ination_finishedPaper')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">考试结束后:</label> <label class="col-sm-3 control-label">考试结束后:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="examEnd" name="examEnd" class="form-control m-b" th:field="*{examEnd}" th:with="type=${@dict.getType('exam_ination_examEnd')}"> <select id="examEnd" name="examEnd" class="form-control m-b" th:field="*{examEnd}"
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> th:with="type=${@dict.getType('exam_ination_examEnd')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">考试对象:</label> <label class="col-sm-3 control-label">考试对象:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="examinationUserLimit" name="examinationUserLimit" th:field="*{examinationUserLimit}" class="form-control m-b" th:with="type=${@dict.getType('exam_ination_examinationUserLimit')}"> <select id="examinationUserLimit" name="examinationUserLimit" th:field="*{examinationUserLimit}"
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> class="form-control m-b"
th:with="type=${@dict.getType('exam_ination_examinationUserLimit')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>