前端switch
<div class="form-group">
<label class="col-sm-3 control-label">状态:</label>
<div class="col-sm-8" th:switch="*{state}">
<input th:case="1" name="state" th:value="已反馈" class="form-control" type="text">
<input th:case="2" name="state" th:value="企业认证" class="form-control" type="text">
<input th:case="3" name="state" th:value="数据采集" class="form-control" type="text">
<input th:case="4" name="state" th:value="批贷" class="form-control" type="text">
<input th:case="5" name="state" th:value="无效" class="form-control" type="text">
<input th:case="6" name="state" th:value="已完结" class="form-control" type="text">
</div>
</div>