/** * ${item.getCaption()} * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof ${srfclassname('${view.name}')}Base */
public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this; const data: any = {}; if (_this.newRow && _this.newRow instanceof Function) { _this.newRow([{ ...data }], params, $event, xData); } else if(xData.newRow && xData.newRow instanceof Function) { xData.newRow([{ ...data }], params, $event, xData); }else{ _this.$Notice.error({ title: '错误', desc: 'newRow 视图处理逻辑不存在,请添加!' }); } }