/** * ${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; if (!xData || !(xData.saveAndNew instanceof Function)) { return; } xData.saveAndNew().then((response: any) => { if (!response || response.status !== 200) { _this.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'})); return; } _this.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data})); if (xData.autoLoad instanceof Function) { xData.autoLoad(); } }); }