提交 e1481a32 编写于 作者: RedPig97's avatar RedPig97

update:表格布局更新

上级 c3ed78d0
...@@ -32,9 +32,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code} ...@@ -32,9 +32,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code}
</template> </template>
<template #headerContent> <template #headerContent>
<#if view.isEnableQuickGroup()> <#if view.isEnableQuickGroup()>
<div class="quick-group-container"> <app-quick-group :items="quickGroupModel" <#if appCounter??>:counterService="${appCounter.getCodeName()?lower_case}counterservice"</#if> @valuechange="quickGroupValueChange"></app-quick-group>
<app-quick-group :items="quickGroupModel" <#if appCounter??>:counterService="${appCounter.getCodeName()?lower_case}counterservice"</#if> @valuechange="quickGroupValueChange"></app-quick-group>
</div>
</#if> </#if>
<#if view.getQuickPSDESearchForm()??> <#if view.getQuickPSDESearchForm()??>
<div class="quick-search-container"> <div class="quick-search-container">
...@@ -43,7 +41,8 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code} ...@@ -43,7 +41,8 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code}
</div> </div>
</#if> </#if>
<#if view.isEnableQuickSearch()> <#if view.isEnableQuickSearch()>
<i-input<#if view.hasPSControl('searchform')><#if view.isExpandSearchForm??> v-show="!isExpandSearchForm"</#if></#if> v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;padding-left: 24px' placeholder="<@getQuickSearchPlaceholder view />" /> <i-input v-model="query" class='quick-search-input' placeholder="<@getQuickSearchPlaceholder view />" />
<div class="search-form-toggle" @click="toggleSearchForm"><i class="el-icon-plus" />筛选条件</div>
</#if> </#if>
<#if view.hasPSControl('searchform')> <#if view.hasPSControl('searchform')>
${P.getCtrlCode('searchform', 'CONTROL.html').code} ${P.getCtrlCode('searchform', 'CONTROL.html').code}
......
...@@ -143,6 +143,24 @@ if(this.formDruipart){ ...@@ -143,6 +143,24 @@ if(this.formDruipart){
return this.$store.getters['viewaction/getRefreshData'](this.viewtag); return this.$store.getters['viewaction/getRefreshData'](this.viewtag);
} }
/**
* 切换搜索表单
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public toggleSearchForm() {
this.isExpandSearchForm = !this.isExpandSearchForm;
}
/**
* 搜索表单重置
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public onReset() {
// todo
}
/** /**
* 监控数据变化 * 监控数据变化
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册