适用于若依前端为html
最近的项目使用了若以不分离版本,这个版本的前端没有使用vue,对于我这后端来说简直是一场灾难。
下面这个是编辑页面的下拉选择,只需要替换三处就可以了。
<div class="col-sm-6">
<div class="form-group">
<label class="col-sm-3 control-label">团队:</label>
<div class="col-sm-6">
<select name="发送后端的团队字段" class="form-control m-b" th:with="type=${@dict.getType('创建的团队字典')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{团队字段}"></option>
</select>
</div>
</div>
</div>