Commit fed849be by RuoYi

list*.vm模板优化

parent fe296cc8
...@@ -25,7 +25,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment