提交 8cf9dbd2 编写于 作者: tony001's avatar tony001

zpc --- 补充树节点关系导航上下文,导航参数上下文 -fix5

上级 67a7b894
...@@ -153,7 +153,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -153,7 +153,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
srfnodefilter: srfnodefilter, srfnodefilter: srfnodefilter,
strRealNodeId: strRealNodeId, strRealNodeId: strRealNodeId,
srfnodeid: srfnodeid, srfnodeid: srfnodeid,
strNodeType: strNodeType strNodeType: strNodeType,
viewparams: JSON.parse(JSON.stringify(data)).viewparams
} }
); );
...@@ -210,6 +211,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -210,6 +211,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
*/ */
@Errorlog @Errorlog
public fill${srfclassname(node.getNodeType()?lower_case)}Nodes(context:any={},filter: any, list: any[],rsNavContext?:any,rsNavParams?:any,rsParams?:any): Promise<any> { public fill${srfclassname(node.getNodeType()?lower_case)}Nodes(context:any={},filter: any, list: any[],rsNavContext?:any,rsNavParams?:any,rsParams?:any): Promise<any> {
context = this.handleResNavContext(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(filter.viewparams)),rsNavContext);
filter = this.handleResNavParams(JSON.parse(JSON.stringify(context)),JSON.parse(JSON.stringify(filter.viewparams)),rsNavParams,rsParams);
return new Promise((resolve:any,reject:any) =>{ return new Promise((resolve:any,reject:any) =>{
<#if node.getTreeNodeType() == 'STATIC'> <#if node.getTreeNodeType() == 'STATIC'>
let treeNode: any = {}; let treeNode: any = {};
...@@ -722,15 +725,35 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -722,15 +725,35 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
} }
/** /**
* 处理关系导航上下文及参数 * 处理节点关系导航上下文
*
* @param context 应用上下文
* @param viewparams 参数
* @param resNavContext 节点关系导航上下文
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Service * @memberof ${srfclassname('${ctrl.codeName}')}Service
*/ */
public handleResParams(curNavData:any,tempData:any,item:string){ public handleResNavContext(context:any,viewparams:any,resNavContext:any){
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
} }
/**
* 处理关系导航参数
*
* @param context 应用上下文
* @param viewparams 参数
* @param resNavParams 节点关系导航参数
* @param resParams 节点关系参数
*
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public handleResNavParams(context:any,viewparams:any,resNavParams:any,resParams:any){
}
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
<#ibizinclude> <#ibizinclude>
../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl ../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册