@ibiz-template/runtime 0.7.41-alpha.152 → 0.7.41-alpha.154
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 +58 -2
- 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.js +1 -1
- 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 +35 -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 +1 -1
- package/src/controller/control/form/edit-form/edit-form.service.ts +57 -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,54 @@ 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, _b2;
|
|
50585
|
+
const { args } = this.getLoadParams(params);
|
|
50586
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
50587
|
+
this.model.appDataEntityId,
|
|
50588
|
+
this.model.appId
|
|
50589
|
+
);
|
|
50590
|
+
const draftFromControlActionID = (_a3 = this.model.getDraftFromControlAction) == null ? void 0 : _a3.appDEMethodId;
|
|
50591
|
+
if (draftFromControlActionID) {
|
|
50592
|
+
const draftFromAction = findMethodById(
|
|
50593
|
+
appDataEntity,
|
|
50594
|
+
draftFromControlActionID
|
|
50595
|
+
);
|
|
50596
|
+
if (draftFromAction) {
|
|
50597
|
+
let res2 = await this.exec(
|
|
50598
|
+
draftFromControlActionID,
|
|
50599
|
+
context,
|
|
50600
|
+
void 0,
|
|
50601
|
+
{
|
|
50602
|
+
...args
|
|
50603
|
+
}
|
|
50604
|
+
);
|
|
50605
|
+
res2 = this.handleResponse(res2);
|
|
50606
|
+
if (res2.ok && res2.data) {
|
|
50607
|
+
this.setDefault(res2.data, context, params, "update");
|
|
50608
|
+
}
|
|
50609
|
+
return res2;
|
|
50610
|
+
}
|
|
50611
|
+
}
|
|
50612
|
+
let res = await this.exec(
|
|
50613
|
+
((_b2 = this.model.getControlAction) == null ? void 0 : _b2.appDEMethodId) || "get",
|
|
50614
|
+
context,
|
|
50615
|
+
void 0,
|
|
50616
|
+
args
|
|
50617
|
+
);
|
|
50618
|
+
res = this.handleResponse(res);
|
|
50619
|
+
if (res.ok && res.data) {
|
|
50620
|
+
this.setDefault(res.data, context, params, "update");
|
|
50621
|
+
}
|
|
50622
|
+
return res;
|
|
50623
|
+
}
|
|
50569
50624
|
/**
|
|
50570
50625
|
* 执行获取草稿方法
|
|
50571
50626
|
*
|
|
@@ -50998,7 +51053,7 @@ var EditFormController = class extends FormController {
|
|
|
50998
51053
|
try {
|
|
50999
51054
|
await this.startLoading();
|
|
51000
51055
|
await this.evt.emit("onBeforeLoad", { args: queryParams });
|
|
51001
|
-
res = await this.service.
|
|
51056
|
+
res = await this.service.getDraftFrom(context, queryParams);
|
|
51002
51057
|
} catch (error) {
|
|
51003
51058
|
await this.evt.emit("onLoadError", { args: error });
|
|
51004
51059
|
this.actionNotification("GETERROR", {
|
|
@@ -94675,6 +94730,7 @@ export {
|
|
|
94675
94730
|
findDELogic,
|
|
94676
94731
|
findEditItem,
|
|
94677
94732
|
findFieldById,
|
|
94733
|
+
findMethodById,
|
|
94678
94734
|
findModelChild,
|
|
94679
94735
|
formatDateByScale,
|
|
94680
94736
|
formatMultiData,
|