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

分页面板调整

上级 71a15e41
......@@ -31,7 +31,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* @type {${srfclassname('${appCounter.getCodeName()}')}CounterService}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService();
protected ${srfclassname('${appCounter.getCodeName()}')}counterservice: ${srfclassname('${appCounter.getCodeName()}')}CounterService = new ${srfclassname('${appCounter.getCodeName()}')}CounterService({$store: this.$store,context:this.context,viewparams:this.viewparams});
</#if>
</#list>
......@@ -44,6 +44,18 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
protected counterServiceArray:Array<any> = [${counterRefs}];
</#if>
/**
* 销毁计数器服务
*
* @memberof ${srfclassname('${view.name}')}
*/
public counterserviceDestroy(){
this.counterServiceArray.forEach((item:any)=>{
item.destroyCounter();
});
}
/**
* 获取多项数据
*
......@@ -132,6 +144,7 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
protected afterDestroy() {
this.counterserviceDestroy();
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册