/**
* ${item.getCaption()}
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [$event]
* @param {*} [xData]
* @memberof ${srfclassname('${view.name}')}
*/
public ${item.getFullCodeName()}(args: any[], params?: any, $event?: any, xData?: any) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { srfkey: args[0].srfkey })
}
if (_this.srfparentdata) {
Object.assign(data, _this.srfparentdata);
}
_this.opendata([{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
-
由 yanshaowei 提交于566dc899