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

update

上级 0c98de14
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<i-input v-model="query" @on-change="onQueryChange" placeholder="<#if ctrl.getPSSearchBarQuickSearchs()??><#list ctrl.getPSSearchBarQuickSearchs() as search><#if search_index gt 0>,</#if><#if search.getPSDEField()??>${search.getPSDEField().getLogicName()}</#if></#list></#if>" style="<#if ctrl.getQuickSearchWidth() gt 0>width: ${ctrl.getQuickSearchWidth()?c}px;</#if>"></i-input> <i-input v-model="query" @on-change="onQueryChange" placeholder="<#if ctrl.getPSSearchBarQuickSearchs()??><#list ctrl.getPSSearchBarQuickSearchs() as search><#if search_index gt 0>,</#if><#if search.getPSDEField()??>${search.getPSDEField().getLogicName()}</#if></#list></#if>" style="<#if ctrl.getQuickSearchWidth() gt 0>width: ${ctrl.getQuickSearchWidth()?c}px;</#if>"></i-input>
</#if> </#if>
<div class="search-bar-action"> <div class="search-bar-action">
<i-button title="搜索"><i class="fa fa-search" aria-hidden="true"></i></i-button> <i-button title="搜索" @click="onSearch"><i class="fa fa-search" aria-hidden="true"></i></i-button>
<i-button title="添加" v-if="filterFields.length > 0" @click="onAdd"><i class="fa fa-plus" aria-hidden="true"></i></i-button> <i-button title="添加" v-if="filterFields.length > 0" @click="onAdd"><i class="fa fa-plus" aria-hidden="true"></i></i-button>
<i-button title="保存"><i class="fa fa-floppy-o" aria-hidden="true"></i></i-button> <i-button title="保存" @click="onSave"><i class="fa fa-floppy-o" aria-hidden="true"></i></i-button>
<i-button title="重置"><i class="fa fa-repeat" aria-hidden="true"></i></i-button> <i-button title="重置" @click="onReset"><i class="fa fa-repeat" aria-hidden="true"></i></i-button>
</div> </div>
</div> </div>
<div v-if="filterFields.length > 0" class="filter-group"> <div v-if="filterFields.length > 0" class="filter-group">
...@@ -132,6 +132,36 @@ ...@@ -132,6 +132,36 @@
public onAdd() { public onAdd() {
this.filterItems.push({}); this.filterItems.push({});
} }
/**
* 搜索
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onSearch() {
this.$emit('search', this.getData());
}
/**
* 保存
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onSave() {
}
/**
* 重置
*
* @return {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public onReset() {
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
<#-- content --> <#-- content -->
<#assign content>
@search="onSearch($event)"
</#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl ../@MACRO/HTML/DEFAULT.html.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册