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

计数器服务

上级 9e13c606
...@@ -49,18 +49,13 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase ...@@ -49,18 +49,13 @@ export default class ${srfclassname('${item.getCodeName()}')}CounterServiceBase
* @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase * @memberof ${srfclassname('${item.getCodeName()}')}CounterServiceBase
*/ */
public async fetchCounterData(){ public async fetchCounterData(){
this.counterData = { <#if item.getPSAppDataEntity?? && item.getPSAppDataEntity()?? && item.getGetPSAppDEAction?? && item.getGetPSAppDEAction()??>
item1:parseInt((Math.random()*10)+''), let _appEntityService:any = await this.appEntityService.getService('${item.getPSAppDataEntity().getCodeName()?lower_case}');
item2:parseInt((Math.random()*100)+''), if (_appEntityService['${item.getGetPSAppDEAction().getCodeName()}'] && _appEntityService['${item.getGetPSAppDEAction().getCodeName()}'] instanceof Function) {
item3:parseInt((Math.random()*100)+''), let result = await _appEntityService['${item.getGetPSAppDEAction().getCodeName()}'](context,data, false);
item4:parseInt((Math.random()*100)+''), this.counterData = result.data;
item5:parseInt((Math.random()*100)+''),
item6:parseInt((Math.random()*100)+''),
item7:parseInt((Math.random()*100)+''),
item8:parseInt((Math.random()*100)+''),
item9:parseInt((Math.random()*100)+''),
item10:parseInt((Math.random()*100)+'')
} }
</#if>
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册