- 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
待续...
来源: http://www.bubuko.com/infodetail-3297763.html