@ibiz-template/runtime 0.1.0 → 0.1.2
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 +266 -146
- 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/de-logic/index.d.ts +13 -0
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +34 -2
- package/out/engine/md-view.engine.d.ts +2 -2
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +6 -2
- package/out/engine/view-base.engine.d.ts.map +1 -1
- package/out/engine/view-base.engine.js +7 -6
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts +10 -0
- package/out/interface/controller/controller/control/i-pickup-view-panel.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts +11 -0
- package/out/interface/controller/controller/control/i-tree-exp-bar.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts +15 -0
- package/out/interface/controller/event/control/i-pickup-view-panel.event.d.ts.map +1 -1
- 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 -9
- 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/de-logic/index.ts +50 -2
- package/src/engine/md-view.engine.ts +7 -2
- package/src/engine/view-base.engine.ts +7 -6
- package/src/index.ts +2 -0
- package/src/interface/controller/controller/control/i-pickup-view-panel.controller.ts +10 -0
- package/src/interface/controller/controller/control/i-tree-exp-bar.controller.ts +13 -1
- package/src/interface/controller/event/control/i-pickup-view-panel.event.ts +16 -0
- 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 RuntimeError11 } 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";
|
|
@@ -4903,7 +4903,7 @@ var Method = class {
|
|
|
4903
4903
|
};
|
|
4904
4904
|
|
|
4905
4905
|
// src/de-logic/index.ts
|
|
4906
|
-
import { HttpError as HttpError2, HttpResponse as HttpResponse2 } from "@ibiz-template/core";
|
|
4906
|
+
import { HttpError as HttpError2, HttpResponse as HttpResponse2, RuntimeError as RuntimeError10 } from "@ibiz-template/core";
|
|
4907
4907
|
|
|
4908
4908
|
// src/de-logic/de-logic.ts
|
|
4909
4909
|
import { ModelError as ModelError13, RuntimeModelError as RuntimeModelError17 } from "@ibiz-template/core";
|
|
@@ -5838,6 +5838,10 @@ var DELogic = class {
|
|
|
5838
5838
|
|
|
5839
5839
|
// src/de-logic/index.ts
|
|
5840
5840
|
var deLogicMap = /* @__PURE__ */ new Map();
|
|
5841
|
+
async function findDeLogic(deDELogicId, dataEntityId, appId) {
|
|
5842
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(dataEntityId, appId);
|
|
5843
|
+
return findDELogic(deDELogicId, appDataEntity);
|
|
5844
|
+
}
|
|
5841
5845
|
async function execDELogic(deDELogic, context, data, params) {
|
|
5842
5846
|
if (!deLogicMap.has(deDELogic)) {
|
|
5843
5847
|
deLogicMap.set(deDELogic, new DELogic(deDELogic));
|
|
@@ -5845,6 +5849,17 @@ async function execDELogic(deDELogic, context, data, params) {
|
|
|
5845
5849
|
const deLogic = deLogicMap.get(deDELogic);
|
|
5846
5850
|
return deLogic.exec(context, data, params);
|
|
5847
5851
|
}
|
|
5852
|
+
async function execDELogicById(deDELogicId, dataEntityId, context, data, params) {
|
|
5853
|
+
const deLogic = await findDeLogic(
|
|
5854
|
+
deDELogicId,
|
|
5855
|
+
dataEntityId,
|
|
5856
|
+
context.srfappid
|
|
5857
|
+
);
|
|
5858
|
+
if (!deLogic) {
|
|
5859
|
+
throw new RuntimeError10("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
5860
|
+
}
|
|
5861
|
+
return execDELogic(deLogic, context, data, params);
|
|
5862
|
+
}
|
|
5848
5863
|
async function execDELogicAction(deDELogic, context, data, params) {
|
|
5849
5864
|
try {
|
|
5850
5865
|
const result = await execDELogic(deDELogic, context, data, params);
|
|
@@ -6157,7 +6172,11 @@ var DEActionMethod = class extends Method {
|
|
|
6157
6172
|
};
|
|
6158
6173
|
|
|
6159
6174
|
// src/service/service/entity/method/fetch.ts
|
|
6160
|
-
import {
|
|
6175
|
+
import {
|
|
6176
|
+
HttpResponse as HttpResponse4,
|
|
6177
|
+
ModelError as ModelError14,
|
|
6178
|
+
RuntimeModelError as RuntimeModelError19
|
|
6179
|
+
} from "@ibiz-template/core";
|
|
6161
6180
|
import { ascSort, descSort } from "qx-util";
|
|
6162
6181
|
import { clone as clone9, equals as equals2, isEmpty as isEmpty7, isNil as isNil7, where as where2 } from "ramda";
|
|
6163
6182
|
var FetchMethod = class extends Method {
|
|
@@ -6169,8 +6188,24 @@ var FetchMethod = class extends Method {
|
|
|
6169
6188
|
);
|
|
6170
6189
|
return new HttpResponse4(items2, 200);
|
|
6171
6190
|
}
|
|
6172
|
-
|
|
6173
|
-
|
|
6191
|
+
let res;
|
|
6192
|
+
switch (this.method.dataSetType) {
|
|
6193
|
+
case "INDEXDE":
|
|
6194
|
+
case "CODELIST":
|
|
6195
|
+
res = await this.fetchCodeListSet(context, params);
|
|
6196
|
+
break;
|
|
6197
|
+
case "REMOTE":
|
|
6198
|
+
{
|
|
6199
|
+
const path2 = this.calcPath(context);
|
|
6200
|
+
res = await this.request(path2, context, data, params);
|
|
6201
|
+
}
|
|
6202
|
+
break;
|
|
6203
|
+
default:
|
|
6204
|
+
throw new ModelError14(
|
|
6205
|
+
this.method,
|
|
6206
|
+
"\u6570\u636E\u6765\u6E90\u7C7B\u578B".concat(this.method.dataSetType, "\u6682\u672A\u652F\u6301")
|
|
6207
|
+
);
|
|
6208
|
+
}
|
|
6174
6209
|
const items = res.data || [];
|
|
6175
6210
|
res.data = items.map((item) => this.createEntity(item));
|
|
6176
6211
|
if (res.data.length) {
|
|
@@ -6282,6 +6317,31 @@ var FetchMethod = class extends Method {
|
|
|
6282
6317
|
const items = list.slice(start, end).map((item) => clone9(item));
|
|
6283
6318
|
return items;
|
|
6284
6319
|
}
|
|
6320
|
+
/**
|
|
6321
|
+
* 获取代码表数据来源的集合
|
|
6322
|
+
* @author lxm
|
|
6323
|
+
* @date 2023-08-03 02:55:00
|
|
6324
|
+
* @param {IParams} context
|
|
6325
|
+
* @param {IParams} params
|
|
6326
|
+
* @return {*} {Promise<HttpResponse<IData[]>>}
|
|
6327
|
+
*/
|
|
6328
|
+
async fetchCodeListSet(context, params) {
|
|
6329
|
+
const { appCodeListId } = this.method;
|
|
6330
|
+
if (!appCodeListId) {
|
|
6331
|
+
throw new RuntimeModelError19(this.method, "\u6CA1\u6709\u6307\u5B9A\u6570\u636E\u6765\u6E90\u4EE3\u7801\u8868");
|
|
6332
|
+
}
|
|
6333
|
+
const codeItems = await this.app.codeList.get(
|
|
6334
|
+
appCodeListId,
|
|
6335
|
+
context,
|
|
6336
|
+
params
|
|
6337
|
+
);
|
|
6338
|
+
const { keyAppDEFieldId, majorAppDEFieldId } = this.entity;
|
|
6339
|
+
const dataSet = codeItems.map((item) => ({
|
|
6340
|
+
[keyAppDEFieldId]: item.value,
|
|
6341
|
+
[majorAppDEFieldId]: item.text
|
|
6342
|
+
}));
|
|
6343
|
+
return new HttpResponse4(dataSet, 200);
|
|
6344
|
+
}
|
|
6285
6345
|
};
|
|
6286
6346
|
|
|
6287
6347
|
// src/service/service/entity/de.service.ts
|
|
@@ -6339,7 +6399,7 @@ var DEService = class {
|
|
|
6339
6399
|
method = new FetchMethod(this.model, model);
|
|
6340
6400
|
break;
|
|
6341
6401
|
default:
|
|
6342
|
-
throw new
|
|
6402
|
+
throw new ModelError15(
|
|
6343
6403
|
model,
|
|
6344
6404
|
"\u672A\u652F\u6301\u7684\u670D\u52A1\u65B9\u6CD5\u7C7B\u578B: ".concat(model.methodType)
|
|
6345
6405
|
);
|
|
@@ -6363,7 +6423,7 @@ var DEService = class {
|
|
|
6363
6423
|
if (method) {
|
|
6364
6424
|
return method.exec(context, params, params2);
|
|
6365
6425
|
}
|
|
6366
|
-
throw new
|
|
6426
|
+
throw new RuntimeError11("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6367
6427
|
}
|
|
6368
6428
|
};
|
|
6369
6429
|
|
|
@@ -6612,7 +6672,7 @@ var ControlService = class {
|
|
|
6612
6672
|
};
|
|
6613
6673
|
|
|
6614
6674
|
// src/service/service/control/md-control.service.ts
|
|
6615
|
-
import { RuntimeError as
|
|
6675
|
+
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
6616
6676
|
import { isArray } from "qx-util";
|
|
6617
6677
|
var MDControlService = class extends ControlService {
|
|
6618
6678
|
/**
|
|
@@ -6721,7 +6781,7 @@ var MDControlService = class extends ControlService {
|
|
|
6721
6781
|
* @returns {*} {Promise<IHttpResponse>}
|
|
6722
6782
|
*/
|
|
6723
6783
|
async exportData(_dataExport, _context, _params = {}) {
|
|
6724
|
-
throw new
|
|
6784
|
+
throw new RuntimeError12("\u672A\u5B9E\u73B0");
|
|
6725
6785
|
}
|
|
6726
6786
|
/**
|
|
6727
6787
|
* 处理响应
|
|
@@ -6756,7 +6816,7 @@ var MDControlService = class extends ControlService {
|
|
|
6756
6816
|
};
|
|
6757
6817
|
|
|
6758
6818
|
// src/service/service/authority/authority.service.ts
|
|
6759
|
-
import { RuntimeError as
|
|
6819
|
+
import { RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
6760
6820
|
|
|
6761
6821
|
// src/service/service/authority/de-authority.service.ts
|
|
6762
6822
|
var DeAuthorityService = class {
|
|
@@ -6892,7 +6952,7 @@ var AuthorityService = class {
|
|
|
6892
6952
|
this.appModel.appId
|
|
6893
6953
|
);
|
|
6894
6954
|
if (!entityModel) {
|
|
6895
|
-
throw new
|
|
6955
|
+
throw new RuntimeError13("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
6896
6956
|
}
|
|
6897
6957
|
const constructor = this.constructorCache.get(id);
|
|
6898
6958
|
let service;
|
|
@@ -6915,7 +6975,7 @@ var AuthorityService = class {
|
|
|
6915
6975
|
*/
|
|
6916
6976
|
async init(appData = ibiz.appData) {
|
|
6917
6977
|
if (!appData) {
|
|
6918
|
-
throw new
|
|
6978
|
+
throw new RuntimeError13("\u6CA1\u6709appData\u6570\u636E");
|
|
6919
6979
|
}
|
|
6920
6980
|
if (appData.unires) {
|
|
6921
6981
|
this.resCodes = appData.unires;
|
|
@@ -7110,7 +7170,7 @@ var UIMapField = class {
|
|
|
7110
7170
|
};
|
|
7111
7171
|
|
|
7112
7172
|
// src/service/de-service-util.ts
|
|
7113
|
-
import { RuntimeError as
|
|
7173
|
+
import { RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
7114
7174
|
var DEServiceUtil = class {
|
|
7115
7175
|
/**
|
|
7116
7176
|
* Creates an instance of DEServiceUtil.
|
|
@@ -7165,7 +7225,7 @@ var DEServiceUtil = class {
|
|
|
7165
7225
|
this.appModel.appId
|
|
7166
7226
|
);
|
|
7167
7227
|
if (!entityModel) {
|
|
7168
|
-
throw new
|
|
7228
|
+
throw new RuntimeError14("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7169
7229
|
}
|
|
7170
7230
|
const constructor = this.constructorCache.get(id);
|
|
7171
7231
|
let service;
|
|
@@ -7209,7 +7269,7 @@ var DEServiceUtil = class {
|
|
|
7209
7269
|
};
|
|
7210
7270
|
|
|
7211
7271
|
// src/app-hub.ts
|
|
7212
|
-
import { RuntimeError as
|
|
7272
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
7213
7273
|
|
|
7214
7274
|
// src/application.ts
|
|
7215
7275
|
import { Net } from "@ibiz-template/core";
|
|
@@ -7391,7 +7451,7 @@ var Convert = class {
|
|
|
7391
7451
|
};
|
|
7392
7452
|
|
|
7393
7453
|
// src/hub/config/app-view-config-service.ts
|
|
7394
|
-
import { RuntimeError as
|
|
7454
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
7395
7455
|
var AppViewConfigService = class {
|
|
7396
7456
|
constructor() {
|
|
7397
7457
|
/**
|
|
@@ -7408,7 +7468,7 @@ var AppViewConfigService = class {
|
|
|
7408
7468
|
if (!this.viewConfigs.has(key)) {
|
|
7409
7469
|
const model = await ibiz.hub.getAppView(key);
|
|
7410
7470
|
if (!model) {
|
|
7411
|
-
throw new
|
|
7471
|
+
throw new RuntimeError15("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
7412
7472
|
}
|
|
7413
7473
|
this.set(model.id, {
|
|
7414
7474
|
id: model.id,
|
|
@@ -7612,7 +7672,7 @@ var AppHub = class {
|
|
|
7612
7672
|
this.registerAppView(appView);
|
|
7613
7673
|
return appView;
|
|
7614
7674
|
}
|
|
7615
|
-
throw new
|
|
7675
|
+
throw new RuntimeError16("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
7616
7676
|
}
|
|
7617
7677
|
/**
|
|
7618
7678
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -7643,7 +7703,7 @@ var AppHub = class {
|
|
|
7643
7703
|
this.registerAppDataEntity(entity, appId);
|
|
7644
7704
|
return entity;
|
|
7645
7705
|
}
|
|
7646
|
-
throw new
|
|
7706
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7647
7707
|
}
|
|
7648
7708
|
/**
|
|
7649
7709
|
* 新建 hub 应用
|
|
@@ -7664,7 +7724,7 @@ var AppHub = class {
|
|
|
7664
7724
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
7665
7725
|
this.registerApp(appModel);
|
|
7666
7726
|
} else {
|
|
7667
|
-
throw new
|
|
7727
|
+
throw new RuntimeError16("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
7668
7728
|
}
|
|
7669
7729
|
const app = new Application(appModel);
|
|
7670
7730
|
this.appMap.set(id, app);
|
|
@@ -7755,7 +7815,7 @@ var EngineFactory = class {
|
|
|
7755
7815
|
};
|
|
7756
7816
|
|
|
7757
7817
|
// src/engine/view-base.engine.ts
|
|
7758
|
-
import { RuntimeError as
|
|
7818
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
7759
7819
|
var ViewEngineBase = class {
|
|
7760
7820
|
/**
|
|
7761
7821
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -7943,7 +8003,7 @@ var ViewEngineBase = class {
|
|
|
7943
8003
|
const { appDataEntityId } = this.view.model;
|
|
7944
8004
|
const { evt, context, params } = this.view;
|
|
7945
8005
|
if (!appDataEntityId) {
|
|
7946
|
-
throw new
|
|
8006
|
+
throw new RuntimeError17("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
7947
8007
|
}
|
|
7948
8008
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
7949
8009
|
const res = await app.deService.exec(
|
|
@@ -7952,18 +8012,19 @@ var ViewEngineBase = class {
|
|
|
7952
8012
|
context,
|
|
7953
8013
|
params
|
|
7954
8014
|
);
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
8015
|
+
const { data } = res;
|
|
8016
|
+
if (data) {
|
|
8017
|
+
this.view.state.srfactiveviewdata = data;
|
|
8018
|
+
evt.emit("onDataChange", { actionType: "LOAD", data: [data] });
|
|
8019
|
+
if (data.srfkey) {
|
|
8020
|
+
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
8021
|
+
}
|
|
7961
8022
|
}
|
|
7962
8023
|
}
|
|
7963
8024
|
};
|
|
7964
8025
|
|
|
7965
8026
|
// src/engine/md-view.engine.ts
|
|
7966
|
-
import { RuntimeModelError as
|
|
8027
|
+
import { RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
7967
8028
|
var MDViewEngine = class extends ViewEngineBase {
|
|
7968
8029
|
/**
|
|
7969
8030
|
* 多数据部件名称
|
|
@@ -8089,6 +8150,10 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8089
8150
|
this.copy(args);
|
|
8090
8151
|
return null;
|
|
8091
8152
|
}
|
|
8153
|
+
if (key === "load") {
|
|
8154
|
+
this.load(args);
|
|
8155
|
+
return null;
|
|
8156
|
+
}
|
|
8092
8157
|
return super.call(key, args);
|
|
8093
8158
|
}
|
|
8094
8159
|
getData() {
|
|
@@ -8117,7 +8182,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8117
8182
|
view: this.view
|
|
8118
8183
|
}));
|
|
8119
8184
|
if (result === -1) {
|
|
8120
|
-
throw new
|
|
8185
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8121
8186
|
}
|
|
8122
8187
|
}
|
|
8123
8188
|
/**
|
|
@@ -8136,7 +8201,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8136
8201
|
(item) => item.id === "newdata"
|
|
8137
8202
|
);
|
|
8138
8203
|
if (!openAppViewLogic) {
|
|
8139
|
-
throw new
|
|
8204
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8140
8205
|
}
|
|
8141
8206
|
const context = this.view.context.clone();
|
|
8142
8207
|
if (copyMode) {
|
|
@@ -8150,7 +8215,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8150
8215
|
view: this.view
|
|
8151
8216
|
}));
|
|
8152
8217
|
if (result === -1) {
|
|
8153
|
-
throw new
|
|
8218
|
+
throw new RuntimeModelError20(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
8154
8219
|
}
|
|
8155
8220
|
}
|
|
8156
8221
|
/**
|
|
@@ -8169,8 +8234,8 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
8169
8234
|
* @date 2023-05-22 03:17:33
|
|
8170
8235
|
* @return {*} {Promise<void>}
|
|
8171
8236
|
*/
|
|
8172
|
-
async load() {
|
|
8173
|
-
await this.xdataControl.load({ isInitialLoad: true });
|
|
8237
|
+
async load(args = {}) {
|
|
8238
|
+
await this.xdataControl.load({ isInitialLoad: true, ...args });
|
|
8174
8239
|
}
|
|
8175
8240
|
/**
|
|
8176
8241
|
* 视图刷新
|
|
@@ -8425,7 +8490,7 @@ async function getPanelItemProvider(model) {
|
|
|
8425
8490
|
}
|
|
8426
8491
|
|
|
8427
8492
|
// src/register/helper/ui-action-register.ts
|
|
8428
|
-
import { RuntimeError as
|
|
8493
|
+
import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
8429
8494
|
var UIACTION_PROVIDER_PREFIX = "UIACTION";
|
|
8430
8495
|
function registerUIActionProvider(key, callback) {
|
|
8431
8496
|
ibiz.register.register("".concat(UIACTION_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
@@ -8442,7 +8507,7 @@ async function getUIActionProvider(model) {
|
|
|
8442
8507
|
provider = getProvider6(uiactionMode);
|
|
8443
8508
|
}
|
|
8444
8509
|
if (!provider) {
|
|
8445
|
-
throw new
|
|
8510
|
+
throw new RuntimeError18("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
8446
8511
|
}
|
|
8447
8512
|
return provider;
|
|
8448
8513
|
}
|
|
@@ -8500,17 +8565,17 @@ async function getPortletProvider(model) {
|
|
|
8500
8565
|
}
|
|
8501
8566
|
|
|
8502
8567
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
8503
|
-
import { RuntimeModelError as
|
|
8568
|
+
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
8504
8569
|
import { isArray as isArray2 } from "qx-util";
|
|
8505
8570
|
|
|
8506
8571
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
8507
|
-
import { RuntimeModelError as
|
|
8572
|
+
import { RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
|
|
8508
8573
|
|
|
8509
8574
|
// src/ui-logic/index.ts
|
|
8510
|
-
import { RuntimeError as
|
|
8575
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
8511
8576
|
|
|
8512
8577
|
// src/ui-logic/ui-logic.ts
|
|
8513
|
-
import { ModelError as
|
|
8578
|
+
import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
|
|
8514
8579
|
|
|
8515
8580
|
// src/ui-logic/ui-logic-context.ts
|
|
8516
8581
|
var UILogicContext = class {
|
|
@@ -8611,20 +8676,20 @@ var UILogicContext = class {
|
|
|
8611
8676
|
};
|
|
8612
8677
|
|
|
8613
8678
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
8614
|
-
import { RuntimeModelError as
|
|
8679
|
+
import { RuntimeModelError as RuntimeModelError23 } from "@ibiz-template/core";
|
|
8615
8680
|
|
|
8616
8681
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
8617
|
-
import { ModelError as
|
|
8682
|
+
import { ModelError as ModelError17 } from "@ibiz-template/core";
|
|
8618
8683
|
|
|
8619
8684
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
8620
|
-
import { RuntimeModelError as
|
|
8685
|
+
import { RuntimeModelError as RuntimeModelError22 } from "@ibiz-template/core";
|
|
8621
8686
|
|
|
8622
8687
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
8623
8688
|
var UILogicLinkCond = class {
|
|
8624
8689
|
};
|
|
8625
8690
|
|
|
8626
8691
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
8627
|
-
import { ModelError as
|
|
8692
|
+
import { ModelError as ModelError16, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
|
|
8628
8693
|
var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
8629
8694
|
constructor(model) {
|
|
8630
8695
|
super();
|
|
@@ -8659,7 +8724,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8659
8724
|
switch (this.type) {
|
|
8660
8725
|
case "ENTITYFIELD": {
|
|
8661
8726
|
if (!this.value) {
|
|
8662
|
-
throw new
|
|
8727
|
+
throw new RuntimeModelError21(
|
|
8663
8728
|
this.model,
|
|
8664
8729
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
8665
8730
|
);
|
|
@@ -8669,7 +8734,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8669
8734
|
}
|
|
8670
8735
|
case "SRCENTITYFIELD": {
|
|
8671
8736
|
if (!this.value) {
|
|
8672
|
-
throw new
|
|
8737
|
+
throw new RuntimeModelError21(
|
|
8673
8738
|
this.model,
|
|
8674
8739
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
8675
8740
|
);
|
|
@@ -8678,7 +8743,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
8678
8743
|
return testCond(dst[this.dstField], this.op, src[this.value]);
|
|
8679
8744
|
}
|
|
8680
8745
|
case "CURTIME":
|
|
8681
|
-
throw new
|
|
8746
|
+
throw new ModelError16(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
|
|
8682
8747
|
default:
|
|
8683
8748
|
return testCond(dst[this.dstField], this.op, this.value);
|
|
8684
8749
|
}
|
|
@@ -8732,7 +8797,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
8732
8797
|
test(ctx, context, data) {
|
|
8733
8798
|
let bol = true;
|
|
8734
8799
|
if (this.conds.length === 0) {
|
|
8735
|
-
throw new
|
|
8800
|
+
throw new RuntimeModelError22(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
|
|
8736
8801
|
}
|
|
8737
8802
|
for (let i = 0; i < this.conds.length; i++) {
|
|
8738
8803
|
const cond = this.conds[i];
|
|
@@ -8820,13 +8885,13 @@ var UILogicLink = class {
|
|
|
8820
8885
|
case 1:
|
|
8821
8886
|
return true;
|
|
8822
8887
|
case 2:
|
|
8823
|
-
throw new
|
|
8888
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u7ED3\u675F");
|
|
8824
8889
|
case 3:
|
|
8825
|
-
throw new
|
|
8890
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u62D2\u7EDD");
|
|
8826
8891
|
case 9:
|
|
8827
|
-
throw new
|
|
8892
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u5E38\u5904\u7406");
|
|
8828
8893
|
default:
|
|
8829
|
-
throw new
|
|
8894
|
+
throw new ModelError17(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B:".concat(linkMode));
|
|
8830
8895
|
}
|
|
8831
8896
|
}
|
|
8832
8897
|
};
|
|
@@ -8858,10 +8923,10 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
8858
8923
|
retDEUILogicParamId
|
|
8859
8924
|
} = this.model;
|
|
8860
8925
|
if (!dstAppDataEntityId) {
|
|
8861
|
-
throw new
|
|
8926
|
+
throw new RuntimeModelError23(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
|
|
8862
8927
|
}
|
|
8863
8928
|
if (!dstAppDEActionId) {
|
|
8864
|
-
throw new
|
|
8929
|
+
throw new RuntimeModelError23(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
|
|
8865
8930
|
}
|
|
8866
8931
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
8867
8932
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -8879,13 +8944,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
8879
8944
|
};
|
|
8880
8945
|
|
|
8881
8946
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
8882
|
-
import { RuntimeModelError as
|
|
8947
|
+
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
8883
8948
|
var DEUIActionNode = class extends UILogicNode {
|
|
8884
8949
|
async exec(ctx) {
|
|
8885
8950
|
const { dstAppDEUIActionId, dstDEUILogicParamId } = this.model;
|
|
8886
8951
|
const { data, parameters } = ctx;
|
|
8887
8952
|
if (!dstAppDEUIActionId) {
|
|
8888
|
-
throw new
|
|
8953
|
+
throw new RuntimeModelError24(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
8889
8954
|
}
|
|
8890
8955
|
let actionData = [data];
|
|
8891
8956
|
if (dstDEUILogicParamId) {
|
|
@@ -8910,7 +8975,7 @@ var StartNode2 = class extends UILogicNode {
|
|
|
8910
8975
|
};
|
|
8911
8976
|
|
|
8912
8977
|
// src/ui-logic/ui-logic-node/end-node/end-node.ts
|
|
8913
|
-
import { ModelError as
|
|
8978
|
+
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
8914
8979
|
var EndNode2 = class extends UILogicNode {
|
|
8915
8980
|
async exec(ctx) {
|
|
8916
8981
|
ctx.isEndNode = true;
|
|
@@ -8931,7 +8996,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
8931
8996
|
case "LOGICPARAMFIELD":
|
|
8932
8997
|
case "BREAK":
|
|
8933
8998
|
default:
|
|
8934
|
-
throw new
|
|
8999
|
+
throw new ModelError18(
|
|
8935
9000
|
this.model,
|
|
8936
9001
|
"\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
|
|
8937
9002
|
);
|
|
@@ -8940,10 +9005,10 @@ var EndNode2 = class extends UILogicNode {
|
|
|
8940
9005
|
};
|
|
8941
9006
|
|
|
8942
9007
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
8943
|
-
import { ModelError as
|
|
9008
|
+
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
8944
9009
|
|
|
8945
9010
|
// src/ui-logic/utils/handle-src-val.ts
|
|
8946
|
-
import { ModelError as
|
|
9011
|
+
import { ModelError as ModelError19 } from "@ibiz-template/core";
|
|
8947
9012
|
import { clone as clone10 } from "ramda";
|
|
8948
9013
|
function handleSrcVal2(ctx, srcValParams) {
|
|
8949
9014
|
const { srcDEUILogicParamId, srcValueType, srcFieldName, srcValue } = srcValParams;
|
|
@@ -8971,7 +9036,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
8971
9036
|
value = clone10(ibiz.env);
|
|
8972
9037
|
break;
|
|
8973
9038
|
default:
|
|
8974
|
-
throw new
|
|
9039
|
+
throw new ModelError19(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
8975
9040
|
}
|
|
8976
9041
|
const srcField = srcFieldName == null ? void 0 : srcFieldName.toLowerCase();
|
|
8977
9042
|
if (value && srcField) {
|
|
@@ -8991,7 +9056,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
8991
9056
|
case "SETPARAMVALUE":
|
|
8992
9057
|
return this.setParamValue(nodeParam, ctx);
|
|
8993
9058
|
default:
|
|
8994
|
-
throw new
|
|
9059
|
+
throw new ModelError20(
|
|
8995
9060
|
nodeParam,
|
|
8996
9061
|
"\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
|
|
8997
9062
|
);
|
|
@@ -9021,38 +9086,38 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
9021
9086
|
};
|
|
9022
9087
|
|
|
9023
9088
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
9024
|
-
import { RuntimeError as
|
|
9089
|
+
import { RuntimeError as RuntimeError19, RuntimeModelError as RuntimeModelError25 } from "@ibiz-template/core";
|
|
9025
9090
|
import { isFunction } from "lodash-es";
|
|
9026
9091
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
9027
9092
|
async exec(ctx) {
|
|
9028
9093
|
ctx.isEndNode = true;
|
|
9029
9094
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
9030
9095
|
if (!invokeCtrlId) {
|
|
9031
|
-
throw new
|
|
9096
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
|
|
9032
9097
|
}
|
|
9033
9098
|
if (!invokeParamId) {
|
|
9034
|
-
throw new
|
|
9099
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
|
|
9035
9100
|
}
|
|
9036
9101
|
if (!invokeMethod) {
|
|
9037
|
-
throw new
|
|
9102
|
+
throw new RuntimeModelError25(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
|
|
9038
9103
|
}
|
|
9039
9104
|
const invokeParam = ctx.params[invokeParamId];
|
|
9040
9105
|
if (!invokeParam) {
|
|
9041
|
-
throw new
|
|
9106
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
9042
9107
|
}
|
|
9043
9108
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
9044
9109
|
if (!invokeCtrl) {
|
|
9045
|
-
throw new
|
|
9110
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
9046
9111
|
}
|
|
9047
9112
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
9048
|
-
throw new
|
|
9113
|
+
throw new RuntimeError19("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
9049
9114
|
}
|
|
9050
9115
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
9051
9116
|
}
|
|
9052
9117
|
};
|
|
9053
9118
|
|
|
9054
9119
|
// src/ui-logic/ui-logic-param/ui-logic-param.ts
|
|
9055
|
-
import { ModelError as
|
|
9120
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
9056
9121
|
var UILogicParam = class {
|
|
9057
9122
|
/**
|
|
9058
9123
|
* Creates an instance of UILogicParam.
|
|
@@ -9087,7 +9152,7 @@ var UILogicParam = class {
|
|
|
9087
9152
|
if (control) {
|
|
9088
9153
|
ctx.params[tag] = control;
|
|
9089
9154
|
} else {
|
|
9090
|
-
throw new
|
|
9155
|
+
throw new RuntimeError20("\u6CA1\u627E\u5230".concat(m.codeName, "\u6307\u5B9A\u90E8\u4EF6\u5BF9\u8C61"));
|
|
9091
9156
|
}
|
|
9092
9157
|
} else if (m.activeViewParam) {
|
|
9093
9158
|
ctx.params[tag] = parameters.view;
|
|
@@ -9098,17 +9163,17 @@ var UILogicParam = class {
|
|
|
9098
9163
|
} else if (m.entityListParam) {
|
|
9099
9164
|
ctx.params[tag] = [];
|
|
9100
9165
|
} else if (m.entityPageParam) {
|
|
9101
|
-
throw new
|
|
9166
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5206\u9875\u67E5\u8BE2\u7ED3\u679C");
|
|
9102
9167
|
} else if (m.entityParam) {
|
|
9103
9168
|
ctx.params[tag] = {};
|
|
9104
9169
|
} else if (m.lastReturnParam) {
|
|
9105
|
-
throw new
|
|
9170
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u4E0A\u6B21\u8C03\u7528\u8FD4\u56DE");
|
|
9106
9171
|
} else if (m.navContextParam) {
|
|
9107
9172
|
ctx.params[tag] = context;
|
|
9108
9173
|
} else if (m.navViewParamParam) {
|
|
9109
|
-
throw new
|
|
9174
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u89C6\u56FE\u8DEF\u7531\u53C2\u6570");
|
|
9110
9175
|
} else if (m.routeViewSessionParam) {
|
|
9111
|
-
throw new
|
|
9176
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u8DEF\u7531\u89C6\u56FE\u4F1A\u8BDD");
|
|
9112
9177
|
} else if (m.simpleListParam) {
|
|
9113
9178
|
ctx.params[tag] = [];
|
|
9114
9179
|
} else if (m.simpleParam) {
|
|
@@ -9116,7 +9181,7 @@ var UILogicParam = class {
|
|
|
9116
9181
|
} else if (m.viewNavDataParam) {
|
|
9117
9182
|
ctx.params[tag] = viewParams;
|
|
9118
9183
|
} else if (m.viewSessionParam) {
|
|
9119
|
-
throw new
|
|
9184
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
|
|
9120
9185
|
}
|
|
9121
9186
|
}
|
|
9122
9187
|
/**
|
|
@@ -9133,7 +9198,7 @@ var UILogicParam = class {
|
|
|
9133
9198
|
} else if (m.simpleParam || m.entityParam) {
|
|
9134
9199
|
ctx.params[tag] = {};
|
|
9135
9200
|
} else {
|
|
9136
|
-
throw new
|
|
9201
|
+
throw new ModelError21(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
|
|
9137
9202
|
}
|
|
9138
9203
|
}
|
|
9139
9204
|
};
|
|
@@ -9168,7 +9233,7 @@ var UILogic = class {
|
|
|
9168
9233
|
this.params = /* @__PURE__ */ new Map();
|
|
9169
9234
|
var _a;
|
|
9170
9235
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
9171
|
-
throw new
|
|
9236
|
+
throw new RuntimeModelError26(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
|
|
9172
9237
|
}
|
|
9173
9238
|
model.deuilogicNodes.forEach((node) => {
|
|
9174
9239
|
const { logicNodeType } = node;
|
|
@@ -9206,7 +9271,7 @@ var UILogic = class {
|
|
|
9206
9271
|
case "THROWEXCEPTION":
|
|
9207
9272
|
case "DEBUGPARAM":
|
|
9208
9273
|
default:
|
|
9209
|
-
throw new
|
|
9274
|
+
throw new ModelError22(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
9210
9275
|
}
|
|
9211
9276
|
this.nodes.set(node.id, logicNode);
|
|
9212
9277
|
});
|
|
@@ -9259,7 +9324,7 @@ var UILogic = class {
|
|
|
9259
9324
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
9260
9325
|
await this.deepExec(start, ctx);
|
|
9261
9326
|
} else {
|
|
9262
|
-
throw new
|
|
9327
|
+
throw new RuntimeModelError26(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
|
|
9263
9328
|
}
|
|
9264
9329
|
if (ctx.isEndNode) {
|
|
9265
9330
|
return ctx.result;
|
|
@@ -9305,7 +9370,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
9305
9370
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
9306
9371
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
9307
9372
|
if (!deUILogic) {
|
|
9308
|
-
throw new
|
|
9373
|
+
throw new RuntimeError21(
|
|
9309
9374
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
9310
9375
|
);
|
|
9311
9376
|
}
|
|
@@ -9318,7 +9383,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
9318
9383
|
}
|
|
9319
9384
|
|
|
9320
9385
|
// src/ui-action/uiaction-util.ts
|
|
9321
|
-
import { RuntimeError as
|
|
9386
|
+
import { RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
9322
9387
|
var UIActionUtil = class {
|
|
9323
9388
|
/**
|
|
9324
9389
|
* 执行界面行为
|
|
@@ -9333,7 +9398,7 @@ var UIActionUtil = class {
|
|
|
9333
9398
|
static async exec(actionId, params) {
|
|
9334
9399
|
const action = await getUIActionById(actionId);
|
|
9335
9400
|
if (!action) {
|
|
9336
|
-
throw new
|
|
9401
|
+
throw new RuntimeError22("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
9337
9402
|
}
|
|
9338
9403
|
const provider = await getUIActionProvider(action);
|
|
9339
9404
|
return provider.exec(action, params);
|
|
@@ -9375,7 +9440,7 @@ var UIActionProviderBase = class {
|
|
|
9375
9440
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
9376
9441
|
if (uilogicAttachMode === "REPLACE") {
|
|
9377
9442
|
if (!appDEUILogicId) {
|
|
9378
|
-
throw new
|
|
9443
|
+
throw new RuntimeModelError27(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9379
9444
|
}
|
|
9380
9445
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
9381
9446
|
return result;
|
|
@@ -9402,7 +9467,7 @@ var UIActionProviderBase = class {
|
|
|
9402
9467
|
}
|
|
9403
9468
|
if (action.uilogicAttachMode === "AFTER") {
|
|
9404
9469
|
if (!appDEUILogicId) {
|
|
9405
|
-
throw new
|
|
9470
|
+
throw new RuntimeModelError27(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9406
9471
|
}
|
|
9407
9472
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
9408
9473
|
}
|
|
@@ -9536,7 +9601,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
9536
9601
|
const entityName = action.appDataEntityId;
|
|
9537
9602
|
const methodName = action.appDEMethodId;
|
|
9538
9603
|
if (!entityName || !methodName) {
|
|
9539
|
-
throw new
|
|
9604
|
+
throw new RuntimeModelError28(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
|
|
9540
9605
|
}
|
|
9541
9606
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
9542
9607
|
action,
|
|
@@ -9608,7 +9673,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
9608
9673
|
};
|
|
9609
9674
|
|
|
9610
9675
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
9611
|
-
import { StringUtil, RuntimeModelError as
|
|
9676
|
+
import { StringUtil, RuntimeModelError as RuntimeModelError29, ModelError as ModelError23 } from "@ibiz-template/core";
|
|
9612
9677
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
9613
9678
|
async execAction(action, args) {
|
|
9614
9679
|
const { context, params, data, event, noWaitRoute } = args;
|
|
@@ -9623,7 +9688,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9623
9688
|
case "WIZARD": {
|
|
9624
9689
|
const frontPSAppView = action.frontAppViewId;
|
|
9625
9690
|
if (!frontPSAppView) {
|
|
9626
|
-
throw new
|
|
9691
|
+
throw new RuntimeModelError29(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
|
|
9627
9692
|
}
|
|
9628
9693
|
const { resultContext, resultParams } = await this.handleParams(
|
|
9629
9694
|
action,
|
|
@@ -9652,7 +9717,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9652
9717
|
actionResult = this.doOther(action, args);
|
|
9653
9718
|
break;
|
|
9654
9719
|
default:
|
|
9655
|
-
throw new
|
|
9720
|
+
throw new ModelError23(
|
|
9656
9721
|
action,
|
|
9657
9722
|
"\u672A\u652F\u6301\u7684\u524D\u53F0\u5904\u7406\u6A21\u5F0F[".concat(action.frontProcessType, "]")
|
|
9658
9723
|
);
|
|
@@ -9679,7 +9744,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
9679
9744
|
);
|
|
9680
9745
|
return result || {};
|
|
9681
9746
|
}
|
|
9682
|
-
throw new
|
|
9747
|
+
throw new RuntimeModelError29(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
|
|
9683
9748
|
}
|
|
9684
9749
|
};
|
|
9685
9750
|
|
|
@@ -9719,7 +9784,7 @@ function presetUIActionProvider() {
|
|
|
9719
9784
|
}
|
|
9720
9785
|
|
|
9721
9786
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
9722
|
-
import { RuntimeError as
|
|
9787
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
9723
9788
|
var LogicExecutor = class {
|
|
9724
9789
|
/**
|
|
9725
9790
|
* @author lxm
|
|
@@ -9740,7 +9805,7 @@ var LogicExecutor = class {
|
|
|
9740
9805
|
*/
|
|
9741
9806
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9742
9807
|
execute(_executeParams) {
|
|
9743
|
-
throw new
|
|
9808
|
+
throw new RuntimeError23("Method not implemented.");
|
|
9744
9809
|
}
|
|
9745
9810
|
/**
|
|
9746
9811
|
* 销毁方法
|
|
@@ -9752,7 +9817,7 @@ var LogicExecutor = class {
|
|
|
9752
9817
|
};
|
|
9753
9818
|
|
|
9754
9819
|
// src/logic-scheduler/executor/logic-executor-factory.ts
|
|
9755
|
-
import { ModelError as
|
|
9820
|
+
import { ModelError as ModelError24 } from "@ibiz-template/core";
|
|
9756
9821
|
var LogicExecutorFactory = class {
|
|
9757
9822
|
constructor() {
|
|
9758
9823
|
/**
|
|
@@ -9782,14 +9847,14 @@ var LogicExecutorFactory = class {
|
|
|
9782
9847
|
createExecutor(logic, scheduler) {
|
|
9783
9848
|
const constructor = this.constructorMap.get(logic.logicType);
|
|
9784
9849
|
if (!constructor) {
|
|
9785
|
-
throw new
|
|
9850
|
+
throw new ModelError24(logic, "\u903B\u8F91\u7C7B\u578B ".concat(logic.logicType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
9786
9851
|
}
|
|
9787
9852
|
return constructor(logic, scheduler);
|
|
9788
9853
|
}
|
|
9789
9854
|
};
|
|
9790
9855
|
|
|
9791
9856
|
// src/logic-scheduler/executor/script-executor.ts
|
|
9792
|
-
import { RuntimeError as
|
|
9857
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
9793
9858
|
var ScriptExecutor = class extends LogicExecutor {
|
|
9794
9859
|
constructor() {
|
|
9795
9860
|
super(...arguments);
|
|
@@ -9809,7 +9874,7 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
9809
9874
|
* @return {*} {IData[]}
|
|
9810
9875
|
*/
|
|
9811
9876
|
convertScriptArgs(_executeParams) {
|
|
9812
|
-
throw new
|
|
9877
|
+
throw new RuntimeError24("\u672A\u8BBE\u7F6E\u811A\u672C\u6267\u884C\u53C2\u6570\u8F6C\u6362\u65B9\u6CD5");
|
|
9813
9878
|
}
|
|
9814
9879
|
/**
|
|
9815
9880
|
* 初始化脚本执行器
|
|
@@ -9836,13 +9901,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
9836
9901
|
};
|
|
9837
9902
|
|
|
9838
9903
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
9839
|
-
import { RuntimeModelError as
|
|
9904
|
+
import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
9840
9905
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
9841
9906
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9842
9907
|
execute(executeParams) {
|
|
9843
9908
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
9844
9909
|
if (!appDEUILogicId) {
|
|
9845
|
-
throw new
|
|
9910
|
+
throw new RuntimeModelError30(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
9846
9911
|
}
|
|
9847
9912
|
execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
9848
9913
|
}
|
|
@@ -10061,7 +10126,7 @@ var ViewLogicScheduler = class extends LogicScheduler {
|
|
|
10061
10126
|
};
|
|
10062
10127
|
|
|
10063
10128
|
// src/logic-scheduler/trigger/logic-trigger-factory.ts
|
|
10064
|
-
import { ModelError as
|
|
10129
|
+
import { ModelError as ModelError25 } from "@ibiz-template/core";
|
|
10065
10130
|
var LogicTriggerFactory = class {
|
|
10066
10131
|
constructor() {
|
|
10067
10132
|
/**
|
|
@@ -10091,7 +10156,7 @@ var LogicTriggerFactory = class {
|
|
|
10091
10156
|
createTrigger(logic, scheduler) {
|
|
10092
10157
|
const constructor = this.constructorMap.get(logic.triggerType);
|
|
10093
10158
|
if (!constructor) {
|
|
10094
|
-
throw new
|
|
10159
|
+
throw new ModelError25(logic, "\u89E6\u53D1\u5668\u7C7B\u578B ".concat(logic.triggerType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
10095
10160
|
}
|
|
10096
10161
|
return constructor(logic, scheduler);
|
|
10097
10162
|
}
|
|
@@ -10138,7 +10203,7 @@ var LogicSchedulerCenter = class {
|
|
|
10138
10203
|
};
|
|
10139
10204
|
|
|
10140
10205
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
10141
|
-
import { RuntimeError as
|
|
10206
|
+
import { RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
10142
10207
|
var LogicTrigger = class {
|
|
10143
10208
|
/**
|
|
10144
10209
|
* @author lxm
|
|
@@ -10181,7 +10246,7 @@ var LogicTrigger = class {
|
|
|
10181
10246
|
if (this.executor) {
|
|
10182
10247
|
return this.executor.execute(executeParams);
|
|
10183
10248
|
}
|
|
10184
|
-
throw new
|
|
10249
|
+
throw new RuntimeError25("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
10185
10250
|
}
|
|
10186
10251
|
/**
|
|
10187
10252
|
* 销毁方法
|
|
@@ -10198,12 +10263,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
10198
10263
|
};
|
|
10199
10264
|
|
|
10200
10265
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
10201
|
-
import { RuntimeError as
|
|
10266
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
10202
10267
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
10203
10268
|
bindExecutor(executor) {
|
|
10204
10269
|
super.bindExecutor(executor);
|
|
10205
10270
|
if (this.executor.type !== "SCRIPT") {
|
|
10206
|
-
throw new
|
|
10271
|
+
throw new RuntimeError26(
|
|
10207
10272
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
10208
10273
|
);
|
|
10209
10274
|
}
|
|
@@ -10230,12 +10295,12 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
10230
10295
|
if (typeof result === "boolean") {
|
|
10231
10296
|
return result;
|
|
10232
10297
|
}
|
|
10233
|
-
throw new
|
|
10298
|
+
throw new RuntimeError26("".concat(this.logic.id, "\u903B\u8F91\u8FD4\u56DE\u503C\u4E0D\u662F\u5E03\u5C14\u503C"));
|
|
10234
10299
|
}
|
|
10235
10300
|
};
|
|
10236
10301
|
|
|
10237
10302
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
10238
|
-
import { RuntimeError as
|
|
10303
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
10239
10304
|
var TimerTrigger = class extends LogicTrigger {
|
|
10240
10305
|
constructor() {
|
|
10241
10306
|
super(...arguments);
|
|
@@ -10244,7 +10309,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
10244
10309
|
start() {
|
|
10245
10310
|
this.timer = setInterval(() => {
|
|
10246
10311
|
if (!this.scheduler.defaultParamsCb) {
|
|
10247
|
-
throw new
|
|
10312
|
+
throw new RuntimeError27("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
10248
10313
|
}
|
|
10249
10314
|
const params = this.scheduler.defaultParamsCb();
|
|
10250
10315
|
this.executor.execute(params);
|
|
@@ -10259,7 +10324,11 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
10259
10324
|
};
|
|
10260
10325
|
|
|
10261
10326
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
10262
|
-
import {
|
|
10327
|
+
import {
|
|
10328
|
+
ModelError as ModelError26,
|
|
10329
|
+
RuntimeError as RuntimeError28,
|
|
10330
|
+
RuntimeModelError as RuntimeModelError31
|
|
10331
|
+
} from "@ibiz-template/core";
|
|
10263
10332
|
import { notNilEmpty as notNilEmpty5 } from "qx-util";
|
|
10264
10333
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
10265
10334
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10290,20 +10359,21 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10290
10359
|
* @param {IData} [opts] 额外参数,event是js原生事件
|
|
10291
10360
|
*/
|
|
10292
10361
|
async executeOpenDataAppUILogic(appUILogic, parameters) {
|
|
10293
|
-
const { context, params,
|
|
10362
|
+
const { context, params, ...rest } = parameters;
|
|
10363
|
+
const { data } = parameters;
|
|
10294
10364
|
if (!(data == null ? void 0 : data[0])) {
|
|
10295
|
-
throw new
|
|
10365
|
+
throw new RuntimeError28("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
10296
10366
|
}
|
|
10297
10367
|
const openViewRef = appUILogic.openDataAppView;
|
|
10298
10368
|
if (!openViewRef) {
|
|
10299
|
-
throw new
|
|
10369
|
+
throw new RuntimeModelError31(
|
|
10300
10370
|
appUILogic,
|
|
10301
10371
|
"opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
|
|
10302
10372
|
);
|
|
10303
10373
|
}
|
|
10304
10374
|
const openView = openViewRef.refAppViewId;
|
|
10305
10375
|
if (!openView) {
|
|
10306
|
-
throw new
|
|
10376
|
+
throw new RuntimeModelError31(
|
|
10307
10377
|
appUILogic,
|
|
10308
10378
|
"opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
|
|
10309
10379
|
);
|
|
@@ -10339,20 +10409,27 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10339
10409
|
* @param {IData} [opts] 额外参数,event是js原生事件
|
|
10340
10410
|
*/
|
|
10341
10411
|
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
|
-
|
|
10412
|
+
const { context, params, ...rest } = parameters;
|
|
10413
|
+
const { data } = parameters;
|
|
10414
|
+
const { enableWizardAdd, enableBatchAdd, batchAddOnly, newDataAppView } = appUILogic;
|
|
10415
|
+
let newViewRef;
|
|
10416
|
+
if (enableWizardAdd) {
|
|
10417
|
+
newViewRef = await this.getWizardNewViewRef(appUILogic, parameters);
|
|
10418
|
+
if (!newViewRef) {
|
|
10419
|
+
return;
|
|
10420
|
+
}
|
|
10421
|
+
} else if (enableBatchAdd) {
|
|
10422
|
+
throw new ModelError26(appUILogic, "enableBatchAdd\u6682\u672A\u652F\u6301");
|
|
10423
|
+
} else if (batchAddOnly) {
|
|
10424
|
+
throw new ModelError26(appUILogic, "batchAddOnly\u6682\u672A\u652F\u6301");
|
|
10425
|
+
} else {
|
|
10426
|
+
newViewRef = newDataAppView;
|
|
10427
|
+
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
10428
|
+
throw new RuntimeModelError31(
|
|
10429
|
+
appUILogic,
|
|
10430
|
+
"newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
|
|
10431
|
+
);
|
|
10432
|
+
}
|
|
10356
10433
|
}
|
|
10357
10434
|
let tempContext = {};
|
|
10358
10435
|
let tempParams = {};
|
|
@@ -10370,18 +10447,55 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
10370
10447
|
_data.srfkey = void 0;
|
|
10371
10448
|
tempParams = Object.assign(tempParams, _data.$origin);
|
|
10372
10449
|
}
|
|
10373
|
-
if (appUILogic.enableWizardAdd) {
|
|
10374
|
-
} else if (appUILogic.enableBatchAdd) {
|
|
10375
|
-
} else if (appUILogic.batchAddOnly) {
|
|
10376
|
-
}
|
|
10377
10450
|
await ibiz.commands.execute(
|
|
10378
10451
|
OpenAppViewCommand.TAG,
|
|
10379
|
-
|
|
10452
|
+
newViewRef.refAppViewId,
|
|
10380
10453
|
tempContext,
|
|
10381
10454
|
tempParams,
|
|
10382
10455
|
rest
|
|
10383
10456
|
);
|
|
10384
10457
|
}
|
|
10458
|
+
/**
|
|
10459
|
+
* 获取向导新建视图引用
|
|
10460
|
+
* 返回undefined为取消操作
|
|
10461
|
+
* 找不到会报错
|
|
10462
|
+
* @author lxm
|
|
10463
|
+
* @date 2023-08-03 06:37:22
|
|
10464
|
+
* @protected
|
|
10465
|
+
* @param {IAppUINewDataLogic} appUILogic
|
|
10466
|
+
* @param {IUILogicParams} parameters
|
|
10467
|
+
* @return {*} {(Promise<IAppUILogicRefViewBase | undefined>)}
|
|
10468
|
+
*/
|
|
10469
|
+
async getWizardNewViewRef(appUILogic, parameters) {
|
|
10470
|
+
var _a;
|
|
10471
|
+
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
10472
|
+
const { context, params, ...rest } = parameters;
|
|
10473
|
+
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
10474
|
+
throw new RuntimeModelError31(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
|
|
10475
|
+
}
|
|
10476
|
+
const result = await ibiz.commands.execute(
|
|
10477
|
+
OpenAppViewCommand.TAG,
|
|
10478
|
+
wizardAppView.refAppViewId,
|
|
10479
|
+
context,
|
|
10480
|
+
params,
|
|
10481
|
+
{ ...rest, openMode: "POPUPMODAL" }
|
|
10482
|
+
);
|
|
10483
|
+
if (!result.ok) {
|
|
10484
|
+
return;
|
|
10485
|
+
}
|
|
10486
|
+
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
10487
|
+
if (!selectData) {
|
|
10488
|
+
throw new RuntimeError28("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
10489
|
+
}
|
|
10490
|
+
const indexType = selectData.srfkey;
|
|
10491
|
+
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
10492
|
+
if (!findView) {
|
|
10493
|
+
throw new RuntimeError28(
|
|
10494
|
+
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
10495
|
+
);
|
|
10496
|
+
}
|
|
10497
|
+
return findView;
|
|
10498
|
+
}
|
|
10385
10499
|
};
|
|
10386
10500
|
|
|
10387
10501
|
// src/logic-scheduler/trigger/view-event-trigger.ts
|
|
@@ -10580,13 +10694,13 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
10580
10694
|
|
|
10581
10695
|
// src/controller/common/view/view.controller.ts
|
|
10582
10696
|
import { createUUID as createUUID2, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
10583
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
10697
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
10584
10698
|
|
|
10585
10699
|
// src/controller/utils/loading/loading.state.ts
|
|
10586
10700
|
import { NOOP } from "@ibiz-template/core";
|
|
10587
10701
|
|
|
10588
10702
|
// src/controller/utils/counter/counter.ts
|
|
10589
|
-
import { RuntimeError as
|
|
10703
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
10590
10704
|
var Counter = class {
|
|
10591
10705
|
/**
|
|
10592
10706
|
* Creates an instance of Counter.
|
|
@@ -10648,7 +10762,7 @@ var Counter = class {
|
|
|
10648
10762
|
return;
|
|
10649
10763
|
}
|
|
10650
10764
|
if (this.count === 0) {
|
|
10651
|
-
throw new
|
|
10765
|
+
throw new RuntimeError29("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
10652
10766
|
}
|
|
10653
10767
|
this.count -= 1;
|
|
10654
10768
|
if (this.count === 0) {
|
|
@@ -11066,11 +11180,12 @@ var QXEventEx = class extends QXEvent3 {
|
|
|
11066
11180
|
});
|
|
11067
11181
|
}
|
|
11068
11182
|
async asyncEmit(name, ...args) {
|
|
11069
|
-
const
|
|
11183
|
+
const resultPromise1 = super.asyncEmit(name, ...args);
|
|
11070
11184
|
const all = this.anyEventFns.map((fn) => fn(name, ...args));
|
|
11071
|
-
const
|
|
11072
|
-
|
|
11073
|
-
|
|
11185
|
+
const resultPromise2 = Promise.all(all);
|
|
11186
|
+
const resultArr1 = await resultPromise1;
|
|
11187
|
+
const resultArr2 = await resultPromise2;
|
|
11188
|
+
return resultArr1.concat(...resultArr2);
|
|
11074
11189
|
}
|
|
11075
11190
|
reset() {
|
|
11076
11191
|
super.reset();
|
|
@@ -11161,7 +11276,7 @@ function getOriginData(data) {
|
|
|
11161
11276
|
}
|
|
11162
11277
|
|
|
11163
11278
|
// src/controller/utils/value-rule/value-rule.ts
|
|
11164
|
-
import { RuntimeError as
|
|
11279
|
+
import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
|
|
11165
11280
|
import { isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
11166
11281
|
function generateRules(itemVRs, name, valueItemName) {
|
|
11167
11282
|
const rules = [];
|
|
@@ -11209,7 +11324,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
11209
11324
|
deRule.groupCond
|
|
11210
11325
|
);
|
|
11211
11326
|
if (!isPast) {
|
|
11212
|
-
callback(new
|
|
11327
|
+
callback(new RuntimeError30(infoMessage || deRule.ruleInfo));
|
|
11213
11328
|
}
|
|
11214
11329
|
return true;
|
|
11215
11330
|
},
|
|
@@ -11659,7 +11774,7 @@ var ViewController = class extends BaseController {
|
|
|
11659
11774
|
async callUIAction(key, args) {
|
|
11660
11775
|
const result = this.call(key, args);
|
|
11661
11776
|
if (result === void 0) {
|
|
11662
|
-
throw new
|
|
11777
|
+
throw new RuntimeError31("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
11663
11778
|
}
|
|
11664
11779
|
return result;
|
|
11665
11780
|
}
|
|
@@ -11804,7 +11919,7 @@ var EditorController = class {
|
|
|
11804
11919
|
};
|
|
11805
11920
|
|
|
11806
11921
|
// src/controller/common/editor/code-list-editor.controller.ts
|
|
11807
|
-
import { RuntimeModelError as
|
|
11922
|
+
import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
11808
11923
|
var CodeListEditorController = class extends EditorController {
|
|
11809
11924
|
/**
|
|
11810
11925
|
* 加载代码表数据
|
|
@@ -11828,7 +11943,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
11828
11943
|
);
|
|
11829
11944
|
return dataItems;
|
|
11830
11945
|
}
|
|
11831
|
-
throw new
|
|
11946
|
+
throw new RuntimeModelError32(this.model, "\u8BF7\u914D\u7F6E\u4EE3\u7801\u8868");
|
|
11832
11947
|
}
|
|
11833
11948
|
};
|
|
11834
11949
|
|
|
@@ -11989,7 +12104,7 @@ var ControlController = class extends BaseController {
|
|
|
11989
12104
|
};
|
|
11990
12105
|
|
|
11991
12106
|
// src/controller/common/control/md-control.controller.ts
|
|
11992
|
-
import { isElementSame, RuntimeError as
|
|
12107
|
+
import { isElementSame, RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
11993
12108
|
var MDControlController = class extends ControlController {
|
|
11994
12109
|
get _evt() {
|
|
11995
12110
|
return this.evt;
|
|
@@ -12115,7 +12230,7 @@ var MDControlController = class extends ControlController {
|
|
|
12115
12230
|
async remove(args) {
|
|
12116
12231
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
12117
12232
|
if (!(data == null ? void 0 : data.length)) {
|
|
12118
|
-
throw new
|
|
12233
|
+
throw new RuntimeError32("\u672A\u9009\u4E2D\u6570\u636E");
|
|
12119
12234
|
}
|
|
12120
12235
|
const del = await ibiz.modal.confirm({
|
|
12121
12236
|
title: "\u6570\u636E\u5220\u9664",
|
|
@@ -12330,6 +12445,11 @@ export {
|
|
|
12330
12445
|
convertNavDataByArray,
|
|
12331
12446
|
convertNavDataByObject,
|
|
12332
12447
|
convertObjectToNavParams,
|
|
12448
|
+
execDELogic,
|
|
12449
|
+
execDELogicAction,
|
|
12450
|
+
execDELogicById,
|
|
12451
|
+
execFieldLogics,
|
|
12452
|
+
execUILogic,
|
|
12333
12453
|
filterFieldLogics,
|
|
12334
12454
|
filterValueRules,
|
|
12335
12455
|
findChildFormDetails,
|