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

分页视图面板计数器服务模板调整 -- fix1

上级 09b64c7c
...@@ -2,6 +2,23 @@ ...@@ -2,6 +2,23 @@
../@MACRO/LAYOUTPANEL_VIEW.template.ftl ../@MACRO/LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude> </#ibizinclude>
<#assign import_block>
<#if view.getAllPSControls?? && view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType?? && ctrl.getControlType()?? && ctrl.getControlType() == 'TABVIEWPANEL'>
<#-- 计数器服务 -->
<#if ctrl.getPSSysCounterRef?? && ctrl.getPSSysCounterRef()??>
<#assign singleCounterRef = ctrl.getPSSysCounterRef()>
<#if singleCounterRef.getPSAppCounter()??>
<#assign appCounter = singleCounterRef.getPSAppCounter()/>
import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/app-core/counter/${srffilepath2(appCounter.getCodeName())}/${srffilepath2(appCounter.getCodeName())}-counter';
</#if>
</#if>
</#if>
</#list>
</#if>
</#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_HEADER-BASE.vue.ftl ../@MACRO/VIEW_HEADER-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
...@@ -11,6 +28,37 @@ ...@@ -11,6 +28,37 @@
<#assign created_block> <#assign created_block>
this.getLocalStorage(); this.getLocalStorage();
</#assign> </#assign>
<#if view.getAllPSControls?? && view.getAllPSControls()??>
<#list view.getAllPSControls() as ctrl>
<#if ctrl.getControlType?? && ctrl.getControlType()?? && ctrl.getControlType() == 'TABVIEWPANEL'>
<#if ctrl.getPSSysCounterRef?? && ctrl.getPSSysCounterRef()??>
<#assign counterRefs = ''/>
<#assign singleCounterRef = ctrl.getPSSysCounterRef()>
<#if singleCounterRef.getPSAppCounter()??>
<#assign appCounter = singleCounterRef.getPSAppCounter()/>
<#assign counterRefs>${counterRefs}this.${srfclassname('${appCounter.getCodeName()}')}counterservice,</#assign>
/**
* ${srfclassname('${appCounter.getCodeName()}')}CounterService计数器服务对象
*
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService();
</#if>
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected counterServiceArray:Array<any> = [${counterRefs}];
</#if>
</#if>
</#list>
</#if>
/** /**
* 被激活的分页面板 * 被激活的分页面板
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册