【fix bug】代码生成器时间范围查询的组件优化
This commit is contained in:
+6
-9
@@ -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-col :xl="10" :lg="11" :md="12" :sm="24">
|
||||||
<#if query_field_no gt 1> </#if><a-form-item label="${po.filedComment}">
|
<#if query_field_no gt 1> </#if><a-form-item label="${po.filedComment}">
|
||||||
<#if po.classType=='date'>
|
<#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><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><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>
|
<#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'>
|
<#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><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><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>
|
<#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>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
},
|
},
|
||||||
<#if date_flag>
|
<#list columns as po>
|
||||||
test(){
|
<#if po.classType=='datetime' || po.classType=='date'>
|
||||||
<#list columns as po>
|
${po.fieldName}OnOk () {
|
||||||
<#if po.classType=='datetime' || po.classType=='date'>
|
this.queryParam.${po.fieldName}_begin = this.queryParam.${po.fieldName}Range[0]
|
||||||
console.log("111" + ${po.fieldName})
|
this.queryParam.${po.fieldName}_end = this.queryParam.${po.fieldName}Range[1]
|
||||||
</#if>
|
|
||||||
</#list>
|
|
||||||
},
|
},
|
||||||
</#if>
|
</#if>
|
||||||
|
</#list>
|
||||||
getSuperFieldList () {
|
getSuperFieldList () {
|
||||||
<#include "/common/utils.ftl">
|
<#include "/common/utils.ftl">
|
||||||
const fieldList = []
|
const fieldList = []
|
||||||
|
|||||||
Reference in New Issue
Block a user