@ibiz-template/runtime 0.1.34 → 0.1.35
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 +128 -101
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/de-logic/de-logic-context.d.ts +25 -5
- package/out/de-logic/de-logic-context.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.js +27 -5
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/data-set-node/data-set-node.js +2 -2
- package/out/de-logic/de-logic-node/de-action-node/de-action-node.js +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +1 -1
- package/out/de-logic/utils/handle-src-val.js +2 -2
- package/out/interface/service/service/i-app-de.service.d.ts +3 -3
- package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.d.ts +5 -4
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +9 -5
- package/out/ui-logic/ui-logic-context.d.ts +1 -11
- package/out/ui-logic/ui-logic-context.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-context.js +7 -11
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +6 -2
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.js +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +1 -2
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +3 -2
- package/out/ui-logic/utils/handle-src-val.d.ts.map +1 -1
- package/out/ui-logic/utils/handle-src-val.js +3 -7
- package/package.json +2 -2
- package/src/de-logic/de-logic-context.ts +42 -5
- package/src/de-logic/de-logic-node/data-set-node/data-set-node.ts +2 -3
- package/src/de-logic/de-logic-node/de-action-node/de-action-node.ts +1 -1
- package/src/de-logic/de-logic-param/de-logic-param.ts +1 -1
- package/src/de-logic/utils/handle-src-val.ts +2 -2
- package/src/interface/service/service/i-app-de.service.ts +3 -3
- package/src/service/service/entity/de.service.ts +15 -6
- package/src/ui-logic/ui-logic-context.ts +7 -11
- package/src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts +6 -3
- package/src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts +1 -1
- package/src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts +2 -0
- package/src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts +3 -4
- package/src/ui-logic/ui-logic-param/ui-logic-param.ts +3 -2
- package/src/ui-logic/utils/handle-src-val.ts +3 -7
package/dist/index.esm.js
CHANGED
|
@@ -10638,7 +10638,10 @@ var CounterService = class {
|
|
|
10638
10638
|
CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
10639
10639
|
|
|
10640
10640
|
// src/service/service/entity/de.service.ts
|
|
10641
|
-
import {
|
|
10641
|
+
import {
|
|
10642
|
+
ModelError as ModelError13,
|
|
10643
|
+
RuntimeError as RuntimeError12
|
|
10644
|
+
} from "@ibiz-template/core";
|
|
10642
10645
|
|
|
10643
10646
|
// src/service/service/work-flow/work-flow.service.ts
|
|
10644
10647
|
import { RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
@@ -11553,13 +11556,10 @@ var DELogicContext = class {
|
|
|
11553
11556
|
* @param {Map<string, DELogicParam>} deLogicParams 实体逻辑参数集合
|
|
11554
11557
|
* @param {IParams} context 上下文
|
|
11555
11558
|
* @param {IData} data 数据对象
|
|
11556
|
-
* @param {IParams}
|
|
11559
|
+
* @param {IParams} params 视图参数
|
|
11557
11560
|
*/
|
|
11558
|
-
constructor(deLogicParams, context, data,
|
|
11561
|
+
constructor(deLogicParams, context, data, params) {
|
|
11559
11562
|
this.deLogicParams = deLogicParams;
|
|
11560
|
-
this.context = context;
|
|
11561
|
-
this.data = data;
|
|
11562
|
-
this.viewParams = viewParams;
|
|
11563
11563
|
/**
|
|
11564
11564
|
* 实体逻辑参数
|
|
11565
11565
|
*
|
|
@@ -11594,6 +11594,31 @@ var DELogicContext = class {
|
|
|
11594
11594
|
* @type {string}
|
|
11595
11595
|
*/
|
|
11596
11596
|
this.defaultParamName = "Default";
|
|
11597
|
+
this.parameters = { context, data, params };
|
|
11598
|
+
}
|
|
11599
|
+
/**
|
|
11600
|
+
* 上下文
|
|
11601
|
+
*/
|
|
11602
|
+
get context() {
|
|
11603
|
+
if (Object.prototype.hasOwnProperty.call(this.params, "context")) {
|
|
11604
|
+
return this.params.context;
|
|
11605
|
+
}
|
|
11606
|
+
return this.parameters.context;
|
|
11607
|
+
}
|
|
11608
|
+
/**
|
|
11609
|
+
* 数据
|
|
11610
|
+
*/
|
|
11611
|
+
get data() {
|
|
11612
|
+
return this.parameters.data;
|
|
11613
|
+
}
|
|
11614
|
+
/**
|
|
11615
|
+
* 视图参数
|
|
11616
|
+
*/
|
|
11617
|
+
get viewParam() {
|
|
11618
|
+
if (Object.prototype.hasOwnProperty.call(this.params, "viewParam")) {
|
|
11619
|
+
return this.params.viewParam;
|
|
11620
|
+
}
|
|
11621
|
+
return this.parameters.params;
|
|
11597
11622
|
}
|
|
11598
11623
|
/**
|
|
11599
11624
|
* 重置实体逻辑参数
|
|
@@ -11896,7 +11921,7 @@ var DEActionNode = class extends DELogicNode {
|
|
|
11896
11921
|
dstAppDEActionId,
|
|
11897
11922
|
ctx.context,
|
|
11898
11923
|
requestData,
|
|
11899
|
-
ctx.
|
|
11924
|
+
ctx.viewParam
|
|
11900
11925
|
);
|
|
11901
11926
|
if (res.ok) {
|
|
11902
11927
|
ctx.params[retDELogicParamId] = res.data;
|
|
@@ -11970,13 +11995,13 @@ function handleSrcVal(ctx, srcValParams) {
|
|
|
11970
11995
|
return ibiz.util.rawValue.format(srcValue);
|
|
11971
11996
|
case "WEBCONTEXT":
|
|
11972
11997
|
case "VIEWPARAM":
|
|
11973
|
-
value = ctx.
|
|
11998
|
+
value = ctx.parameters.params;
|
|
11974
11999
|
break;
|
|
11975
12000
|
case "APPLICATION":
|
|
11976
12001
|
case "SESSION":
|
|
11977
12002
|
case "APPDATA":
|
|
11978
12003
|
case "DATACONTEXT":
|
|
11979
|
-
value = ctx.context;
|
|
12004
|
+
value = ctx.parameters.context;
|
|
11980
12005
|
break;
|
|
11981
12006
|
case "ENVPARAM":
|
|
11982
12007
|
value = clone5(ibiz.env);
|
|
@@ -12152,14 +12177,13 @@ var DataSetNode = class extends DELogicNode {
|
|
|
12152
12177
|
dstDELogicParamId,
|
|
12153
12178
|
retDELogicParamId
|
|
12154
12179
|
} = this.model;
|
|
12155
|
-
const
|
|
12180
|
+
const queryParams = ctx.params[dstDELogicParamId];
|
|
12156
12181
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
12157
12182
|
const res = await app.deService.exec(
|
|
12158
12183
|
dstAppDataEntityId,
|
|
12159
12184
|
dstAppDEDataSetId,
|
|
12160
12185
|
ctx.context,
|
|
12161
|
-
|
|
12162
|
-
ctx.viewParams
|
|
12186
|
+
queryParams
|
|
12163
12187
|
);
|
|
12164
12188
|
if (res.ok) {
|
|
12165
12189
|
ctx.params[retDELogicParamId] = res.data;
|
|
@@ -12324,7 +12348,7 @@ var DELogicParam = class {
|
|
|
12324
12348
|
} else if (m.lastReturnParam) {
|
|
12325
12349
|
ctx.initLastReturnParam(tag);
|
|
12326
12350
|
} else if (m.appContextParam) {
|
|
12327
|
-
ctx.params[tag] = ctx.context;
|
|
12351
|
+
ctx.params[tag] = ctx.parameters.context;
|
|
12328
12352
|
} else if (m.simpleListParam) {
|
|
12329
12353
|
ctx.params[tag] = [];
|
|
12330
12354
|
} else if (m.simpleParam) {
|
|
@@ -13196,10 +13220,11 @@ var DEService = class {
|
|
|
13196
13220
|
* 实体级别 AI 聊天会话
|
|
13197
13221
|
*
|
|
13198
13222
|
* @author chitanda
|
|
13199
|
-
* @date 2023-10-
|
|
13223
|
+
* @date 2023-10-16 16:10:16
|
|
13224
|
+
* @param {(data: IPortalAsyncAction) => void} onmessage
|
|
13200
13225
|
* @param {IParams} context
|
|
13201
13226
|
* @param {IParams} [params={}]
|
|
13202
|
-
* @param {
|
|
13227
|
+
* @param {IData} [data={}]
|
|
13203
13228
|
* @return {*} {Promise<void>}
|
|
13204
13229
|
*/
|
|
13205
13230
|
aiChatSse(onmessage, context, params = {}, data = {}) {
|
|
@@ -13215,7 +13240,10 @@ var DEService = class {
|
|
|
13215
13240
|
},
|
|
13216
13241
|
body: JSON.stringify(data),
|
|
13217
13242
|
onmessage: (e) => {
|
|
13218
|
-
|
|
13243
|
+
if (e.data) {
|
|
13244
|
+
const json = JSON.parse(e.data);
|
|
13245
|
+
onmessage(json);
|
|
13246
|
+
}
|
|
13219
13247
|
},
|
|
13220
13248
|
onclose: () => {
|
|
13221
13249
|
resolve();
|
|
@@ -18619,30 +18647,20 @@ var CaptionBarController = class extends ControlController {
|
|
|
18619
18647
|
import { recursiveIterate, RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
18620
18648
|
|
|
18621
18649
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
18622
|
-
import { RuntimeModelError as
|
|
18650
|
+
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
18623
18651
|
import { isArray as isArray4 } from "qx-util";
|
|
18624
18652
|
|
|
18625
18653
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
18626
|
-
import { RuntimeModelError as
|
|
18654
|
+
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
18627
18655
|
|
|
18628
18656
|
// src/ui-logic/index.ts
|
|
18629
18657
|
import { RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
18630
18658
|
|
|
18631
18659
|
// src/ui-logic/ui-logic.ts
|
|
18632
|
-
import { ModelError as ModelError24, RuntimeModelError as
|
|
18660
|
+
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
18633
18661
|
|
|
18634
18662
|
// src/ui-logic/ui-logic-context.ts
|
|
18635
18663
|
var UILogicContext = class {
|
|
18636
|
-
/**
|
|
18637
|
-
* Creates an instance of DELogicContext.
|
|
18638
|
-
* @author lxm
|
|
18639
|
-
* @date 2023-03-24 09:15:14
|
|
18640
|
-
* @param {Map<string, DELogicParam>} deLogicParams 实体逻辑参数集合
|
|
18641
|
-
* @param {IParams} context 上下文
|
|
18642
|
-
* @param {IData} data 数据对象
|
|
18643
|
-
* @param {IParams} viewParams 视图参数
|
|
18644
|
-
* @param {IParams} [opt] 额外参数
|
|
18645
|
-
*/
|
|
18646
18664
|
/**
|
|
18647
18665
|
* Creates an instance of UILogicContext.
|
|
18648
18666
|
* @author lxm
|
|
@@ -18693,6 +18711,9 @@ var UILogicContext = class {
|
|
|
18693
18711
|
* 上下文
|
|
18694
18712
|
*/
|
|
18695
18713
|
get context() {
|
|
18714
|
+
if (Object.prototype.hasOwnProperty.call(this.params, "context")) {
|
|
18715
|
+
return this.params.context;
|
|
18716
|
+
}
|
|
18696
18717
|
return this.parameters.context;
|
|
18697
18718
|
}
|
|
18698
18719
|
/**
|
|
@@ -18704,7 +18725,10 @@ var UILogicContext = class {
|
|
|
18704
18725
|
/**
|
|
18705
18726
|
* 视图参数
|
|
18706
18727
|
*/
|
|
18707
|
-
get
|
|
18728
|
+
get viewParam() {
|
|
18729
|
+
if (Object.prototype.hasOwnProperty.call(this.params, "viewParam")) {
|
|
18730
|
+
return this.params.viewParam;
|
|
18731
|
+
}
|
|
18708
18732
|
return this.parameters.params;
|
|
18709
18733
|
}
|
|
18710
18734
|
/**
|
|
@@ -18784,14 +18808,11 @@ import { clone as clone14 } from "ramda";
|
|
|
18784
18808
|
function handleSrcVal2(ctx, srcValParams) {
|
|
18785
18809
|
const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
18786
18810
|
const srcValueType = srcValParams.srcValueType || "SRCDLPARAM";
|
|
18787
|
-
|
|
18811
|
+
const srcField = srcFieldName;
|
|
18788
18812
|
let value;
|
|
18789
18813
|
switch (srcValueType) {
|
|
18790
18814
|
case "SRCDLPARAM":
|
|
18791
18815
|
value = ctx.params[srcDEUILogicParamId];
|
|
18792
|
-
if (ctx.isEntityParam(srcDEUILogicParamId)) {
|
|
18793
|
-
srcField = srcField == null ? void 0 : srcField.toLowerCase();
|
|
18794
|
-
}
|
|
18795
18816
|
break;
|
|
18796
18817
|
case "NULLVALUE":
|
|
18797
18818
|
return null;
|
|
@@ -18801,13 +18822,13 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
18801
18822
|
return ibiz.util.rawValue.format(srcValue);
|
|
18802
18823
|
case "WEBCONTEXT":
|
|
18803
18824
|
case "VIEWPARAM":
|
|
18804
|
-
value = ctx.
|
|
18825
|
+
value = ctx.parameters.params;
|
|
18805
18826
|
break;
|
|
18806
18827
|
case "APPLICATION":
|
|
18807
18828
|
case "SESSION":
|
|
18808
18829
|
case "APPDATA":
|
|
18809
18830
|
case "DATACONTEXT":
|
|
18810
|
-
value = ctx.context;
|
|
18831
|
+
value = ctx.parameters.context;
|
|
18811
18832
|
break;
|
|
18812
18833
|
case "ENVPARAM":
|
|
18813
18834
|
value = clone14(ibiz.env);
|
|
@@ -19085,7 +19106,7 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
19085
19106
|
dstAppDEActionId,
|
|
19086
19107
|
ctx.context,
|
|
19087
19108
|
requestData,
|
|
19088
|
-
ctx.
|
|
19109
|
+
ctx.viewParam
|
|
19089
19110
|
);
|
|
19090
19111
|
if (res.ok) {
|
|
19091
19112
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
@@ -19113,6 +19134,8 @@ var DEUIActionNode = class extends UILogicNode {
|
|
|
19113
19134
|
}
|
|
19114
19135
|
await UIActionUtil.execAndResolved(dstAppDEUIActionId, {
|
|
19115
19136
|
...parameters,
|
|
19137
|
+
context: ctx.context,
|
|
19138
|
+
params: ctx.viewParam,
|
|
19116
19139
|
data: actionData
|
|
19117
19140
|
});
|
|
19118
19141
|
}
|
|
@@ -19538,6 +19561,7 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
19538
19561
|
};
|
|
19539
19562
|
|
|
19540
19563
|
// src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
|
|
19564
|
+
import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
|
|
19541
19565
|
var DataSetNode2 = class extends UILogicNode {
|
|
19542
19566
|
async exec(ctx) {
|
|
19543
19567
|
const {
|
|
@@ -19546,14 +19570,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
19546
19570
|
dstDEUILogicParamId,
|
|
19547
19571
|
retDEUILogicParamId
|
|
19548
19572
|
} = this.model;
|
|
19549
|
-
|
|
19573
|
+
if (!dstDEUILogicParamId) {
|
|
19574
|
+
throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
|
|
19575
|
+
}
|
|
19576
|
+
const queryParams = ctx.params[dstDEUILogicParamId];
|
|
19550
19577
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
19551
19578
|
const res = await app.deService.exec(
|
|
19552
19579
|
dstAppDataEntityId,
|
|
19553
19580
|
dstAppDEDataSetId,
|
|
19554
19581
|
ctx.context,
|
|
19555
|
-
|
|
19556
|
-
ctx.viewParams
|
|
19582
|
+
queryParams
|
|
19557
19583
|
);
|
|
19558
19584
|
if (res.ok) {
|
|
19559
19585
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
@@ -19571,19 +19597,19 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
19571
19597
|
};
|
|
19572
19598
|
|
|
19573
19599
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
19574
|
-
import { RuntimeError as RuntimeError34, RuntimeModelError as
|
|
19600
|
+
import { RuntimeError as RuntimeError34, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
19575
19601
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
19576
19602
|
async exec(ctx) {
|
|
19577
19603
|
ctx.isEndNode = true;
|
|
19578
19604
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
19579
19605
|
if (!fireCtrlId) {
|
|
19580
|
-
throw new
|
|
19606
|
+
throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
|
|
19581
19607
|
}
|
|
19582
19608
|
if (!eventName) {
|
|
19583
|
-
throw new
|
|
19609
|
+
throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
|
|
19584
19610
|
}
|
|
19585
19611
|
if (!eventParamId) {
|
|
19586
|
-
throw new
|
|
19612
|
+
throw new RuntimeModelError42(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
|
|
19587
19613
|
}
|
|
19588
19614
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
19589
19615
|
if (!invokeCtrl) {
|
|
@@ -19598,7 +19624,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
19598
19624
|
};
|
|
19599
19625
|
|
|
19600
19626
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
19601
|
-
import { RuntimeError as RuntimeError35, RuntimeModelError as
|
|
19627
|
+
import { RuntimeError as RuntimeError35, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
19602
19628
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
19603
19629
|
async exec(ctx) {
|
|
19604
19630
|
const {
|
|
@@ -19608,13 +19634,13 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
19608
19634
|
retDEUILogicParamId
|
|
19609
19635
|
} = this.model;
|
|
19610
19636
|
if (!dstAppDataEntityId) {
|
|
19611
|
-
throw new
|
|
19637
|
+
throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
|
|
19612
19638
|
}
|
|
19613
19639
|
if (!dstAppDELogicId) {
|
|
19614
|
-
throw new
|
|
19640
|
+
throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
|
|
19615
19641
|
}
|
|
19616
19642
|
if (!dstDEUILogicParamId) {
|
|
19617
|
-
throw new
|
|
19643
|
+
throw new RuntimeModelError43(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
|
|
19618
19644
|
}
|
|
19619
19645
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
19620
19646
|
if (!dstParam) {
|
|
@@ -19623,9 +19649,9 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
19623
19649
|
const result = await execDELogicById(
|
|
19624
19650
|
dstAppDELogicId,
|
|
19625
19651
|
dstAppDataEntityId,
|
|
19626
|
-
|
|
19627
|
-
dstParam
|
|
19628
|
-
|
|
19652
|
+
ctx.context,
|
|
19653
|
+
dstParam,
|
|
19654
|
+
ctx.params
|
|
19629
19655
|
);
|
|
19630
19656
|
if (retDEUILogicParamId) {
|
|
19631
19657
|
ctx.params[retDEUILogicParamId] = result;
|
|
@@ -19656,7 +19682,8 @@ var UILogicParam = class {
|
|
|
19656
19682
|
calc(ctx) {
|
|
19657
19683
|
const tag = this.model.id;
|
|
19658
19684
|
const m = this.model;
|
|
19659
|
-
const {
|
|
19685
|
+
const { parameters } = ctx;
|
|
19686
|
+
const { context, params, data } = parameters;
|
|
19660
19687
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
19661
19688
|
if (m.codeName === "layoutPanel") {
|
|
19662
19689
|
ctx.params[tag] = parameters.view.layoutPanel.panelItems;
|
|
@@ -19700,7 +19727,7 @@ var UILogicParam = class {
|
|
|
19700
19727
|
} else if (m.simpleParam) {
|
|
19701
19728
|
ctx.params[tag] = {};
|
|
19702
19729
|
} else if (m.viewNavDataParam) {
|
|
19703
|
-
ctx.params[tag] =
|
|
19730
|
+
ctx.params[tag] = params;
|
|
19704
19731
|
} else if (m.viewSessionParam) {
|
|
19705
19732
|
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
|
|
19706
19733
|
}
|
|
@@ -19754,7 +19781,7 @@ var UILogic = class {
|
|
|
19754
19781
|
this.params = /* @__PURE__ */ new Map();
|
|
19755
19782
|
var _a;
|
|
19756
19783
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
19757
|
-
throw new
|
|
19784
|
+
throw new RuntimeModelError44(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
|
|
19758
19785
|
}
|
|
19759
19786
|
model.deuilogicNodes.forEach((node) => {
|
|
19760
19787
|
const { logicNodeType } = node;
|
|
@@ -19869,7 +19896,7 @@ var UILogic = class {
|
|
|
19869
19896
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
19870
19897
|
await this.deepExec(start, ctx);
|
|
19871
19898
|
} else {
|
|
19872
|
-
throw new
|
|
19899
|
+
throw new RuntimeModelError44(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
|
|
19873
19900
|
}
|
|
19874
19901
|
if (ctx.isEndNode) {
|
|
19875
19902
|
return ctx.result;
|
|
@@ -20005,7 +20032,7 @@ var UIActionProviderBase = class {
|
|
|
20005
20032
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
20006
20033
|
if (uilogicAttachMode === "REPLACE") {
|
|
20007
20034
|
if (!appDEUILogicId) {
|
|
20008
|
-
throw new
|
|
20035
|
+
throw new RuntimeModelError45(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
20009
20036
|
}
|
|
20010
20037
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
20011
20038
|
return result;
|
|
@@ -20032,7 +20059,7 @@ var UIActionProviderBase = class {
|
|
|
20032
20059
|
}
|
|
20033
20060
|
if (action.uilogicAttachMode === "AFTER") {
|
|
20034
20061
|
if (!appDEUILogicId) {
|
|
20035
|
-
throw new
|
|
20062
|
+
throw new RuntimeModelError45(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
20036
20063
|
}
|
|
20037
20064
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
20038
20065
|
}
|
|
@@ -20215,7 +20242,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
20215
20242
|
const entityName = action.appDataEntityId;
|
|
20216
20243
|
const methodName = action.appDEMethodId;
|
|
20217
20244
|
if (!entityName || !methodName) {
|
|
20218
|
-
throw new
|
|
20245
|
+
throw new RuntimeModelError46(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
|
|
20219
20246
|
}
|
|
20220
20247
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
20221
20248
|
action,
|
|
@@ -20330,7 +20357,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
20330
20357
|
};
|
|
20331
20358
|
|
|
20332
20359
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
20333
|
-
import { StringUtil, RuntimeModelError as
|
|
20360
|
+
import { StringUtil, RuntimeModelError as RuntimeModelError47, ModelError as ModelError25 } from "@ibiz-template/core";
|
|
20334
20361
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
20335
20362
|
async execAction(action, args) {
|
|
20336
20363
|
const { context, params, data, event, noWaitRoute } = args;
|
|
@@ -20345,7 +20372,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20345
20372
|
case "WIZARD": {
|
|
20346
20373
|
const frontPSAppView = action.frontAppViewId;
|
|
20347
20374
|
if (!frontPSAppView) {
|
|
20348
|
-
throw new
|
|
20375
|
+
throw new RuntimeModelError47(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
|
|
20349
20376
|
}
|
|
20350
20377
|
const { resultContext, resultParams } = await this.handleParams(
|
|
20351
20378
|
action,
|
|
@@ -20401,7 +20428,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20401
20428
|
);
|
|
20402
20429
|
return result || {};
|
|
20403
20430
|
}
|
|
20404
|
-
throw new
|
|
20431
|
+
throw new RuntimeModelError47(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
|
|
20405
20432
|
}
|
|
20406
20433
|
};
|
|
20407
20434
|
|
|
@@ -21001,7 +21028,7 @@ var MenuPortletController = class extends PortletPartController {
|
|
|
21001
21028
|
};
|
|
21002
21029
|
|
|
21003
21030
|
// src/controller/control/data-view/data-view.controller.ts
|
|
21004
|
-
import { RuntimeModelError as
|
|
21031
|
+
import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
21005
21032
|
import { isNil as isNil18 } from "ramda";
|
|
21006
21033
|
|
|
21007
21034
|
// src/controller/control/data-view/data-view.service.ts
|
|
@@ -21214,7 +21241,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21214
21241
|
const optItemModel = this.getOptItemModel();
|
|
21215
21242
|
if (optItemModel) {
|
|
21216
21243
|
if (!optItemModel.deuiactionGroup) {
|
|
21217
|
-
throw new
|
|
21244
|
+
throw new RuntimeModelError48(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
21218
21245
|
}
|
|
21219
21246
|
if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
21220
21247
|
ibiz.log.debug("\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -21263,7 +21290,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21263
21290
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
21264
21291
|
if (enableGroup && groupMode) {
|
|
21265
21292
|
if (!groupAppDEFieldId) {
|
|
21266
|
-
throw new
|
|
21293
|
+
throw new RuntimeModelError48(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
|
|
21267
21294
|
}
|
|
21268
21295
|
if (groupMode === "AUTO") {
|
|
21269
21296
|
this.handleAutoGroup();
|
|
@@ -21330,7 +21357,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21330
21357
|
async handleCodeListGroup() {
|
|
21331
21358
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
21332
21359
|
if (!groupCodeListId) {
|
|
21333
|
-
throw new
|
|
21360
|
+
throw new RuntimeModelError48(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
21334
21361
|
}
|
|
21335
21362
|
const { items } = this.state;
|
|
21336
21363
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -21417,10 +21444,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21417
21444
|
};
|
|
21418
21445
|
|
|
21419
21446
|
// src/controller/control/exp-bar/calendar-exp-bar.controller.ts
|
|
21420
|
-
import { RuntimeModelError as
|
|
21447
|
+
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
21421
21448
|
|
|
21422
21449
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
21423
|
-
import { RuntimeError as RuntimeError39, RuntimeModelError as
|
|
21450
|
+
import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
21424
21451
|
var ExpBarControlController = class extends ControlController {
|
|
21425
21452
|
constructor() {
|
|
21426
21453
|
super(...arguments);
|
|
@@ -21475,7 +21502,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
21475
21502
|
get xDataController() {
|
|
21476
21503
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21477
21504
|
if (!controller) {
|
|
21478
|
-
throw new
|
|
21505
|
+
throw new RuntimeModelError49(
|
|
21479
21506
|
this.model,
|
|
21480
21507
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21481
21508
|
);
|
|
@@ -21822,7 +21849,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
21822
21849
|
get xDataController() {
|
|
21823
21850
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21824
21851
|
if (!controller) {
|
|
21825
|
-
throw new
|
|
21852
|
+
throw new RuntimeModelError50(
|
|
21826
21853
|
this.model,
|
|
21827
21854
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21828
21855
|
);
|
|
@@ -21877,7 +21904,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
21877
21904
|
};
|
|
21878
21905
|
|
|
21879
21906
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
21880
|
-
import { RuntimeError as RuntimeError40, RuntimeModelError as
|
|
21907
|
+
import { RuntimeError as RuntimeError40, RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
21881
21908
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
21882
21909
|
constructor() {
|
|
21883
21910
|
super(...arguments);
|
|
@@ -21900,7 +21927,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
21900
21927
|
get xDataController() {
|
|
21901
21928
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21902
21929
|
if (!controller) {
|
|
21903
|
-
throw new
|
|
21930
|
+
throw new RuntimeModelError51(
|
|
21904
21931
|
this.model,
|
|
21905
21932
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21906
21933
|
);
|
|
@@ -23508,7 +23535,7 @@ import { clone as clone17 } from "ramda";
|
|
|
23508
23535
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
23509
23536
|
import {
|
|
23510
23537
|
recursiveIterate as recursiveIterate3,
|
|
23511
|
-
RuntimeModelError as
|
|
23538
|
+
RuntimeModelError as RuntimeModelError52
|
|
23512
23539
|
} from "@ibiz-template/core";
|
|
23513
23540
|
var EditFormService = class extends ControlService {
|
|
23514
23541
|
/**
|
|
@@ -23626,7 +23653,7 @@ var EditFormService = class extends ControlService {
|
|
|
23626
23653
|
const wizardForm = this.model;
|
|
23627
23654
|
const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
23628
23655
|
if (!methodName) {
|
|
23629
|
-
throw new
|
|
23656
|
+
throw new RuntimeModelError52(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
|
|
23630
23657
|
}
|
|
23631
23658
|
let res = await this.exec(
|
|
23632
23659
|
methodName,
|
|
@@ -25168,7 +25195,7 @@ import {
|
|
|
25168
25195
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
25169
25196
|
recursiveIterate as recursiveIterate4,
|
|
25170
25197
|
RuntimeError as RuntimeError44,
|
|
25171
|
-
RuntimeModelError as
|
|
25198
|
+
RuntimeModelError as RuntimeModelError53
|
|
25172
25199
|
} from "@ibiz-template/core";
|
|
25173
25200
|
import { clone as clone18 } from "ramda";
|
|
25174
25201
|
|
|
@@ -25364,11 +25391,11 @@ var GridController = class extends MDControlController {
|
|
|
25364
25391
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
25365
25392
|
);
|
|
25366
25393
|
if (!this.groupFieldColumn) {
|
|
25367
|
-
throw new
|
|
25394
|
+
throw new RuntimeModelError53(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
|
|
25368
25395
|
}
|
|
25369
25396
|
const groupFieldName = this.groupFieldColumn.model.id;
|
|
25370
25397
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
25371
|
-
throw new
|
|
25398
|
+
throw new RuntimeModelError53(
|
|
25372
25399
|
this.groupFieldColumn.model,
|
|
25373
25400
|
"\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217".concat(groupFieldName, "\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868")
|
|
25374
25401
|
);
|
|
@@ -25378,7 +25405,7 @@ var GridController = class extends MDControlController {
|
|
|
25378
25405
|
);
|
|
25379
25406
|
if (index !== -1 && index !== 0) {
|
|
25380
25407
|
if (this.isMultistageHeader) {
|
|
25381
|
-
throw new
|
|
25408
|
+
throw new RuntimeModelError53(
|
|
25382
25409
|
this.model,
|
|
25383
25410
|
"\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217".concat(groupFieldName, "\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217")
|
|
25384
25411
|
);
|
|
@@ -25388,10 +25415,10 @@ var GridController = class extends MDControlController {
|
|
|
25388
25415
|
}
|
|
25389
25416
|
if (groupMode === "CODELIST") {
|
|
25390
25417
|
if (!groupCodeListId) {
|
|
25391
|
-
throw new
|
|
25418
|
+
throw new RuntimeModelError53(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
|
|
25392
25419
|
}
|
|
25393
25420
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
25394
|
-
throw new
|
|
25421
|
+
throw new RuntimeModelError53(
|
|
25395
25422
|
this.model,
|
|
25396
25423
|
"\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217".concat(groupFieldName, "\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4")
|
|
25397
25424
|
);
|
|
@@ -25473,7 +25500,7 @@ var GridController = class extends MDControlController {
|
|
|
25473
25500
|
return;
|
|
25474
25501
|
}
|
|
25475
25502
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
25476
|
-
throw new
|
|
25503
|
+
throw new RuntimeModelError53(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
|
|
25477
25504
|
}
|
|
25478
25505
|
const params = await this.getFetchParams();
|
|
25479
25506
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -26296,7 +26323,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
26296
26323
|
};
|
|
26297
26324
|
|
|
26298
26325
|
// src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
|
|
26299
|
-
import { RuntimeModelError as
|
|
26326
|
+
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
26300
26327
|
var GridUAColumnController = class extends GridColumnController {
|
|
26301
26328
|
/**
|
|
26302
26329
|
* 给rowController初始化操作列的状态
|
|
@@ -26309,7 +26336,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
26309
26336
|
var _a;
|
|
26310
26337
|
const { deuiactionGroup } = this.model;
|
|
26311
26338
|
if (!deuiactionGroup) {
|
|
26312
|
-
throw new
|
|
26339
|
+
throw new RuntimeModelError54(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
26313
26340
|
}
|
|
26314
26341
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
26315
26342
|
ibiz.log.debug("\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -28887,7 +28914,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28887
28914
|
};
|
|
28888
28915
|
|
|
28889
28916
|
// src/controller/control/kanban/kanban.controller.ts
|
|
28890
|
-
import { RuntimeError as RuntimeError48, RuntimeModelError as
|
|
28917
|
+
import { RuntimeError as RuntimeError48, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
28891
28918
|
import { isNil as isNil20 } from "ramda";
|
|
28892
28919
|
|
|
28893
28920
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -28962,10 +28989,10 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28962
28989
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
28963
28990
|
const { minorSortDir } = this.model;
|
|
28964
28991
|
if (!sortField) {
|
|
28965
|
-
throw new
|
|
28992
|
+
throw new RuntimeModelError55(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
|
|
28966
28993
|
}
|
|
28967
28994
|
if (!minorSortDir) {
|
|
28968
|
-
throw new
|
|
28995
|
+
throw new RuntimeModelError55(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
|
|
28969
28996
|
}
|
|
28970
28997
|
const isAsc = minorSortDir === "ASC";
|
|
28971
28998
|
items.forEach((item) => {
|
|
@@ -30058,7 +30085,7 @@ var ViewEngineBase = class {
|
|
|
30058
30085
|
};
|
|
30059
30086
|
|
|
30060
30087
|
// src/engine/md-view.engine.ts
|
|
30061
|
-
import { RuntimeModelError as
|
|
30088
|
+
import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
30062
30089
|
import { clone as clone20 } from "ramda";
|
|
30063
30090
|
var MDViewEngine = class extends ViewEngineBase {
|
|
30064
30091
|
/**
|
|
@@ -30254,7 +30281,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
30254
30281
|
(item) => item.id === "newdata"
|
|
30255
30282
|
);
|
|
30256
30283
|
if (!openAppViewLogic) {
|
|
30257
|
-
throw new
|
|
30284
|
+
throw new RuntimeModelError56(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
30258
30285
|
}
|
|
30259
30286
|
const params = clone20(this.view.params);
|
|
30260
30287
|
if (copyMode) {
|
|
@@ -30270,7 +30297,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
30270
30297
|
if (result instanceof Object && result.ok) {
|
|
30271
30298
|
this.refresh();
|
|
30272
30299
|
} else if (result === -1) {
|
|
30273
|
-
throw new
|
|
30300
|
+
throw new RuntimeModelError56(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
30274
30301
|
}
|
|
30275
30302
|
}
|
|
30276
30303
|
/**
|
|
@@ -30408,7 +30435,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
30408
30435
|
|
|
30409
30436
|
// src/utils/error-handler/default-error-handler.ts
|
|
30410
30437
|
import {
|
|
30411
|
-
RuntimeModelError as
|
|
30438
|
+
RuntimeModelError as RuntimeModelError57,
|
|
30412
30439
|
ModelError as ModelError28,
|
|
30413
30440
|
HttpError as HttpError4,
|
|
30414
30441
|
NoticeError as NoticeError2,
|
|
@@ -30416,7 +30443,7 @@ import {
|
|
|
30416
30443
|
} from "@ibiz-template/core";
|
|
30417
30444
|
var DefaultErrorHandler = class {
|
|
30418
30445
|
handle(error) {
|
|
30419
|
-
if (error instanceof
|
|
30446
|
+
if (error instanceof RuntimeModelError57 || error instanceof ModelError28) {
|
|
30420
30447
|
ibiz.message.error(error.message, 10, true);
|
|
30421
30448
|
} else if (error instanceof HttpError4) {
|
|
30422
30449
|
if (error.status === 401) {
|
|
@@ -30670,13 +30697,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
30670
30697
|
};
|
|
30671
30698
|
|
|
30672
30699
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
30673
|
-
import { RuntimeModelError as
|
|
30700
|
+
import { RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
30674
30701
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
30675
30702
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30676
30703
|
execute(executeParams) {
|
|
30677
30704
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
30678
30705
|
if (!appDEUILogicId) {
|
|
30679
|
-
throw new
|
|
30706
|
+
throw new RuntimeModelError58(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
30680
30707
|
}
|
|
30681
30708
|
execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
30682
30709
|
}
|
|
@@ -31161,7 +31188,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
31161
31188
|
import {
|
|
31162
31189
|
ModelError as ModelError31,
|
|
31163
31190
|
RuntimeError as RuntimeError56,
|
|
31164
|
-
RuntimeModelError as
|
|
31191
|
+
RuntimeModelError as RuntimeModelError59
|
|
31165
31192
|
} from "@ibiz-template/core";
|
|
31166
31193
|
import { notNilEmpty as notNilEmpty10 } from "qx-util";
|
|
31167
31194
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
@@ -31205,7 +31232,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31205
31232
|
} else {
|
|
31206
31233
|
openViewRef = appUILogic.openDataAppView;
|
|
31207
31234
|
if (!openViewRef) {
|
|
31208
|
-
throw new
|
|
31235
|
+
throw new RuntimeModelError59(
|
|
31209
31236
|
appUILogic,
|
|
31210
31237
|
"opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
|
|
31211
31238
|
);
|
|
@@ -31213,7 +31240,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31213
31240
|
}
|
|
31214
31241
|
const openView = openViewRef.refAppViewId;
|
|
31215
31242
|
if (!openView) {
|
|
31216
|
-
throw new
|
|
31243
|
+
throw new RuntimeModelError59(
|
|
31217
31244
|
appUILogic,
|
|
31218
31245
|
"opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
|
|
31219
31246
|
);
|
|
@@ -31240,7 +31267,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31240
31267
|
const appDataEntityId = parameters.view.model.appDataEntityId;
|
|
31241
31268
|
const formTypeName = await getFormTypeFieldName(appDataEntityId);
|
|
31242
31269
|
if (!formTypeName) {
|
|
31243
|
-
throw new
|
|
31270
|
+
throw new RuntimeModelError59(
|
|
31244
31271
|
appUILogic,
|
|
31245
31272
|
"".concat(appDataEntityId, "\u5B9E\u4F53\u7F3A\u5C11\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027")
|
|
31246
31273
|
);
|
|
@@ -31248,7 +31275,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31248
31275
|
const { data } = parameters;
|
|
31249
31276
|
const formTypeValue = data[0][formTypeName];
|
|
31250
31277
|
if (!formTypeValue) {
|
|
31251
|
-
throw new
|
|
31278
|
+
throw new RuntimeModelError59(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
|
|
31252
31279
|
}
|
|
31253
31280
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
31254
31281
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
@@ -31290,7 +31317,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31290
31317
|
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
31291
31318
|
});
|
|
31292
31319
|
if (!newViewRef) {
|
|
31293
|
-
throw new
|
|
31320
|
+
throw new RuntimeModelError59(
|
|
31294
31321
|
appUILogic,
|
|
31295
31322
|
"\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
|
|
31296
31323
|
);
|
|
@@ -31300,7 +31327,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31300
31327
|
} else {
|
|
31301
31328
|
newViewRef = newDataAppView;
|
|
31302
31329
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
31303
|
-
throw new
|
|
31330
|
+
throw new RuntimeModelError59(
|
|
31304
31331
|
appUILogic,
|
|
31305
31332
|
"newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
|
|
31306
31333
|
);
|
|
@@ -31357,7 +31384,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31357
31384
|
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
31358
31385
|
const { context, params, ...rest } = parameters;
|
|
31359
31386
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
31360
|
-
throw new
|
|
31387
|
+
throw new RuntimeModelError59(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
|
|
31361
31388
|
}
|
|
31362
31389
|
const result = await ibiz.commands.execute(
|
|
31363
31390
|
OpenAppViewCommand.TAG,
|
|
@@ -31403,7 +31430,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
31403
31430
|
const minorDERs = selfDe.minorAppDERSs;
|
|
31404
31431
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
31405
31432
|
if (!minorDERs) {
|
|
31406
|
-
throw new
|
|
31433
|
+
throw new RuntimeModelError59(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
|
|
31407
31434
|
}
|
|
31408
31435
|
let pickParentFieldName;
|
|
31409
31436
|
minorDERs == null ? void 0 : minorDERs.forEach((item) => {
|