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

update:更新

上级 db47c5d7
<#ibiztemplate> <#ibiztemplate>
TARGET=PSAPPDEUILOGIC TARGET=PSAPPDEUILOGIC
</#ibiztemplate> </#ibiztemplate>
<#-- 获取逻辑节点类型 -->
/** <#macro getLogicNodeByType logicNode>
* ${item.name} <#if logicNode.getLogicNodeType?? && logicNode.getLogicNodeByType()??>
* <#assign type = logicNode.getLogicNodeType()>
* @export <#if type == 'BEGIN'>
* @class ${srfclassname('${item.getCodeName()}')}UILogicBase BeginNode
*/ <#elseif type == 'END'>
export default class ${srfclassname('${item.getCodeName()}')}UILogicBase { EndNode
<#else>
/** LogicNodeBase
* Creates an instance of ${item.codeName}Base. </#if>
* <#else>
* @param {*} [opts={}] LogicNodeBase
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase </#if>
*/ </#macro>
constructor(opts: any = {}) {
/**
} * ${item.name}
*
* @export
* @class ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
export default class ${srfclassname('${item.getCodeName()}')}UILogicBase {
/**
* Creates an instance of ${item.codeName}Base.
*
* @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}UILogicBase
*/
constructor(opts: any = {}) { }
protected logicNodes: any = {
<#if item.getPSDEUILogicNodes?? && item.getPSDEUILogicNodes()??>
<#list item.getPSDEUILogicNodes() as logicNode>
'${logicNode.codeName}': new <@getLogicNodeByType logicNode />(),
</#list>
</#if>
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof GridViewLoadUILogicBase
*/
execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) {
console.log('执行UILogic ${item.name}');
}
} }
\ No newline at end of file
<#ibiztemplate> <#ibiztemplate>
TARGET=PSAPPDEUILOGIC TARGET=PSAPPDEUILOGIC
</#ibiztemplate> </#ibiztemplate>
import { Http,Util } from '@/utils'; import { Http,Util } from '@/utils';
import ${srfclassname('${item.getCodeName()}')}UILogicBase from './${srffilepath2(item.getCodeName())}-ui-logic-base'; import ${srfclassname('${item.getCodeName()}')}UILogicBase from './${srffilepath2(item.getCodeName())}-ui-logic-base';
/** /**
* ${item.name} * ${item.name}
* *
* @export * @export
* @class ${srfclassname('${item.getCodeName()}')}UILogic * @class ${srfclassname('${item.getCodeName()}')}UILogic
*/ */
export default class ${srfclassname('${item.getCodeName()}')}UILogic extends ${srfclassname('${item.getCodeName()}')}UILogicBase{ export default class ${srfclassname('${item.getCodeName()}')}UILogic extends ${srfclassname('${item.getCodeName()}')}UILogicBase {
/** /**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UILogic * ${item.name} 逻辑实例对象
* *
* @param {*} [opts={}] * @private
* @memberof ${srfclassname('${item.getCodeName()}')}UILogic * @static
*/ * @type {${srfclassname('${item.getCodeName()}')}UILogic}
constructor(opts: any = {}) { * @memberof ${srfclassname('${item.getCodeName()}')}UILogic
super(opts); */
} private static instance: ${srfclassname('${item.getCodeName()}')}UILogic;
/**
* 获取 ${item.name} 逻辑实例对象
*
* @static
* @return {*} {${srfclassname('${item.getCodeName()}')}UILogic}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogic
*/
static getInstance(): ${srfclassname('${item.getCodeName()}')}UILogic {
if (!this.instance) {
this.instance = new ${srfclassname('${item.getCodeName()}')}UILogic();
}
return this.instance;
}
/**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UILogic
*
* @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}UILogic
*/
constructor(opts: any = {}) {
super(opts);
}
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册