新增
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">状态
<i class="text-danger">*</i>:
</label>
<div class="col-sm-8">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}" />
<span th:text="${type.name}"></span>
</label>
</div>
</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">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}"
th:attr="checked=${userCheck.status == type.value?true:false}" disabled/>
<span th:text="${type.name}"></span>
</label>
</div>
</div>
</div>
</div>
修改
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-4 control-label">状态
<i class="text-danger">*</i>:
</label>
<div class="col-sm-8">
<div class="form-control ">
<label class="radio-inline" th:each="type,state:${SYS.dict('emp_status')}">
<input type="radio" name="status" th:value="${type.value}" th:attr="checked=${userCheck.status == type.value?true:false}"/>
<span th:text="${type.name}"></span>
</label>
</div>
</div>
</div>
</div>