数据字典应用

This commit is contained in:
RuoYi
2018-05-23 22:33:18 +08:00
parent 3c5abd5669
commit ce80396188
29 changed files with 229 additions and 162 deletions

View File

@ -37,14 +37,10 @@
</div>
<div class="form-group">
<label class="col-sm-3 control-label">状态:</label>
<div class="col-sm-8">
<div class="radio radio-info radio-inline">
<input type="radio" id="radio1" name="status" value="0" checked="">
<label for="radio1">正常</label>
</div>
<div class="radio radio-danger radio-inline">
<input type="radio" id="radio2" name="status" value="1">
<label for="radio2">禁用</label>
<div class="col-sm-8" th:with="datas=${@dictService.selectDictData('sys_job_status')}">
<div th:each="dict : ${datas}" th:class="${dict['cssClass']}">
<input type="radio" th:id="${dict['dictCode']}" name="status" th:value="${dict['dictValue']}" th:checked="${dict['isDefault'] == 'Y' ? true : false}">
<label th:for="${dict['dictCode']}" th:text="${dict['dictLabel']}"></label>
</div>
</div>
</div>