list*.vm模板优化

dep_wangsr
RuoYi 5 years ago committed by Limy
parent be6278bab9
commit ed49c6dc27

@ -25,7 +25,7 @@
<label>${comment}</label> <label>${comment}</label>
<input type="text" name="${column.javaField}"/> <input type="text" name="${column.javaField}"/>
</li> </li>
#elseif($column.htmlType == "select" || $column.htmlType == "radio" && "" != $dictType) #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<li> <li>
<label>${comment}</label> <label>${comment}</label>
<select name="${column.javaField}" th:with="type=${@dict.getType('${dictType}')}"> <select name="${column.javaField}" th:with="type=${@dict.getType('${dictType}')}">
@ -33,11 +33,12 @@
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
#elseif($column.htmlType == "select" || $column.htmlType == "radio" && $dictType) #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
<li> <li>
<label>${comment}</label> <label>${comment}</label>
<select name="${column.javaField}"> <select name="${column.javaField}">
<option value="">所有</option> <option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select> </select>
</li> </li>
#elseif($column.htmlType == "datetime") #elseif($column.htmlType == "datetime")

@ -25,7 +25,7 @@
<label>${comment}</label> <label>${comment}</label>
<input type="text" name="${column.javaField}"/> <input type="text" name="${column.javaField}"/>
</li> </li>
#elseif($column.htmlType == "select" || $column.htmlType == "radio" && "" != $dictType) #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<li> <li>
<label>${comment}</label> <label>${comment}</label>
<select name="${column.javaField}" th:with="type=${@dict.getType('${dictType}')}"> <select name="${column.javaField}" th:with="type=${@dict.getType('${dictType}')}">
@ -33,11 +33,12 @@
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
#elseif($column.htmlType == "select" || $column.htmlType == "radio" && $dictType) #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
<li> <li>
<label>${comment}</label> <label>${comment}</label>
<select name="${column.javaField}"> <select name="${column.javaField}">
<option value="">所有</option> <option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select> </select>
</li> </li>
#elseif($column.htmlType == "datetime") #elseif($column.htmlType == "datetime")

Loading…
Cancel
Save