【fix bug】代码生成器时间范围查询的组件优化
This commit is contained in:
+12
@@ -69,10 +69,12 @@
|
||||
<#if query_field_no gt 1> </#if><a-col :xl="10" :lg="11" :md="12" :sm="24">
|
||||
<#if query_field_no gt 1> </#if><a-form-item label="${po.filedComment}">
|
||||
<#if po.classType=='date'>
|
||||
<#assign date_flag=true>
|
||||
<#if query_field_no gt 1> </#if><j-date showType="day" placeholder="请选择开始日期" class="query-group-cust" v-model="queryParam.${po.fieldName}_begin"></j-date>
|
||||
<#if query_field_no gt 1> </#if><span class="query-group-split-cust"></span>
|
||||
<#if query_field_no gt 1> </#if><j-date showType="day" placeholder="请选择结束日期" class="query-group-cust" v-model="queryParam.${po.fieldName}_end"></j-date>
|
||||
<#elseif po.classType=='datetime'>
|
||||
<#assign date_flag=true>
|
||||
<#if query_field_no gt 1> </#if><j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.${po.fieldName}_begin"></j-date>
|
||||
<#if query_field_no gt 1> </#if><span class="query-group-split-cust"></span>
|
||||
<#if query_field_no gt 1> </#if><j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.${po.fieldName}_end"></j-date>
|
||||
@@ -406,6 +408,15 @@ export default {
|
||||
</#if>
|
||||
</#list>
|
||||
},
|
||||
<#if date_flag>
|
||||
test(){
|
||||
<#list columns as po>
|
||||
<#if po.classType=='datetime' || po.classType=='date'>
|
||||
console.log("111" + ${po.fieldName})
|
||||
</#if>
|
||||
</#list>
|
||||
},
|
||||
</#if>
|
||||
getSuperFieldList () {
|
||||
<#include "/common/utils.ftl">
|
||||
const fieldList = []
|
||||
@@ -414,6 +425,7 @@ export default {
|
||||
</#list>
|
||||
this.superFieldList = fieldList
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user