在线视频页面布局调整

This commit is contained in:
xuhubin 2020-11-06 15:11:14 +08:00
parent f313a78e71
commit ad3c45b9c7
3 changed files with 44 additions and 5 deletions

View File

@ -38,8 +38,13 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">课程难度等级:</label> <label class="col-sm-3 control-label is-required">课程难度等级:</label>
<div class="col-sm-8"> <!--<div class="col-sm-8">
<input name="coursesLevel" class="form-control" type="text" required> <input name="coursesLevel" class="form-control" type="text" required>
</div>-->
<div class="col-sm-8">
<select class="form-control">
<option th:each="dict : ${@dict.getType('course_level')}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -32,7 +32,11 @@
</li> </li>
<li> <li>
<label>课程难度等级:</label> <label>课程难度等级:</label>
<input type="text" name="coursesLevel"/> <!--<input type="text" name="coursesLevel"/>-->
<select name="coursesLevel" th:with="type=${@dict.getType('course_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li> </li>
<li> <li>
<!--<label>状态:</label> <!--<label>状态:</label>
@ -82,6 +86,8 @@
<script th:inline="javascript"> <script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('front:courses:edit')}]]; var editFlag = [[${@permission.hasPermi('front:courses:edit')}]];
var removeFlag = [[${@permission.hasPermi('front:courses:remove')}]]; var removeFlag = [[${@permission.hasPermi('front:courses:remove')}]];
var dictStatus = [[${@dict.getType('sys_normal_disable')}]];
var courseLevel = [[${@dict.getType('course_level')}]];
var prefix = ctx + "front/courses"; var prefix = ctx + "front/courses";
function toEvaluateList() { function toEvaluateList() {
var url = ctx +"front/evaluate"; var url = ctx +"front/evaluate";
@ -125,7 +131,10 @@
}, },
{ {
field: 'coursesLevel', field: 'coursesLevel',
title: '课程难度等级' title: '课程难度等级',
formatter: function(value, item, index) {
return $.table.selectDictLabel(courseLevel, item.coursesLevel);
}
}, },
{ {
field: 'pictureUrl', field: 'pictureUrl',
@ -145,7 +154,10 @@
}, },
{ {
field: 'status', field: 'status',
title: '状态' title: '状态',
formatter: function(value, item, index) {
return $.table.selectDictLabel(dictStatus, item.status);
}
}, },
{ {
title: '操作', title: '操作',

View File

@ -39,9 +39,31 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">课程难度等级:</label> <label class="col-sm-3 control-label is-required">课程难度等级:</label>
<!--<div class="col-sm-8">-->
<!--<input name="coursesLevel" th:field="*{coursesLevel}" class="form-control" type="text" required>-->
<!--</div>-->
<!--<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('course_level')}" th:field="*{coursesLevel}">
<input type="radio" th:id="${dict.dictCode}" name="coursesLevel" th:value="${dict.dictValue}" th:checked="${dict.default}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>-->
<!--<select name="coursesLevel" th:with="type=${@dict.getType('course_level')}" class="col-sm-8">-->
<!--<th:block th:each="dict : ${type}">-->
<!--<th:block th:if="${dict.dictValue ne '0'}">-->
<!--<option th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:selected="${dict.dictValue eq coursesLevel}"/>-->
<!--</th:block>-->
<!--</th:block>-->
<!--</select>-->
<div class="col-sm-8"> <div class="col-sm-8">
<input name="coursesLevel" th:field="*{coursesLevel}" class="form-control" type="text" required> <select th:field="*{coursesLevel}" class="form-control">
<option th:each="dict : ${@dict.getType('course_level')}" th:value="${dict.dictValue}" th:text="${dict.dictLabel}"></option>
</select>
</div> </div>
<!--<select name="coursesLevel" th:with="type=${@dict.getType('course_level')}">-->
<!--<option value="">所有</option>-->
<!--<option th:selected="${dict.dictValue eq *{coursesLevel}}" 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 is-required">图片:</label> <label class="col-sm-3 control-label is-required">图片:</label>