|
- Model.prototype.mainDataCustomSave = function(event) {
- // bizData数据集不支持异步保存,通过自定义支持
- event.promise = new Promise(function(resolve, rejct) {
- var bizData = event.source;
- bizData._createSaveParam();
- biz.Request.sendAsyncBizRequest({
- contentType : bizData.dataType,
- dataType : bizData.dataType,
- context : bizData.getContext(),
- process : bizData.getProcess(),
- activity : bizData.getActivity(),
- action : bizData.getSaveAction(),
- parameters : bizData.saveParam,
- callback : function(rst) {
- bizData.doSaveDataAfter(rst);
- resolve();
- }
- });
- });
- };
复制代码
|
|