修正普通文本框字段如果查询方式为BETWEEN,list.html无法正确生成代码的问题

pull/549/head
K.X 2025-03-28 09:34:18 +08:00
parent 9c9567a5e7
commit f7942187e0
2 changed files with 25 additions and 11 deletions

View File

@ -20,11 +20,18 @@
#else
#set($comment=$column.columnComment)
#end
#if($column.htmlType == "input")
#if($column.htmlType == "input" && $column.queryType != "BETWEEN")
<li>
<label>${comment}</label>
<input type="text" name="${column.javaField}"/>
</li>
#elseif($column.htmlType == "input" && $column.queryType == "BETWEEN")
<li class="select-time">
<label>${comment}</label>
<input type="text" id="begin${AttrName}" placeholder="开始${comment}" name="params[begin${AttrName}]"/>
<span>-</span>
<input type="text" id="end${AttrName}" placeholder="结束${comment}" name="params[end${AttrName}]"/>
</li>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<li>
<label>${comment}</label>

View File

@ -20,11 +20,18 @@
#else
#set($comment=$column.columnComment)
#end
#if($column.htmlType == "input")
#if($column.htmlType == "input" && $column.queryType != "BETWEEN")
<li>
<label>${comment}</label>
<input type="text" name="${column.javaField}"/>
</li>
#elseif($column.htmlType == "input" && $column.queryType == "BETWEEN")
<li class="select-time">
<label>${comment}</label>
<input type="text" id="begin${AttrName}" placeholder="开始${comment}" name="params[begin${AttrName}]"/>
<span>-</span>
<input type="text" id="end${AttrName}" placeholder="结束${comment}" name="params[end${AttrName}]"/>
</li>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
<li>
<label>${comment}</label>