提交 cf36ee1f 编写于 作者: Mosher's avatar Mosher

update:更新

上级 c7601de5
<#ibiztemplate>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
import { UIActionContext } from "@/logic/uiaction-context";
import { BeginNode, EndNode, AppendParamNode } from "@/logic/logic-node";
import { ILogicNode } from "@/interface/logic";
import { UIActionContext } from "@/logic/ui-logic";
/**
* ${item.name}
......@@ -16,12 +16,26 @@ export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
* Creates an instance of ${item.codeName}Base.
*
* @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
constructor(opts: any = {}) { }
/**
* 开始节点
*
* @protected
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
protected readonly startLogicNode: string = '<#if item.getStartPSDEUILogicNode?? && item.getStartPSDEUILogicNode()??>${item.getStartPSDEUILogicNode().codeName}</#if>';
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
protected logicParams: any[] = [
<#if item.getPSDEUILogicParams?? && item.getPSDEUILogicParams()??>
<#list item.getPSDEUILogicParams() as logicParam>
......@@ -40,7 +54,13 @@ export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
</#if>
];
/**
* 逻辑节点
*
* @protected
* @type {ILogicNode[]}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
protected logicNodes: ILogicNode[] = [
<#if item.getPSDEUILogicNodes?? && item.getPSDEUILogicNodes()??>
<#list item.getPSDEUILogicNodes() as logicNode>
......@@ -95,6 +115,19 @@ export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
</#if>
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
......@@ -110,7 +143,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof GridViewLoadUILogicBase
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
......@@ -126,6 +159,13 @@ export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
}
}
/**
* 执行节点
*
* @param {ILogicNode} logicNode
* @param {UIActionContext} actionContext
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
executeNode(logicNode: ILogicNode, actionContext: UIActionContext) {
try {
switch (logicNode.logicNodeType) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册