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

zpc --- 快速分组计数器支持

上级 fc04d2d1
<#assign MDContent><#t> <#assign MDContent><#t>
<#if view.getPSSysCounterRef() ?? && view.getPSSysCounterRef().getPSAppCounter()??>
<#assign appCounter = view.getPSSysCounterRef().getPSAppCounter() />
</#if>
<#if view.getViewType() == "DEGRIDVIEW9"> <#if view.getViewType() == "DEGRIDVIEW9">
<#if view.hasPSControl('searchform')> <#if view.hasPSControl('searchform')>
${P.getCtrlCode('searchform', 'CONTROL.html').code} ${P.getCtrlCode('searchform', 'CONTROL.html').code}
...@@ -12,7 +15,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code} ...@@ -12,7 +15,7 @@ ${P.getCtrlCode('grid', 'CONTROL.html').code}
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<#if view.isEnableQuickGroup()> <#if view.isEnableQuickGroup()>
<div class="quick-group-container"> <div class="quick-group-container">
<app-quick-group :items="quickGroupModel" counterName="quickcounter" @valuechange="qucikGroupValueChange"></app-quick-group> <app-quick-group :items="quickGroupModel" :counterService="${srfclassname('${appCounter.getCodeName()}')}counterservice" @valuechange="qucikGroupValueChange"></app-quick-group>
</div> </div>
</#if> </#if>
<#if view.getQuickPSDESearchForm()??> <#if view.getQuickPSDESearchForm()??>
......
<#if view.getPSSysCounterRef() ?? && view.getPSSysCounterRef().getPSAppCounter()??>
<#assign appCounter = view.getPSSysCounterRef().getPSAppCounter() />
</#if>
<#ibizinclude> <#ibizinclude>
./LAYOUTPANEL_VIEW.template.ftl ./LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude> </#ibizinclude>
<#assign import_block> <#assign import_block>
import CodeListService from "@service/app/codelist-service"; import CodeListService from "@service/app/codelist-service";
<#if appCounter??>
import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/counter/${srffilepath2(appCounter.getCodeName())}/${srffilepath2(appCounter.getCodeName())}-counter';
</#if>
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
...@@ -45,6 +51,16 @@ if(this.formDruipart){ ...@@ -45,6 +51,16 @@ if(this.formDruipart){
public isSingleSelect: boolean = ${grid.isSingleSelect()?c}; public isSingleSelect: boolean = ${grid.isSingleSelect()?c};
</#if> </#if>
<#if appCounter??>
/**
* ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象
*
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}Base
*/
public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store });
</#if>
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
* *
...@@ -166,6 +182,13 @@ if(this.formDruipart){ ...@@ -166,6 +182,13 @@ if(this.formDruipart){
*/ */
public qucikGroupData:any; public qucikGroupData:any;
/**
* 快速分组是否有抛值
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public isEmitQuickGroupValue:boolean = false;
/** /**
* 快速分组模型 * 快速分组模型
* *
...@@ -207,9 +230,12 @@ if(this.formDruipart){ ...@@ -207,9 +230,12 @@ if(this.formDruipart){
public qucikGroupValueChange($event:any){ public qucikGroupValueChange($event:any){
if($event && $event.data){ if($event && $event.data){
this.qucikGroupData = $event.data; this.qucikGroupData = $event.data;
if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
} }
} }
this.isEmitQuickGroupValue = true;
}
</#if> </#if>
<#if view.getQuickPSDESearchForm()??> <#if view.getQuickPSDESearchForm()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册