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

update:更新

上级 db47c5d7
<#ibiztemplate>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
/**
* ${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 = {}) {
}
<#ibiztemplate>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
<#-- 获取逻辑节点类型 -->
<#macro getLogicNodeByType logicNode>
<#if logicNode.getLogicNodeType?? && logicNode.getLogicNodeByType()??>
<#assign type = logicNode.getLogicNodeType()>
<#if type == 'BEGIN'>
BeginNode
<#elseif type == 'END'>
EndNode
<#else>
LogicNodeBase
</#if>
<#else>
LogicNodeBase
</#if>
</#macro>
/**
* ${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>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
import { Http,Util } from '@/utils';
import ${srfclassname('${item.getCodeName()}')}UILogicBase from './${srffilepath2(item.getCodeName())}-ui-logic-base';
/**
* ${item.name}
*
* @export
* @class ${srfclassname('${item.getCodeName()}')}UILogic
*/
export default class ${srfclassname('${item.getCodeName()}')}UILogic extends ${srfclassname('${item.getCodeName()}')}UILogicBase{
/**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}UILogic
*
* @param {*} [opts={}]
* @memberof ${srfclassname('${item.getCodeName()}')}UILogic
*/
constructor(opts: any = {}) {
super(opts);
}
<#ibiztemplate>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
import { Http,Util } from '@/utils';
import ${srfclassname('${item.getCodeName()}')}UILogicBase from './${srffilepath2(item.getCodeName())}-ui-logic-base';
/**
* ${item.name}
*
* @export
* @class ${srfclassname('${item.getCodeName()}')}UILogic
*/
export default class ${srfclassname('${item.getCodeName()}')}UILogic extends ${srfclassname('${item.getCodeName()}')}UILogicBase {
/**
* ${item.name} 逻辑实例对象
*
* @private
* @static
* @type {${srfclassname('${item.getCodeName()}')}UILogic}
* @memberof ${srfclassname('${item.getCodeName()}')}UILogic
*/
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册