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

计数器参数 --fix

上级 ce49018e
...@@ -28,7 +28,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -28,7 +28,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
super(opts); super(opts);
this.initCounterData(); this.initCounterData();
setInterval(() => { setInterval(() => {
this.fetchCounterData(); this.fetchCounterData(this.context,this.viewparams);
}, <#if item.getTimer()??>${item.getTimer()?c}<#else>6000</#if>); }, <#if item.getTimer()??>${item.getTimer()?c}<#else>6000</#if>);
} }
...@@ -39,7 +39,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -39,7 +39,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
public initCounterData(){ public initCounterData(){
this.fetchCounterData(); this.fetchCounterData(this.context,this.viewparams);
} }
/** /**
...@@ -64,7 +64,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -64,7 +64,7 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
public async refreshData(){ public async refreshData(){
const res = await this.fetchCounterData(); const res = await this.fetchCounterData(this.context,this.viewparams);
return res; return res;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册