@ibiz-template/runtime 0.7.41-alpha.152 → 0.7.41-alpha.153
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 +35 -4
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +3 -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 +2 -3
- package/out/controller/control/form/edit-form/edit-form.service.d.ts +8 -0
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +53 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +24 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/model/data-entity/data-entity.d.ts +9 -1
- package/out/model/data-entity/data-entity.d.ts.map +1 -1
- package/out/model/data-entity/data-entity.js +11 -0
- package/package.json +2 -2
- package/src/config/global-config.ts +3 -0
- package/src/controller/control/form/edit-form/edit-form.controller.ts +2 -3
- package/src/controller/control/form/edit-form/edit-form.service.ts +61 -0
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +27 -0
- package/src/model/data-entity/data-entity.ts +15 -0
package/dist/index.esm.js
CHANGED
|
@@ -20022,7 +20022,10 @@ var GlobalConfig = class {
|
|
|
20022
20022
|
aiWorkMode: "DEFAULT",
|
|
20023
20023
|
aiScopeCodeListID: "",
|
|
20024
20024
|
enableAIProjectSelect: true,
|
|
20025
|
-
aiDisableSelectScope: false
|
|
20025
|
+
aiDisableSelectScope: false,
|
|
20026
|
+
aiEnableWorkSpace: true,
|
|
20027
|
+
aiFilePreviewMode: "DEFAULT",
|
|
20028
|
+
isEmbedAiHeaderHidden: false
|
|
20026
20029
|
};
|
|
20027
20030
|
// 全局分页流布局配置
|
|
20028
20031
|
this.drtab = {
|
|
@@ -21889,6 +21892,10 @@ function getDefaultDataImport(entity) {
|
|
|
21889
21892
|
);
|
|
21890
21893
|
}
|
|
21891
21894
|
}
|
|
21895
|
+
function findMethodById(entity, methodId) {
|
|
21896
|
+
var _a3;
|
|
21897
|
+
return (_a3 = entity.appDEMethods) == null ? void 0 : _a3.find((item) => item.id === methodId);
|
|
21898
|
+
}
|
|
21892
21899
|
|
|
21893
21900
|
// src/model/ui-action/ui-action.ts
|
|
21894
21901
|
var sysUIActionMapping = /* @__PURE__ */ new Map([
|
|
@@ -50566,6 +50573,30 @@ var EditFormService = class extends FormService {
|
|
|
50566
50573
|
}
|
|
50567
50574
|
return res;
|
|
50568
50575
|
}
|
|
50576
|
+
/**
|
|
50577
|
+
* @description 执行克隆单条数据方法
|
|
50578
|
+
* @param {IContext} context
|
|
50579
|
+
* @param {IParams} params
|
|
50580
|
+
* @returns {*} {Promise<IHttpResponse<ControlVO>>}
|
|
50581
|
+
* @memberof EditFormService
|
|
50582
|
+
*/
|
|
50583
|
+
async getDraftFrom(context, params) {
|
|
50584
|
+
var _a3;
|
|
50585
|
+
const { args } = this.getLoadParams(params);
|
|
50586
|
+
const deCodeName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
50587
|
+
context[deCodeName] = args.srfsourcekey;
|
|
50588
|
+
let res = await this.exec(
|
|
50589
|
+
((_a3 = this.model.getControlAction) == null ? void 0 : _a3.appDEMethodId) || "get",
|
|
50590
|
+
context,
|
|
50591
|
+
void 0,
|
|
50592
|
+
args
|
|
50593
|
+
);
|
|
50594
|
+
res = this.handleResponse(res);
|
|
50595
|
+
if (res.ok && res.data) {
|
|
50596
|
+
this.setDefault(res.data, context, params, "update");
|
|
50597
|
+
}
|
|
50598
|
+
return res;
|
|
50599
|
+
}
|
|
50569
50600
|
/**
|
|
50570
50601
|
* 执行获取草稿方法
|
|
50571
50602
|
*
|
|
@@ -50987,8 +51018,7 @@ var EditFormController = class extends FormController {
|
|
|
50987
51018
|
);
|
|
50988
51019
|
const key = appDataEntity.keyAppDEFieldId;
|
|
50989
51020
|
if (key && this.params[key]) {
|
|
50990
|
-
|
|
50991
|
-
context[deCodeName] = this.params[key];
|
|
51021
|
+
queryParams.srfsourcekey = this.params[key];
|
|
50992
51022
|
delete queryParams[key];
|
|
50993
51023
|
delete this.params[key];
|
|
50994
51024
|
delete queryParams.srfcopymode;
|
|
@@ -50998,7 +51028,7 @@ var EditFormController = class extends FormController {
|
|
|
50998
51028
|
try {
|
|
50999
51029
|
await this.startLoading();
|
|
51000
51030
|
await this.evt.emit("onBeforeLoad", { args: queryParams });
|
|
51001
|
-
res = await this.service.
|
|
51031
|
+
res = await this.service.getDraftFrom(context, queryParams);
|
|
51002
51032
|
} catch (error) {
|
|
51003
51033
|
await this.evt.emit("onLoadError", { args: error });
|
|
51004
51034
|
this.actionNotification("GETERROR", {
|
|
@@ -94675,6 +94705,7 @@ export {
|
|
|
94675
94705
|
findDELogic,
|
|
94676
94706
|
findEditItem,
|
|
94677
94707
|
findFieldById,
|
|
94708
|
+
findMethodById,
|
|
94678
94709
|
findModelChild,
|
|
94679
94710
|
formatDateByScale,
|
|
94680
94711
|
formatMultiData,
|