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

调整多数据视图快速分组代码表逻辑

上级 2cdfb2b8
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<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" <#if appCounter??>:counterService="${srfclassname('${appCounter.getCodeName()}')}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> </div>
</#if> </#if>
<#if view.getQuickPSDESearchForm()??> <#if view.getQuickPSDESearchForm()??>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<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" <#if appCounter??>:counterService="${srfclassname('${appCounter.getCodeName()}')}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> </div>
</#if> </#if>
<#if view.getQuickPSDESearchForm()??> <#if view.getQuickPSDESearchForm()??>
......
...@@ -172,7 +172,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -172,7 +172,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public quickGroupValueChange($event:any){ public quickGroupValueChange($event:any){
if($event && $event.data){ if($event){
this.quickGroupData = $event.data; this.quickGroupData = $event.data;
if(this.isEmitQuickGroupValue){ if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
......
...@@ -254,7 +254,7 @@ if(this.formDruipart){ ...@@ -254,7 +254,7 @@ if(this.formDruipart){
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public quickGroupValueChange($event:any){ public quickGroupValueChange($event:any){
if($event && $event.data){ if($event){
this.quickGroupData = $event.data; this.quickGroupData = $event.data;
if(this.isEmitQuickGroupValue){ if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
......
...@@ -152,7 +152,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -152,7 +152,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public quickGroupValueChange($event:any){ public quickGroupValueChange($event:any){
if($event && $event.data){ if($event){
this.quickGroupData = $event.data; this.quickGroupData = $event.data;
if(this.isEmitQuickGroupValue){ if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
......
...@@ -107,7 +107,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -107,7 +107,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store }); public ${appCounter.getCodeName()?lower_case}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store,context:this.context,viewparams:this.viewparams });
</#if> </#if>
<#if view.isEnableQuickGroup()> <#if view.isEnableQuickGroup()>
...@@ -200,7 +200,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -200,7 +200,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public quickGroupValueChange($event:any){ public quickGroupValueChange($event:any){
if($event && $event.data){ if($event){
this.quickGroupData = $event.data; this.quickGroupData = $event.data;
if(this.isEmitQuickGroupValue){ if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
......
...@@ -137,7 +137,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -137,7 +137,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService} * @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store }); public ${appCounter.getCodeName()?lower_case}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({ $store: this.$store,context:this.context,viewparams:this.viewparams });
</#if> </#if>
<#if view.isEnableQuickGroup()> <#if view.isEnableQuickGroup()>
...@@ -230,7 +230,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co ...@@ -230,7 +230,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public quickGroupValueChange($event:any){ public quickGroupValueChange($event:any){
if($event && $event.data){ if($event){
this.quickGroupData = $event.data; this.quickGroupData = $event.data;
if(this.isEmitQuickGroupValue){ if(this.isEmitQuickGroupValue){
this.onSearch($event); this.onSearch($event);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册