@ibiz-template/runtime 0.7.18 → 0.7.19-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +25 -0
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts +7 -0
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +28 -0
- package/out/interface/controller/controller/control/i-edit-form.controller.d.ts +14 -0
- package/out/interface/controller/controller/control/i-edit-form.controller.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -29346,6 +29346,31 @@ var EditFormController = class extends FormController {
|
|
|
29346
29346
|
ibiz.log.error(error);
|
|
29347
29347
|
}
|
|
29348
29348
|
}
|
|
29349
|
+
/**
|
|
29350
|
+
* 立即执行自动保存
|
|
29351
|
+
*
|
|
29352
|
+
* @return {*} {Promise<void>}
|
|
29353
|
+
* @memberof EditFormController
|
|
29354
|
+
*/
|
|
29355
|
+
async immediateAutoSave() {
|
|
29356
|
+
if (!this.model.enableAutoSave) {
|
|
29357
|
+
return;
|
|
29358
|
+
}
|
|
29359
|
+
const { autoSaveMode } = this.model;
|
|
29360
|
+
const saveParam = { silent: true, noFillBack: true };
|
|
29361
|
+
switch (autoSaveMode) {
|
|
29362
|
+
case 3:
|
|
29363
|
+
saveParam.data = this.getDiffData();
|
|
29364
|
+
saveParam.context = IBizContext6.create({ srfsimple: true });
|
|
29365
|
+
break;
|
|
29366
|
+
default:
|
|
29367
|
+
}
|
|
29368
|
+
try {
|
|
29369
|
+
await this.save(saveParam);
|
|
29370
|
+
} catch (error) {
|
|
29371
|
+
ibiz.log.error(error);
|
|
29372
|
+
}
|
|
29373
|
+
}
|
|
29349
29374
|
/**
|
|
29350
29375
|
* 比较旧数据跟当前数据的差异返回差异数据
|
|
29351
29376
|
*
|