@ibiz-template/runtime 0.4.10 → 0.4.11
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 +821 -208
- package/dist/index.system.min.js +2 -2
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +27 -16
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.d.ts +1 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.controller.js +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts +8 -0
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +14 -0
- package/out/controller/control/gantt/gantt.controller.d.ts +55 -1
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +150 -0
- package/out/controller/control/gantt/gantt.service.d.ts +69 -6
- package/out/controller/control/gantt/gantt.service.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.service.js +196 -5
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts +8 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +22 -7
- package/out/interface/controller/controller/control/i-drbar.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-drbar.controller.d.ts.map +1 -1
- package/out/interface/controller/event/view/i-de-index-view.event.d.ts +12 -0
- package/out/interface/controller/event/view/i-de-index-view.event.d.ts.map +1 -0
- package/out/interface/controller/event/view/i-de-index-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/control/i-drbar.state.d.ts +28 -7
- package/out/interface/controller/state/control/i-drbar.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts +94 -3
- package/out/interface/controller/state/control/i-gantt.state.d.ts.map +1 -1
- package/out/interface/controller/state/view/i-de-index-view.state.d.ts +19 -0
- package/out/interface/controller/state/view/i-de-index-view.state.d.ts.map +1 -0
- package/out/interface/controller/state/view/i-de-index-view.state.js +1 -0
- package/out/interface/controller/state/view/i-edit-view2.state.d.ts +8 -0
- package/out/interface/controller/state/view/i-edit-view2.state.d.ts.map +1 -1
- 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/register/helper/ui-action-register.d.ts.map +1 -1
- package/out/register/helper/ui-action-register.js +6 -1
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +1 -8
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +5 -5
- package/out/service/utils/de-cache/de-cache.d.ts +19 -0
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +54 -4
- package/out/service/vo/gantt-node-data/gantt-code-list-node-data.d.ts +19 -0
- package/out/service/vo/gantt-node-data/gantt-code-list-node-data.d.ts.map +1 -0
- package/out/service/vo/gantt-node-data/gantt-code-list-node-data.js +14 -0
- package/out/service/vo/gantt-node-data/gantt-data-set-node-data.d.ts +19 -0
- package/out/service/vo/gantt-node-data/gantt-data-set-node-data.d.ts.map +1 -0
- package/out/service/vo/gantt-node-data/gantt-data-set-node-data.js +14 -0
- package/out/service/vo/gantt-node-data/gantt-node-data-util.d.ts +9 -0
- package/out/service/vo/gantt-node-data/gantt-node-data-util.d.ts.map +1 -0
- package/out/service/vo/gantt-node-data/gantt-node-data-util.js +19 -0
- package/out/service/vo/gantt-node-data/gantt-static-node-data.d.ts +17 -0
- package/out/service/vo/gantt-node-data/gantt-static-node-data.d.ts.map +1 -0
- package/out/service/vo/gantt-node-data/gantt-static-node-data.js +13 -0
- package/out/service/vo/gantt-node-data/index.d.ts +4 -0
- package/out/service/vo/gantt-node-data/index.d.ts.map +1 -0
- package/out/service/vo/gantt-node-data/index.js +3 -0
- package/out/service/vo/index.d.ts +1 -0
- package/out/service/vo/index.d.ts.map +1 -1
- package/out/service/vo/index.js +1 -0
- package/out/ui-action/provider/index.d.ts.map +1 -1
- package/out/ui-action/provider/index.js +4 -0
- package/out/ui-action/provider/loginout-ui-action-provider.d.ts +16 -0
- package/out/ui-action/provider/loginout-ui-action-provider.d.ts.map +1 -0
- package/out/ui-action/provider/loginout-ui-action-provider.js +25 -0
- package/package.json +3 -3
- package/src/controller/control/form/edit-form/edit-form.controller.ts +48 -32
- package/src/controller/control/form/form-detail/form-druipart/form-druipart.controller.ts +1 -1
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +15 -0
- package/src/controller/control/gantt/gantt.controller.ts +179 -1
- package/src/controller/control/gantt/gantt.service.ts +305 -6
- package/src/controller/control/wizard-panel/wizard-panel.controller.ts +27 -7
- package/src/interface/controller/controller/control/i-drbar.controller.ts +8 -0
- package/src/interface/controller/event/view/i-de-index-view.event.ts +12 -0
- package/src/interface/controller/event/view/index.ts +1 -0
- package/src/interface/controller/state/control/i-drbar.state.ts +32 -8
- package/src/interface/controller/state/control/i-gantt.state.ts +106 -4
- package/src/interface/controller/state/view/i-de-index-view.state.ts +19 -0
- package/src/interface/controller/state/view/i-edit-view2.state.ts +10 -1
- package/src/interface/controller/state/view/index.ts +1 -0
- package/src/register/helper/ui-action-register.ts +7 -1
- package/src/service/service/entity/de.service.ts +2 -1
- package/src/service/service/entity/method/de-action.ts +5 -4
- package/src/service/utils/de-cache/de-cache.ts +64 -3
- package/src/service/vo/gantt-node-data/gantt-code-list-node-data.ts +68 -0
- package/src/service/vo/gantt-node-data/gantt-data-set-node-data.ts +68 -0
- package/src/service/vo/gantt-node-data/gantt-node-data-util.ts +26 -0
- package/src/service/vo/gantt-node-data/gantt-static-node-data.ts +50 -0
- package/src/service/vo/gantt-node-data/index.ts +3 -0
- package/src/service/vo/index.ts +1 -0
- package/src/ui-action/provider/index.ts +4 -0
- package/src/ui-action/provider/loginout-ui-action-provider.ts +31 -0
package/dist/index.esm.js
CHANGED
|
@@ -75,7 +75,7 @@ var RegisterCenter = class {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/command/app/app-func/app-func.ts
|
|
78
|
-
import { ModelError as ModelError15, RuntimeError as
|
|
78
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
79
79
|
|
|
80
80
|
// src/utils/handlebars/utils/helper/helper.ts
|
|
81
81
|
var HelperUtil = class {
|
|
@@ -2721,7 +2721,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
2721
2721
|
}
|
|
2722
2722
|
|
|
2723
2723
|
// src/command/app/open-app-view/open-app-view.ts
|
|
2724
|
-
import { ModelError as ModelError14, RuntimeError as
|
|
2724
|
+
import { ModelError as ModelError14, RuntimeError as RuntimeError22 } from "@ibiz-template/core";
|
|
2725
2725
|
import { clone as clone14 } from "ramda";
|
|
2726
2726
|
|
|
2727
2727
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -3445,7 +3445,7 @@ function getProvider8(key) {
|
|
|
3445
3445
|
}
|
|
3446
3446
|
async function getUIActionProvider(model) {
|
|
3447
3447
|
let provider;
|
|
3448
|
-
const { uiactionMode, sysPFPluginId, appId } = model;
|
|
3448
|
+
const { uiactionMode, sysPFPluginId, appId, uiactionTag } = model;
|
|
3449
3449
|
if (sysPFPluginId) {
|
|
3450
3450
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId);
|
|
3451
3451
|
if (pluginKey) {
|
|
@@ -3457,6 +3457,10 @@ async function getUIActionProvider(model) {
|
|
|
3457
3457
|
return provider;
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
|
+
provider = getProvider8("".concat(uiactionMode, "_").concat(uiactionTag));
|
|
3461
|
+
if (provider) {
|
|
3462
|
+
return provider;
|
|
3463
|
+
}
|
|
3460
3464
|
provider = getProvider8(uiactionMode);
|
|
3461
3465
|
if (!provider) {
|
|
3462
3466
|
throw new RuntimeError6("\u627E\u4E0D\u754C\u9762\u884C\u4E3A\u6A21\u5F0F".concat(uiactionMode, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -4223,6 +4227,7 @@ var DynamicCodeListCache = class {
|
|
|
4223
4227
|
// src/service/utils/de-cache/de-cache.ts
|
|
4224
4228
|
import { where, equals, clone as clone4, isNil as isNil5, isEmpty as isEmpty5 } from "ramda";
|
|
4225
4229
|
import { createUUID } from "qx-util";
|
|
4230
|
+
import { RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
4226
4231
|
|
|
4227
4232
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
4228
4233
|
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
@@ -4246,7 +4251,8 @@ function isExistSessionId(funcName, context) {
|
|
|
4246
4251
|
|
|
4247
4252
|
// src/service/utils/de-cache/de-cache.ts
|
|
4248
4253
|
var DECache = class {
|
|
4249
|
-
constructor() {
|
|
4254
|
+
constructor(entity) {
|
|
4255
|
+
this.entity = entity;
|
|
4250
4256
|
/**
|
|
4251
4257
|
* 数据缓存
|
|
4252
4258
|
*
|
|
@@ -4256,6 +4262,18 @@ var DECache = class {
|
|
|
4256
4262
|
*/
|
|
4257
4263
|
this.cacheMap = /* @__PURE__ */ new Map();
|
|
4258
4264
|
}
|
|
4265
|
+
/**
|
|
4266
|
+
* 是否是联合主键
|
|
4267
|
+
* @author lxm
|
|
4268
|
+
* @date 2023-12-12 02:47:18
|
|
4269
|
+
* @readonly
|
|
4270
|
+
* @protected
|
|
4271
|
+
* @type {boolean}
|
|
4272
|
+
*/
|
|
4273
|
+
get isUnionKey() {
|
|
4274
|
+
var _a;
|
|
4275
|
+
return !!((_a = this.entity.unionKeyValueAppDEFieldIds) == null ? void 0 : _a.length);
|
|
4276
|
+
}
|
|
4259
4277
|
/**
|
|
4260
4278
|
* 强制设置数据,忽略其他逻辑
|
|
4261
4279
|
*
|
|
@@ -4307,6 +4325,14 @@ var DECache = class {
|
|
|
4307
4325
|
* @memberof EntityCache
|
|
4308
4326
|
*/
|
|
4309
4327
|
add(context, entity) {
|
|
4328
|
+
if (this.isUnionKey) {
|
|
4329
|
+
this.calcUnionKey(entity);
|
|
4330
|
+
if (this.checkData(context, entity.srfkey)) {
|
|
4331
|
+
throw new RuntimeError13(
|
|
4332
|
+
"\u65B0\u5EFA\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4333
|
+
);
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4310
4336
|
try {
|
|
4311
4337
|
isExistSessionId("add", context);
|
|
4312
4338
|
if (isNil5(entity.srfkey) || isEmpty5(entity.srfkey)) {
|
|
@@ -4351,16 +4377,25 @@ var DECache = class {
|
|
|
4351
4377
|
* @memberof EntityCache
|
|
4352
4378
|
*/
|
|
4353
4379
|
update(context, entity) {
|
|
4380
|
+
const oldKey = entity.srfkey;
|
|
4381
|
+
if (this.isUnionKey) {
|
|
4382
|
+
this.calcUnionKey(entity);
|
|
4383
|
+
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
4384
|
+
throw new RuntimeError13(
|
|
4385
|
+
"\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4386
|
+
);
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4354
4389
|
try {
|
|
4355
4390
|
isExistSessionId("update", context);
|
|
4356
4391
|
isExistSrfKey("update", entity);
|
|
4357
4392
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
4358
4393
|
const map = this.getCacheByTag(context);
|
|
4359
|
-
const data = map.get(
|
|
4394
|
+
const data = map.get(oldKey);
|
|
4360
4395
|
if (data) {
|
|
4361
4396
|
data.assign(entity);
|
|
4362
|
-
map.set(
|
|
4363
|
-
ibiz.log.warn("update",
|
|
4397
|
+
map.set(oldKey, data);
|
|
4398
|
+
ibiz.log.warn("update", oldKey, entity);
|
|
4364
4399
|
return clone4(data);
|
|
4365
4400
|
}
|
|
4366
4401
|
throw new Error("\u6570\u636E\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u66F4\u65B0!");
|
|
@@ -4583,6 +4618,27 @@ var DECache = class {
|
|
|
4583
4618
|
}
|
|
4584
4619
|
return this.cacheMap.get(tag);
|
|
4585
4620
|
}
|
|
4621
|
+
/**
|
|
4622
|
+
* 根据联合键值计算主键并赋值
|
|
4623
|
+
* @author lxm
|
|
4624
|
+
* @date 2023-12-12 03:06:30
|
|
4625
|
+
* @param {(IDataEntity | IDataEntity[])} data 需要计算的数据或数据集合
|
|
4626
|
+
*/
|
|
4627
|
+
calcUnionKey(data) {
|
|
4628
|
+
const unionKeys = this.entity.unionKeyValueAppDEFieldIds.map(
|
|
4629
|
+
(id) => {
|
|
4630
|
+
const appField = findModelChild(this.entity.appDEFields || [], id);
|
|
4631
|
+
return appField.codeName.toLowerCase();
|
|
4632
|
+
}
|
|
4633
|
+
);
|
|
4634
|
+
const unionValues = unionKeys.map((key) => {
|
|
4635
|
+
if (isNil5(data[key])) {
|
|
4636
|
+
throw new RuntimeError13("\u8054\u5408\u952E\u503C\u8BA1\u7B97\u5F02\u5E38\uFF0C".concat(key, "\u5C5E\u6027\u4E3A\u7A7A\u503C\uFF01"));
|
|
4637
|
+
}
|
|
4638
|
+
return data[key];
|
|
4639
|
+
});
|
|
4640
|
+
data.srfkey = unionValues.join("");
|
|
4641
|
+
}
|
|
4586
4642
|
};
|
|
4587
4643
|
|
|
4588
4644
|
// src/service/utils/res-path/res-path.ts
|
|
@@ -4737,7 +4793,7 @@ function fieldValueToBoolean(value) {
|
|
|
4737
4793
|
}
|
|
4738
4794
|
|
|
4739
4795
|
// src/service/service/code-list/code-list.service.ts
|
|
4740
|
-
import { RuntimeError as
|
|
4796
|
+
import { RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
4741
4797
|
var CodeListService = class {
|
|
4742
4798
|
constructor(appModel) {
|
|
4743
4799
|
this.appModel = appModel;
|
|
@@ -4884,7 +4940,7 @@ var CodeListService = class {
|
|
|
4884
4940
|
async get(tag, context, params) {
|
|
4885
4941
|
const codeList = this.allCodeLists.get(tag);
|
|
4886
4942
|
if (!codeList) {
|
|
4887
|
-
throw new
|
|
4943
|
+
throw new RuntimeError14("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
4888
4944
|
}
|
|
4889
4945
|
if (codeList.codeListType === "STATIC") {
|
|
4890
4946
|
return this.getStatic(codeList);
|
|
@@ -5006,11 +5062,11 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
5006
5062
|
// src/service/service/entity/de.service.ts
|
|
5007
5063
|
import {
|
|
5008
5064
|
ModelError as ModelError5,
|
|
5009
|
-
RuntimeError as
|
|
5065
|
+
RuntimeError as RuntimeError16
|
|
5010
5066
|
} from "@ibiz-template/core";
|
|
5011
5067
|
|
|
5012
5068
|
// src/service/service/work-flow/work-flow.service.ts
|
|
5013
|
-
import { RuntimeError as
|
|
5069
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
5014
5070
|
var WorkFlowService = class {
|
|
5015
5071
|
/**
|
|
5016
5072
|
* Creates an instance of WorkFlowService.
|
|
@@ -5330,7 +5386,7 @@ var WorkFlowService = class {
|
|
|
5330
5386
|
case "sendcopy":
|
|
5331
5387
|
return this.wfSendCopy(context, params, data);
|
|
5332
5388
|
default: {
|
|
5333
|
-
throw new
|
|
5389
|
+
throw new RuntimeError15("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
5334
5390
|
}
|
|
5335
5391
|
}
|
|
5336
5392
|
}
|
|
@@ -5389,14 +5445,7 @@ var DEService = class {
|
|
|
5389
5445
|
* @type {Map<string, Method>}
|
|
5390
5446
|
*/
|
|
5391
5447
|
this.methodMap = /* @__PURE__ */ new Map();
|
|
5392
|
-
|
|
5393
|
-
* 数据缓存
|
|
5394
|
-
*
|
|
5395
|
-
* @author chitanda
|
|
5396
|
-
* @date 2022-08-18 19:08:40
|
|
5397
|
-
* @type {DECache}
|
|
5398
|
-
*/
|
|
5399
|
-
this.local = new DECache();
|
|
5448
|
+
this.local = new DECache(model);
|
|
5400
5449
|
this.configCache = new ConfigService(
|
|
5401
5450
|
model.appId,
|
|
5402
5451
|
"PSAppDataEntity",
|
|
@@ -5445,7 +5494,7 @@ var DEService = class {
|
|
|
5445
5494
|
if (method) {
|
|
5446
5495
|
return method.exec(context, params, params2);
|
|
5447
5496
|
}
|
|
5448
|
-
throw new
|
|
5497
|
+
throw new RuntimeError16("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
5449
5498
|
}
|
|
5450
5499
|
getDraft(context, params, params2) {
|
|
5451
5500
|
return this.exec("GetDraft", context, params, params2);
|
|
@@ -5499,7 +5548,7 @@ var DEService = class {
|
|
|
5499
5548
|
if (method) {
|
|
5500
5549
|
return method.exec(context, params, params2);
|
|
5501
5550
|
}
|
|
5502
|
-
throw new
|
|
5551
|
+
throw new RuntimeError16("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
5503
5552
|
}
|
|
5504
5553
|
/**
|
|
5505
5554
|
* 实体级别 AI 聊天会话
|
|
@@ -5868,7 +5917,7 @@ var ControlService = class {
|
|
|
5868
5917
|
};
|
|
5869
5918
|
|
|
5870
5919
|
// src/service/service/control/md-control.service.ts
|
|
5871
|
-
import { RuntimeError as
|
|
5920
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
5872
5921
|
import { isArray as isArray3 } from "qx-util";
|
|
5873
5922
|
var MDControlService = class extends ControlService {
|
|
5874
5923
|
/**
|
|
@@ -5977,7 +6026,7 @@ var MDControlService = class extends ControlService {
|
|
|
5977
6026
|
* @returns {*} {Promise<IHttpResponse>}
|
|
5978
6027
|
*/
|
|
5979
6028
|
async exportData(_dataExport, _context, _params = {}) {
|
|
5980
|
-
throw new
|
|
6029
|
+
throw new RuntimeError17("\u672A\u5B9E\u73B0");
|
|
5981
6030
|
}
|
|
5982
6031
|
/**
|
|
5983
6032
|
* 处理响应
|
|
@@ -6012,7 +6061,7 @@ var MDControlService = class extends ControlService {
|
|
|
6012
6061
|
};
|
|
6013
6062
|
|
|
6014
6063
|
// src/service/service/authority/authority.service.ts
|
|
6015
|
-
import { RuntimeError as
|
|
6064
|
+
import { RuntimeError as RuntimeError18 } from "@ibiz-template/core";
|
|
6016
6065
|
|
|
6017
6066
|
// src/service/service/authority/de-authority.service.ts
|
|
6018
6067
|
var DeAuthorityService = class {
|
|
@@ -6148,7 +6197,7 @@ var AuthorityService = class {
|
|
|
6148
6197
|
this.appModel.appId
|
|
6149
6198
|
);
|
|
6150
6199
|
if (!entityModel) {
|
|
6151
|
-
throw new
|
|
6200
|
+
throw new RuntimeError18("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
6152
6201
|
}
|
|
6153
6202
|
const constructor = this.constructorCache.get(id);
|
|
6154
6203
|
let service;
|
|
@@ -6312,8 +6361,9 @@ var AsyncActionService = class {
|
|
|
6312
6361
|
|
|
6313
6362
|
// src/service/service/entity/method/de-action.ts
|
|
6314
6363
|
import {
|
|
6364
|
+
HttpError as HttpError4,
|
|
6315
6365
|
HttpResponse as HttpResponse3,
|
|
6316
|
-
RuntimeError as
|
|
6366
|
+
RuntimeError as RuntimeError20,
|
|
6317
6367
|
RuntimeModelError as RuntimeModelError19
|
|
6318
6368
|
} from "@ibiz-template/core";
|
|
6319
6369
|
import { isArray as isArray7, isNil as isNil10 } from "lodash-es";
|
|
@@ -6907,7 +6957,7 @@ var Method = class {
|
|
|
6907
6957
|
};
|
|
6908
6958
|
|
|
6909
6959
|
// src/de-logic/index.ts
|
|
6910
|
-
import { HttpError as HttpError3, HttpResponse as HttpResponse2, RuntimeError as
|
|
6960
|
+
import { HttpError as HttpError3, HttpResponse as HttpResponse2, RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
6911
6961
|
import { isArray as isArray6 } from "lodash-es";
|
|
6912
6962
|
import { clone as clone12 } from "ramda";
|
|
6913
6963
|
|
|
@@ -7960,7 +8010,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
7960
8010
|
context.srfappid
|
|
7961
8011
|
);
|
|
7962
8012
|
if (!deLogic) {
|
|
7963
|
-
throw new
|
|
8013
|
+
throw new RuntimeError19("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
7964
8014
|
}
|
|
7965
8015
|
return execDELogic(deLogic, context, data, params);
|
|
7966
8016
|
}
|
|
@@ -8119,7 +8169,7 @@ var DEActionMethod = class extends Method {
|
|
|
8119
8169
|
*/
|
|
8120
8170
|
async create(context, data, params) {
|
|
8121
8171
|
if (!data) {
|
|
8122
|
-
throw new
|
|
8172
|
+
throw new RuntimeError20("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
8123
8173
|
}
|
|
8124
8174
|
if (this.isLocalMode) {
|
|
8125
8175
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -8161,7 +8211,7 @@ var DEActionMethod = class extends Method {
|
|
|
8161
8211
|
*/
|
|
8162
8212
|
async update(context, data, params) {
|
|
8163
8213
|
if (!data) {
|
|
8164
|
-
throw new
|
|
8214
|
+
throw new RuntimeError20("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
8165
8215
|
}
|
|
8166
8216
|
if (this.isLocalMode) {
|
|
8167
8217
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -8237,7 +8287,7 @@ var DEActionMethod = class extends Method {
|
|
|
8237
8287
|
}
|
|
8238
8288
|
return new HttpResponse3(resultData);
|
|
8239
8289
|
} catch (err) {
|
|
8240
|
-
|
|
8290
|
+
throw new HttpError4(err);
|
|
8241
8291
|
}
|
|
8242
8292
|
}
|
|
8243
8293
|
/**
|
|
@@ -8284,7 +8334,7 @@ var DEActionMethod = class extends Method {
|
|
|
8284
8334
|
}
|
|
8285
8335
|
return new HttpResponse3(data, 500);
|
|
8286
8336
|
} catch (err) {
|
|
8287
|
-
|
|
8337
|
+
throw new HttpError4(err);
|
|
8288
8338
|
}
|
|
8289
8339
|
}
|
|
8290
8340
|
/**
|
|
@@ -8313,7 +8363,7 @@ var DEActionMethod = class extends Method {
|
|
|
8313
8363
|
}
|
|
8314
8364
|
return new HttpResponse3(resultData, 500);
|
|
8315
8365
|
} catch (err) {
|
|
8316
|
-
|
|
8366
|
+
throw new HttpError4(err);
|
|
8317
8367
|
}
|
|
8318
8368
|
}
|
|
8319
8369
|
/**
|
|
@@ -8340,7 +8390,7 @@ var DEActionMethod = class extends Method {
|
|
|
8340
8390
|
}
|
|
8341
8391
|
return new HttpResponse3(data, 500);
|
|
8342
8392
|
} catch (err) {
|
|
8343
|
-
|
|
8393
|
+
throw new HttpError4(err);
|
|
8344
8394
|
}
|
|
8345
8395
|
}
|
|
8346
8396
|
/**
|
|
@@ -9062,6 +9112,122 @@ var ChartData = class {
|
|
|
9062
9112
|
}
|
|
9063
9113
|
};
|
|
9064
9114
|
|
|
9115
|
+
// src/service/vo/gantt-node-data/gantt-node-data-util.ts
|
|
9116
|
+
var calcDataItemValue = (fieldCodeName, nodeModel, data = {}) => {
|
|
9117
|
+
let result = "";
|
|
9118
|
+
if (!fieldCodeName || !nodeModel.detreeNodeDataItems) {
|
|
9119
|
+
return result;
|
|
9120
|
+
}
|
|
9121
|
+
const targetTreeNodeDataItem = nodeModel.detreeNodeDataItems.find((nodeDataItem) => {
|
|
9122
|
+
return nodeDataItem.id === fieldCodeName;
|
|
9123
|
+
});
|
|
9124
|
+
if (targetTreeNodeDataItem && targetTreeNodeDataItem.appDEFieldId) {
|
|
9125
|
+
result = data[targetTreeNodeDataItem.appDEFieldId];
|
|
9126
|
+
}
|
|
9127
|
+
return result;
|
|
9128
|
+
};
|
|
9129
|
+
|
|
9130
|
+
// src/service/vo/gantt-node-data/gantt-static-node-data.ts
|
|
9131
|
+
var GanttStaticNodeData = class extends TreeStaticNodeData {
|
|
9132
|
+
constructor(model, nodeModel, parentNodeData, opts) {
|
|
9133
|
+
super(nodeModel, parentNodeData, opts);
|
|
9134
|
+
this.sndataIteValue = calcDataItemValue(model.sndataItemName, nodeModel);
|
|
9135
|
+
this.beginDataItemValue = calcDataItemValue(
|
|
9136
|
+
model.beginDataItemName,
|
|
9137
|
+
nodeModel
|
|
9138
|
+
);
|
|
9139
|
+
this.endDataItemValue = calcDataItemValue(model.endDataItemName, nodeModel);
|
|
9140
|
+
this.prevDataItemValue = calcDataItemValue(
|
|
9141
|
+
model.prevDataItemName,
|
|
9142
|
+
nodeModel
|
|
9143
|
+
);
|
|
9144
|
+
this.finishDataItemValue = calcDataItemValue(
|
|
9145
|
+
model.finishDataItemName,
|
|
9146
|
+
nodeModel
|
|
9147
|
+
);
|
|
9148
|
+
this.totalDataItemValue = calcDataItemValue(
|
|
9149
|
+
model.totalDataItemName,
|
|
9150
|
+
nodeModel
|
|
9151
|
+
);
|
|
9152
|
+
}
|
|
9153
|
+
};
|
|
9154
|
+
|
|
9155
|
+
// src/service/vo/gantt-node-data/gantt-data-set-node-data.ts
|
|
9156
|
+
var GanttDataSetNodeData = class extends TreeDataSetNodeData {
|
|
9157
|
+
constructor(model, nodeModel, parentNodeData, opts) {
|
|
9158
|
+
super(nodeModel, parentNodeData, opts);
|
|
9159
|
+
const { data } = opts;
|
|
9160
|
+
this.sndataIteValue = calcDataItemValue(
|
|
9161
|
+
model.sndataItemName,
|
|
9162
|
+
nodeModel,
|
|
9163
|
+
data
|
|
9164
|
+
);
|
|
9165
|
+
this.beginDataItemValue = calcDataItemValue(
|
|
9166
|
+
model.beginDataItemName,
|
|
9167
|
+
nodeModel,
|
|
9168
|
+
data
|
|
9169
|
+
);
|
|
9170
|
+
this.endDataItemValue = calcDataItemValue(
|
|
9171
|
+
model.endDataItemName,
|
|
9172
|
+
nodeModel,
|
|
9173
|
+
data
|
|
9174
|
+
);
|
|
9175
|
+
this.prevDataItemValue = calcDataItemValue(
|
|
9176
|
+
model.prevDataItemName,
|
|
9177
|
+
nodeModel,
|
|
9178
|
+
data
|
|
9179
|
+
);
|
|
9180
|
+
this.finishDataItemValue = calcDataItemValue(
|
|
9181
|
+
model.finishDataItemName,
|
|
9182
|
+
nodeModel,
|
|
9183
|
+
data
|
|
9184
|
+
);
|
|
9185
|
+
this.totalDataItemValue = calcDataItemValue(
|
|
9186
|
+
model.totalDataItemName,
|
|
9187
|
+
nodeModel,
|
|
9188
|
+
data
|
|
9189
|
+
);
|
|
9190
|
+
}
|
|
9191
|
+
};
|
|
9192
|
+
|
|
9193
|
+
// src/service/vo/gantt-node-data/gantt-code-list-node-data.ts
|
|
9194
|
+
var GanttCodeListNodeData = class extends TreeCodeListNodeData {
|
|
9195
|
+
constructor(model, nodeModel, parentNodeData, opts) {
|
|
9196
|
+
super(nodeModel, parentNodeData, opts);
|
|
9197
|
+
const { data } = opts;
|
|
9198
|
+
this.sndataIteValue = calcDataItemValue(
|
|
9199
|
+
model.sndataItemName,
|
|
9200
|
+
nodeModel,
|
|
9201
|
+
data
|
|
9202
|
+
);
|
|
9203
|
+
this.beginDataItemValue = calcDataItemValue(
|
|
9204
|
+
model.beginDataItemName,
|
|
9205
|
+
nodeModel,
|
|
9206
|
+
data
|
|
9207
|
+
);
|
|
9208
|
+
this.endDataItemValue = calcDataItemValue(
|
|
9209
|
+
model.endDataItemName,
|
|
9210
|
+
nodeModel,
|
|
9211
|
+
data
|
|
9212
|
+
);
|
|
9213
|
+
this.prevDataItemValue = calcDataItemValue(
|
|
9214
|
+
model.prevDataItemName,
|
|
9215
|
+
nodeModel,
|
|
9216
|
+
data
|
|
9217
|
+
);
|
|
9218
|
+
this.finishDataItemValue = calcDataItemValue(
|
|
9219
|
+
model.finishDataItemName,
|
|
9220
|
+
nodeModel,
|
|
9221
|
+
data
|
|
9222
|
+
);
|
|
9223
|
+
this.totalDataItemValue = calcDataItemValue(
|
|
9224
|
+
model.totalDataItemName,
|
|
9225
|
+
nodeModel,
|
|
9226
|
+
data
|
|
9227
|
+
);
|
|
9228
|
+
}
|
|
9229
|
+
};
|
|
9230
|
+
|
|
9065
9231
|
// src/service/mqtt/mqtt.service.ts
|
|
9066
9232
|
import { QXEvent as QXEvent3, createUUID as createUUID5, isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
9067
9233
|
var MqttService = class {
|
|
@@ -9156,7 +9322,7 @@ var MqttService = class {
|
|
|
9156
9322
|
};
|
|
9157
9323
|
|
|
9158
9324
|
// src/service/de-service-util.ts
|
|
9159
|
-
import { RuntimeError as
|
|
9325
|
+
import { RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
9160
9326
|
var DEServiceUtil = class {
|
|
9161
9327
|
/**
|
|
9162
9328
|
* Creates an instance of DEServiceUtil.
|
|
@@ -9211,7 +9377,7 @@ var DEServiceUtil = class {
|
|
|
9211
9377
|
this.appModel.appId
|
|
9212
9378
|
);
|
|
9213
9379
|
if (!entityModel) {
|
|
9214
|
-
throw new
|
|
9380
|
+
throw new RuntimeError21("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
9215
9381
|
}
|
|
9216
9382
|
const constructor = this.constructorCache.get(id);
|
|
9217
9383
|
let service;
|
|
@@ -9274,7 +9440,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
9274
9440
|
const context = clone14(_context);
|
|
9275
9441
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
9276
9442
|
if (!appView) {
|
|
9277
|
-
throw new
|
|
9443
|
+
throw new RuntimeError22("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
9278
9444
|
}
|
|
9279
9445
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
9280
9446
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -9363,7 +9529,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
9363
9529
|
*/
|
|
9364
9530
|
async openPopover(appView, event, context, params = {}) {
|
|
9365
9531
|
if (!event) {
|
|
9366
|
-
throw new
|
|
9532
|
+
throw new RuntimeError22("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
9367
9533
|
}
|
|
9368
9534
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
9369
9535
|
}
|
|
@@ -9419,7 +9585,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9419
9585
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
9420
9586
|
const appFunc = app.getAppFunc(appFuncId);
|
|
9421
9587
|
if (!appFunc) {
|
|
9422
|
-
throw new
|
|
9588
|
+
throw new RuntimeError23("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
9423
9589
|
}
|
|
9424
9590
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
9425
9591
|
const _context = context.clone();
|
|
@@ -9453,7 +9619,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9453
9619
|
*/
|
|
9454
9620
|
async openAppView(appFunc, context, params, opts) {
|
|
9455
9621
|
if (!appFunc.appViewId) {
|
|
9456
|
-
throw new
|
|
9622
|
+
throw new RuntimeError23("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
9457
9623
|
}
|
|
9458
9624
|
return ibiz.commands.execute(
|
|
9459
9625
|
OpenAppViewCommand.TAG,
|
|
@@ -9487,7 +9653,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9487
9653
|
*/
|
|
9488
9654
|
openPdAppFunc(appFunc, context, params) {
|
|
9489
9655
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
9490
|
-
throw new
|
|
9656
|
+
throw new RuntimeError23("\u672A\u5B9E\u73B0");
|
|
9491
9657
|
}
|
|
9492
9658
|
/**
|
|
9493
9659
|
* 执行 JavaScript 脚本
|
|
@@ -9501,7 +9667,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9501
9667
|
*/
|
|
9502
9668
|
executeJavaScript(appFunc, context, params) {
|
|
9503
9669
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
9504
|
-
throw new
|
|
9670
|
+
throw new RuntimeError23("\u672A\u5B9E\u73B0");
|
|
9505
9671
|
}
|
|
9506
9672
|
/**
|
|
9507
9673
|
* 自定义应用功能
|
|
@@ -9515,7 +9681,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
9515
9681
|
*/
|
|
9516
9682
|
custom(appFunc, context, params) {
|
|
9517
9683
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
9518
|
-
throw new
|
|
9684
|
+
throw new RuntimeError23("\u672A\u5B9E\u73B0");
|
|
9519
9685
|
}
|
|
9520
9686
|
};
|
|
9521
9687
|
/**
|
|
@@ -9536,7 +9702,7 @@ function installCommand() {
|
|
|
9536
9702
|
}
|
|
9537
9703
|
|
|
9538
9704
|
// src/app-hub.ts
|
|
9539
|
-
import { RuntimeError as
|
|
9705
|
+
import { RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
9540
9706
|
|
|
9541
9707
|
// src/application.ts
|
|
9542
9708
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -9728,7 +9894,7 @@ var Convert = class {
|
|
|
9728
9894
|
};
|
|
9729
9895
|
|
|
9730
9896
|
// src/hub/config/app-view-config-service.ts
|
|
9731
|
-
import { RuntimeError as
|
|
9897
|
+
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
9732
9898
|
var AppViewConfigService = class {
|
|
9733
9899
|
constructor() {
|
|
9734
9900
|
/**
|
|
@@ -9748,7 +9914,7 @@ var AppViewConfigService = class {
|
|
|
9748
9914
|
if (!this.viewConfigs.has(key)) {
|
|
9749
9915
|
const model = await ibiz.hub.getAppView(key);
|
|
9750
9916
|
if (!model) {
|
|
9751
|
-
throw new
|
|
9917
|
+
throw new RuntimeError24("\u89C6\u56FE[".concat(key, "]\u4E0D\u5B58\u5728"));
|
|
9752
9918
|
}
|
|
9753
9919
|
this.set(model.id, {
|
|
9754
9920
|
id: model.id,
|
|
@@ -9804,14 +9970,14 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
9804
9970
|
|
|
9805
9971
|
// src/controller/common/view/view.controller.ts
|
|
9806
9972
|
import { createUUID as createUUID7, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
9807
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
9973
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
9808
9974
|
import { isEmpty as isEmpty8, isNil as isNil18, isNotNil as isNotNil2 } from "ramda";
|
|
9809
9975
|
|
|
9810
9976
|
// src/controller/utils/loading/loading.state.ts
|
|
9811
9977
|
import { NOOP } from "@ibiz-template/core";
|
|
9812
9978
|
|
|
9813
9979
|
// src/controller/utils/counter/counter.ts
|
|
9814
|
-
import { RuntimeError as
|
|
9980
|
+
import { RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
9815
9981
|
var Counter = class {
|
|
9816
9982
|
/**
|
|
9817
9983
|
* Creates an instance of Counter.
|
|
@@ -9873,7 +10039,7 @@ var Counter = class {
|
|
|
9873
10039
|
return;
|
|
9874
10040
|
}
|
|
9875
10041
|
if (this.count === 0) {
|
|
9876
|
-
throw new
|
|
10042
|
+
throw new RuntimeError25("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
9877
10043
|
}
|
|
9878
10044
|
this.count -= 1;
|
|
9879
10045
|
if (this.count === 0) {
|
|
@@ -10450,7 +10616,7 @@ function getOriginData(data) {
|
|
|
10450
10616
|
}
|
|
10451
10617
|
|
|
10452
10618
|
// src/controller/utils/value-rule/value-rule.ts
|
|
10453
|
-
import { RuntimeError as
|
|
10619
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
10454
10620
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
10455
10621
|
import { isNil as isNil14 } from "ramda";
|
|
10456
10622
|
function generateRules(itemVRs, name, valueItemName) {
|
|
@@ -10500,7 +10666,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
10500
10666
|
deRule.groupCond
|
|
10501
10667
|
);
|
|
10502
10668
|
if (!isPast) {
|
|
10503
|
-
callback(new
|
|
10669
|
+
callback(new RuntimeError26(infoMessage || deRule.ruleInfo));
|
|
10504
10670
|
}
|
|
10505
10671
|
return true;
|
|
10506
10672
|
},
|
|
@@ -10570,7 +10736,7 @@ function generateEditorRules(editor) {
|
|
|
10570
10736
|
}
|
|
10571
10737
|
|
|
10572
10738
|
// src/controller/utils/value-ex/value-ex.ts
|
|
10573
|
-
import { RuntimeError as
|
|
10739
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
10574
10740
|
import { isNil as isNil15, mergeLeft } from "ramda";
|
|
10575
10741
|
var ValueExUtil = class {
|
|
10576
10742
|
/**
|
|
@@ -10602,7 +10768,7 @@ var ValueExUtil = class {
|
|
|
10602
10768
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
10603
10769
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
10604
10770
|
if (!objectNameField) {
|
|
10605
|
-
throw new
|
|
10771
|
+
throw new RuntimeError27("\u7F3A\u5C11objectNameField");
|
|
10606
10772
|
}
|
|
10607
10773
|
const textKey = objectNameField.toLowerCase();
|
|
10608
10774
|
if (valueType === "OBJECTS") {
|
|
@@ -10618,7 +10784,7 @@ var ValueExUtil = class {
|
|
|
10618
10784
|
};
|
|
10619
10785
|
|
|
10620
10786
|
// src/controller/utils/value-default/value-default.ts
|
|
10621
|
-
import { RuntimeError as
|
|
10787
|
+
import { RuntimeError as RuntimeError28, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
10622
10788
|
import dayjs from "dayjs";
|
|
10623
10789
|
import { createUUID as createUUID6 } from "qx-util";
|
|
10624
10790
|
import { isNil as isNil16, isNotNil } from "ramda";
|
|
@@ -10659,7 +10825,7 @@ function getDefaultValue(opts, origins) {
|
|
|
10659
10825
|
case "SESSION":
|
|
10660
10826
|
case "APPLICATION":
|
|
10661
10827
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
10662
|
-
throw new
|
|
10828
|
+
throw new RuntimeError28("appdata.context\u4E0D\u5B58\u5728");
|
|
10663
10829
|
}
|
|
10664
10830
|
return ibiz.appData.context[defaultValue];
|
|
10665
10831
|
case "CONTEXT":
|
|
@@ -10673,7 +10839,7 @@ function getDefaultValue(opts, origins) {
|
|
|
10673
10839
|
|
|
10674
10840
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
10675
10841
|
import {
|
|
10676
|
-
RuntimeError as
|
|
10842
|
+
RuntimeError as RuntimeError29
|
|
10677
10843
|
} from "@ibiz-template/core";
|
|
10678
10844
|
var asyncImportUrl = "asyncimportdata2";
|
|
10679
10845
|
var importUrl = "importdata2";
|
|
@@ -10727,11 +10893,11 @@ async function importData(file, appDataEntity, dataImport) {
|
|
|
10727
10893
|
}
|
|
10728
10894
|
async function exportData(header, data, fileName) {
|
|
10729
10895
|
if (!ibiz.util.getExcelUtil) {
|
|
10730
|
-
throw new
|
|
10896
|
+
throw new RuntimeError29("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
10731
10897
|
}
|
|
10732
10898
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
10733
10899
|
if (!exportExcel) {
|
|
10734
|
-
throw new
|
|
10900
|
+
throw new RuntimeError29("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
10735
10901
|
}
|
|
10736
10902
|
try {
|
|
10737
10903
|
exportExcel.exportJsonToExcel({
|
|
@@ -10957,7 +11123,7 @@ var BaseController = class {
|
|
|
10957
11123
|
};
|
|
10958
11124
|
|
|
10959
11125
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
10960
|
-
import { RuntimeError as
|
|
11126
|
+
import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError21 } from "@ibiz-template/core";
|
|
10961
11127
|
import { isNil as isNil17, mergeRight as mergeRight2 } from "ramda";
|
|
10962
11128
|
var ViewMsgController = class _ViewMsgController {
|
|
10963
11129
|
constructor(msgGroupId) {
|
|
@@ -10983,7 +11149,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10983
11149
|
(item) => item.id === this.msgGroupId
|
|
10984
11150
|
);
|
|
10985
11151
|
if (!msgGroup) {
|
|
10986
|
-
throw new
|
|
11152
|
+
throw new RuntimeError30("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
10987
11153
|
}
|
|
10988
11154
|
this.msgGroup = msgGroup;
|
|
10989
11155
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -10997,7 +11163,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10997
11163
|
}
|
|
10998
11164
|
});
|
|
10999
11165
|
if (msgDetailsViewMsgIds.length) {
|
|
11000
|
-
throw new
|
|
11166
|
+
throw new RuntimeError30(
|
|
11001
11167
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
11002
11168
|
);
|
|
11003
11169
|
}
|
|
@@ -11413,7 +11579,7 @@ var ViewController = class extends BaseController {
|
|
|
11413
11579
|
async callUIAction(key, args) {
|
|
11414
11580
|
const result = this.call(key, args);
|
|
11415
11581
|
if (result === void 0) {
|
|
11416
|
-
throw new
|
|
11582
|
+
throw new RuntimeError31("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
11417
11583
|
}
|
|
11418
11584
|
return result;
|
|
11419
11585
|
}
|
|
@@ -12007,7 +12173,7 @@ var ControlController = class extends BaseController {
|
|
|
12007
12173
|
};
|
|
12008
12174
|
|
|
12009
12175
|
// src/controller/common/control/md-control.controller.ts
|
|
12010
|
-
import { isElementSame, RuntimeError as
|
|
12176
|
+
import { isElementSame, RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
12011
12177
|
import { debounce } from "lodash-es";
|
|
12012
12178
|
var MDControlController = class extends ControlController {
|
|
12013
12179
|
constructor() {
|
|
@@ -12200,7 +12366,7 @@ var MDControlController = class extends ControlController {
|
|
|
12200
12366
|
async remove(args) {
|
|
12201
12367
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
12202
12368
|
if (!(data == null ? void 0 : data.length)) {
|
|
12203
|
-
throw new
|
|
12369
|
+
throw new RuntimeError32("\u672A\u9009\u4E2D\u6570\u636E");
|
|
12204
12370
|
}
|
|
12205
12371
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
12206
12372
|
const del = await ibiz.confirm.error({
|
|
@@ -12339,7 +12505,7 @@ var MDControlController = class extends ControlController {
|
|
|
12339
12505
|
(importItem) => importItem.id === dedataImportId
|
|
12340
12506
|
);
|
|
12341
12507
|
if (!dataImport) {
|
|
12342
|
-
throw new
|
|
12508
|
+
throw new RuntimeError32("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
12343
12509
|
}
|
|
12344
12510
|
let importName = "DataImport";
|
|
12345
12511
|
if (dataImport.enableCustomized) {
|
|
@@ -12373,7 +12539,7 @@ var MDControlController = class extends ControlController {
|
|
|
12373
12539
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
12374
12540
|
import {
|
|
12375
12541
|
findRecursiveChild,
|
|
12376
|
-
RuntimeError as
|
|
12542
|
+
RuntimeError as RuntimeError33,
|
|
12377
12543
|
RuntimeModelError as RuntimeModelError23
|
|
12378
12544
|
} from "@ibiz-template/core";
|
|
12379
12545
|
var AppMenuController = class extends ControlController {
|
|
@@ -12413,7 +12579,7 @@ var AppMenuController = class extends ControlController {
|
|
|
12413
12579
|
childrenFields: ["appMenuItems"]
|
|
12414
12580
|
});
|
|
12415
12581
|
if (!menuItem) {
|
|
12416
|
-
throw new
|
|
12582
|
+
throw new RuntimeError33("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
12417
12583
|
}
|
|
12418
12584
|
this.evt.emit("onClick", {
|
|
12419
12585
|
eventArg: id,
|
|
@@ -12504,7 +12670,7 @@ var AppMenuController = class extends ControlController {
|
|
|
12504
12670
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
12505
12671
|
import {
|
|
12506
12672
|
findRecursiveChild as findRecursiveChild2,
|
|
12507
|
-
RuntimeError as
|
|
12673
|
+
RuntimeError as RuntimeError34,
|
|
12508
12674
|
RuntimeModelError as RuntimeModelError24
|
|
12509
12675
|
} from "@ibiz-template/core";
|
|
12510
12676
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -12514,7 +12680,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
12514
12680
|
childrenFields: ["appMenuItems"]
|
|
12515
12681
|
});
|
|
12516
12682
|
if (!menuItem) {
|
|
12517
|
-
throw new
|
|
12683
|
+
throw new RuntimeError34("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
12518
12684
|
}
|
|
12519
12685
|
this.evt.emit("onClick", {
|
|
12520
12686
|
eventArg: id,
|
|
@@ -12542,7 +12708,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
12542
12708
|
import dayjs2 from "dayjs";
|
|
12543
12709
|
|
|
12544
12710
|
// src/controller/control/calendar/calendar.service.ts
|
|
12545
|
-
import { RuntimeError as
|
|
12711
|
+
import { RuntimeError as RuntimeError35 } from "@ibiz-template/core";
|
|
12546
12712
|
var CalendarService = class extends MDControlService {
|
|
12547
12713
|
/**
|
|
12548
12714
|
* 执行查询多条数据的方法
|
|
@@ -12592,11 +12758,11 @@ var CalendarService = class extends MDControlService {
|
|
|
12592
12758
|
setCalendarConfigData(items, index) {
|
|
12593
12759
|
const { sysCalendarItems } = this.model;
|
|
12594
12760
|
if (!sysCalendarItems) {
|
|
12595
|
-
throw new
|
|
12761
|
+
throw new RuntimeError35("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12596
12762
|
}
|
|
12597
12763
|
const calendarItem = sysCalendarItems[index];
|
|
12598
12764
|
if (!calendarItem) {
|
|
12599
|
-
throw new
|
|
12765
|
+
throw new RuntimeError35("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
12600
12766
|
}
|
|
12601
12767
|
return items.map((item) => {
|
|
12602
12768
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -12810,11 +12976,11 @@ var CalendarController = class extends MDControlController {
|
|
|
12810
12976
|
};
|
|
12811
12977
|
|
|
12812
12978
|
// src/controller/control/chart/chart.controller.ts
|
|
12813
|
-
import { RuntimeError as
|
|
12979
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
12814
12980
|
|
|
12815
12981
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
12816
12982
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
12817
|
-
import { RuntimeError as
|
|
12983
|
+
import { RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
12818
12984
|
|
|
12819
12985
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
12820
12986
|
import { RuntimeModelError as RuntimeModelError26 } from "@ibiz-template/core";
|
|
@@ -13823,7 +13989,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
13823
13989
|
getChartDataByParams(params) {
|
|
13824
13990
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
13825
13991
|
if (!generator) {
|
|
13826
|
-
throw new
|
|
13992
|
+
throw new RuntimeError36("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
13827
13993
|
}
|
|
13828
13994
|
return generator.getChartDataByParams(params);
|
|
13829
13995
|
}
|
|
@@ -13936,10 +14102,10 @@ var ChartController = class extends MDControlController {
|
|
|
13936
14102
|
*/
|
|
13937
14103
|
updateChart() {
|
|
13938
14104
|
if (!this.chart) {
|
|
13939
|
-
throw new
|
|
14105
|
+
throw new RuntimeError37("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
13940
14106
|
}
|
|
13941
14107
|
if (!this.options) {
|
|
13942
|
-
throw new
|
|
14108
|
+
throw new RuntimeError37("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
13943
14109
|
}
|
|
13944
14110
|
this.chart.setOption(this.options);
|
|
13945
14111
|
this.resizeChart();
|
|
@@ -13984,7 +14150,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
13984
14150
|
};
|
|
13985
14151
|
|
|
13986
14152
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
13987
|
-
import { recursiveIterate, RuntimeError as
|
|
14153
|
+
import { recursiveIterate, RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
13988
14154
|
|
|
13989
14155
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
13990
14156
|
import { RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
@@ -13994,7 +14160,7 @@ import { isArray as isArray9 } from "qx-util";
|
|
|
13994
14160
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
13995
14161
|
|
|
13996
14162
|
// src/ui-logic/index.ts
|
|
13997
|
-
import { RuntimeError as
|
|
14163
|
+
import { RuntimeError as RuntimeError43 } from "@ibiz-template/core";
|
|
13998
14164
|
|
|
13999
14165
|
// src/ui-logic/ui-logic.ts
|
|
14000
14166
|
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
@@ -14545,7 +14711,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
14545
14711
|
};
|
|
14546
14712
|
|
|
14547
14713
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
14548
|
-
import { ModelError as ModelError21, RuntimeError as
|
|
14714
|
+
import { ModelError as ModelError21, RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
14549
14715
|
import { clone as clone18 } from "ramda";
|
|
14550
14716
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
14551
14717
|
async exec(ctx) {
|
|
@@ -14595,7 +14761,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
14595
14761
|
setParamValue(nodeParam, ctx) {
|
|
14596
14762
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
14597
14763
|
if (!dstDEUILogicParamId) {
|
|
14598
|
-
throw new
|
|
14764
|
+
throw new RuntimeError38("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
14599
14765
|
}
|
|
14600
14766
|
let dstField = dstFieldName;
|
|
14601
14767
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -14712,7 +14878,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
14712
14878
|
};
|
|
14713
14879
|
|
|
14714
14880
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
14715
|
-
import { RuntimeError as
|
|
14881
|
+
import { RuntimeError as RuntimeError39, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
14716
14882
|
import { isFunction } from "lodash-es";
|
|
14717
14883
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
14718
14884
|
async exec(ctx) {
|
|
@@ -14729,14 +14895,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
14729
14895
|
}
|
|
14730
14896
|
const invokeParam = ctx.params[invokeParamId];
|
|
14731
14897
|
if (!invokeParam) {
|
|
14732
|
-
throw new
|
|
14898
|
+
throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
14733
14899
|
}
|
|
14734
14900
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
14735
14901
|
if (!invokeCtrl) {
|
|
14736
|
-
throw new
|
|
14902
|
+
throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
14737
14903
|
}
|
|
14738
14904
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
14739
|
-
throw new
|
|
14905
|
+
throw new RuntimeError39("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
14740
14906
|
}
|
|
14741
14907
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
14742
14908
|
}
|
|
@@ -14962,16 +15128,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
14962
15128
|
};
|
|
14963
15129
|
|
|
14964
15130
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
14965
|
-
import { RuntimeError as
|
|
15131
|
+
import { RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
14966
15132
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
14967
15133
|
async exec(_ctx) {
|
|
14968
15134
|
const { errorInfo } = this.model;
|
|
14969
|
-
throw new
|
|
15135
|
+
throw new RuntimeError40(errorInfo);
|
|
14970
15136
|
}
|
|
14971
15137
|
};
|
|
14972
15138
|
|
|
14973
15139
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
14974
|
-
import { RuntimeError as
|
|
15140
|
+
import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
14975
15141
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
14976
15142
|
async exec(ctx) {
|
|
14977
15143
|
ctx.isEndNode = true;
|
|
@@ -14987,18 +15153,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
14987
15153
|
}
|
|
14988
15154
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
14989
15155
|
if (!invokeCtrl) {
|
|
14990
|
-
throw new
|
|
15156
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
14991
15157
|
}
|
|
14992
15158
|
const eventParam = ctx.params[eventParamId];
|
|
14993
15159
|
if (!eventParam) {
|
|
14994
|
-
throw new
|
|
15160
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
14995
15161
|
}
|
|
14996
15162
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
14997
15163
|
}
|
|
14998
15164
|
};
|
|
14999
15165
|
|
|
15000
15166
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
15001
|
-
import { RuntimeError as
|
|
15167
|
+
import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
15002
15168
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
15003
15169
|
async exec(ctx) {
|
|
15004
15170
|
const {
|
|
@@ -15018,7 +15184,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
15018
15184
|
}
|
|
15019
15185
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
15020
15186
|
if (!dstParam) {
|
|
15021
|
-
throw new
|
|
15187
|
+
throw new RuntimeError42("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
15022
15188
|
}
|
|
15023
15189
|
const result = await execDELogicById(
|
|
15024
15190
|
dstAppDELogicId,
|
|
@@ -15342,7 +15508,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
15342
15508
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
15343
15509
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
15344
15510
|
if (!deUILogic) {
|
|
15345
|
-
throw new
|
|
15511
|
+
throw new RuntimeError43(
|
|
15346
15512
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
15347
15513
|
);
|
|
15348
15514
|
}
|
|
@@ -15355,7 +15521,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
15355
15521
|
}
|
|
15356
15522
|
|
|
15357
15523
|
// src/ui-action/uiaction-util.ts
|
|
15358
|
-
import { RuntimeError as
|
|
15524
|
+
import { RuntimeError as RuntimeError44 } from "@ibiz-template/core";
|
|
15359
15525
|
var UIActionUtil = class {
|
|
15360
15526
|
/**
|
|
15361
15527
|
* 执行界面行为
|
|
@@ -15370,7 +15536,7 @@ var UIActionUtil = class {
|
|
|
15370
15536
|
static async exec(actionId, params, appId) {
|
|
15371
15537
|
const action = await getUIActionById(actionId, appId);
|
|
15372
15538
|
if (!action) {
|
|
15373
|
-
throw new
|
|
15539
|
+
throw new RuntimeError44("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
15374
15540
|
}
|
|
15375
15541
|
if (action.actionTarget === "SINGLEDATA") {
|
|
15376
15542
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -15783,7 +15949,7 @@ import {
|
|
|
15783
15949
|
StringUtil,
|
|
15784
15950
|
RuntimeModelError as RuntimeModelError48,
|
|
15785
15951
|
ModelError as ModelError25,
|
|
15786
|
-
RuntimeError as
|
|
15952
|
+
RuntimeError as RuntimeError45
|
|
15787
15953
|
} from "@ibiz-template/core";
|
|
15788
15954
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
15789
15955
|
async execAction(action, args) {
|
|
@@ -15893,7 +16059,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
15893
16059
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
15894
16060
|
requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
15895
16061
|
} else {
|
|
15896
|
-
throw new
|
|
16062
|
+
throw new RuntimeError45("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
|
|
15897
16063
|
}
|
|
15898
16064
|
const res = await ibiz.net.request(requestUrl, {
|
|
15899
16065
|
method: "get",
|
|
@@ -15920,10 +16086,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
15920
16086
|
window.open(link, "_blank");
|
|
15921
16087
|
}
|
|
15922
16088
|
} else {
|
|
15923
|
-
throw new
|
|
16089
|
+
throw new RuntimeError45("\u6253\u5370\u5931\u8D25");
|
|
15924
16090
|
}
|
|
15925
16091
|
} else {
|
|
15926
|
-
throw new
|
|
16092
|
+
throw new RuntimeError45("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
|
|
15927
16093
|
}
|
|
15928
16094
|
}
|
|
15929
16095
|
/**
|
|
@@ -15966,7 +16132,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
15966
16132
|
refreshMode: 1
|
|
15967
16133
|
};
|
|
15968
16134
|
}
|
|
15969
|
-
throw new
|
|
16135
|
+
throw new RuntimeError45("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
|
|
15970
16136
|
}
|
|
15971
16137
|
/**
|
|
15972
16138
|
* 执行导出行为
|
|
@@ -16017,10 +16183,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
16017
16183
|
URL.revokeObjectURL(elink.href);
|
|
16018
16184
|
document.body.removeChild(elink);
|
|
16019
16185
|
} else {
|
|
16020
|
-
throw new
|
|
16186
|
+
throw new RuntimeError45("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
|
|
16021
16187
|
}
|
|
16022
16188
|
} else {
|
|
16023
|
-
throw new
|
|
16189
|
+
throw new RuntimeError45("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
|
|
16024
16190
|
}
|
|
16025
16191
|
}
|
|
16026
16192
|
};
|
|
@@ -16045,6 +16211,23 @@ var WFWithdrawUIActionProvider = class extends UIActionProviderBase {
|
|
|
16045
16211
|
}
|
|
16046
16212
|
};
|
|
16047
16213
|
|
|
16214
|
+
// src/ui-action/provider/loginout-ui-action-provider.ts
|
|
16215
|
+
var LoginOutUIActionProvider = class extends UIActionProviderBase {
|
|
16216
|
+
async execAction(_action, _params) {
|
|
16217
|
+
const confirm = await ibiz.confirm.info({
|
|
16218
|
+
title: "\u786E\u8BA4\u9000\u51FA\u767B\u5F55",
|
|
16219
|
+
desc: "\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417\uFF1F\u9000\u51FA\u540E\u60A8\u5C06\u65E0\u6CD5\u7EE7\u7EED\u8BBF\u95EE\u5DF2\u767B\u5F55\u72B6\u6001\u7684\u529F\u80FD\u548C\u4FE1\u606F\uFF0C\u8BF7\u786E\u4FDD\u60A8\u5DF2\u4FDD\u5B58\u6240\u6709\u672A\u5B8C\u6210\u7684\u64CD\u4F5C\u3002"
|
|
16220
|
+
});
|
|
16221
|
+
if (confirm) {
|
|
16222
|
+
const bol = await ibiz.auth.logout();
|
|
16223
|
+
if (bol) {
|
|
16224
|
+
window.location.reload();
|
|
16225
|
+
}
|
|
16226
|
+
}
|
|
16227
|
+
return {};
|
|
16228
|
+
}
|
|
16229
|
+
};
|
|
16230
|
+
|
|
16048
16231
|
// src/ui-action/provider/index.ts
|
|
16049
16232
|
function presetUIActionProvider() {
|
|
16050
16233
|
const frontUIActionProvider = new FrontUIActionProvider();
|
|
@@ -16058,6 +16241,8 @@ function presetUIActionProvider() {
|
|
|
16058
16241
|
"DEUIACTION_WFWithdraw",
|
|
16059
16242
|
() => wfWithdrawUIActionProvider
|
|
16060
16243
|
);
|
|
16244
|
+
const loginOutUIActionProvider = new LoginOutUIActionProvider();
|
|
16245
|
+
registerUIActionProvider("SYS_Logout", () => loginOutUIActionProvider);
|
|
16061
16246
|
}
|
|
16062
16247
|
|
|
16063
16248
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
@@ -16088,7 +16273,7 @@ var ToolbarController = class extends ControlController {
|
|
|
16088
16273
|
const actionId = item.uiactionId;
|
|
16089
16274
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
16090
16275
|
if (!uiAction) {
|
|
16091
|
-
throw new
|
|
16276
|
+
throw new RuntimeError46("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
16092
16277
|
}
|
|
16093
16278
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
16094
16279
|
if (enableLoading) {
|
|
@@ -17133,7 +17318,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
17133
17318
|
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
17134
17319
|
|
|
17135
17320
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
17136
|
-
import { RuntimeError as
|
|
17321
|
+
import { RuntimeError as RuntimeError47, RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
17137
17322
|
var ExpBarControlController = class extends ControlController {
|
|
17138
17323
|
constructor() {
|
|
17139
17324
|
super(...arguments);
|
|
@@ -17459,7 +17644,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
17459
17644
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
17460
17645
|
return this.XDataModel.navAppViewId;
|
|
17461
17646
|
}
|
|
17462
|
-
throw new
|
|
17647
|
+
throw new RuntimeError47("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
17463
17648
|
}
|
|
17464
17649
|
/**
|
|
17465
17650
|
* 获取导航视图
|
|
@@ -17602,7 +17787,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
17602
17787
|
};
|
|
17603
17788
|
|
|
17604
17789
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
17605
|
-
import { RuntimeError as
|
|
17790
|
+
import { RuntimeError as RuntimeError48, RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
17606
17791
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
17607
17792
|
constructor() {
|
|
17608
17793
|
super(...arguments);
|
|
@@ -17677,7 +17862,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
17677
17862
|
const deData = node.deData || node;
|
|
17678
17863
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
17679
17864
|
if (!nodeModel) {
|
|
17680
|
-
throw new
|
|
17865
|
+
throw new RuntimeError48("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
17681
17866
|
}
|
|
17682
17867
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
17683
17868
|
result.context.currentSrfNav = nodeId;
|
|
@@ -17868,7 +18053,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
17868
18053
|
};
|
|
17869
18054
|
|
|
17870
18055
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
17871
|
-
import { RuntimeError as
|
|
18056
|
+
import { RuntimeError as RuntimeError49, mergeDefaultInLeft } from "@ibiz-template/core";
|
|
17872
18057
|
|
|
17873
18058
|
// src/controller/control/form/form/form.controller.ts
|
|
17874
18059
|
import { debounceAndAsyncMerge, recursiveIterate as recursiveIterate2 } from "@ibiz-template/core";
|
|
@@ -18398,7 +18583,7 @@ var SearchFormController = class extends FormController {
|
|
|
18398
18583
|
applyStoredFilter(index) {
|
|
18399
18584
|
const filter = this.state.storedFilters[index];
|
|
18400
18585
|
if (!filter) {
|
|
18401
|
-
throw new
|
|
18586
|
+
throw new RuntimeError49("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
|
|
18402
18587
|
}
|
|
18403
18588
|
if (filter.data) {
|
|
18404
18589
|
Object.assign(this.data, filter.data);
|
|
@@ -18414,7 +18599,7 @@ var SearchFormController = class extends FormController {
|
|
|
18414
18599
|
async removeStoredFilter(index) {
|
|
18415
18600
|
const filter = this.state.storedFilters[index];
|
|
18416
18601
|
if (!filter) {
|
|
18417
|
-
throw new
|
|
18602
|
+
throw new RuntimeError49("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
|
|
18418
18603
|
}
|
|
18419
18604
|
this.state.storedFilters.splice(index, 1);
|
|
18420
18605
|
await this.saveConfig();
|
|
@@ -18912,7 +19097,7 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
18912
19097
|
*/
|
|
18913
19098
|
this.refreshItems = ["srfkey"];
|
|
18914
19099
|
/**
|
|
18915
|
-
*
|
|
19100
|
+
* 参数项名称(这个模型暂不使用,相关场景可以通过配置导航参数实现)
|
|
18916
19101
|
*
|
|
18917
19102
|
* @author lxm
|
|
18918
19103
|
* @date 2022-09-15 19:09:36
|
|
@@ -19252,6 +19437,20 @@ var FormItemController = class extends FormDetailController {
|
|
|
19252
19437
|
}
|
|
19253
19438
|
return void 0;
|
|
19254
19439
|
}
|
|
19440
|
+
/**
|
|
19441
|
+
* 标签标题
|
|
19442
|
+
* @author lxm
|
|
19443
|
+
* @date 2023-12-12 09:48:21
|
|
19444
|
+
* @readonly
|
|
19445
|
+
* @type {(string | undefined)}
|
|
19446
|
+
*/
|
|
19447
|
+
get labelCaption() {
|
|
19448
|
+
const { captionItemName } = this.model;
|
|
19449
|
+
if (captionItemName) {
|
|
19450
|
+
return this.data[captionItemName];
|
|
19451
|
+
}
|
|
19452
|
+
return this.model.caption;
|
|
19453
|
+
}
|
|
19255
19454
|
/**
|
|
19256
19455
|
* 单位
|
|
19257
19456
|
* @author lxm
|
|
@@ -19677,7 +19876,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
19677
19876
|
};
|
|
19678
19877
|
|
|
19679
19878
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
19680
|
-
import { RuntimeError as
|
|
19879
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
19681
19880
|
import { createUUID as createUUID9 } from "qx-util";
|
|
19682
19881
|
|
|
19683
19882
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -19788,7 +19987,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
19788
19987
|
async remove(id) {
|
|
19789
19988
|
const controller = this.formMap.get(id);
|
|
19790
19989
|
if (!controller) {
|
|
19791
|
-
throw new
|
|
19990
|
+
throw new RuntimeError50("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
19792
19991
|
}
|
|
19793
19992
|
await controller.remove();
|
|
19794
19993
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -20051,7 +20250,7 @@ var FormTabPanelController = class extends FormDetailController {
|
|
|
20051
20250
|
import {
|
|
20052
20251
|
awaitTimeout,
|
|
20053
20252
|
mergeInLeft as mergeInLeft2,
|
|
20054
|
-
RuntimeError as
|
|
20253
|
+
RuntimeError as RuntimeError51,
|
|
20055
20254
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
20056
20255
|
} from "@ibiz-template/core";
|
|
20057
20256
|
import { debounce as debounce2 } from "lodash-es";
|
|
@@ -20498,7 +20697,7 @@ var EditFormController = class extends FormController {
|
|
|
20498
20697
|
}
|
|
20499
20698
|
const isValid = await this.validate();
|
|
20500
20699
|
if (!isValid) {
|
|
20501
|
-
throw new
|
|
20700
|
+
throw new RuntimeError51("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
20502
20701
|
}
|
|
20503
20702
|
if (!silent) {
|
|
20504
20703
|
await this.startLoading();
|
|
@@ -20624,37 +20823,53 @@ var EditFormController = class extends FormController {
|
|
|
20624
20823
|
(item) => item.id === formItemUpdateId
|
|
20625
20824
|
);
|
|
20626
20825
|
if (!formItemUpdate) {
|
|
20627
|
-
throw new
|
|
20826
|
+
throw new RuntimeError51("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
20628
20827
|
}
|
|
20629
|
-
const {
|
|
20828
|
+
const {
|
|
20829
|
+
appDEMethodId,
|
|
20830
|
+
defiupdateDetails,
|
|
20831
|
+
customCode,
|
|
20832
|
+
scriptCode,
|
|
20833
|
+
showBusyIndicator
|
|
20834
|
+
} = formItemUpdate;
|
|
20630
20835
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
20631
|
-
|
|
20632
|
-
|
|
20633
|
-
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
|
|
20637
|
-
|
|
20638
|
-
|
|
20639
|
-
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
|
|
20643
|
-
|
|
20644
|
-
|
|
20645
|
-
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
-
params
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
20652
|
-
|
|
20653
|
-
|
|
20654
|
-
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
|
|
20836
|
+
try {
|
|
20837
|
+
if (showBusyIndicator) {
|
|
20838
|
+
this.startLoading();
|
|
20839
|
+
}
|
|
20840
|
+
let updateData;
|
|
20841
|
+
if (customCode && scriptCode) {
|
|
20842
|
+
updateData = ScriptFactory.execScriptFn(
|
|
20843
|
+
{
|
|
20844
|
+
...this.getEventArgs(),
|
|
20845
|
+
data: this.data
|
|
20846
|
+
},
|
|
20847
|
+
scriptCode,
|
|
20848
|
+
{
|
|
20849
|
+
isAsync: false
|
|
20850
|
+
}
|
|
20851
|
+
);
|
|
20852
|
+
} else {
|
|
20853
|
+
const params = { ...this.params, ...this.data.getOrigin() };
|
|
20854
|
+
const res = await this.service.updateFormItem(
|
|
20855
|
+
appDEMethodId,
|
|
20856
|
+
this.context,
|
|
20857
|
+
params
|
|
20858
|
+
);
|
|
20859
|
+
updateData = res.data;
|
|
20860
|
+
}
|
|
20861
|
+
if (updateData && (updateItems == null ? void 0 : updateItems.length)) {
|
|
20862
|
+
await Promise.all(
|
|
20863
|
+
updateItems.map(
|
|
20864
|
+
(itemName) => this.setDataValue(itemName, updateData[itemName])
|
|
20865
|
+
)
|
|
20866
|
+
);
|
|
20867
|
+
}
|
|
20868
|
+
await awaitTimeout(2e3);
|
|
20869
|
+
} finally {
|
|
20870
|
+
if (showBusyIndicator) {
|
|
20871
|
+
this.endLoading();
|
|
20872
|
+
}
|
|
20658
20873
|
}
|
|
20659
20874
|
}
|
|
20660
20875
|
/**
|
|
@@ -20668,7 +20883,7 @@ var EditFormController = class extends FormController {
|
|
|
20668
20883
|
async wfStart(args) {
|
|
20669
20884
|
const isValid = await this.validate();
|
|
20670
20885
|
if (!isValid) {
|
|
20671
|
-
throw new
|
|
20886
|
+
throw new RuntimeError51("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
20672
20887
|
}
|
|
20673
20888
|
await this.startLoading();
|
|
20674
20889
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -20699,7 +20914,7 @@ var EditFormController = class extends FormController {
|
|
|
20699
20914
|
async wfSubmit(args) {
|
|
20700
20915
|
const isValid = await this.validate();
|
|
20701
20916
|
if (!isValid) {
|
|
20702
|
-
throw new
|
|
20917
|
+
throw new RuntimeError51("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
20703
20918
|
}
|
|
20704
20919
|
await this.startLoading();
|
|
20705
20920
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -20978,7 +21193,7 @@ import {
|
|
|
20978
21193
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
20979
21194
|
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
20980
21195
|
recursiveIterate as recursiveIterate5,
|
|
20981
|
-
RuntimeError as
|
|
21196
|
+
RuntimeError as RuntimeError52,
|
|
20982
21197
|
RuntimeModelError as RuntimeModelError56
|
|
20983
21198
|
} from "@ibiz-template/core";
|
|
20984
21199
|
import { clone as clone22 } from "ramda";
|
|
@@ -21362,7 +21577,7 @@ var GridController = class extends MDControlController {
|
|
|
21362
21577
|
if (editShowMode === "row") {
|
|
21363
21578
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
21364
21579
|
if (editingRow) {
|
|
21365
|
-
throw new
|
|
21580
|
+
throw new RuntimeError52("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
21366
21581
|
}
|
|
21367
21582
|
}
|
|
21368
21583
|
const queryParams = { ...this.params };
|
|
@@ -21403,7 +21618,7 @@ var GridController = class extends MDControlController {
|
|
|
21403
21618
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
21404
21619
|
const rowState = this.findRowState(data);
|
|
21405
21620
|
if (!rowState) {
|
|
21406
|
-
throw new
|
|
21621
|
+
throw new RuntimeError52("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
21407
21622
|
}
|
|
21408
21623
|
if (!rowState.modified) {
|
|
21409
21624
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -21415,7 +21630,7 @@ var GridController = class extends MDControlController {
|
|
|
21415
21630
|
}
|
|
21416
21631
|
const isValid = await this.validate(rowState);
|
|
21417
21632
|
if (!isValid) {
|
|
21418
|
-
throw new
|
|
21633
|
+
throw new RuntimeError52("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
21419
21634
|
}
|
|
21420
21635
|
let res;
|
|
21421
21636
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -21612,7 +21827,7 @@ var GridController = class extends MDControlController {
|
|
|
21612
21827
|
}
|
|
21613
21828
|
async toggleRowEdit() {
|
|
21614
21829
|
if (!this.model.enableRowNew) {
|
|
21615
|
-
throw new
|
|
21830
|
+
throw new RuntimeError52("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
21616
21831
|
}
|
|
21617
21832
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
21618
21833
|
}
|
|
@@ -21645,7 +21860,7 @@ var GridController = class extends MDControlController {
|
|
|
21645
21860
|
} else {
|
|
21646
21861
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
21647
21862
|
if (editingRow) {
|
|
21648
|
-
throw new
|
|
21863
|
+
throw new RuntimeError52("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
21649
21864
|
}
|
|
21650
21865
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
21651
21866
|
row.cacheData = clone22(row.data);
|
|
@@ -21695,7 +21910,7 @@ var GridController = class extends MDControlController {
|
|
|
21695
21910
|
(item) => item.id === updateId
|
|
21696
21911
|
);
|
|
21697
21912
|
if (!findUpdate) {
|
|
21698
|
-
throw new
|
|
21913
|
+
throw new RuntimeError52("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
21699
21914
|
}
|
|
21700
21915
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
21701
21916
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -21850,7 +22065,7 @@ var GridController = class extends MDControlController {
|
|
|
21850
22065
|
data2 = this.getData();
|
|
21851
22066
|
}
|
|
21852
22067
|
if (data2.length === 0) {
|
|
21853
|
-
throw new
|
|
22068
|
+
throw new RuntimeError52("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
21854
22069
|
}
|
|
21855
22070
|
return formatExcelData(data2);
|
|
21856
22071
|
};
|
|
@@ -22263,7 +22478,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
22263
22478
|
};
|
|
22264
22479
|
|
|
22265
22480
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
22266
|
-
import { RuntimeError as
|
|
22481
|
+
import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
22267
22482
|
import Schema2 from "async-validator";
|
|
22268
22483
|
import { isNilOrEmpty as isNilOrEmpty9 } from "qx-util";
|
|
22269
22484
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -22412,7 +22627,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
22412
22627
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
22413
22628
|
const result = await this.validate(row);
|
|
22414
22629
|
if (!result) {
|
|
22415
|
-
throw new
|
|
22630
|
+
throw new RuntimeError53(
|
|
22416
22631
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
22417
22632
|
);
|
|
22418
22633
|
}
|
|
@@ -22770,7 +22985,7 @@ var ListController = class extends MDControlController {
|
|
|
22770
22985
|
};
|
|
22771
22986
|
|
|
22772
22987
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
22773
|
-
import { recursiveIterate as recursiveIterate6, RuntimeError as
|
|
22988
|
+
import { recursiveIterate as recursiveIterate6, RuntimeError as RuntimeError54 } from "@ibiz-template/core";
|
|
22774
22989
|
var PanelController = class extends ControlController {
|
|
22775
22990
|
constructor(model, context, params, ctx, container) {
|
|
22776
22991
|
super(model, context, params, ctx);
|
|
@@ -22894,7 +23109,7 @@ var PanelController = class extends ControlController {
|
|
|
22894
23109
|
var _a, _b;
|
|
22895
23110
|
const data = await this.prepareData();
|
|
22896
23111
|
if (!data) {
|
|
22897
|
-
throw new
|
|
23112
|
+
throw new RuntimeError54("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
22898
23113
|
}
|
|
22899
23114
|
const panelData = this.convertData(data);
|
|
22900
23115
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -24597,7 +24812,7 @@ var TreeController = class extends MDControlController {
|
|
|
24597
24812
|
};
|
|
24598
24813
|
|
|
24599
24814
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
24600
|
-
import { RuntimeError as
|
|
24815
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
24601
24816
|
|
|
24602
24817
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
24603
24818
|
var WizardPanelService = class extends ControlService {
|
|
@@ -24685,6 +24900,13 @@ var WizardPanelController = class extends ControlController {
|
|
|
24685
24900
|
* @Date: 2023-06-07 15:13:21
|
|
24686
24901
|
*/
|
|
24687
24902
|
this.stepTags = {};
|
|
24903
|
+
/**
|
|
24904
|
+
* 向导表单数据
|
|
24905
|
+
* @return {*}
|
|
24906
|
+
* @author: zhujiamin
|
|
24907
|
+
* @Date: 2023-12-12 13:43:07
|
|
24908
|
+
*/
|
|
24909
|
+
this.formData = {};
|
|
24688
24910
|
}
|
|
24689
24911
|
initState() {
|
|
24690
24912
|
super.initState();
|
|
@@ -24756,7 +24978,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24756
24978
|
const { activeFormTag } = this.state;
|
|
24757
24979
|
const controller = this.formControllers.get(activeFormTag);
|
|
24758
24980
|
if (!controller) {
|
|
24759
|
-
throw new
|
|
24981
|
+
throw new RuntimeError55("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
24760
24982
|
}
|
|
24761
24983
|
return controller;
|
|
24762
24984
|
}
|
|
@@ -24767,10 +24989,11 @@ var WizardPanelController = class extends ControlController {
|
|
|
24767
24989
|
* @author: zhujiamin
|
|
24768
24990
|
* @Date: 2023-06-07 15:14:05
|
|
24769
24991
|
*/
|
|
24770
|
-
onFormMounted(activeFormTag, event) {
|
|
24992
|
+
async onFormMounted(activeFormTag, event) {
|
|
24771
24993
|
const formController = event.ctrl;
|
|
24772
24994
|
this.formControllers.set(activeFormTag, formController);
|
|
24773
|
-
formController.load();
|
|
24995
|
+
const data = await formController.load();
|
|
24996
|
+
Object.assign(this.formData, data);
|
|
24774
24997
|
}
|
|
24775
24998
|
/**
|
|
24776
24999
|
* 表单保存后,如果上下文里没有主键,赋予主键
|
|
@@ -24781,6 +25004,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24781
25004
|
*/
|
|
24782
25005
|
onFormSaved(event) {
|
|
24783
25006
|
const data = event.data[0];
|
|
25007
|
+
Object.assign(this.formData, data);
|
|
24784
25008
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
24785
25009
|
if (!this.context[deName] && data && data.srfkey) {
|
|
24786
25010
|
this.context[deName] = data.srfkey;
|
|
@@ -24796,7 +25020,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24796
25020
|
getWizardFormByTag(tag) {
|
|
24797
25021
|
var _a;
|
|
24798
25022
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
24799
|
-
throw new
|
|
25023
|
+
throw new RuntimeError55("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
24800
25024
|
return;
|
|
24801
25025
|
}
|
|
24802
25026
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -24805,7 +25029,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24805
25029
|
}
|
|
24806
25030
|
);
|
|
24807
25031
|
if (!wizardForm) {
|
|
24808
|
-
throw new
|
|
25032
|
+
throw new RuntimeError55("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
24809
25033
|
}
|
|
24810
25034
|
return wizardForm;
|
|
24811
25035
|
}
|
|
@@ -24819,9 +25043,10 @@ var WizardPanelController = class extends ControlController {
|
|
|
24819
25043
|
var _a;
|
|
24820
25044
|
const initAction = (_a = this.model.initControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
24821
25045
|
if (initAction) {
|
|
24822
|
-
const res = await this.service.initialize(this.context, this.params);
|
|
25046
|
+
const res = await this.service.initialize(this.context, {}, this.params);
|
|
24823
25047
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
24824
25048
|
if (res.data && res.data.srfkey) {
|
|
25049
|
+
this.formData = res.data;
|
|
24825
25050
|
this.context[deName] = res.data.srfkey;
|
|
24826
25051
|
}
|
|
24827
25052
|
if (res.data && this.model.stateAppDEFieldId && res.data[this.model.stateAppDEFieldId]) {
|
|
@@ -24847,7 +25072,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24847
25072
|
* @memberof WizardPanelController
|
|
24848
25073
|
*/
|
|
24849
25074
|
async finish() {
|
|
24850
|
-
await this.service.finish(this.context, this.params);
|
|
25075
|
+
await this.service.finish(this.context, this.formData, this.params);
|
|
24851
25076
|
this.evt.emit("onFinishSuccess", void 0);
|
|
24852
25077
|
}
|
|
24853
25078
|
/**
|
|
@@ -24858,9 +25083,12 @@ var WizardPanelController = class extends ControlController {
|
|
|
24858
25083
|
* @memberof WizardPanelController
|
|
24859
25084
|
*/
|
|
24860
25085
|
async onPrevClick() {
|
|
24861
|
-
|
|
25086
|
+
let data;
|
|
25087
|
+
if (this.activeFormController.model.goBackControlAction) {
|
|
25088
|
+
data = await this.activeFormController.goBack();
|
|
25089
|
+
}
|
|
24862
25090
|
let prevTag;
|
|
24863
|
-
if (this.model.stateAppDEFieldId && data[this.model.stateAppDEFieldId]) {
|
|
25091
|
+
if (this.model.stateAppDEFieldId && data && data[this.model.stateAppDEFieldId]) {
|
|
24864
25092
|
const wizardForm = this.getWizardFormByTag(
|
|
24865
25093
|
data[this.model.stateAppDEFieldId]
|
|
24866
25094
|
);
|
|
@@ -24872,7 +25100,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24872
25100
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
24873
25101
|
}
|
|
24874
25102
|
if (!prevTag) {
|
|
24875
|
-
throw new
|
|
25103
|
+
throw new RuntimeError55("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
24876
25104
|
}
|
|
24877
25105
|
this.state.activeFormTag = prevTag;
|
|
24878
25106
|
}
|
|
@@ -24908,7 +25136,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24908
25136
|
});
|
|
24909
25137
|
const nextWizardStep = wizardSteps[index + 1];
|
|
24910
25138
|
if (!nextWizardStep) {
|
|
24911
|
-
throw new
|
|
25139
|
+
throw new RuntimeError55("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
24912
25140
|
}
|
|
24913
25141
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
24914
25142
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -24917,7 +25145,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24917
25145
|
}
|
|
24918
25146
|
}
|
|
24919
25147
|
if (!nextTag) {
|
|
24920
|
-
throw new
|
|
25148
|
+
throw new RuntimeError55("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
24921
25149
|
}
|
|
24922
25150
|
this.state.activeFormTag = nextTag;
|
|
24923
25151
|
this.tagHistory.push(nextTag);
|
|
@@ -25260,7 +25488,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
25260
25488
|
};
|
|
25261
25489
|
|
|
25262
25490
|
// src/controller/control/kanban/kanban.controller.ts
|
|
25263
|
-
import { RuntimeError as
|
|
25491
|
+
import { RuntimeError as RuntimeError56, RuntimeModelError as RuntimeModelError60 } from "@ibiz-template/core";
|
|
25264
25492
|
import { isNil as isNil25 } from "ramda";
|
|
25265
25493
|
|
|
25266
25494
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -25348,7 +25576,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
25348
25576
|
} else {
|
|
25349
25577
|
const toNum = Number(sortValue);
|
|
25350
25578
|
if (Number.isNaN(toNum)) {
|
|
25351
|
-
throw new
|
|
25579
|
+
throw new RuntimeError56(
|
|
25352
25580
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
25353
25581
|
);
|
|
25354
25582
|
}
|
|
@@ -25364,7 +25592,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
25364
25592
|
}
|
|
25365
25593
|
handleDataGroup() {
|
|
25366
25594
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
25367
|
-
throw new
|
|
25595
|
+
throw new RuntimeError56("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
25368
25596
|
}
|
|
25369
25597
|
return super.handleDataGroup();
|
|
25370
25598
|
}
|
|
@@ -25858,7 +26086,7 @@ var TreeGridService = class extends GridService {
|
|
|
25858
26086
|
};
|
|
25859
26087
|
|
|
25860
26088
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
25861
|
-
import { RuntimeError as
|
|
26089
|
+
import { RuntimeError as RuntimeError57 } from "@ibiz-template/core";
|
|
25862
26090
|
import { createUUID as createUUID11 } from "qx-util";
|
|
25863
26091
|
|
|
25864
26092
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -26074,7 +26302,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
26074
26302
|
(item) => item.id === id
|
|
26075
26303
|
);
|
|
26076
26304
|
if (panelUiItemIndex < 0) {
|
|
26077
|
-
throw new
|
|
26305
|
+
throw new RuntimeError57("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
26078
26306
|
}
|
|
26079
26307
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
26080
26308
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -26580,16 +26808,398 @@ var ReportPanelController = class extends ControlController {
|
|
|
26580
26808
|
}
|
|
26581
26809
|
};
|
|
26582
26810
|
|
|
26811
|
+
// src/controller/control/gantt/gantt.controller.ts
|
|
26812
|
+
import { recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
|
|
26813
|
+
|
|
26583
26814
|
// src/controller/control/gantt/gantt.service.ts
|
|
26584
|
-
|
|
26815
|
+
import { ModelError as ModelError30 } from "@ibiz-template/core";
|
|
26816
|
+
var GanttService = class extends TreeService {
|
|
26817
|
+
/**
|
|
26818
|
+
* 获取子节点数据
|
|
26819
|
+
*
|
|
26820
|
+
* @author tony001
|
|
26821
|
+
* @date 2023-12-11 18:12:58
|
|
26822
|
+
* @param {(IGanttNodeData | undefined)} parentNodeData
|
|
26823
|
+
* @param {TreeFetchOpts} opts
|
|
26824
|
+
* @return {*} {(Promise<IGanttNodeData[] | undefined>)}
|
|
26825
|
+
*/
|
|
26826
|
+
async fetchGanttChildNodes(parentNodeData, opts) {
|
|
26827
|
+
const { hasQuery } = opts;
|
|
26828
|
+
let childrenNodes = [];
|
|
26829
|
+
if (!parentNodeData) {
|
|
26830
|
+
const rootNode = getRootNode(this.model);
|
|
26831
|
+
childrenNodes = await this.fetchGanttNodeDatasByType(
|
|
26832
|
+
rootNode,
|
|
26833
|
+
void 0,
|
|
26834
|
+
void 0,
|
|
26835
|
+
opts
|
|
26836
|
+
);
|
|
26837
|
+
} else {
|
|
26838
|
+
const childNodeRSs = getChildNodeRSs(this.model, {
|
|
26839
|
+
parentId: parentNodeData.nodeId,
|
|
26840
|
+
hasQuery
|
|
26841
|
+
});
|
|
26842
|
+
if (childNodeRSs.length === 0) {
|
|
26843
|
+
return;
|
|
26844
|
+
}
|
|
26845
|
+
const results = await handleAllSettled(
|
|
26846
|
+
childNodeRSs.map(async (childNodeRS) => {
|
|
26847
|
+
const childNode = getTreeNode(
|
|
26848
|
+
this.model,
|
|
26849
|
+
childNodeRS.childDETreeNodeId
|
|
26850
|
+
);
|
|
26851
|
+
return this.fetchGanttNodeDatasByType(
|
|
26852
|
+
childNode,
|
|
26853
|
+
childNodeRS,
|
|
26854
|
+
parentNodeData,
|
|
26855
|
+
opts
|
|
26856
|
+
);
|
|
26857
|
+
}),
|
|
26858
|
+
false
|
|
26859
|
+
);
|
|
26860
|
+
results.forEach((result) => {
|
|
26861
|
+
childrenNodes.push(...result);
|
|
26862
|
+
});
|
|
26863
|
+
}
|
|
26864
|
+
return childrenNodes;
|
|
26865
|
+
}
|
|
26866
|
+
/**
|
|
26867
|
+
* 通过节点类型加载节点数据
|
|
26868
|
+
*
|
|
26869
|
+
* @author tony001
|
|
26870
|
+
* @date 2023-12-11 18:12:35
|
|
26871
|
+
* @protected
|
|
26872
|
+
* @param {IDETreeNode} nodeModel
|
|
26873
|
+
* @param {(IDETreeNodeRS | undefined)} nodeRS
|
|
26874
|
+
* @param {(ITreeNodeData | undefined)} parentNodeData
|
|
26875
|
+
* @param {TreeFetchOpts} opts
|
|
26876
|
+
* @return {*} {Promise<IGanttNodeData[]>}
|
|
26877
|
+
*/
|
|
26878
|
+
async fetchGanttNodeDatasByType(nodeModel, nodeRS, parentNodeData, opts) {
|
|
26879
|
+
const leaf = getChildNodeRSs(this.model, {
|
|
26880
|
+
parentId: nodeModel.id,
|
|
26881
|
+
hasQuery: opts.hasQuery
|
|
26882
|
+
}).length === 0;
|
|
26883
|
+
const tempOpts = { ...opts, leaf };
|
|
26884
|
+
let result = [];
|
|
26885
|
+
switch (nodeModel.treeNodeType) {
|
|
26886
|
+
case "STATIC":
|
|
26887
|
+
{
|
|
26888
|
+
const nodeData = await this.getStaticGanttNodeData(
|
|
26889
|
+
nodeModel,
|
|
26890
|
+
nodeRS,
|
|
26891
|
+
parentNodeData,
|
|
26892
|
+
tempOpts
|
|
26893
|
+
);
|
|
26894
|
+
result = [nodeData];
|
|
26895
|
+
}
|
|
26896
|
+
break;
|
|
26897
|
+
case "DE":
|
|
26898
|
+
result = await this.getDEGanttNodeDatas(
|
|
26899
|
+
nodeModel,
|
|
26900
|
+
nodeRS,
|
|
26901
|
+
parentNodeData,
|
|
26902
|
+
tempOpts
|
|
26903
|
+
);
|
|
26904
|
+
break;
|
|
26905
|
+
case "CODELIST":
|
|
26906
|
+
result = await this.getCodeListGanttNodeDatas(
|
|
26907
|
+
nodeModel,
|
|
26908
|
+
nodeRS,
|
|
26909
|
+
parentNodeData,
|
|
26910
|
+
tempOpts
|
|
26911
|
+
);
|
|
26912
|
+
break;
|
|
26913
|
+
default:
|
|
26914
|
+
throw new ModelError30(
|
|
26915
|
+
nodeModel,
|
|
26916
|
+
"".concat(nodeModel.treeNodeType, "\u8282\u70B9\u7C7B\u578B\u672A\u652F\u6301")
|
|
26917
|
+
);
|
|
26918
|
+
}
|
|
26919
|
+
const { expandFirstOnly, expanded, rootNode } = nodeModel;
|
|
26920
|
+
const isExpandedRoot = rootNode && !this.model.rootVisible;
|
|
26921
|
+
if (!leaf) {
|
|
26922
|
+
await Promise.all(
|
|
26923
|
+
result.map(async (childNode, index) => {
|
|
26924
|
+
if (expanded && // 全展开合只展开首节点expanded都为true
|
|
26925
|
+
(!expandFirstOnly || expandFirstOnly && index === 0) || isExpandedRoot) {
|
|
26926
|
+
const subChildrenNodes = await this.fetchGanttChildNodes(
|
|
26927
|
+
childNode,
|
|
26928
|
+
opts
|
|
26929
|
+
);
|
|
26930
|
+
childNode.children = subChildrenNodes;
|
|
26931
|
+
}
|
|
26932
|
+
})
|
|
26933
|
+
);
|
|
26934
|
+
}
|
|
26935
|
+
return result;
|
|
26936
|
+
}
|
|
26937
|
+
/**
|
|
26938
|
+
* 获取静态节点数据
|
|
26939
|
+
*
|
|
26940
|
+
* @author tony001
|
|
26941
|
+
* @date 2023-12-11 18:12:06
|
|
26942
|
+
* @protected
|
|
26943
|
+
* @param {IDETreeNode} nodeModel
|
|
26944
|
+
* @param {(IDETreeNodeRS | undefined)} nodeRS
|
|
26945
|
+
* @param {(IGanttNodeData | undefined)} parentNodeData
|
|
26946
|
+
* @param {TreeFetchOpts} opts
|
|
26947
|
+
* @return {*} {Promise<IGanttNodeData>}
|
|
26948
|
+
*/
|
|
26949
|
+
async getStaticGanttNodeData(nodeModel, nodeRS, parentNodeData, opts) {
|
|
26950
|
+
const nodeData = new GanttStaticNodeData(
|
|
26951
|
+
this.model,
|
|
26952
|
+
nodeModel,
|
|
26953
|
+
parentNodeData,
|
|
26954
|
+
{ parentValueLevel: nodeRS == null ? void 0 : nodeRS.parentValueLevel, leaf: !!opts.leaf }
|
|
26955
|
+
);
|
|
26956
|
+
return nodeData;
|
|
26957
|
+
}
|
|
26958
|
+
/**
|
|
26959
|
+
* 获取实体数据集数据
|
|
26960
|
+
*
|
|
26961
|
+
* @author tony001
|
|
26962
|
+
* @date 2023-12-11 18:12:23
|
|
26963
|
+
* @protected
|
|
26964
|
+
* @param {IDETreeDataSetNode} nodeModel
|
|
26965
|
+
* @param {(IDETreeNodeRS | undefined)} nodeRS
|
|
26966
|
+
* @param {(IGanttNodeData | undefined)} parentNodeData
|
|
26967
|
+
* @param {TreeFetchOpts} opts
|
|
26968
|
+
* @return {*} {Promise<IGanttNodeData[]>}
|
|
26969
|
+
*/
|
|
26970
|
+
async getDEGanttNodeDatas(nodeModel, nodeRS, parentNodeData, opts) {
|
|
26971
|
+
const { appDEDataSetId, appDataEntityId } = nodeModel;
|
|
26972
|
+
const { context, params, navContext, navParams } = nodeRS ? this.getNodeRSFilterParams(nodeRS, parentNodeData, opts) : {
|
|
26973
|
+
context: opts.context,
|
|
26974
|
+
params: opts.params,
|
|
26975
|
+
navContext: {},
|
|
26976
|
+
navParams: {}
|
|
26977
|
+
};
|
|
26978
|
+
params.size = nodeModel.maxSize || 1e3;
|
|
26979
|
+
if (nodeModel.sortAppDEFieldId) {
|
|
26980
|
+
Object.assign(params, {
|
|
26981
|
+
sort: "".concat(nodeModel.sortAppDEFieldId.toLowerCase(), ",").concat(nodeModel.sortDir ? nodeModel.sortDir.toLowerCase() : "asc")
|
|
26982
|
+
});
|
|
26983
|
+
}
|
|
26984
|
+
const response = await this.app.deService.exec(
|
|
26985
|
+
appDataEntityId,
|
|
26986
|
+
appDEDataSetId,
|
|
26987
|
+
context,
|
|
26988
|
+
params
|
|
26989
|
+
);
|
|
26990
|
+
if (response.data.length) {
|
|
26991
|
+
const nodeDatas = response.data.map((item) => {
|
|
26992
|
+
return new GanttDataSetNodeData(this.model, nodeModel, parentNodeData, {
|
|
26993
|
+
data: item,
|
|
26994
|
+
leaf: !!opts.leaf,
|
|
26995
|
+
navContext,
|
|
26996
|
+
navParams
|
|
26997
|
+
});
|
|
26998
|
+
});
|
|
26999
|
+
return nodeDatas;
|
|
27000
|
+
}
|
|
27001
|
+
return [];
|
|
27002
|
+
}
|
|
27003
|
+
/**
|
|
27004
|
+
* 获取代码表节点数据
|
|
27005
|
+
*
|
|
27006
|
+
* @author tony001
|
|
27007
|
+
* @date 2023-12-11 18:12:35
|
|
27008
|
+
* @protected
|
|
27009
|
+
* @param {IDETreeCodeListNode} nodeModel
|
|
27010
|
+
* @param {(IDETreeNodeRS | undefined)} nodeRS
|
|
27011
|
+
* @param {(IGanttNodeData | undefined)} parentNodeData
|
|
27012
|
+
* @param {TreeFetchOpts} opts
|
|
27013
|
+
* @return {*} {Promise<IGanttNodeData[]>}
|
|
27014
|
+
*/
|
|
27015
|
+
async getCodeListGanttNodeDatas(nodeModel, nodeRS, parentNodeData, opts) {
|
|
27016
|
+
const { context, params, navContext, navParams } = nodeRS ? this.getNodeRSFilterParams(nodeRS, parentNodeData, opts) : {
|
|
27017
|
+
context: opts.context,
|
|
27018
|
+
params: opts.params,
|
|
27019
|
+
navContext: {},
|
|
27020
|
+
navParams: {}
|
|
27021
|
+
};
|
|
27022
|
+
const items = await this.app.codeList.get(
|
|
27023
|
+
nodeModel.codeListId,
|
|
27024
|
+
context,
|
|
27025
|
+
params
|
|
27026
|
+
);
|
|
27027
|
+
if (items.length) {
|
|
27028
|
+
const nodeDatas = items.map((item) => {
|
|
27029
|
+
return new GanttCodeListNodeData(
|
|
27030
|
+
this.model,
|
|
27031
|
+
nodeModel,
|
|
27032
|
+
parentNodeData,
|
|
27033
|
+
{
|
|
27034
|
+
data: item,
|
|
27035
|
+
leaf: !!opts.leaf,
|
|
27036
|
+
navContext,
|
|
27037
|
+
navParams
|
|
27038
|
+
}
|
|
27039
|
+
);
|
|
27040
|
+
});
|
|
27041
|
+
return nodeDatas;
|
|
27042
|
+
}
|
|
27043
|
+
return [];
|
|
27044
|
+
}
|
|
26585
27045
|
};
|
|
26586
27046
|
|
|
26587
27047
|
// src/controller/control/gantt/gantt.controller.ts
|
|
26588
27048
|
var GanttController = class extends MDControlController {
|
|
27049
|
+
constructor() {
|
|
27050
|
+
super(...arguments);
|
|
27051
|
+
/**
|
|
27052
|
+
* 上下文菜单控制器
|
|
27053
|
+
*
|
|
27054
|
+
* @author tony001
|
|
27055
|
+
* @date 2023-12-11 16:12:57
|
|
27056
|
+
* @type {{ [p: string]: ContextMenuController }}
|
|
27057
|
+
*/
|
|
27058
|
+
this.contextMenus = {};
|
|
27059
|
+
/**
|
|
27060
|
+
* 是否启用快速搜索
|
|
27061
|
+
*
|
|
27062
|
+
* @author tony001
|
|
27063
|
+
* @date 2023-12-11 16:12:13
|
|
27064
|
+
* @type {boolean}
|
|
27065
|
+
*/
|
|
27066
|
+
this.enableQuickSearch = false;
|
|
27067
|
+
}
|
|
27068
|
+
/**
|
|
27069
|
+
* 初始化状态
|
|
27070
|
+
*
|
|
27071
|
+
* @author tony001
|
|
27072
|
+
* @date 2023-12-11 16:12:20
|
|
27073
|
+
* @protected
|
|
27074
|
+
*/
|
|
27075
|
+
initState() {
|
|
27076
|
+
super.initState();
|
|
27077
|
+
this.state.size = 0;
|
|
27078
|
+
this.state.query = "";
|
|
27079
|
+
}
|
|
26589
27080
|
async onCreated() {
|
|
27081
|
+
var _a, _b;
|
|
26590
27082
|
await super.onCreated();
|
|
27083
|
+
if ((_a = this.model.detreeNodes) == null ? void 0 : _a[0].enableQuickSearch) {
|
|
27084
|
+
this.enableQuickSearch = true;
|
|
27085
|
+
}
|
|
27086
|
+
if (this.dataEntity) {
|
|
27087
|
+
const searchFields = (_b = this.dataEntity.appDEFields) == null ? void 0 : _b.filter((field) => {
|
|
27088
|
+
return field.enableQuickSearch;
|
|
27089
|
+
});
|
|
27090
|
+
const placeHolders = [];
|
|
27091
|
+
searchFields == null ? void 0 : searchFields.forEach((searchField) => {
|
|
27092
|
+
if ((searchField == null ? void 0 : searchField.lnlanguageRes) && searchField.lnlanguageRes.lanResTag) {
|
|
27093
|
+
placeHolders.push(
|
|
27094
|
+
ibiz.i18n.t(
|
|
27095
|
+
searchField.lnlanguageRes.lanResTag,
|
|
27096
|
+
searchField.logicName
|
|
27097
|
+
)
|
|
27098
|
+
);
|
|
27099
|
+
} else if (searchField == null ? void 0 : searchField.logicName) {
|
|
27100
|
+
placeHolders.push(searchField.logicName);
|
|
27101
|
+
}
|
|
27102
|
+
});
|
|
27103
|
+
if (placeHolders.length > 0) {
|
|
27104
|
+
this.state.placeHolder = placeHolders.join("\u3001");
|
|
27105
|
+
}
|
|
27106
|
+
}
|
|
26591
27107
|
this.service = new GanttService(this.model);
|
|
26592
27108
|
await this.service.init(this.context);
|
|
27109
|
+
this.model.detreeNodes.forEach((node) => {
|
|
27110
|
+
var _a2, _b2;
|
|
27111
|
+
if ((_b2 = (_a2 = node.decontextMenu) == null ? void 0 : _a2.detoolbarItems) == null ? void 0 : _b2.length) {
|
|
27112
|
+
this.contextMenus[node.decontextMenu.id] = new ContextMenuController(
|
|
27113
|
+
node.decontextMenu,
|
|
27114
|
+
this.context,
|
|
27115
|
+
this.params,
|
|
27116
|
+
this.ctx
|
|
27117
|
+
);
|
|
27118
|
+
}
|
|
27119
|
+
});
|
|
27120
|
+
await Promise.all(
|
|
27121
|
+
Object.values(this.contextMenus).map((menu) => menu.created())
|
|
27122
|
+
);
|
|
27123
|
+
}
|
|
27124
|
+
/**
|
|
27125
|
+
* 加载
|
|
27126
|
+
*
|
|
27127
|
+
* @author tony001
|
|
27128
|
+
* @date 2023-12-12 11:12:08
|
|
27129
|
+
* @param {MDCtrlLoadParams} [args={}]
|
|
27130
|
+
* @return {*} {Promise<IGanttNodeData[]>}
|
|
27131
|
+
*/
|
|
27132
|
+
async load(args = {}) {
|
|
27133
|
+
const isInitialLoad = args.isInitialLoad === true;
|
|
27134
|
+
if (isInitialLoad) {
|
|
27135
|
+
await this.startLoading();
|
|
27136
|
+
}
|
|
27137
|
+
let nodes;
|
|
27138
|
+
try {
|
|
27139
|
+
nodes = await this.loadNodes();
|
|
27140
|
+
} finally {
|
|
27141
|
+
if (isInitialLoad) {
|
|
27142
|
+
await this.endLoading();
|
|
27143
|
+
}
|
|
27144
|
+
}
|
|
27145
|
+
await this.afterLoad(args, nodes);
|
|
27146
|
+
this.state.isLoaded = true;
|
|
27147
|
+
await this.evt.emit("onLoadSuccess", {
|
|
27148
|
+
isInitialLoad
|
|
27149
|
+
});
|
|
27150
|
+
return nodes;
|
|
27151
|
+
}
|
|
27152
|
+
/**
|
|
27153
|
+
* 获取查询参数
|
|
27154
|
+
*
|
|
27155
|
+
* @author tony001
|
|
27156
|
+
* @date 2023-12-12 11:12:22
|
|
27157
|
+
* @param {IParams} [extraParams]
|
|
27158
|
+
* @return {*} {Promise<IParams>}
|
|
27159
|
+
*/
|
|
27160
|
+
async getFetchParams(extraParams) {
|
|
27161
|
+
const params = await super.getFetchParams(extraParams);
|
|
27162
|
+
if (this.state.query) {
|
|
27163
|
+
params.query = this.state.query;
|
|
27164
|
+
}
|
|
27165
|
+
return params;
|
|
27166
|
+
}
|
|
27167
|
+
/**
|
|
27168
|
+
* 加载节点
|
|
27169
|
+
*
|
|
27170
|
+
* @author tony001
|
|
27171
|
+
* @date 2023-12-12 11:12:33
|
|
27172
|
+
* @param {IGanttNodeData} [parentNode]
|
|
27173
|
+
* @return {*} {Promise<IGanttNodeData[]>}
|
|
27174
|
+
*/
|
|
27175
|
+
async loadNodes(parentNode) {
|
|
27176
|
+
const params = await this.getFetchParams();
|
|
27177
|
+
const hasQuery = !!params.query;
|
|
27178
|
+
this.state.isLoading = true;
|
|
27179
|
+
let nodes;
|
|
27180
|
+
try {
|
|
27181
|
+
nodes = await this.service.fetchGanttChildNodes(parentNode, {
|
|
27182
|
+
context: this.context.clone(),
|
|
27183
|
+
params,
|
|
27184
|
+
hasQuery,
|
|
27185
|
+
defaultExpandedKeys: []
|
|
27186
|
+
}) || [];
|
|
27187
|
+
} finally {
|
|
27188
|
+
this.state.isLoading = false;
|
|
27189
|
+
}
|
|
27190
|
+
if (parentNode) {
|
|
27191
|
+
parentNode.children = nodes;
|
|
27192
|
+
} else {
|
|
27193
|
+
this.state.rootNodes = nodes;
|
|
27194
|
+
}
|
|
27195
|
+
this.state.items = [];
|
|
27196
|
+
recursiveIterate10(
|
|
27197
|
+
{ children: this.state.rootNodes },
|
|
27198
|
+
(node) => {
|
|
27199
|
+
this.state.items.push(node);
|
|
27200
|
+
}
|
|
27201
|
+
);
|
|
27202
|
+
return nodes;
|
|
26593
27203
|
}
|
|
26594
27204
|
};
|
|
26595
27205
|
|
|
@@ -26789,7 +27399,7 @@ var AppHub = class {
|
|
|
26789
27399
|
this.registerAppView(appView);
|
|
26790
27400
|
return appView;
|
|
26791
27401
|
}
|
|
26792
|
-
throw new
|
|
27402
|
+
throw new RuntimeError58("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
26793
27403
|
}
|
|
26794
27404
|
/**
|
|
26795
27405
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -26820,7 +27430,7 @@ var AppHub = class {
|
|
|
26820
27430
|
this.registerAppDataEntity(entity, appId);
|
|
26821
27431
|
return entity;
|
|
26822
27432
|
}
|
|
26823
|
-
throw new
|
|
27433
|
+
throw new RuntimeError58("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
26824
27434
|
}
|
|
26825
27435
|
/**
|
|
26826
27436
|
* 新建 hub 应用
|
|
@@ -26835,7 +27445,7 @@ var AppHub = class {
|
|
|
26835
27445
|
return this.appMap.get(id);
|
|
26836
27446
|
}
|
|
26837
27447
|
if (!this.modelLoaderProvider) {
|
|
26838
|
-
throw new
|
|
27448
|
+
throw new RuntimeError58("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
|
|
26839
27449
|
}
|
|
26840
27450
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
26841
27451
|
const app = new Application(appModel);
|
|
@@ -26935,7 +27545,7 @@ var EngineFactory = class {
|
|
|
26935
27545
|
};
|
|
26936
27546
|
|
|
26937
27547
|
// src/engine/view-base.engine.ts
|
|
26938
|
-
import { RuntimeError as
|
|
27548
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
26939
27549
|
var ViewEngineBase = class {
|
|
26940
27550
|
/**
|
|
26941
27551
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -27123,7 +27733,7 @@ var ViewEngineBase = class {
|
|
|
27123
27733
|
const { appDataEntityId } = this.view.model;
|
|
27124
27734
|
const { evt, context, params } = this.view;
|
|
27125
27735
|
if (!appDataEntityId) {
|
|
27126
|
-
throw new
|
|
27736
|
+
throw new RuntimeError59("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
27127
27737
|
}
|
|
27128
27738
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
27129
27739
|
const res = await app.deService.exec(
|
|
@@ -27485,16 +28095,16 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
27485
28095
|
// src/utils/error-handler/default-error-handler.ts
|
|
27486
28096
|
import {
|
|
27487
28097
|
RuntimeModelError as RuntimeModelError62,
|
|
27488
|
-
ModelError as
|
|
27489
|
-
HttpError as
|
|
28098
|
+
ModelError as ModelError31,
|
|
28099
|
+
HttpError as HttpError5,
|
|
27490
28100
|
NoticeError as NoticeError2,
|
|
27491
|
-
RuntimeError as
|
|
28101
|
+
RuntimeError as RuntimeError60
|
|
27492
28102
|
} from "@ibiz-template/core";
|
|
27493
28103
|
var DefaultErrorHandler = class {
|
|
27494
28104
|
handle(error) {
|
|
27495
|
-
if (error instanceof RuntimeModelError62 || error instanceof
|
|
28105
|
+
if (error instanceof RuntimeModelError62 || error instanceof ModelError31) {
|
|
27496
28106
|
ibiz.message.error(error.message, 10, true);
|
|
27497
|
-
} else if (error instanceof
|
|
28107
|
+
} else if (error instanceof HttpError5) {
|
|
27498
28108
|
if (error.status === 401) {
|
|
27499
28109
|
ibiz.message.error("\u6CA1\u6709\u6CE8\u518C\u65E0\u6743\u9650\u9519\u8BEF\u5904\u7406\u5668");
|
|
27500
28110
|
} else {
|
|
@@ -27506,7 +28116,7 @@ var DefaultErrorHandler = class {
|
|
|
27506
28116
|
}
|
|
27507
28117
|
} else if (error instanceof NoticeError2) {
|
|
27508
28118
|
ibiz.message.error(error.message, error.duration, error.duration === 0);
|
|
27509
|
-
} else if (error instanceof
|
|
28119
|
+
} else if (error instanceof RuntimeError60) {
|
|
27510
28120
|
ibiz.message.error(error.message, 10, true);
|
|
27511
28121
|
}
|
|
27512
28122
|
ibiz.log.error(error);
|
|
@@ -27648,7 +28258,7 @@ var GlobalUtil = class {
|
|
|
27648
28258
|
};
|
|
27649
28259
|
|
|
27650
28260
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
27651
|
-
import { RuntimeError as
|
|
28261
|
+
import { RuntimeError as RuntimeError61 } from "@ibiz-template/core";
|
|
27652
28262
|
var LogicExecutor = class {
|
|
27653
28263
|
/**
|
|
27654
28264
|
* @author lxm
|
|
@@ -27669,7 +28279,7 @@ var LogicExecutor = class {
|
|
|
27669
28279
|
*/
|
|
27670
28280
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27671
28281
|
execute(_executeParams) {
|
|
27672
|
-
throw new
|
|
28282
|
+
throw new RuntimeError61("Method not implemented.");
|
|
27673
28283
|
}
|
|
27674
28284
|
/**
|
|
27675
28285
|
* 销毁方法
|
|
@@ -27681,7 +28291,7 @@ var LogicExecutor = class {
|
|
|
27681
28291
|
};
|
|
27682
28292
|
|
|
27683
28293
|
// src/logic-scheduler/executor/logic-executor-factory.ts
|
|
27684
|
-
import { ModelError as
|
|
28294
|
+
import { ModelError as ModelError32 } from "@ibiz-template/core";
|
|
27685
28295
|
var LogicExecutorFactory = class {
|
|
27686
28296
|
constructor() {
|
|
27687
28297
|
/**
|
|
@@ -27711,7 +28321,7 @@ var LogicExecutorFactory = class {
|
|
|
27711
28321
|
createExecutor(logic, scheduler) {
|
|
27712
28322
|
const constructor = this.constructorMap.get(logic.logicType);
|
|
27713
28323
|
if (!constructor) {
|
|
27714
|
-
throw new
|
|
28324
|
+
throw new ModelError32(logic, "\u903B\u8F91\u7C7B\u578B ".concat(logic.logicType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
27715
28325
|
}
|
|
27716
28326
|
return constructor(logic, scheduler);
|
|
27717
28327
|
}
|
|
@@ -28029,7 +28639,7 @@ var ViewLogicScheduler = class extends LogicScheduler {
|
|
|
28029
28639
|
};
|
|
28030
28640
|
|
|
28031
28641
|
// src/logic-scheduler/trigger/logic-trigger-factory.ts
|
|
28032
|
-
import { ModelError as
|
|
28642
|
+
import { ModelError as ModelError33 } from "@ibiz-template/core";
|
|
28033
28643
|
var LogicTriggerFactory = class {
|
|
28034
28644
|
constructor() {
|
|
28035
28645
|
/**
|
|
@@ -28059,7 +28669,7 @@ var LogicTriggerFactory = class {
|
|
|
28059
28669
|
createTrigger(logic, scheduler) {
|
|
28060
28670
|
const constructor = this.constructorMap.get(logic.triggerType);
|
|
28061
28671
|
if (!constructor) {
|
|
28062
|
-
throw new
|
|
28672
|
+
throw new ModelError33(logic, "\u89E6\u53D1\u5668\u7C7B\u578B ".concat(logic.triggerType, " \u6682\u672A\u652F\u6301\uFF01"));
|
|
28063
28673
|
}
|
|
28064
28674
|
return constructor(logic, scheduler);
|
|
28065
28675
|
}
|
|
@@ -28106,7 +28716,7 @@ var LogicSchedulerCenter = class {
|
|
|
28106
28716
|
};
|
|
28107
28717
|
|
|
28108
28718
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
28109
|
-
import { RuntimeError as
|
|
28719
|
+
import { RuntimeError as RuntimeError62 } from "@ibiz-template/core";
|
|
28110
28720
|
var LogicTrigger = class {
|
|
28111
28721
|
/**
|
|
28112
28722
|
* @author lxm
|
|
@@ -28166,7 +28776,7 @@ var LogicTrigger = class {
|
|
|
28166
28776
|
if (this.executor) {
|
|
28167
28777
|
return this.executor.execute(executeParams);
|
|
28168
28778
|
}
|
|
28169
|
-
throw new
|
|
28779
|
+
throw new RuntimeError62("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
28170
28780
|
}
|
|
28171
28781
|
/**
|
|
28172
28782
|
* 销毁方法
|
|
@@ -28183,12 +28793,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
28183
28793
|
};
|
|
28184
28794
|
|
|
28185
28795
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
28186
|
-
import { RuntimeError as
|
|
28796
|
+
import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
|
|
28187
28797
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
28188
28798
|
bindExecutor(executor) {
|
|
28189
28799
|
super.bindExecutor(executor);
|
|
28190
28800
|
if (this.executor.type !== "SCRIPT") {
|
|
28191
|
-
throw new
|
|
28801
|
+
throw new RuntimeError63(
|
|
28192
28802
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
28193
28803
|
);
|
|
28194
28804
|
}
|
|
@@ -28224,7 +28834,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
28224
28834
|
};
|
|
28225
28835
|
|
|
28226
28836
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
28227
|
-
import { RuntimeError as
|
|
28837
|
+
import { RuntimeError as RuntimeError64, RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
|
|
28228
28838
|
var TimerTrigger = class extends LogicTrigger {
|
|
28229
28839
|
constructor() {
|
|
28230
28840
|
super(...arguments);
|
|
@@ -28236,7 +28846,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
28236
28846
|
}
|
|
28237
28847
|
this.timer = setInterval(() => {
|
|
28238
28848
|
if (!this.scheduler.defaultParamsCb) {
|
|
28239
|
-
throw new
|
|
28849
|
+
throw new RuntimeError64("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
28240
28850
|
}
|
|
28241
28851
|
const params = this.scheduler.defaultParamsCb();
|
|
28242
28852
|
this.executor.execute(params);
|
|
@@ -28252,8 +28862,8 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
28252
28862
|
|
|
28253
28863
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
28254
28864
|
import {
|
|
28255
|
-
ModelError as
|
|
28256
|
-
RuntimeError as
|
|
28865
|
+
ModelError as ModelError34,
|
|
28866
|
+
RuntimeError as RuntimeError65,
|
|
28257
28867
|
RuntimeModelError as RuntimeModelError65
|
|
28258
28868
|
} from "@ibiz-template/core";
|
|
28259
28869
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -28291,7 +28901,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
28291
28901
|
const { context, params, ...rest } = parameters;
|
|
28292
28902
|
const { data } = parameters;
|
|
28293
28903
|
if (!(data == null ? void 0 : data[0])) {
|
|
28294
|
-
throw new
|
|
28904
|
+
throw new RuntimeError65("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
28295
28905
|
}
|
|
28296
28906
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
28297
28907
|
let openViewRef;
|
|
@@ -28351,7 +28961,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
28351
28961
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
28352
28962
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
28353
28963
|
if (!findView) {
|
|
28354
|
-
throw new
|
|
28964
|
+
throw new RuntimeError65(
|
|
28355
28965
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
28356
28966
|
);
|
|
28357
28967
|
}
|
|
@@ -28394,7 +29004,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
28394
29004
|
);
|
|
28395
29005
|
}
|
|
28396
29006
|
} else if (batchAddOnly) {
|
|
28397
|
-
throw new
|
|
29007
|
+
throw new ModelError34(appUILogic, "batchAddOnly\u6682\u672A\u652F\u6301");
|
|
28398
29008
|
} else {
|
|
28399
29009
|
newViewRef = newDataAppView;
|
|
28400
29010
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
@@ -28470,7 +29080,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
28470
29080
|
}
|
|
28471
29081
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
28472
29082
|
if (!selectData) {
|
|
28473
|
-
throw new
|
|
29083
|
+
throw new RuntimeError65("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
28474
29084
|
}
|
|
28475
29085
|
const indexType = selectData.srfkey;
|
|
28476
29086
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -28480,7 +29090,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
28480
29090
|
}
|
|
28481
29091
|
);
|
|
28482
29092
|
if (!findView) {
|
|
28483
|
-
throw new
|
|
29093
|
+
throw new RuntimeError65(
|
|
28484
29094
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
28485
29095
|
);
|
|
28486
29096
|
}
|
|
@@ -28872,8 +29482,11 @@ export {
|
|
|
28872
29482
|
FormTabPanelState,
|
|
28873
29483
|
FrontUIActionProvider,
|
|
28874
29484
|
GRIDCOLUMN_PROVIDER_PREFIX,
|
|
29485
|
+
GanttCodeListNodeData,
|
|
28875
29486
|
GanttController,
|
|
29487
|
+
GanttDataSetNodeData,
|
|
28876
29488
|
GanttService,
|
|
29489
|
+
GanttStaticNodeData,
|
|
28877
29490
|
GridColumnController,
|
|
28878
29491
|
GridController,
|
|
28879
29492
|
GridFieldColumnController,
|