@ibiz-template/runtime 0.1.0 → 0.1.1
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 +193 -97
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +1 -1
- package/out/controller/utils/event/qx-event-ex.d.ts.map +1 -1
- package/out/controller/utils/event/qx-event-ex.js +5 -4
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +7 -6
- package/out/interface/controller/event/view/i-pickup-data-view.event.d.ts +27 -0
- package/out/interface/controller/event/view/i-pickup-data-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-pickup-data-view.event.js +1 -0
- package/out/interface/controller/event/view/index.d.ts +1 -0
- package/out/interface/controller/event/view/index.d.ts.map +1 -1
- package/out/interface/controller/event/view/index.js +1 -0
- package/out/interface/controller/state/view/i-pickup-data-view.state.d.ts +22 -0
- package/out/interface/controller/state/view/i-pickup-data-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-pickup-data-view.state.js +1 -0
- package/out/interface/controller/state/view/index.d.ts +1 -0
- package/out/interface/controller/state/view/index.d.ts.map +1 -1
- package/out/interface/controller/state/view/index.js +1 -0
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts +13 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-logic-executor.js +62 -18
- package/out/service/service/entity/method/fetch.d.ts +11 -0
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +40 -3
- package/package.json +8 -10
- package/src/command/app/open-app-view/open-app-view.ts +1 -1
- package/src/controller/utils/event/qx-event-ex.ts +5 -4
- package/src/engine/view-base.engine.ts +7 -6
- package/src/interface/controller/event/view/i-pickup-data-view.event.ts +25 -0
- package/src/interface/controller/event/view/index.ts +1 -0
- package/src/interface/controller/state/view/i-pickup-data-view.state.ts +22 -0
- package/src/interface/controller/state/view/index.ts +1 -0
- package/src/logic-scheduler/executor/app-ui-logic-executor.ts +86 -26
- package/src/service/service/entity/method/fetch.ts +62 -5
package/dist/index.esm.js
CHANGED
|
@@ -2326,7 +2326,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
2326
2326
|
);
|
|
2327
2327
|
}
|
|
2328
2328
|
const { openMode = "INDEXVIEWTAB" } = appView;
|
|
2329
|
-
switch (openMode) {
|
|
2329
|
+
switch (opts.openMode || openMode) {
|
|
2330
2330
|
case "INDEXVIEWTAB":
|
|
2331
2331
|
if (opts.noWaitRoute) {
|
|
2332
2332
|
this.openIndexViewTab(appView, context, params);
|
|
@@ -4083,7 +4083,7 @@ var CounterService = class {
|
|
|
4083
4083
|
CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
4084
4084
|
|
|
4085
4085
|
// src/service/service/entity/de.service.ts
|
|
4086
|
-
import { ModelError as
|
|
4086
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
4087
4087
|
|
|
4088
4088
|
// src/service/service/work-flow/work-flow.service.ts
|
|
4089
4089
|
import { RuntimeError as RuntimeError9 } from "@ibiz-template/core";
|
|
@@ -6157,7 +6157,11 @@ var DEActionMethod = class extends Method {
|
|
|
6157
6157
|
};
|
|
6158
6158
|
|
|
6159
6159
|
// src/service/service/entity/method/fetch.ts
|
|
6160
|
-
import {
|
|
6160
|
+
import {
|
|
6161
|
+
HttpResponse as HttpResponse4,
|
|
6162
|
+
ModelError as ModelError14,
|
|
6163
|
+
RuntimeModelError as RuntimeModelError19
|
|
6164
|
+
} from "@ibiz-template/core";
|
|
6161
6165
|
import { ascSort, descSort } from "qx-util";
|
|
6162
6166
|
import { clone as clone9, equals as equals2, isEmpty as isEmpty7, isNil as isNil7, where as where2 } from "ramda";
|
|
6163
6167
|
var FetchMethod = class extends Method {
|
|
@@ -6169,8 +6173,24 @@ var FetchMethod = class extends Method {
|
|
|
6169
6173
|
);
|
|
6170
6174
|
return new HttpResponse4(items2, 200);
|
|
6171
6175
|
}
|
|
6172
|
-
|
|
6173
|
-
|
|
6176
|
+
let res;
|
|
6177
|
+
switch (this.method.dataSetType) {
|
|
6178
|
+
case "INDEXDE":
|
|
6179
|
+
case "CODELIST":
|
|
6180
|
+
res = await this.fetchCodeListSet(context, params);
|
|
6181
|
+
break;
|
|
6182
|
+
case "REMOTE":
|
|
6183
|
+
{
|
|
6184
|
+
const path2 = this.calcPath(context);
|
|
6185
|
+
res = await this.request(path2, context, data, params);
|
|
6186
|
+
}
|
|
6187
|
+
break;
|
|
6188
|
+
default:
|
|
6189
|
+
throw new ModelError14(
|
|
6190
|
+
this.method,
|
|
6191
|
+
"\u6570\u636E\u6765\u6E90\u7C7B\u578B".concat(this.method.dataSetType, "\u6682\u672A\u652F\u6301")
|
|
6192
|
+
);
|
|
6193
|
+
}
|
|
6174
6194
|
const items = res.data || [];
|
|
6175
6195
|
res.data = items.map((item) => this.createEntity(item));
|
|
6176
6196
|
if (res.data.length) {
|
|
@@ -6282,6 +6302,31 @@ var FetchMethod = class extends Method {
|
|
|
6282
6302
|
const items = list.slice(start, end).map((item) => clone9(item));
|
|
6283
6303
|
return items;
|
|
6284
6304
|
}
|
|
6305
|
+
/**
|
|
6306
|
+
* 获取代码表数据来源的集合
|
|
6307
|
+
* @author lxm
|
|
6308
|
+
* @date 2023-08-03 02:55:00
|
|
6309
|
+
* @param {IParams} context
|
|
6310
|
+
* @param {IParams} params
|
|
6311
|
+
* @return {*} {Promise<HttpResponse<IData[]>>}
|
|
6312
|
+
*/
|
|
6313
|
+
async fetchCodeListSet(context, params) {
|
|
6314
|
+
const { appCodeListId } = this.method;
|
|
6315
|
+
if (!appCodeListId) {
|
|
6316
|
+
throw new RuntimeModelError19(this.method, "\u6CA1\u6709\u6307\u5B9A\u6570\u636E\u6765\u6E90\u4EE3\u7801\u8868");
|
|
6317
|
+
}
|
|
6318
|
+
const codeItems = await this.app.codeList.get(
|
|
6319
|
+
appCodeListId,
|
|
6320
|
+
context,
|
|
6321
|
+
params
|
|
6322
|
+
);
|
|
6323
|
+
const { keyAppDEFieldId, majorAppDEFieldId } = this.entity;
|
|
6324
|
+
const dataSet = codeItems.map((item) => ({
|
|
6325
|
+
[keyAppDEFieldId]: item.value,
|
|
6326
|
+
[majorAppDEFieldId]: item.text
|
|
6327
|
+
}));
|
|
6328
|
+
return new HttpResponse4(dataSet, 200);
|
|
6329
|
+
}
|
|
6285
6330
|
};
|
|
6286
6331
|
|
|
6287
6332
|
// src/service/service/entity/de.service.ts
|
|
@@ -6339,7 +6384,7 @@ var DEService = class {
|
|
|
6339
6384
|
method = new FetchMethod(this.model, model);
|
|
6340
6385
|
break;
|
|
6341
6386
|
default:
|
|
6342
|
-
throw new
|
|
6387
|
+
throw new ModelError15(
|
|
6343
6388
|
model,
|
|
6344
6389
|
"\u672A\u652F\u6301\u7684\u670D\u52A1\u65B9\u6CD5\u7C7B\u578B: ".concat(model.methodType)
|
|
6345
6390
|
);
|
|
@@ -7952,18 +7997,19 @@ var ViewEngineBase = class {
|
|
|
7952
7997
|
context,
|
|
7953
7998
|
params
|
|
7954
7999
|
);
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
8000
|
+
const { data } = res;
|
|
8001
|
+
if (data) {
|
|
8002
|
+
this.view.state.srfactiveviewdata = data;
|
|
8003
|
+
evt.emit("onDataChange", { actionType: "LOAD", data: [data] });
|
|
8004
|
+
if (data.srfkey) {
|
|
8005
|
+
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
8006
|
+
}
|
|
7961
8007
|
}
|
|
7962
8008
|
}
|
|
7963
8009
|
};
|
|
7964
8010
|
|
|
7965
8011
|
// src/engine/md-view.engine.ts
|
|
7966
|
-
import { RuntimeModelError as
|
|
8012
|
+
import { RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
7967
8013
|
var MDViewEngine = class extends ViewEngineBase {
|
|
7968
8014
|
/**
|
|
7969
8015
|
* 多数据部件名称
|
|
@@ -8117,7 +8163,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8117
8163
|
view: this.view
|
|
8118
8164
|
}));
|
|
8119
8165
|
if (result === -1) {
|
|
8120
|
-
throw new
|
|
8166
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8121
8167
|
}
|
|
8122
8168
|
}
|
|
8123
8169
|
/**
|
|
@@ -8136,7 +8182,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8136
8182
|
(item) => item.id === "newdata"
|
|
8137
8183
|
);
|
|
8138
8184
|
if (!openAppViewLogic) {
|
|
8139
|
-
throw new
|
|
8185
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8140
8186
|
}
|
|
8141
8187
|
const context = this.view.context.clone();
|
|
8142
8188
|
if (copyMode) {
|
|
@@ -8150,7 +8196,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8150
8196
|
view: this.view
|
|
8151
8197
|
}));
|
|
8152
8198
|
if (result === -1) {
|
|
8153
|
-
throw new
|
|
8199
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8154
8200
|
}
|
|
8155
8201
|
}
|
|
8156
8202
|
/**
|
|
@@ -8500,17 +8546,17 @@ async function getPortletProvider(model) {
|
|
|
8500
8546
|
}
|
|
8501
8547
|
|
|
8502
8548
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
8503
|
-
import { RuntimeModelError as
|
|
8549
|
+
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
8504
8550
|
import { isArray as isArray2 } from "qx-util";
|
|
8505
8551
|
|
|
8506
8552
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
8507
|
-
import { RuntimeModelError as
|
|
8553
|
+
import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
|
|
8508
8554
|
|
|
8509
8555
|
// src/ui-logic/index.ts
|
|
8510
8556
|
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
8511
8557
|
|
|
8512
8558
|
// src/ui-logic/ui-logic.ts
|
|
8513
|
-
import { ModelError as
|
|
8559
|
+
import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
|
|
8514
8560
|
|
|
8515
8561
|
// src/ui-logic/ui-logic-context.ts
|
|
8516
8562
|
var UILogicContext = class {
|
|
@@ -8611,20 +8657,20 @@ var UILogicContext = class {
|
|
|
8611
8657
|
};
|
|
8612
8658
|
|
|
8613
8659
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
8614
|
-
import { RuntimeModelError as
|
|
8660
|
+
import { RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
8615
8661
|
|
|
8616
8662
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
8617
|
-
import { ModelError as
|
|
8663
|
+
import { ModelError as ModelError17 } from "@ibiz-template/core";
|
|
8618
8664
|
|
|
8619
8665
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
8620
|
-
import { RuntimeModelError as
|
|
8666
|
+
import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
|
|
8621
8667
|
|
|
8622
8668
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
8623
8669
|
var UILogicLinkCond = class {
|
|
8624
8670
|
};
|
|
8625
8671
|
|
|
8626
8672
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
8627
|
-
import { ModelError as
|
|
8673
|
+
import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
|
|
8628
8674
|
var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
8629
8675
|
constructor(model) {
|
|
8630
8676
|
super();
|
|
@@ -8659,7 +8705,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8659
8705
|
switch (this.type) {
|
|
8660
8706
|
case "ENTITYFIELD": {
|
|
8661
8707
|
if (!this.value) {
|
|
8662
|
-
throw new
|
|
8708
|
+
throw new RuntimeModelError21(
|
|
8663
8709
|
this.model,
|
|
8664
8710
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
8665
8711
|
);
|
|
@@ -8669,7 +8715,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8669
8715
|
}
|
|
8670
8716
|
case "SRCENTITYFIELD": {
|
|
8671
8717
|
if (!this.value) {
|
|
8672
|
-
throw new
|
|
8718
|
+
throw new RuntimeModelError21(
|
|
8673
8719
|
this.model,
|
|
8674
8720
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
8675
8721
|
);
|
|
@@ -8678,7 +8724,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8678
8724
|
return testCond(dst[this.dstField], this.op, src[this.value]);
|
|
8679
8725
|
}
|
|
8680
8726
|
case "CURTIME":
|
|
8681
|
-
throw new
|
|
8727
|
+
throw new ModelError16(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
|
|
8682
8728
|
default:
|
|
8683
8729
|
return testCond(dst[this.dstField], this.op, this.value);
|
|
8684
8730
|
}
|
|
@@ -8732,7 +8778,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
8732
8778
|
test(ctx, context, data) {
|
|
8733
8779
|
let bol = true;
|
|
8734
8780
|
if (this.conds.length === 0) {
|
|
8735
|
-
throw new
|
|
8781
|
+
throw new RuntimeModelError22(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
|
|
8736
8782
|
}
|
|
8737
8783
|
for (let i = 0; i < this.conds.length; i++) {
|
|
8738
8784
|
const cond = this.conds[i];
|
|
@@ -8820,13 +8866,13 @@ var UILogicLink = class {
|
|
|
8820
8866
|
case 1:
|
|
8821
8867
|
return true;
|
|
8822
8868
|
case 2:
|
|
8823
|
-
throw new
|
|
8869
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u7ED3\u675F");
|
|
8824
8870
|
case 3:
|
|
8825
|
-
throw new
|
|
8871
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u62D2\u7EDD");
|
|
8826
8872
|
case 9:
|
|
8827
|
-
throw new
|
|
8873
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u5E38\u5904\u7406");
|
|
8828
8874
|
default:
|
|
8829
|
-
throw new
|
|
8875
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B:".concat(linkMode));
|
|
8830
8876
|
}
|
|
8831
8877
|
}
|
|
8832
8878
|
};
|
|
@@ -8858,10 +8904,10 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
8858
8904
|
retDEUILogicParamId
|
|
8859
8905
|
} = this.model;
|
|
8860
8906
|
if (!dstAppDataEntityId) {
|
|
8861
|
-
throw new
|
|
8907
|
+
throw new RuntimeModelError23(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
|
|
8862
8908
|
}
|
|
8863
8909
|
if (!dstAppDEActionId) {
|
|
8864
|
-
throw new
|
|
8910
|
+
throw new RuntimeModelError23(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
|
|
8865
8911
|
}
|
|
8866
8912
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
8867
8913
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -8879,13 +8925,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
8879
8925
|
};
|
|
8880
8926
|
|
|
8881
8927
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
8882
|
-
import { RuntimeModelError as
|
|
8928
|
+
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
8883
8929
|
var DEUIActionNode = class extends UILogicNode {
|
|
8884
8930
|
async exec(ctx) {
|
|
8885
8931
|
const { dstAppDEUIActionId, dstDEUILogicParamId } = this.model;
|
|
8886
8932
|
const { data, parameters } = ctx;
|
|
8887
8933
|
if (!dstAppDEUIActionId) {
|
|
8888
|
-
throw new
|
|
8934
|
+
throw new RuntimeModelError24(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
8889
8935
|
}
|
|
8890
8936
|
let actionData = [data];
|
|
8891
8937
|
if (dstDEUILogicParamId) {
|
|
@@ -8910,7 +8956,7 @@ var StartNode2 = class extends UILogicNode {
|
|
|
8910
8956
|
};
|
|
8911
8957
|
|
|
8912
8958
|
// src/ui-logic/ui-logic-node/end-node/end-node.ts
|
|
8913
|
-
import { ModelError as
|
|
8959
|
+
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
8914
8960
|
var EndNode2 = class extends UILogicNode {
|
|
8915
8961
|
async exec(ctx) {
|
|
8916
8962
|
ctx.isEndNode = true;
|
|
@@ -8931,7 +8977,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
8931
8977
|
case "LOGICPARAMFIELD":
|
|
8932
8978
|
case "BREAK":
|
|
8933
8979
|
default:
|
|
8934
|
-
throw new
|
|
8980
|
+
throw new ModelError18(
|
|
8935
8981
|
this.model,
|
|
8936
8982
|
"\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
|
|
8937
8983
|
);
|
|
@@ -8940,10 +8986,10 @@ var EndNode2 = class extends UILogicNode {
|
|
|
8940
8986
|
};
|
|
8941
8987
|
|
|
8942
8988
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
8943
|
-
import { ModelError as
|
|
8989
|
+
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
8944
8990
|
|
|
8945
8991
|
// src/ui-logic/utils/handle-src-val.ts
|
|
8946
|
-
import { ModelError as
|
|
8992
|
+
import { ModelError as ModelError19 } from "@ibiz-template/core";
|
|
8947
8993
|
import { clone as clone10 } from "ramda";
|
|
8948
8994
|
function handleSrcVal2(ctx, srcValParams) {
|
|
8949
8995
|
const { srcDEUILogicParamId, srcValueType, srcFieldName, srcValue } = srcValParams;
|
|
@@ -8971,7 +9017,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
8971
9017
|
value = clone10(ibiz.env);
|
|
8972
9018
|
break;
|
|
8973
9019
|
default:
|
|
8974
|
-
throw new
|
|
9020
|
+
throw new ModelError19(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
8975
9021
|
}
|
|
8976
9022
|
const srcField = srcFieldName == null ? void 0 : srcFieldName.toLowerCase();
|
|
8977
9023
|
if (value && srcField) {
|
|
@@ -8991,7 +9037,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
8991
9037
|
case "SETPARAMVALUE":
|
|
8992
9038
|
return this.setParamValue(nodeParam, ctx);
|
|
8993
9039
|
default:
|
|
8994
|
-
throw new
|
|
9040
|
+
throw new ModelError20(
|
|
8995
9041
|
nodeParam,
|
|
8996
9042
|
"\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
|
|
8997
9043
|
);
|
|
@@ -9021,20 +9067,20 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
9021
9067
|
};
|
|
9022
9068
|
|
|
9023
9069
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
9024
|
-
import { RuntimeError as RuntimeError18, RuntimeModelError as
|
|
9070
|
+
import { RuntimeError as RuntimeError18, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
9025
9071
|
import { isFunction } from "lodash-es";
|
|
9026
9072
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
9027
9073
|
async exec(ctx) {
|
|
9028
9074
|
ctx.isEndNode = true;
|
|
9029
9075
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
9030
9076
|
if (!invokeCtrlId) {
|
|
9031
|
-
throw new
|
|
9077
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
|
|
9032
9078
|
}
|
|
9033
9079
|
if (!invokeParamId) {
|
|
9034
|
-
throw new
|
|
9080
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
|
|
9035
9081
|
}
|
|
9036
9082
|
if (!invokeMethod) {
|
|
9037
|
-
throw new
|
|
9083
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
|
|
9038
9084
|
}
|
|
9039
9085
|
const invokeParam = ctx.params[invokeParamId];
|
|
9040
9086
|
if (!invokeParam) {
|
|
@@ -9052,7 +9098,7 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
9052
9098
|
};
|
|
9053
9099
|
|
|
9054
9100
|
// src/ui-logic/ui-logic-param/ui-logic-param.ts
|
|
9055
|
-
import { ModelError as
|
|
9101
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
9056
9102
|
var UILogicParam = class {
|
|
9057
9103
|
/**
|
|
9058
9104
|
* Creates an instance of UILogicParam.
|
|
@@ -9098,17 +9144,17 @@ var UILogicParam = class {
|
|
|
9098
9144
|
} else if (m.entityListParam) {
|
|
9099
9145
|
ctx.params[tag] = [];
|
|
9100
9146
|
} else if (m.entityPageParam) {
|
|
9101
|
-
throw new
|
|
9147
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5206\u9875\u67E5\u8BE2\u7ED3\u679C");
|
|
9102
9148
|
} else if (m.entityParam) {
|
|
9103
9149
|
ctx.params[tag] = {};
|
|
9104
9150
|
} else if (m.lastReturnParam) {
|
|
9105
|
-
throw new
|
|
9151
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u4E0A\u6B21\u8C03\u7528\u8FD4\u56DE");
|
|
9106
9152
|
} else if (m.navContextParam) {
|
|
9107
9153
|
ctx.params[tag] = context;
|
|
9108
9154
|
} else if (m.navViewParamParam) {
|
|
9109
|
-
throw new
|
|
9155
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u89C6\u56FE\u8DEF\u7531\u53C2\u6570");
|
|
9110
9156
|
} else if (m.routeViewSessionParam) {
|
|
9111
|
-
throw new
|
|
9157
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u8DEF\u7531\u89C6\u56FE\u4F1A\u8BDD");
|
|
9112
9158
|
} else if (m.simpleListParam) {
|
|
9113
9159
|
ctx.params[tag] = [];
|
|
9114
9160
|
} else if (m.simpleParam) {
|
|
@@ -9116,7 +9162,7 @@ var UILogicParam = class {
|
|
|
9116
9162
|
} else if (m.viewNavDataParam) {
|
|
9117
9163
|
ctx.params[tag] = viewParams;
|
|
9118
9164
|
} else if (m.viewSessionParam) {
|
|
9119
|
-
throw new
|
|
9165
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
|
|
9120
9166
|
}
|
|
9121
9167
|
}
|
|
9122
9168
|
/**
|
|
@@ -9133,7 +9179,7 @@ var UILogicParam = class {
|
|
|
9133
9179
|
} else if (m.simpleParam || m.entityParam) {
|
|
9134
9180
|
ctx.params[tag] = {};
|
|
9135
9181
|
} else {
|
|
9136
|
-
throw new
|
|
9182
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
|
|
9137
9183
|
}
|
|
9138
9184
|
}
|
|
9139
9185
|
};
|
|
@@ -9168,7 +9214,7 @@ var UILogic = class {
|
|
|
9168
9214
|
this.params = /* @__PURE__ */ new Map();
|
|
9169
9215
|
var _a;
|
|
9170
9216
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
9171
|
-
throw new
|
|
9217
|
+
throw new RuntimeModelError26(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
|
|
9172
9218
|
}
|
|
9173
9219
|
model.deuilogicNodes.forEach((node) => {
|
|
9174
9220
|
const { logicNodeType } = node;
|
|
@@ -9206,7 +9252,7 @@ var UILogic = class {
|
|
|
9206
9252
|
case "THROWEXCEPTION":
|
|
9207
9253
|
case "DEBUGPARAM":
|
|
9208
9254
|
default:
|
|
9209
|
-
throw new
|
|
9255
|
+
throw new ModelError22(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
9210
9256
|
}
|
|
9211
9257
|
this.nodes.set(node.id, logicNode);
|
|
9212
9258
|
});
|
|
@@ -9259,7 +9305,7 @@ var UILogic = class {
|
|
|
9259
9305
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
9260
9306
|
await this.deepExec(start, ctx);
|
|
9261
9307
|
} else {
|
|
9262
|
-
throw new
|
|
9308
|
+
throw new RuntimeModelError26(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
|
|
9263
9309
|
}
|
|
9264
9310
|
if (ctx.isEndNode) {
|
|
9265
9311
|
return ctx.result;
|
|
@@ -9375,7 +9421,7 @@ var UIActionProviderBase = class {
|
|
|
9375
9421
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
9376
9422
|
if (uilogicAttachMode === "REPLACE") {
|
|
9377
9423
|
if (!appDEUILogicId) {
|
|
9378
|
-
throw new
|
|
9424
|
+
throw new RuntimeModelError27(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9379
9425
|
}
|
|
9380
9426
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
9381
9427
|
return result;
|
|
@@ -9402,7 +9448,7 @@ var UIActionProviderBase = class {
|
|
|
9402
9448
|
}
|
|
9403
9449
|
if (action.uilogicAttachMode === "AFTER") {
|
|
9404
9450
|
if (!appDEUILogicId) {
|
|
9405
|
-
throw new
|
|
9451
|
+
throw new RuntimeModelError27(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9406
9452
|
}
|
|
9407
9453
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
9408
9454
|
}
|
|
@@ -9536,7 +9582,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
9536
9582
|
const entityName = action.appDataEntityId;
|
|
9537
9583
|
const methodName = action.appDEMethodId;
|
|
9538
9584
|
if (!entityName || !methodName) {
|
|
9539
|
-
throw new
|
|
9585
|
+
throw new RuntimeModelError28(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
|
|
9540
9586
|
}
|
|
9541
9587
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
9542
9588
|
action,
|
|
@@ -9608,7 +9654,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
9608
9654
|
};
|
|
9609
9655
|
|
|
9610
9656
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
9611
|
-
import { StringUtil, RuntimeModelError as
|
|
9657
|
+
import { StringUtil, RuntimeModelError as RuntimeModelError29, ModelError as ModelError23 } from "@ibiz-template/core";
|
|
9612
9658
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
9613
9659
|
async execAction(action, args) {
|
|
9614
9660
|
const { context, params, data, event, noWaitRoute } = args;
|
|
@@ -9623,7 +9669,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9623
9669
|
case "WIZARD": {
|
|
9624
9670
|
const frontPSAppView = action.frontAppViewId;
|
|
9625
9671
|
if (!frontPSAppView) {
|
|
9626
|
-
throw new
|
|
9672
|
+
throw new RuntimeModelError29(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
|
|
9627
9673
|
}
|
|
9628
9674
|
const { resultContext, resultParams } = await this.handleParams(
|
|
9629
9675
|
action,
|
|
@@ -9652,7 +9698,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9652
9698
|
actionResult = this.doOther(action, args);
|
|
9653
9699
|
break;
|
|
9654
9700
|
default:
|
|
9655
|
-
throw new
|
|
9701
|
+
throw new ModelError23(
|
|
9656
9702
|
action,
|
|
9657
9703
|
"\u672A\u652F\u6301\u7684\u524D\u53F0\u5904\u7406\u6A21\u5F0F[".concat(action.frontProcessType, "]")
|
|
9658
9704
|
);
|
|
@@ -9679,7 +9725,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9679
9725
|
);
|
|
9680
9726
|
return result || {};
|
|
9681
9727
|
}
|
|
9682
|
-
throw new
|
|
9728
|
+
throw new RuntimeModelError29(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
|
|
9683
9729
|
}
|
|
9684
9730
|
};
|
|
9685
9731
|
|
|
@@ -9752,7 +9798,7 @@ var LogicExecutor = class {
|
|
|
9752
9798
|
};
|
|
9753
9799
|
|
|
9754
9800
|
// src/logic-scheduler/executor/logic-executor-factory.ts
|
|
9755
|
-
import { ModelError as
|
|
9801
|
+
import { ModelError as ModelError24 } from "@ibiz-template/core";
|
|
9756
9802
|
var LogicExecutorFactory = class {
|
|
9757
9803
|
constructor() {
|
|
9758
9804
|
/**
|
|
@@ -9782,7 +9828,7 @@ var LogicExecutorFactory = class {
|
|
|
9782
9828
|
createExecutor(logic, scheduler) {
|
|
9783
9829
|
const constructor = this.constructorMap.get(logic.logicType);
|
|
9784
9830
|
if (!constructor) {
|
|
9785
|
-
throw new
|
|
9831
|
+
throw new ModelError24(logic, "\u903B\u8F91\u7C7B\u578B ".concat(logic.logicType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
9786
9832
|
}
|
|
9787
9833
|
return constructor(logic, scheduler);
|
|
9788
9834
|
}
|
|
@@ -9836,13 +9882,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
9836
9882
|
};
|
|
9837
9883
|
|
|
9838
9884
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
9839
|
-
import { RuntimeModelError as
|
|
9885
|
+
import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
9840
9886
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
9841
9887
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9842
9888
|
execute(executeParams) {
|
|
9843
9889
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
9844
9890
|
if (!appDEUILogicId) {
|
|
9845
|
-
throw new
|
|
9891
|
+
throw new RuntimeModelError30(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9846
9892
|
}
|
|
9847
9893
|
execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
9848
9894
|
}
|
|
@@ -10061,7 +10107,7 @@ var ViewLogicScheduler = class extends LogicScheduler {
|
|
|
10061
10107
|
};
|
|
10062
10108
|
|
|
10063
10109
|
// src/logic-scheduler/trigger/logic-trigger-factory.ts
|
|
10064
|
-
import { ModelError as
|
|
10110
|
+
import { ModelError as ModelError25 } from "@ibiz-template/core";
|
|
10065
10111
|
var LogicTriggerFactory = class {
|
|
10066
10112
|
constructor() {
|
|
10067
10113
|
/**
|
|
@@ -10091,7 +10137,7 @@ var LogicTriggerFactory = class {
|
|
|
10091
10137
|
createTrigger(logic, scheduler) {
|
|
10092
10138
|
const constructor = this.constructorMap.get(logic.triggerType);
|
|
10093
10139
|
if (!constructor) {
|
|
10094
|
-
throw new
|
|
10140
|
+
throw new ModelError25(logic, "\u89E6\u53D1\u5668\u7C7B\u578B ".concat(logic.triggerType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
10095
10141
|
}
|
|
10096
10142
|
return constructor(logic, scheduler);
|
|
10097
10143
|
}
|
|
@@ -10259,7 +10305,11 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
10259
10305
|
};
|
|
10260
10306
|
|
|
10261
10307
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
10262
|
-
import {
|
|
10308
|
+
import {
|
|
10309
|
+
ModelError as ModelError26,
|
|
10310
|
+
RuntimeError as RuntimeError27,
|
|
10311
|
+
RuntimeModelError as RuntimeModelError31
|
|
10312
|
+
} from "@ibiz-template/core";
|
|
10263
10313
|
import { notNilEmpty as notNilEmpty5 } from "qx-util";
|
|
10264
10314
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
10265
10315
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10290,20 +10340,21 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10290
10340
|
* @param {IData} [opts] 额外参数,event是js原生事件
|
|
10291
10341
|
*/
|
|
10292
10342
|
async executeOpenDataAppUILogic(appUILogic, parameters) {
|
|
10293
|
-
const { context, params,
|
|
10343
|
+
const { context, params, ...rest } = parameters;
|
|
10344
|
+
const { data } = parameters;
|
|
10294
10345
|
if (!(data == null ? void 0 : data[0])) {
|
|
10295
10346
|
throw new RuntimeError27("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
10296
10347
|
}
|
|
10297
10348
|
const openViewRef = appUILogic.openDataAppView;
|
|
10298
10349
|
if (!openViewRef) {
|
|
10299
|
-
throw new
|
|
10350
|
+
throw new RuntimeModelError31(
|
|
10300
10351
|
appUILogic,
|
|
10301
10352
|
"opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
|
|
10302
10353
|
);
|
|
10303
10354
|
}
|
|
10304
10355
|
const openView = openViewRef.refAppViewId;
|
|
10305
10356
|
if (!openView) {
|
|
10306
|
-
throw new
|
|
10357
|
+
throw new RuntimeModelError31(
|
|
10307
10358
|
appUILogic,
|
|
10308
10359
|
"opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
|
|
10309
10360
|
);
|
|
@@ -10339,20 +10390,27 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10339
10390
|
* @param {IData} [opts] 额外参数,event是js原生事件
|
|
10340
10391
|
*/
|
|
10341
10392
|
async executeNewDataAppUILogic(appUILogic, parameters) {
|
|
10342
|
-
const { context, params,
|
|
10343
|
-
const
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
)
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
if (
|
|
10352
|
-
throw new
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10393
|
+
const { context, params, ...rest } = parameters;
|
|
10394
|
+
const { data } = parameters;
|
|
10395
|
+
const { enableWizardAdd, enableBatchAdd, batchAddOnly, newDataAppView } = appUILogic;
|
|
10396
|
+
let newViewRef;
|
|
10397
|
+
if (enableWizardAdd) {
|
|
10398
|
+
newViewRef = await this.getWizardNewViewRef(appUILogic, parameters);
|
|
10399
|
+
if (!newViewRef) {
|
|
10400
|
+
return;
|
|
10401
|
+
}
|
|
10402
|
+
} else if (enableBatchAdd) {
|
|
10403
|
+
throw new ModelError26(appUILogic, "enableBatchAdd\u6682\u672A\u652F\u6301");
|
|
10404
|
+
} else if (batchAddOnly) {
|
|
10405
|
+
throw new ModelError26(appUILogic, "batchAddOnly\u6682\u672A\u652F\u6301");
|
|
10406
|
+
} else {
|
|
10407
|
+
newViewRef = newDataAppView;
|
|
10408
|
+
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
10409
|
+
throw new RuntimeModelError31(
|
|
10410
|
+
appUILogic,
|
|
10411
|
+
"newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
|
|
10412
|
+
);
|
|
10413
|
+
}
|
|
10356
10414
|
}
|
|
10357
10415
|
let tempContext = {};
|
|
10358
10416
|
let tempParams = {};
|
|
@@ -10370,18 +10428,55 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10370
10428
|
_data.srfkey = void 0;
|
|
10371
10429
|
tempParams = Object.assign(tempParams, _data.$origin);
|
|
10372
10430
|
}
|
|
10373
|
-
if (appUILogic.enableWizardAdd) {
|
|
10374
|
-
} else if (appUILogic.enableBatchAdd) {
|
|
10375
|
-
} else if (appUILogic.batchAddOnly) {
|
|
10376
|
-
}
|
|
10377
10431
|
await ibiz.commands.execute(
|
|
10378
10432
|
OpenAppViewCommand.TAG,
|
|
10379
|
-
|
|
10433
|
+
newViewRef.refAppViewId,
|
|
10380
10434
|
tempContext,
|
|
10381
10435
|
tempParams,
|
|
10382
10436
|
rest
|
|
10383
10437
|
);
|
|
10384
10438
|
}
|
|
10439
|
+
/**
|
|
10440
|
+
* 获取向导新建视图引用
|
|
10441
|
+
* 返回undefined为取消操作
|
|
10442
|
+
* 找不到会报错
|
|
10443
|
+
* @author lxm
|
|
10444
|
+
* @date 2023-08-03 06:37:22
|
|
10445
|
+
* @protected
|
|
10446
|
+
* @param {IAppUINewDataLogic} appUILogic
|
|
10447
|
+
* @param {IUILogicParams} parameters
|
|
10448
|
+
* @return {*} {(Promise<IAppUILogicRefViewBase | undefined>)}
|
|
10449
|
+
*/
|
|
10450
|
+
async getWizardNewViewRef(appUILogic, parameters) {
|
|
10451
|
+
var _a;
|
|
10452
|
+
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
10453
|
+
const { context, params, ...rest } = parameters;
|
|
10454
|
+
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
10455
|
+
throw new RuntimeModelError31(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
|
|
10456
|
+
}
|
|
10457
|
+
const result = await ibiz.commands.execute(
|
|
10458
|
+
OpenAppViewCommand.TAG,
|
|
10459
|
+
wizardAppView.refAppViewId,
|
|
10460
|
+
context,
|
|
10461
|
+
params,
|
|
10462
|
+
{ ...rest, openMode: "POPUPMODAL" }
|
|
10463
|
+
);
|
|
10464
|
+
if (!result.ok) {
|
|
10465
|
+
return;
|
|
10466
|
+
}
|
|
10467
|
+
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
10468
|
+
if (!selectData) {
|
|
10469
|
+
throw new RuntimeError27("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
10470
|
+
}
|
|
10471
|
+
const indexType = selectData.srfkey;
|
|
10472
|
+
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
10473
|
+
if (!findView) {
|
|
10474
|
+
throw new RuntimeError27(
|
|
10475
|
+
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
10476
|
+
);
|
|
10477
|
+
}
|
|
10478
|
+
return findView;
|
|
10479
|
+
}
|
|
10385
10480
|
};
|
|
10386
10481
|
|
|
10387
10482
|
// src/logic-scheduler/trigger/view-event-trigger.ts
|
|
@@ -11066,11 +11161,12 @@ var QXEventEx = class extends QXEvent3 {
|
|
|
11066
11161
|
});
|
|
11067
11162
|
}
|
|
11068
11163
|
async asyncEmit(name, ...args) {
|
|
11069
|
-
const
|
|
11164
|
+
const resultPromise1 = super.asyncEmit(name, ...args);
|
|
11070
11165
|
const all = this.anyEventFns.map((fn) => fn(name, ...args));
|
|
11071
|
-
const
|
|
11072
|
-
|
|
11073
|
-
|
|
11166
|
+
const resultPromise2 = Promise.all(all);
|
|
11167
|
+
const resultArr1 = await resultPromise1;
|
|
11168
|
+
const resultArr2 = await resultPromise2;
|
|
11169
|
+
return resultArr1.concat(...resultArr2);
|
|
11074
11170
|
}
|
|
11075
11171
|
reset() {
|
|
11076
11172
|
super.reset();
|
|
@@ -11804,7 +11900,7 @@ var EditorController = class {
|
|
|
11804
11900
|
};
|
|
11805
11901
|
|
|
11806
11902
|
// src/controller/common/editor/code-list-editor.controller.ts
|
|
11807
|
-
import { RuntimeModelError as
|
|
11903
|
+
import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
11808
11904
|
var CodeListEditorController = class extends EditorController {
|
|
11809
11905
|
/**
|
|
11810
11906
|
* 加载代码表数据
|
|
@@ -11828,7 +11924,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
11828
11924
|
);
|
|
11829
11925
|
return dataItems;
|
|
11830
11926
|
}
|
|
11831
|
-
throw new
|
|
11927
|
+
throw new RuntimeModelError32(this.model, "\u8BF7\u914D\u7F6E\u4EE3\u7801\u8868");
|
|
11832
11928
|
}
|
|
11833
11929
|
};
|
|
11834
11930
|
|