select
<select name="pAvailable" class="form-control m-b" required> <option th:selected="*{pAvailable eq ‘Y‘}" value="Y">可用</option> <option th:selected="*{pAvailable eq ‘N‘}" value="N">禁用</option> </select>
<select name="pBelong" class="form-control m-b" th:with="type=${@dict.getType(‘belong‘)}" required> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{pBelong}"></option> </select> //RUOYI
待续...
原文:https://www.cnblogs.com/julian-chang/p/11907087.html