/** * ${item.getCaption()} * * @param {any[]} args 数据 * @param {*} [contextJO={}] 行为上下文 * @param {*} [paramJO={}] 行为参数 * @param {*} [$event] 事件 * @param {*} [xData] 数据目标 * @param {*} [container] 行为容器对象 * @param {string} [srfParentDeName] * @returns {Promise<any>} * @memberof <#if item.getPSControlContainer?? && item.getPSControlContainer()??>${srfclassname('${item.getPSControlContainer().name}')}Base</#if> */ public async ${item.getFullCodeName()}(args: any[], contextJO: any = {}, paramJO: any = {}, $event?: any, xData?: any, container?: any, srfParentDeName?: string): Promise<any> { let response: any; if (xData && xData.save instanceof Function) { const _data = {}; response = await xData.save(_data); if (response || response.status === 200) { container.$emit('viewdataschange', [{ ...response.data }]); } } else if (container.save && container.save instanceof Function) { response = await container.save(); } return response; }