提交 1ef8f43d 编写于 作者: JunZai's avatar JunZai

update

上级 bfd0a37c
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
<div v-if="filterFields.length > 0" class="filter-group"> <div v-if="filterFields.length > 0" class="filter-group">
<template v-for="(item, index) of filterItems"> <template v-for="(item, index) of filterItems">
<filter-item :key="index" :data="item" :filterFields="filterFields" @remove="onRemove(index)"> <filter-item :key="index" :data="item" :filterFields="filterFields" @remove="onRemove(index)">
<template slot-scope="{data}"> <template slot-scope="{ data }">
<template v-if="!data.field">
<i-input></i-input>
</template>
<#if ctrl.getPSSearchBarFilters()??> <#if ctrl.getPSSearchBarFilters()??>
<#list ctrl.getPSSearchBarFilters() as filter> <#list ctrl.getPSSearchBarFilters() as filter>
<template v-if="Object.is(data.field, '<#if filter.getPSDEField()??>${filter.getPSDEField().getCodeName()?lower_case}<#else>${filter.getName()}</#if>')"> <template v-if="Object.is(data.field, '<#if filter.getPSDEField()??>${filter.getPSDEField().getCodeName()?lower_case}<#else>${filter.getName()}</#if>')">
...@@ -130,7 +133,7 @@ ...@@ -130,7 +133,7 @@
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onAdd() { public onAdd() {
this.filterItems.push({}); this.filterItems.push({ group: '1' });
} }
/** /**
...@@ -160,7 +163,8 @@ ...@@ -160,7 +163,8 @@
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public onReset() { public onReset() {
this.query = '';
this.filterItems = [];
} }
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册