【fix bug】代码生成器时间范围查询的组件优化

This commit is contained in:
梁琦涛
2023-03-15 16:49:21 +08:00
parent d3570291a7
commit 205d330c1c
@@ -69,12 +69,10 @@
<#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>
@@ -408,15 +406,14 @@ 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>
<#list columns as po>
<#if po.classType=='datetime' || po.classType=='date'>
${po.fieldName}OnOk () {
this.queryParam.${po.fieldName}_begin = this.queryParam.${po.fieldName}Range[0]
this.queryParam.${po.fieldName}_end = this.queryParam.${po.fieldName}Range[1]
},
</#if>
</#list>
getSuperFieldList () {
<#include "/common/utils.ftl">
const fieldList = []