提交 386322dc 编写于 作者: KK's avatar KK

分页视图调整

上级 89b6c778
......@@ -27,7 +27,10 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
<#assign tabexppanel = view.getPSControl('tabexppanel')>
<#assign dename = tabexppanel.getPSAppDataEntity().getCodeName()?lower_case>
<#assign created_block>
this.getLocalStorage();
this.getLocalStorage();
</#assign>
<#assign mounted_block>
this.counterserviceInit();
</#assign>
<#assign counterRefs = ''/>
<#if view.getAllPSControls?? && view.getAllPSControls()??>
......@@ -45,7 +48,7 @@ this.getLocalStorage();
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}
*/
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService();
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: any;
</#if>
</#if>
</#if>
......@@ -53,6 +56,36 @@ this.getLocalStorage();
</#list>
</#if>
/**
* 计数器服务初始化
*
* @type {Array<*>}
* @memberof ${srfclassname('${view.name}')}
*/
public counterserviceInit(){
<#if view.getAllPSControls?? && view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType?? && ctrl.getControlType()?? && ctrl.getControlType() == 'TABVIEWPANEL'>
<#if ctrl.getPSSysCounterRef?? && ctrl.getPSSysCounterRef()??>
<#if ctrl.getPSSysCounterRef().getPSAppCounter()??>
<#assign appCounter = ctrl.getPSSysCounterRef().getPSAppCounter()/>
<#if !P.exists("importService3", ctrl.getPSSysCounterRef().getPSAppCounter().getPSAppDataEntity().getId(), "")>
/**
* ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象
*
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${view.name}')}
*/
this.${srfclassname('${appCounter.getCodeName()}')}counterservice = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({$store: this.$store,context:this.context,viewparams:this.viewparams});
</#if>
</#if>
</#if>
</#if>
</#list>
</#if>
}
/**
* 计数器服务对象集合
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册