print-logic-base.ts 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
import { Verify } from '@/utils/verify/verify';


/**
 * 打印
 * 基于 APP/src/service/%DE_PKGPATH%/%APP_DELOGIC%-logic-base.ts.ftl 生成
 * @export
 * @class PrintLogicBase
 */
export default class PrintLogicBase {

    /**
     * 名称
     * 
     * @memberof  PrintLogicBase
     */
    private name:string ="print";

    /**
     * 唯一标识
     * 
     * @memberof  PrintLogicBase
     */
    private id:string = "560939FD-3949-4D7C-BFF2-A3E0F9AA099E";

    /**
     * 默认参数名称
     * 
     * @memberof  PrintLogicBase
     */
    private defaultParamName:string = "DEFAULT";

    /**
     * 参数集合
     * 
     * @memberof  PrintLogicBase
     */
    private paramsMap:Map<string,any> = new Map();

    /**
     * Creates an instance of  PrintLogicBase.
     * 
     * @param {*} [opts={}]
     * @memberof  PrintLogicBase
     */
    constructor(opts: any = {}) {
        this.initParams(opts);
    }

    /**
     * 初始化参数集合
     * 
     * @param {*} [opts={}]
     * @memberof  PrintLogicBase
     */
    public initParams(opts:any){
    }


    /**
     * 执行逻辑
     * 
     * @param context 应用上下文
     * @param params 传入参数
     */
    public onExecute(context:any,params:any,isloading:boolean){
        throw new Error('没有开始节点');
    }



}