%WF_VER_PATH%-ui-service-base.ts.ftl 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<#ibiztemplate>
TARGET=PSAPPWFVER
</#ibiztemplate>
import { Subject } from 'rxjs';
import { UIActionTool,Util } from '@/utils';
import { Environment } from '@/environments/environment';
<#if item.getPSAppWFUIActions()??>
<#list item.getPSAppWFUIActions() as wfUIAction>
<#if wfUIAction.getPSAppDataEntity()??>
<#if !P.exists("importService", wfUIAction.getPSAppDataEntity().getId(), "")>
import ${srfclassname('${wfUIAction.getPSAppDataEntity().getCodeName()}')}Service from '@/service/${srffilepath2(wfUIAction.getPSAppDataEntity().getCodeName())}/${srffilepath2(wfUIAction.getPSAppDataEntity().getCodeName())}-service';
</#if>
</#if>
</#list>
</#if>

/**
 * ${item.getPSWFVersion().name}WFUI服务对象基类
19
 * 基于 APP/src/wfuiservice/%WF_PATH%/%WF_VER_PATH%-ui-service-base.ts.ftl 生成
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
 * @export
 * @class ${srfclassname('${item.getPSWFVersion().getCodeName()}')}WFUIServiceBase
 */
export default class ${srfclassname('${item.getPSWFVersion().getCodeName()}')}WFUIServiceBase {

    /**
     * Creates an instance of  ${srfclassname('${item.getPSWFVersion().getCodeName()}')}WFUIServiceBase.
     * 
     * @param {*} [opts={}]
     * @memberof  ${srfclassname('${item.getPSWFVersion().getCodeName()}')}WFUIServiceBase
     */
    constructor(opts: any = {}) {
       
    }

    <#if item.getPSAppWFUIActions()??>
    <#list item.getPSAppWFUIActions() as wfUIAction>
    <#if wfUIAction.getUIActionMode() != "SYS">
    ${P.getLogicCode(wfUIAction, "LOGIC.vue").code}
    </#if>
    </#list>
    </#if>

}