提交 61e0d6a1 编写于 作者: tony001's avatar tony001

zpc --- 快速搜索栏

上级 3f1069f1
......@@ -228,6 +228,10 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
this.resetFormData({ name: name, newVal: newVal, oldVal: oldVal });
this.formLogic({ name: name, newVal: newVal, oldVal: oldVal });
this.dataChang.next(JSON.stringify(this.data));
<#-- 搜索栏值变更抛值 -->
<#if ctrl.getFormStyle() == "SEARCHBAR">
this.$emit('valuechange',this.data);
</#if>
}
/**
......
......@@ -6,6 +6,7 @@
</#if>
loaddraftAction="<#if ctrl.getGetDraftPSControlAction()?? && ctrl.getGetDraftPSControlAction().getPSAppDEMethod()??>${ctrl.getGetDraftPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
loadAction="<#if ctrl.getGetPSControlAction()?? && ctrl.getGetPSControlAction().getPSAppDEMethod()??>${ctrl.getGetPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
<#if ctrl.getFormStyle() == "SEARCHBAR">@valuechange="qucikFormValueChange"</#if>
</#assign>
<#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl
......
......@@ -79,18 +79,6 @@
</#if>
<#if view.hasPSControl('searchform')>
${P.getCtrlCode('searchform', 'MODEL_CONTENT.ts').code}
</#if>
<#if view.getQuickPSDESearchForm()??>
<#assign quickSearchForm = view.getQuickPSDESearchForm()/>
<#list quickSearchForm.getPSDEFormItems() as dataitem>
{
name: '${dataitem.getName()}',
prop: '${dataitem.getPSDEFSearchMode().getCodeName()?lower_case}',
<#if dataitem.getPSDEField()??>
dataType: '${dataitem.getPSDEField().getDataType()}',
</#if>
},
</#list>
</#if>
{
name:'size',
......
......@@ -209,6 +209,25 @@ if(this.formDruipart){
this.onSearch($event);
}
</#if>
<#if view.getQuickPSDESearchForm()??>
/**
* 快速搜索栏数据对象
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public qucikFormData:any;
/**
* 快速搜索栏值变化
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public qucikFormValueChange($event:any){
this.qucikFormData = $event;
this.onSearch($event);
}
</#if>
<#ibizinclude>
./VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册