@ibiz-template/runtime 0.6.2-dev.0 → 0.6.3
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 +537 -199
- package/dist/index.system.min.js +1 -1
- package/out/constant/view-mode.d.ts +4 -0
- package/out/constant/view-mode.d.ts.map +1 -1
- package/out/constant/view-mode.js +4 -0
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +20 -15
- package/out/controller/common/control/md-control.controller.d.ts +3 -4
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +14 -13
- package/out/controller/control/calendar/calendar.controller.d.ts +31 -1
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +67 -0
- package/out/controller/control/caption-bar/caption-bar.controller.d.ts +7 -0
- package/out/controller/control/caption-bar/caption-bar.controller.d.ts.map +1 -1
- package/out/controller/control/caption-bar/caption-bar.controller.js +14 -3
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +1 -0
- 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 +6 -3
- package/out/controller/control/form/form/form.controller.d.ts +19 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +39 -2
- package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts +8 -0
- package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-tab-panel/form-tab-panel.controller.js +13 -0
- package/out/controller/control/gantt/gantt.controller.d.ts +48 -1
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +90 -7
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +6 -2
- package/out/controller/control/tree/tree.controller.d.ts +4 -4
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +22 -8
- package/out/controller/control/tree/tree.service.d.ts +22 -0
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree/tree.service.js +30 -0
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -1
- package/out/controller/notification/internal-message.controller.js +11 -2
- package/out/de-logic/de-logic-param/de-logic-param.js +1 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +4 -0
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +12 -2
- package/out/interface/common/i-modal-options/i-modal-options.d.ts +8 -0
- package/out/interface/common/i-modal-options/i-modal-options.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-caption-bar.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-caption-bar.controller.d.ts.map +1 -1
- package/out/interface/util/i-notification-util/i-notification-util.d.ts +14 -0
- package/out/interface/util/i-notification-util/i-notification-util.d.ts.map +1 -1
- package/out/model/panel/panel-field.js +1 -1
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +13 -0
- package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/append-param-node/append-param-node.js +1 -0
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/bind-param-node/bind-param-node.js +1 -0
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/copy-param-node/copy-param-node.js +1 -0
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/data-set-node/data-set-node.js +1 -0
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/de-action-node/de-action-node.js +1 -0
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.js +1 -0
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/msg-box-node/msg-box-node.js +1 -2
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/renew-param-node/renew-param-node.js +1 -0
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/reset-param-node/reset-param-node.js +1 -0
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/sort-param-node/sort-param-node.js +1 -0
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +1 -1
- package/package.json +4 -3
package/dist/index.esm.js
CHANGED
|
@@ -1097,7 +1097,7 @@ var ChildKeys = ["panelItems", "panelTabPages", "rootPanelItems"];
|
|
|
1097
1097
|
function _getAllPanelField(model) {
|
|
1098
1098
|
let childItems = [];
|
|
1099
1099
|
for (const key of ChildKeys) {
|
|
1100
|
-
if (model[key]) {
|
|
1100
|
+
if (model[key] && model[key].length && model[key].length > 0) {
|
|
1101
1101
|
childItems = model[key];
|
|
1102
1102
|
break;
|
|
1103
1103
|
}
|
|
@@ -2495,6 +2495,7 @@ var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
|
|
|
2495
2495
|
// src/constant/view-mode.ts
|
|
2496
2496
|
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
2497
2497
|
ViewMode2["ROUTE"] = "ROUTE";
|
|
2498
|
+
ViewMode2["ROUTE_MODAL"] = "ROUTE_MODAL";
|
|
2498
2499
|
ViewMode2["MODAL"] = "MODAL";
|
|
2499
2500
|
ViewMode2["DRAWER"] = "DRAWER";
|
|
2500
2501
|
ViewMode2["EMBED"] = "EMBED";
|
|
@@ -8176,6 +8177,9 @@ var MethodDto = class {
|
|
|
8176
8177
|
* @return {*} {Promise<IData>}
|
|
8177
8178
|
*/
|
|
8178
8179
|
async get(context, data, ignore = false) {
|
|
8180
|
+
if (context.srfsimple === true) {
|
|
8181
|
+
return data;
|
|
8182
|
+
}
|
|
8179
8183
|
const params = {};
|
|
8180
8184
|
const uiDomain = ibiz.uiDomainManager.get(context.srfsessionid);
|
|
8181
8185
|
for (let i = 0; i < this.fields.length; i++) {
|
|
@@ -8260,6 +8264,14 @@ var MethodDto = class {
|
|
|
8260
8264
|
* @return {*} {Promise<IDataEntity[]>}
|
|
8261
8265
|
*/
|
|
8262
8266
|
async sets(context, data) {
|
|
8267
|
+
if (context.srfsimple === true) {
|
|
8268
|
+
if (data && data.length > 0) {
|
|
8269
|
+
return data.map((item) => {
|
|
8270
|
+
return this.service.createEntity(item);
|
|
8271
|
+
});
|
|
8272
|
+
}
|
|
8273
|
+
return [];
|
|
8274
|
+
}
|
|
8263
8275
|
const uiDomain = ibiz.uiDomainManager.get(context.srfsessionid);
|
|
8264
8276
|
return Promise.all(
|
|
8265
8277
|
data.map(async (datum) => {
|
|
@@ -10602,7 +10614,7 @@ var DELogicParam = class {
|
|
|
10602
10614
|
} else if (m.entityListParam) {
|
|
10603
10615
|
ctx.params[tag] = [];
|
|
10604
10616
|
} else if (m.entityPageParam) {
|
|
10605
|
-
|
|
10617
|
+
ctx.params[tag] = {};
|
|
10606
10618
|
} else if (m.entityParam) {
|
|
10607
10619
|
ctx.params[tag] = {};
|
|
10608
10620
|
} else if (m.lastReturnParam) {
|
|
@@ -15708,26 +15720,34 @@ var ControlController = class extends BaseController {
|
|
|
15708
15720
|
* @return {*} {void}
|
|
15709
15721
|
*/
|
|
15710
15722
|
actionNotification(tag, opts) {
|
|
15711
|
-
|
|
15712
|
-
const { ctrlMsg } = this.model;
|
|
15713
|
-
const msgItem = (_a = ctrlMsg == null ? void 0 : ctrlMsg.ctrlMsgItems) == null ? void 0 : _a.find((item) => item.name === tag);
|
|
15714
|
-
let message;
|
|
15723
|
+
let message = "";
|
|
15715
15724
|
let duration;
|
|
15716
|
-
|
|
15717
|
-
|
|
15718
|
-
const
|
|
15719
|
-
|
|
15720
|
-
scriptParams.data = opts.data;
|
|
15721
|
-
}
|
|
15722
|
-
message = ScriptFactory.execScriptFn(
|
|
15723
|
-
scriptParams,
|
|
15724
|
-
"`".concat(msgItem.content, "`"),
|
|
15725
|
-
{
|
|
15726
|
-
isAsync: false,
|
|
15727
|
-
singleRowReturn: true
|
|
15728
|
-
}
|
|
15725
|
+
const { ctrlMsg } = this.model;
|
|
15726
|
+
if (ctrlMsg && ctrlMsg.ctrlMsgItems) {
|
|
15727
|
+
const hiddenSsgItem = ctrlMsg.ctrlMsgItems.find(
|
|
15728
|
+
(item) => item.name === "".concat(tag, "_HIDDEN")
|
|
15729
15729
|
);
|
|
15730
|
-
|
|
15730
|
+
if (hiddenSsgItem) {
|
|
15731
|
+
return;
|
|
15732
|
+
}
|
|
15733
|
+
const msgItem = ctrlMsg.ctrlMsgItems.find((item) => item.name === tag);
|
|
15734
|
+
if (msgItem && msgItem.content) {
|
|
15735
|
+
duration = isNil23(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
15736
|
+
const scriptParams = { ...this.getEventArgs() };
|
|
15737
|
+
if (opts == null ? void 0 : opts.data) {
|
|
15738
|
+
scriptParams.data = opts.data;
|
|
15739
|
+
}
|
|
15740
|
+
message = ScriptFactory.execScriptFn(
|
|
15741
|
+
scriptParams,
|
|
15742
|
+
"`".concat(msgItem.content, "`"),
|
|
15743
|
+
{
|
|
15744
|
+
isAsync: false,
|
|
15745
|
+
singleRowReturn: true
|
|
15746
|
+
}
|
|
15747
|
+
);
|
|
15748
|
+
}
|
|
15749
|
+
}
|
|
15750
|
+
if (!message && ibiz.i18n) {
|
|
15731
15751
|
const resTag = "CONTROL.".concat(this.model.controlType, ".").concat(tag).toUpperCase();
|
|
15732
15752
|
message = ibiz.i18n.t(resTag, "");
|
|
15733
15753
|
if (message === resTag) {
|
|
@@ -16062,13 +16082,7 @@ var MDControlController = class extends ControlController {
|
|
|
16062
16082
|
try {
|
|
16063
16083
|
await handleAllSettled(
|
|
16064
16084
|
data.map(async (item) => {
|
|
16065
|
-
|
|
16066
|
-
if (item.srfuf !== 0 /* CREATE */) {
|
|
16067
|
-
const tempContext = context.clone();
|
|
16068
|
-
tempContext[deName] = item.srfkey;
|
|
16069
|
-
await this.service.remove(tempContext, params);
|
|
16070
|
-
needRefresh = true;
|
|
16071
|
-
}
|
|
16085
|
+
needRefresh = await this.handleItemRemove(item, context, params);
|
|
16072
16086
|
this.afterRemove(item);
|
|
16073
16087
|
})
|
|
16074
16088
|
);
|
|
@@ -16095,14 +16109,21 @@ var MDControlController = class extends ControlController {
|
|
|
16095
16109
|
await this._evt.emit("onRemoveSuccess", void 0);
|
|
16096
16110
|
}
|
|
16097
16111
|
/**
|
|
16098
|
-
*
|
|
16099
|
-
* @param {IData} _item
|
|
16112
|
+
* 删除每一项
|
|
16100
16113
|
* @return {*}
|
|
16101
16114
|
* @author: zhujiamin
|
|
16102
|
-
* @Date: 2024-02-
|
|
16115
|
+
* @Date: 2024-02-27 09:47:52
|
|
16103
16116
|
*/
|
|
16104
|
-
|
|
16105
|
-
|
|
16117
|
+
async handleItemRemove(item, context, params) {
|
|
16118
|
+
let needRefresh = false;
|
|
16119
|
+
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
16120
|
+
if (item.srfuf !== 0 /* CREATE */) {
|
|
16121
|
+
const tempContext = context.clone();
|
|
16122
|
+
tempContext[deName] = item.srfkey;
|
|
16123
|
+
await this.service.remove(tempContext, params);
|
|
16124
|
+
needRefresh = true;
|
|
16125
|
+
}
|
|
16126
|
+
return needRefresh;
|
|
16106
16127
|
}
|
|
16107
16128
|
/**
|
|
16108
16129
|
* 后台删除结束后界面删除逻辑
|
|
@@ -16473,6 +16494,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
16473
16494
|
|
|
16474
16495
|
// src/controller/control/calendar/calendar.controller.ts
|
|
16475
16496
|
import dayjs3 from "dayjs";
|
|
16497
|
+
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
16476
16498
|
|
|
16477
16499
|
// src/controller/control/calendar/calendar.service.ts
|
|
16478
16500
|
import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
@@ -16594,6 +16616,73 @@ var CalendarController = class extends MDControlController {
|
|
|
16594
16616
|
await super.onCreated();
|
|
16595
16617
|
this.service = new CalendarService(this.model);
|
|
16596
16618
|
await this.service.init(this.context);
|
|
16619
|
+
this.initViewScheduler();
|
|
16620
|
+
}
|
|
16621
|
+
/**
|
|
16622
|
+
* 初始化视图触发器
|
|
16623
|
+
*
|
|
16624
|
+
* @protected
|
|
16625
|
+
* @memberof CalendarService
|
|
16626
|
+
*/
|
|
16627
|
+
initViewScheduler() {
|
|
16628
|
+
const viewLogics = this.model.appViewLogics || [];
|
|
16629
|
+
if (viewLogics.length !== 0) {
|
|
16630
|
+
this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
|
|
16631
|
+
this.viewScheduler.defaultParamsCb = () => {
|
|
16632
|
+
return this.getEventArgs();
|
|
16633
|
+
};
|
|
16634
|
+
if (this.viewScheduler.hasViewEventTrigger) {
|
|
16635
|
+
this.evt.onAll((_eventName, event) => {
|
|
16636
|
+
this.viewScheduler.triggerViewEvent(event);
|
|
16637
|
+
});
|
|
16638
|
+
}
|
|
16639
|
+
}
|
|
16640
|
+
}
|
|
16641
|
+
/**
|
|
16642
|
+
* 设置激活数据
|
|
16643
|
+
*
|
|
16644
|
+
* @param {ICalendarItemData} item
|
|
16645
|
+
* @return {*} {Promise<void>}
|
|
16646
|
+
* @memberof CalendarService
|
|
16647
|
+
*/
|
|
16648
|
+
async setActive(item) {
|
|
16649
|
+
this.openData(item);
|
|
16650
|
+
return this._evt.emit("onActive", {
|
|
16651
|
+
data: [item]
|
|
16652
|
+
});
|
|
16653
|
+
}
|
|
16654
|
+
/**
|
|
16655
|
+
* 打开编辑数据视图
|
|
16656
|
+
*
|
|
16657
|
+
* @param {ICalendarItemData} item
|
|
16658
|
+
* @memberof CalendarService
|
|
16659
|
+
*/
|
|
16660
|
+
async openData(item) {
|
|
16661
|
+
var _a, _b;
|
|
16662
|
+
const context = this.context.clone();
|
|
16663
|
+
const deName = ((_a = item.deData.srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.model.appDataEntityId);
|
|
16664
|
+
context[deName.toLowerCase()] = item.deData.srfkey;
|
|
16665
|
+
const result = await ((_b = this.viewScheduler) == null ? void 0 : _b.triggerCustom(
|
|
16666
|
+
"".concat(item.itemType.toLowerCase(), "_opendata"),
|
|
16667
|
+
{
|
|
16668
|
+
context,
|
|
16669
|
+
params: this.params,
|
|
16670
|
+
data: [item.deData],
|
|
16671
|
+
event: void 0,
|
|
16672
|
+
view: this.view,
|
|
16673
|
+
ctrl: this
|
|
16674
|
+
}
|
|
16675
|
+
));
|
|
16676
|
+
if (result === -1) {
|
|
16677
|
+
throw new RuntimeModelError28(
|
|
16678
|
+
this.model,
|
|
16679
|
+
"\u7F3A\u5C11".concat(item.itemType.toLowerCase(), "_opendata\u7684\u89C6\u56FE\u903B\u8F91")
|
|
16680
|
+
);
|
|
16681
|
+
} else {
|
|
16682
|
+
return {
|
|
16683
|
+
cancel: result ? result.ok : true
|
|
16684
|
+
};
|
|
16685
|
+
}
|
|
16597
16686
|
}
|
|
16598
16687
|
/**
|
|
16599
16688
|
* 日历加载
|
|
@@ -16756,10 +16845,10 @@ import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
|
16756
16845
|
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
16757
16846
|
|
|
16758
16847
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
16759
|
-
import { RuntimeModelError as
|
|
16848
|
+
import { RuntimeModelError as RuntimeModelError30 } from "@ibiz-template/core";
|
|
16760
16849
|
|
|
16761
16850
|
// src/controller/control/chart/generator/base-series-generator.ts
|
|
16762
|
-
import { plus, RuntimeModelError as
|
|
16851
|
+
import { plus, RuntimeModelError as RuntimeModelError29, toNumberOrNil } from "@ibiz-template/core";
|
|
16763
16852
|
import dayjs4 from "dayjs";
|
|
16764
16853
|
import minMax2 from "dayjs/plugin/minMax";
|
|
16765
16854
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
@@ -16809,10 +16898,10 @@ var BaseSeriesGenerator = class {
|
|
|
16809
16898
|
this.chartGenerator = chartGenerator;
|
|
16810
16899
|
const { chartSeriesEncode, caption, id, userParam } = model;
|
|
16811
16900
|
if (!model.catalogField) {
|
|
16812
|
-
throw new
|
|
16901
|
+
throw new RuntimeModelError29(model, "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E");
|
|
16813
16902
|
}
|
|
16814
16903
|
if (!model.valueField) {
|
|
16815
|
-
throw new
|
|
16904
|
+
throw new RuntimeModelError29(model, "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E");
|
|
16816
16905
|
}
|
|
16817
16906
|
this.catalogField = chartGenerator.getFieldKey(model.catalogField);
|
|
16818
16907
|
this.valueField = chartGenerator.getFieldKey(model.valueField);
|
|
@@ -17235,10 +17324,10 @@ var BaseSeriesGenerator = class {
|
|
|
17235
17324
|
var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
17236
17325
|
calcStaticOptions() {
|
|
17237
17326
|
if (this.xAxisIndex === void 0) {
|
|
17238
|
-
throw new
|
|
17327
|
+
throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
17239
17328
|
}
|
|
17240
17329
|
if (this.yAxisIndex === void 0) {
|
|
17241
|
-
throw new
|
|
17330
|
+
throw new RuntimeModelError30(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
17242
17331
|
}
|
|
17243
17332
|
const options = super.calcStaticOptions();
|
|
17244
17333
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -17254,14 +17343,14 @@ var LineSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
17254
17343
|
};
|
|
17255
17344
|
|
|
17256
17345
|
// src/controller/control/chart/generator/bar-series-generator.ts
|
|
17257
|
-
import { RuntimeModelError as
|
|
17346
|
+
import { RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
17258
17347
|
var BarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
17259
17348
|
calcStaticOptions() {
|
|
17260
17349
|
if (this.xAxisIndex === void 0) {
|
|
17261
|
-
throw new
|
|
17350
|
+
throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
17262
17351
|
}
|
|
17263
17352
|
if (this.yAxisIndex === void 0) {
|
|
17264
|
-
throw new
|
|
17353
|
+
throw new RuntimeModelError31(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
17265
17354
|
}
|
|
17266
17355
|
const options = super.calcStaticOptions();
|
|
17267
17356
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -17314,14 +17403,14 @@ var PieSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
17314
17403
|
};
|
|
17315
17404
|
|
|
17316
17405
|
// src/controller/control/chart/generator/scatter-series-generator.ts
|
|
17317
|
-
import { RuntimeModelError as
|
|
17406
|
+
import { RuntimeModelError as RuntimeModelError32 } from "@ibiz-template/core";
|
|
17318
17407
|
var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
17319
17408
|
calcStaticOptions() {
|
|
17320
17409
|
if (this.xAxisIndex === void 0) {
|
|
17321
|
-
throw new
|
|
17410
|
+
throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74");
|
|
17322
17411
|
}
|
|
17323
17412
|
if (this.yAxisIndex === void 0) {
|
|
17324
|
-
throw new
|
|
17413
|
+
throw new RuntimeModelError32(this.model, "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74");
|
|
17325
17414
|
}
|
|
17326
17415
|
const options = super.calcStaticOptions();
|
|
17327
17416
|
options.xAxisIndex = this.xAxisIndex;
|
|
@@ -17832,6 +17921,7 @@ var ChartController = class extends MDControlController {
|
|
|
17832
17921
|
await this.service.init(this.context);
|
|
17833
17922
|
this.generator = new ChartOptionsGenerator2(this.model);
|
|
17834
17923
|
await this.generator.init(this.context, this.params);
|
|
17924
|
+
this.resizeChart = this.resizeChart.bind(this);
|
|
17835
17925
|
window.addEventListener("resize", this.resizeChart);
|
|
17836
17926
|
}
|
|
17837
17927
|
async afterLoad(args, items) {
|
|
@@ -17911,28 +18001,37 @@ var CaptionBarController = class extends ControlController {
|
|
|
17911
18001
|
await super.onCreated();
|
|
17912
18002
|
this.view.evt.on("onViewInfoChange", ({ caption: _caption, dataInfo }) => {
|
|
17913
18003
|
this.state.caption = "".concat(this.view.model.caption).concat(dataInfo ? "-".concat(dataInfo) : "");
|
|
17914
|
-
|
|
17915
|
-
ibiz.util.setBrowserTitle(this.state.caption);
|
|
17916
|
-
}
|
|
18004
|
+
this.setBrowserTabTitle();
|
|
17917
18005
|
});
|
|
17918
18006
|
}
|
|
18007
|
+
/**
|
|
18008
|
+
* 设置浏览器标签页标题
|
|
18009
|
+
*
|
|
18010
|
+
* @author chitanda
|
|
18011
|
+
* @date 2024-02-29 10:02:02
|
|
18012
|
+
*/
|
|
18013
|
+
setBrowserTabTitle() {
|
|
18014
|
+
if (this.view.modal.mode === "ROUTE" /* ROUTE */ || this.view.modal.mode === "ROUTE_MODAL" /* ROUTE_MODAL */) {
|
|
18015
|
+
ibiz.util.setBrowserTitle(this.state.caption);
|
|
18016
|
+
}
|
|
18017
|
+
}
|
|
17919
18018
|
};
|
|
17920
18019
|
|
|
17921
18020
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
17922
18021
|
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
17923
18022
|
|
|
17924
18023
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
17925
|
-
import { RuntimeModelError as
|
|
18024
|
+
import { RuntimeModelError as RuntimeModelError51 } from "@ibiz-template/core";
|
|
17926
18025
|
import { isArray as isArray8 } from "qx-util";
|
|
17927
18026
|
|
|
17928
18027
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
17929
|
-
import { RuntimeModelError as
|
|
18028
|
+
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
17930
18029
|
|
|
17931
18030
|
// src/ui-logic/index.ts
|
|
17932
18031
|
import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
17933
18032
|
|
|
17934
18033
|
// src/ui-logic/ui-logic.ts
|
|
17935
|
-
import { ModelError as ModelError25, RuntimeModelError as
|
|
18034
|
+
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
17936
18035
|
|
|
17937
18036
|
// src/ui-logic/ui-logic-context.ts
|
|
17938
18037
|
var UILogicContext = class {
|
|
@@ -18078,20 +18177,20 @@ var UILogicContext = class {
|
|
|
18078
18177
|
};
|
|
18079
18178
|
|
|
18080
18179
|
// src/ui-logic/ui-logic-node/de-action-node/de-action-node.ts
|
|
18081
|
-
import { RuntimeModelError as
|
|
18180
|
+
import { RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
18082
18181
|
|
|
18083
18182
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
18084
18183
|
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
18085
18184
|
|
|
18086
18185
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
18087
|
-
import { RuntimeModelError as
|
|
18186
|
+
import { RuntimeModelError as RuntimeModelError34 } from "@ibiz-template/core";
|
|
18088
18187
|
|
|
18089
18188
|
// src/ui-logic/ui-logic-link/ui-logic-link-cond/ui-logic-link-cond.ts
|
|
18090
18189
|
var UILogicLinkCond = class {
|
|
18091
18190
|
};
|
|
18092
18191
|
|
|
18093
18192
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
18094
|
-
import { ModelError as ModelError19, RuntimeModelError as
|
|
18193
|
+
import { ModelError as ModelError19, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
18095
18194
|
|
|
18096
18195
|
// src/ui-logic/utils/handle-src-val.ts
|
|
18097
18196
|
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
@@ -18189,7 +18288,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
18189
18288
|
switch (this.type) {
|
|
18190
18289
|
case "ENTITYFIELD": {
|
|
18191
18290
|
if (!this.value) {
|
|
18192
|
-
throw new
|
|
18291
|
+
throw new RuntimeModelError33(
|
|
18193
18292
|
this.model,
|
|
18194
18293
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
18195
18294
|
);
|
|
@@ -18201,7 +18300,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
18201
18300
|
}
|
|
18202
18301
|
case "SRCENTITYFIELD": {
|
|
18203
18302
|
if (!this.value) {
|
|
18204
|
-
throw new
|
|
18303
|
+
throw new RuntimeModelError33(
|
|
18205
18304
|
this.model,
|
|
18206
18305
|
"\u5F53\u524D\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u6E90\u6570\u636E\u5BF9\u8C61\u5C5E\u6027],\u7F3A\u5C11\u914D\u7F6E\u6761\u4EF6\u503C"
|
|
18207
18306
|
);
|
|
@@ -18280,7 +18379,7 @@ var UILogicLinkGroupCond = class _UILogicLinkGroupCond extends UILogicLinkCond {
|
|
|
18280
18379
|
test(ctx, context, data) {
|
|
18281
18380
|
let bol = true;
|
|
18282
18381
|
if (this.conds.length === 0) {
|
|
18283
|
-
throw new
|
|
18382
|
+
throw new RuntimeModelError34(this.model, "\u754C\u9762\u8FDE\u63A5\u6761\u4EF6\u903B\u8F91\u7EC4\u672A\u914D\u7F6E\u903B\u8F91\u9879");
|
|
18284
18383
|
}
|
|
18285
18384
|
for (let i = 0; i < this.conds.length; i++) {
|
|
18286
18385
|
const cond = this.conds[i];
|
|
@@ -18411,10 +18510,10 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
18411
18510
|
retDEUILogicParamId
|
|
18412
18511
|
} = this.model;
|
|
18413
18512
|
if (!dstAppDataEntityId) {
|
|
18414
|
-
throw new
|
|
18513
|
+
throw new RuntimeModelError35(this.model, "\u672A\u6307\u5B9A\u5E94\u7528\u5B9E\u4F53");
|
|
18415
18514
|
}
|
|
18416
18515
|
if (!dstAppDEActionId) {
|
|
18417
|
-
throw new
|
|
18516
|
+
throw new RuntimeModelError35(this.model, "\u672A\u6307\u5B9A\u5B9E\u4F53\u884C\u4E3A");
|
|
18418
18517
|
}
|
|
18419
18518
|
const requestData = ctx.params[dstDEUILogicParamId];
|
|
18420
18519
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -18427,6 +18526,7 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
18427
18526
|
);
|
|
18428
18527
|
if (res.ok) {
|
|
18429
18528
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
18529
|
+
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
18430
18530
|
}
|
|
18431
18531
|
ibiz.log.debug(
|
|
18432
18532
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u5B9E\u4F53\u884C\u4E3A\uFF09\uFF1A".concat(this.model.id, "-\u754C\u9762\u884C\u4E3A\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u5B9E\u4F53\u884C\u4E3A\u6807\u8BC6\uFF1A").concat(dstAppDEActionId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
|
|
@@ -18436,13 +18536,13 @@ var DEActionNode2 = class extends UILogicNode {
|
|
|
18436
18536
|
};
|
|
18437
18537
|
|
|
18438
18538
|
// src/ui-logic/ui-logic-node/de-ui-action-node/de-ui-action-node.ts
|
|
18439
|
-
import { RuntimeModelError as
|
|
18539
|
+
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
18440
18540
|
var DEUIActionNode = class extends UILogicNode {
|
|
18441
18541
|
async exec(ctx) {
|
|
18442
18542
|
const { dstAppDEUIActionId, dstDEUILogicParamId, dstAppDataEntityId } = this.model;
|
|
18443
18543
|
const { data, parameters } = ctx;
|
|
18444
18544
|
if (!dstAppDEUIActionId) {
|
|
18445
|
-
throw new
|
|
18545
|
+
throw new RuntimeModelError36(this.model, "\u672A\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
18446
18546
|
}
|
|
18447
18547
|
let actionData = [data];
|
|
18448
18548
|
if (dstDEUILogicParamId) {
|
|
@@ -18691,20 +18791,20 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
18691
18791
|
};
|
|
18692
18792
|
|
|
18693
18793
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
18694
|
-
import { RuntimeError as RuntimeError42, RuntimeModelError as
|
|
18794
|
+
import { RuntimeError as RuntimeError42, RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
18695
18795
|
import { isFunction } from "lodash-es";
|
|
18696
18796
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
18697
18797
|
async exec(ctx) {
|
|
18698
18798
|
ctx.isEndNode = true;
|
|
18699
18799
|
const { invokeMethod, invokeCtrlId, invokeParamId } = this.model;
|
|
18700
18800
|
if (!invokeCtrlId) {
|
|
18701
|
-
throw new
|
|
18801
|
+
throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u5BF9\u8C61");
|
|
18702
18802
|
}
|
|
18703
18803
|
if (!invokeParamId) {
|
|
18704
|
-
throw new
|
|
18804
|
+
throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u64CD\u4F5C\u53C2\u6570");
|
|
18705
18805
|
}
|
|
18706
18806
|
if (!invokeMethod) {
|
|
18707
|
-
throw new
|
|
18807
|
+
throw new RuntimeModelError37(this.model, "\u6CA1\u6709\u914D\u7F6E\u8C03\u7528\u65B9\u6CD5");
|
|
18708
18808
|
}
|
|
18709
18809
|
const invokeParam = ctx.params[invokeParamId];
|
|
18710
18810
|
if (!invokeParam) {
|
|
@@ -18726,18 +18826,19 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
18726
18826
|
};
|
|
18727
18827
|
|
|
18728
18828
|
// src/ui-logic/ui-logic-node/bind-param-node/bind-param-node.ts
|
|
18729
|
-
import { RuntimeModelError as
|
|
18829
|
+
import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
|
|
18730
18830
|
var BindParamNode2 = class extends UILogicNode {
|
|
18731
18831
|
async exec(ctx) {
|
|
18732
18832
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
18733
18833
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
18734
|
-
throw new
|
|
18834
|
+
throw new RuntimeModelError38(
|
|
18735
18835
|
this.model,
|
|
18736
18836
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
18737
18837
|
);
|
|
18738
18838
|
}
|
|
18739
18839
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
18740
18840
|
ctx.params[dstDEUILogicParamId] = srcVal;
|
|
18841
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18741
18842
|
ibiz.log.debug(
|
|
18742
18843
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u7ED1\u5B9A\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u503C\uFF1A"),
|
|
18743
18844
|
srcVal
|
|
@@ -18746,7 +18847,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
18746
18847
|
};
|
|
18747
18848
|
|
|
18748
18849
|
// src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
|
|
18749
|
-
import { ModelError as ModelError23, RuntimeModelError as
|
|
18850
|
+
import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError39 } from "@ibiz-template/core";
|
|
18750
18851
|
var MsgBoxNode = class extends UILogicNode {
|
|
18751
18852
|
constructor() {
|
|
18752
18853
|
super(...arguments);
|
|
@@ -18760,13 +18861,12 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
18760
18861
|
async exec(ctx) {
|
|
18761
18862
|
const { msgBoxType, buttonsType, msgBoxParamId } = this.model;
|
|
18762
18863
|
if (!msgBoxType) {
|
|
18763
|
-
throw new
|
|
18864
|
+
throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u6D88\u606F\u7C7B\u578B\u7684\u914D\u7F6E");
|
|
18764
18865
|
}
|
|
18765
18866
|
if (!buttonsType) {
|
|
18766
|
-
throw new
|
|
18867
|
+
throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u6309\u94AE\u7C7B\u578B\u7684\u914D\u7F6E");
|
|
18767
18868
|
}
|
|
18768
|
-
let { title } = this.model;
|
|
18769
|
-
let { message } = this.model;
|
|
18869
|
+
let { title, message } = this.model;
|
|
18770
18870
|
if (msgBoxParamId) {
|
|
18771
18871
|
const param = ctx.params[msgBoxParamId];
|
|
18772
18872
|
if (param.title) {
|
|
@@ -18829,12 +18929,12 @@ var PFPluginNode = class extends UILogicNode {
|
|
|
18829
18929
|
};
|
|
18830
18930
|
|
|
18831
18931
|
// src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts
|
|
18832
|
-
import { RuntimeModelError as
|
|
18932
|
+
import { RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
|
|
18833
18933
|
var DebugParamNode = class extends UILogicNode {
|
|
18834
18934
|
async exec(ctx) {
|
|
18835
18935
|
const { dstDEUILogicParamId, name } = this.model;
|
|
18836
18936
|
if (!dstDEUILogicParamId) {
|
|
18837
|
-
throw new
|
|
18937
|
+
throw new RuntimeModelError40(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
18838
18938
|
}
|
|
18839
18939
|
const param = ctx.params[dstDEUILogicParamId];
|
|
18840
18940
|
ibiz.log.info("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
|
|
@@ -18842,14 +18942,15 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
18842
18942
|
};
|
|
18843
18943
|
|
|
18844
18944
|
// src/ui-logic/ui-logic-node/reset-param-node/reset-param-node.ts
|
|
18845
|
-
import { RuntimeModelError as
|
|
18945
|
+
import { RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
|
|
18846
18946
|
var ResetParamNode2 = class extends UILogicNode {
|
|
18847
18947
|
async exec(ctx) {
|
|
18848
18948
|
const { dstDEUILogicParamId } = this.model;
|
|
18849
18949
|
if (!dstDEUILogicParamId) {
|
|
18850
|
-
throw new
|
|
18950
|
+
throw new RuntimeModelError41(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
18851
18951
|
}
|
|
18852
18952
|
ctx.resetParam(dstDEUILogicParamId);
|
|
18953
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18853
18954
|
ibiz.log.debug(
|
|
18854
18955
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u7F6E\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u7F6E\u53C2\u6570\uFF1A").concat(dstDEUILogicParamId)
|
|
18855
18956
|
);
|
|
@@ -18857,19 +18958,20 @@ var ResetParamNode2 = class extends UILogicNode {
|
|
|
18857
18958
|
};
|
|
18858
18959
|
|
|
18859
18960
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
18860
|
-
import { RuntimeModelError as
|
|
18961
|
+
import { RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
18861
18962
|
import { clone as clone23 } from "ramda";
|
|
18862
18963
|
var CopyParamNode2 = class extends UILogicNode {
|
|
18863
18964
|
async exec(ctx) {
|
|
18864
18965
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
18865
18966
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
18866
|
-
throw new
|
|
18967
|
+
throw new RuntimeModelError42(
|
|
18867
18968
|
this.model,
|
|
18868
18969
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
18869
18970
|
);
|
|
18870
18971
|
}
|
|
18871
18972
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
18872
18973
|
ctx.params[dstDEUILogicParamId] = clone23(srcVal);
|
|
18974
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18873
18975
|
ibiz.log.debug(
|
|
18874
18976
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u62F7\u8D1D\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u503C\uFF1A"),
|
|
18875
18977
|
srcVal
|
|
@@ -18878,7 +18980,7 @@ var CopyParamNode2 = class extends UILogicNode {
|
|
|
18878
18980
|
};
|
|
18879
18981
|
|
|
18880
18982
|
// src/ui-logic/ui-logic-node/append-param-node/append-param-node.ts
|
|
18881
|
-
import { RuntimeModelError as
|
|
18983
|
+
import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
18882
18984
|
var AppendParamNode2 = class extends UILogicNode {
|
|
18883
18985
|
async exec(ctx) {
|
|
18884
18986
|
const {
|
|
@@ -18889,7 +18991,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
18889
18991
|
srcSize
|
|
18890
18992
|
} = this.model;
|
|
18891
18993
|
if (!dstDEUILogicParamId || !srcDEUILogicParamId) {
|
|
18892
|
-
throw new
|
|
18994
|
+
throw new RuntimeModelError43(
|
|
18893
18995
|
this.model,
|
|
18894
18996
|
"\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u8005\u6E90\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E"
|
|
18895
18997
|
);
|
|
@@ -18903,6 +19005,7 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
18903
19005
|
0,
|
|
18904
19006
|
...srcVal.slice(_srcIndex, _srcSize)
|
|
18905
19007
|
);
|
|
19008
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18906
19009
|
ibiz.log.debug(
|
|
18907
19010
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u9644\u52A0\u5230\u6570\u7EC4\uFF09\uFF1A".concat(this.model.id, "-\u9644\u52A0\u53C2\u6570\uFF1A"),
|
|
18908
19011
|
ctx.params,
|
|
@@ -18913,18 +19016,19 @@ var AppendParamNode2 = class extends UILogicNode {
|
|
|
18913
19016
|
};
|
|
18914
19017
|
|
|
18915
19018
|
// src/ui-logic/ui-logic-node/sort-param-node/sort-param-node.ts
|
|
18916
|
-
import { RuntimeModelError as
|
|
19019
|
+
import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
18917
19020
|
var SortParamNode2 = class extends UILogicNode {
|
|
18918
19021
|
async exec(ctx) {
|
|
18919
19022
|
const { dstDEUILogicParamId, dstSortDir, dstFieldName } = this.model;
|
|
18920
19023
|
if (!dstDEUILogicParamId || !dstFieldName) {
|
|
18921
|
-
throw new
|
|
19024
|
+
throw new RuntimeModelError44(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u6216\u76EE\u6807\u5C5E\u6027\u914D\u7F6E");
|
|
18922
19025
|
}
|
|
18923
19026
|
const key = dstFieldName;
|
|
18924
19027
|
const arr = ctx.params[dstDEUILogicParamId];
|
|
18925
19028
|
arr.sort((a, b) => {
|
|
18926
19029
|
return dstSortDir === "ASC" ? a[key] - b[key] : b[key] - a[key];
|
|
18927
19030
|
});
|
|
19031
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18928
19032
|
ibiz.log.debug(
|
|
18929
19033
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6392\u5E8F\u6570\u7EC4\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u6392\u5E8F\u5C5E\u6027\uFF1A").concat(dstFieldName, "-\u6392\u5E8F\u6A21\u5F0F\uFF1A").concat(dstSortDir, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(dstDEUILogicParamId, "-\u6392\u5E8F\u540E\u6570\u7EC4\uFF1A"),
|
|
18930
19034
|
arr
|
|
@@ -18933,14 +19037,15 @@ var SortParamNode2 = class extends UILogicNode {
|
|
|
18933
19037
|
};
|
|
18934
19038
|
|
|
18935
19039
|
// src/ui-logic/ui-logic-node/renew-param-node/renew-param-node.ts
|
|
18936
|
-
import { RuntimeModelError as
|
|
19040
|
+
import { RuntimeModelError as RuntimeModelError45 } from "@ibiz-template/core";
|
|
18937
19041
|
var RenewParamNode2 = class extends UILogicNode {
|
|
18938
19042
|
async exec(ctx) {
|
|
18939
19043
|
const { dstDEUILogicParamId } = this.model;
|
|
18940
19044
|
if (!dstDEUILogicParamId) {
|
|
18941
|
-
throw new
|
|
19045
|
+
throw new RuntimeModelError45(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
18942
19046
|
}
|
|
18943
19047
|
ctx.renewParam(dstDEUILogicParamId);
|
|
19048
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18944
19049
|
ibiz.log.debug(
|
|
18945
19050
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u91CD\u65B0\u5EFA\u7ACB\u53C2\u6570\uFF09\uFF1A".concat(this.model.id, "-\u91CD\u5EFA\u53C2\u6570\uFF1A").concat(dstDEUILogicParamId)
|
|
18946
19051
|
);
|
|
@@ -18948,7 +19053,7 @@ var RenewParamNode2 = class extends UILogicNode {
|
|
|
18948
19053
|
};
|
|
18949
19054
|
|
|
18950
19055
|
// src/ui-logic/ui-logic-node/data-set-node/data-set-node.ts
|
|
18951
|
-
import { RuntimeModelError as
|
|
19056
|
+
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
18952
19057
|
var DataSetNode2 = class extends UILogicNode {
|
|
18953
19058
|
async exec(ctx) {
|
|
18954
19059
|
const {
|
|
@@ -18958,7 +19063,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
18958
19063
|
retDEUILogicParamId
|
|
18959
19064
|
} = this.model;
|
|
18960
19065
|
if (!dstDEUILogicParamId) {
|
|
18961
|
-
throw new
|
|
19066
|
+
throw new RuntimeModelError46(this.model, "\u7F3A\u5C11\u914D\u7F6E\u8FC7\u6EE4\u53C2\u6570");
|
|
18962
19067
|
}
|
|
18963
19068
|
const queryParams = ctx.params[dstDEUILogicParamId];
|
|
18964
19069
|
const app = ibiz.hub.getApp(ctx.context.srfappid);
|
|
@@ -18970,6 +19075,7 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
18970
19075
|
);
|
|
18971
19076
|
if (res.ok) {
|
|
18972
19077
|
ctx.params[retDEUILogicParamId] = res.data;
|
|
19078
|
+
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
18973
19079
|
}
|
|
18974
19080
|
ibiz.log.debug(
|
|
18975
19081
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6570\u636E\u96C6\u5408\uFF09\uFF1A".concat(this.model.id, "-\u6570\u636E\u96C6\u5B9E\u4F53\u6807\u8BC6\uFF1A").concat(dstAppDataEntityId, "-\u6570\u636E\u96C6\u6807\u8BC6\uFF1A").concat(dstAppDEDataSetId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
|
|
@@ -18991,19 +19097,19 @@ var ThrowExceptionNode2 = class extends UILogicNode {
|
|
|
18991
19097
|
};
|
|
18992
19098
|
|
|
18993
19099
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
18994
|
-
import { RuntimeError as RuntimeError44, RuntimeModelError as
|
|
19100
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
18995
19101
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
18996
19102
|
async exec(ctx) {
|
|
18997
19103
|
ctx.isEndNode = true;
|
|
18998
19104
|
const { eventName, eventParamId, fireCtrlId } = this.model;
|
|
18999
19105
|
if (!fireCtrlId) {
|
|
19000
|
-
throw new
|
|
19106
|
+
throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u89E6\u53D1\u5BF9\u8C61");
|
|
19001
19107
|
}
|
|
19002
19108
|
if (!eventName) {
|
|
19003
|
-
throw new
|
|
19109
|
+
throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u540D\u79F0\u53C2\u6570");
|
|
19004
19110
|
}
|
|
19005
19111
|
if (!eventParamId) {
|
|
19006
|
-
throw new
|
|
19112
|
+
throw new RuntimeModelError47(this.model, "\u6CA1\u6709\u914D\u7F6E\u4E8B\u4EF6\u53C2\u6570");
|
|
19007
19113
|
}
|
|
19008
19114
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
19009
19115
|
if (!invokeCtrl) {
|
|
@@ -19022,7 +19128,7 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
19022
19128
|
};
|
|
19023
19129
|
|
|
19024
19130
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
19025
|
-
import { RuntimeError as RuntimeError45, RuntimeModelError as
|
|
19131
|
+
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
19026
19132
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
19027
19133
|
async exec(ctx) {
|
|
19028
19134
|
const {
|
|
@@ -19032,13 +19138,13 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
19032
19138
|
retDEUILogicParamId
|
|
19033
19139
|
} = this.model;
|
|
19034
19140
|
if (!dstAppDataEntityId) {
|
|
19035
|
-
throw new
|
|
19141
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53");
|
|
19036
19142
|
}
|
|
19037
19143
|
if (!dstAppDELogicId) {
|
|
19038
|
-
throw new
|
|
19144
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u903B\u8F91");
|
|
19039
19145
|
}
|
|
19040
19146
|
if (!dstDEUILogicParamId) {
|
|
19041
|
-
throw new
|
|
19147
|
+
throw new RuntimeModelError48(this.model, "\u6CA1\u6709\u914D\u7F6E\u4F20\u5165\u903B\u8F91\u53C2\u6570");
|
|
19042
19148
|
}
|
|
19043
19149
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
19044
19150
|
if (!dstParam) {
|
|
@@ -19053,6 +19159,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
19053
19159
|
);
|
|
19054
19160
|
if (retDEUILogicParamId) {
|
|
19055
19161
|
ctx.params[retDEUILogicParamId] = result;
|
|
19162
|
+
ctx.setLastReturn(ctx.params[retDEUILogicParamId]);
|
|
19056
19163
|
}
|
|
19057
19164
|
ibiz.log.debug(
|
|
19058
19165
|
"\u754C\u9762\u903B\u8F91\u8282\u70B9\uFF08\u6267\u884C\u5B9E\u4F53\u903B\u8F91\uFF09\uFF1A".concat(this.model.id, "-\u5B9E\u4F53\u903B\u8F91\u6807\u8BC6\uFF1A").concat(dstAppDELogicId, "-\u5B9E\u4F53\u903B\u8F91\u6240\u5C5E\u5B9E\u4F53\uFF1A").concat(dstAppDataEntityId, "-\u53C2\u6570\u540D\u79F0\uFF1A").concat(retDEUILogicParamId, "-\u503C\uFF1A"),
|
|
@@ -19137,7 +19244,7 @@ var UILogicParam = class {
|
|
|
19137
19244
|
} else if (m.entityListParam) {
|
|
19138
19245
|
ctx.params[tag] = [];
|
|
19139
19246
|
} else if (m.entityPageParam) {
|
|
19140
|
-
|
|
19247
|
+
ctx.params[tag] = {};
|
|
19141
19248
|
} else if (m.entityParam) {
|
|
19142
19249
|
ctx.params[tag] = {};
|
|
19143
19250
|
} else if (m.lastReturnParam) {
|
|
@@ -19213,7 +19320,7 @@ var UILogic = class {
|
|
|
19213
19320
|
this.params = /* @__PURE__ */ new Map();
|
|
19214
19321
|
var _a;
|
|
19215
19322
|
if (!((_a = model.deuilogicNodes) == null ? void 0 : _a.length)) {
|
|
19216
|
-
throw new
|
|
19323
|
+
throw new RuntimeModelError49(model, "\u754C\u9762\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u903B\u8F91\u8282\u70B9");
|
|
19217
19324
|
}
|
|
19218
19325
|
model.deuilogicNodes.forEach((node) => {
|
|
19219
19326
|
const { logicNodeType } = node;
|
|
@@ -19333,7 +19440,7 @@ var UILogic = class {
|
|
|
19333
19440
|
const start = this.nodes.get(startDEUILogicNodeId);
|
|
19334
19441
|
await this.deepExec(start, ctx);
|
|
19335
19442
|
} else {
|
|
19336
|
-
throw new
|
|
19443
|
+
throw new RuntimeModelError49(this.model, "\u672A\u8BBE\u7F6E\u8D77\u59CB\u8282\u70B9");
|
|
19337
19444
|
}
|
|
19338
19445
|
if (ctx.isEndNode) {
|
|
19339
19446
|
return ctx.result;
|
|
@@ -19515,7 +19622,7 @@ var UIActionProviderBase = class {
|
|
|
19515
19622
|
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
19516
19623
|
if (uilogicAttachMode === "REPLACE") {
|
|
19517
19624
|
if (!appDEUILogicId) {
|
|
19518
|
-
throw new
|
|
19625
|
+
throw new RuntimeModelError50(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
19519
19626
|
}
|
|
19520
19627
|
await execUILogic(appDEUILogicId, appDataEntityId, args);
|
|
19521
19628
|
return result;
|
|
@@ -19530,7 +19637,7 @@ var UIActionProviderBase = class {
|
|
|
19530
19637
|
}
|
|
19531
19638
|
if (action.uilogicAttachMode === "AFTER") {
|
|
19532
19639
|
if (!appDEUILogicId) {
|
|
19533
|
-
throw new
|
|
19640
|
+
throw new RuntimeModelError50(action, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
19534
19641
|
}
|
|
19535
19642
|
await execUILogic(
|
|
19536
19643
|
appDEUILogicId,
|
|
@@ -19777,7 +19884,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
19777
19884
|
const entityName = action.appDataEntityId;
|
|
19778
19885
|
const methodName = action.appDEMethodId;
|
|
19779
19886
|
if (!entityName || !methodName) {
|
|
19780
|
-
throw new
|
|
19887
|
+
throw new RuntimeModelError51(action, "\u672A\u914D\u7F6E\u5B9E\u4F53\u6216\u5B9E\u4F53\u884C\u4E3A");
|
|
19781
19888
|
}
|
|
19782
19889
|
const { resultContext, resultParams, resultData } = await this.handleParams(
|
|
19783
19890
|
action,
|
|
@@ -19903,7 +20010,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
19903
20010
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
19904
20011
|
import {
|
|
19905
20012
|
StringUtil,
|
|
19906
|
-
RuntimeModelError as
|
|
20013
|
+
RuntimeModelError as RuntimeModelError52,
|
|
19907
20014
|
ModelError as ModelError26,
|
|
19908
20015
|
RuntimeError as RuntimeError48
|
|
19909
20016
|
} from "@ibiz-template/core";
|
|
@@ -19921,7 +20028,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
19921
20028
|
case "WIZARD": {
|
|
19922
20029
|
const frontPSAppView = action.frontAppViewId;
|
|
19923
20030
|
if (!frontPSAppView) {
|
|
19924
|
-
throw new
|
|
20031
|
+
throw new RuntimeModelError52(action, "\u672A\u914D\u7F6E\u6253\u5F00\u89C6\u56FE");
|
|
19925
20032
|
}
|
|
19926
20033
|
const { resultContext, resultParams } = await this.handleParams(
|
|
19927
20034
|
action,
|
|
@@ -19987,7 +20094,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
19987
20094
|
);
|
|
19988
20095
|
return result || {};
|
|
19989
20096
|
}
|
|
19990
|
-
throw new
|
|
20097
|
+
throw new RuntimeModelError52(action, "\u81EA\u5B9A\u4E49\u7C7B\u578B\u7F3A\u5C11\u914D\u7F6E\u811A\u672C\u4EE3\u7801");
|
|
19991
20098
|
}
|
|
19992
20099
|
/**
|
|
19993
20100
|
* 执行打印行为
|
|
@@ -20840,7 +20947,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
20840
20947
|
};
|
|
20841
20948
|
|
|
20842
20949
|
// src/controller/control/data-view/data-view.controller.ts
|
|
20843
|
-
import { RuntimeModelError as
|
|
20950
|
+
import { RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
20844
20951
|
import { isNil as isNil25 } from "ramda";
|
|
20845
20952
|
|
|
20846
20953
|
// src/controller/control/data-view/data-view.service.ts
|
|
@@ -21055,7 +21162,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21055
21162
|
const optItemModel = this.getOptItemModel();
|
|
21056
21163
|
if (optItemModel) {
|
|
21057
21164
|
if (!optItemModel.deuiactionGroup) {
|
|
21058
|
-
throw new
|
|
21165
|
+
throw new RuntimeModelError53(this.model, "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
21059
21166
|
}
|
|
21060
21167
|
if (!((_a = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
21061
21168
|
ibiz.log.debug("\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -21108,7 +21215,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21108
21215
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
21109
21216
|
if (enableGroup && groupMode) {
|
|
21110
21217
|
if (!groupAppDEFieldId) {
|
|
21111
|
-
throw new
|
|
21218
|
+
throw new RuntimeModelError53(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
|
|
21112
21219
|
}
|
|
21113
21220
|
if (groupMode === "AUTO") {
|
|
21114
21221
|
this.handleAutoGroup();
|
|
@@ -21175,7 +21282,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21175
21282
|
async handleCodeListGroup() {
|
|
21176
21283
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
21177
21284
|
if (!groupCodeListId) {
|
|
21178
|
-
throw new
|
|
21285
|
+
throw new RuntimeModelError53(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
21179
21286
|
}
|
|
21180
21287
|
const { items } = this.state;
|
|
21181
21288
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -21281,7 +21388,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21281
21388
|
caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
21282
21389
|
}
|
|
21283
21390
|
if (!item.appDEFieldId) {
|
|
21284
|
-
throw new
|
|
21391
|
+
throw new RuntimeModelError53(item, "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027");
|
|
21285
21392
|
}
|
|
21286
21393
|
const tempItem = {
|
|
21287
21394
|
caption,
|
|
@@ -21299,10 +21406,10 @@ var DataViewControlController = class extends MDControlController {
|
|
|
21299
21406
|
};
|
|
21300
21407
|
|
|
21301
21408
|
// src/controller/control/exp-bar/calendar-exp-bar.controller.ts
|
|
21302
|
-
import { RuntimeModelError as
|
|
21409
|
+
import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
21303
21410
|
|
|
21304
21411
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
21305
|
-
import { RuntimeError as RuntimeError50, RuntimeModelError as
|
|
21412
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
21306
21413
|
var ExpBarControlController = class extends ControlController {
|
|
21307
21414
|
constructor() {
|
|
21308
21415
|
super(...arguments);
|
|
@@ -21357,7 +21464,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
21357
21464
|
get xDataController() {
|
|
21358
21465
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21359
21466
|
if (!controller) {
|
|
21360
|
-
throw new
|
|
21467
|
+
throw new RuntimeModelError54(
|
|
21361
21468
|
this.model,
|
|
21362
21469
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21363
21470
|
);
|
|
@@ -21721,7 +21828,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
21721
21828
|
get xDataController() {
|
|
21722
21829
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21723
21830
|
if (!controller) {
|
|
21724
|
-
throw new
|
|
21831
|
+
throw new RuntimeModelError55(
|
|
21725
21832
|
this.model,
|
|
21726
21833
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21727
21834
|
);
|
|
@@ -21776,7 +21883,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
21776
21883
|
};
|
|
21777
21884
|
|
|
21778
21885
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
21779
|
-
import { RuntimeError as RuntimeError51, RuntimeModelError as
|
|
21886
|
+
import { RuntimeError as RuntimeError51, RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
21780
21887
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
21781
21888
|
constructor() {
|
|
21782
21889
|
super(...arguments);
|
|
@@ -21799,7 +21906,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
21799
21906
|
get xDataController() {
|
|
21800
21907
|
const controller = this.view.getController(this.model.xdataControlName);
|
|
21801
21908
|
if (!controller) {
|
|
21802
|
-
throw new
|
|
21909
|
+
throw new RuntimeModelError56(
|
|
21803
21910
|
this.model,
|
|
21804
21911
|
"\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[".concat(this.model.xdataControlName, "]\u63A7\u5236\u5668")
|
|
21805
21912
|
);
|
|
@@ -22060,7 +22167,7 @@ import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
|
|
|
22060
22167
|
|
|
22061
22168
|
// src/controller/control/form/form/form.controller.ts
|
|
22062
22169
|
import {
|
|
22063
|
-
RuntimeModelError as
|
|
22170
|
+
RuntimeModelError as RuntimeModelError57,
|
|
22064
22171
|
debounceAndAsyncMerge,
|
|
22065
22172
|
recursiveIterate as recursiveIterate3
|
|
22066
22173
|
} from "@ibiz-template/core";
|
|
@@ -22099,6 +22206,13 @@ var FormController = class extends ControlController {
|
|
|
22099
22206
|
* @type {FormMDCtrlController[]}
|
|
22100
22207
|
*/
|
|
22101
22208
|
this.formMDCtrls = [];
|
|
22209
|
+
/**
|
|
22210
|
+
* 计数器对象
|
|
22211
|
+
* @author lxm
|
|
22212
|
+
* @date 2024-01-18 05:12:35
|
|
22213
|
+
* @type {AppCounter}
|
|
22214
|
+
*/
|
|
22215
|
+
this.counters = {};
|
|
22102
22216
|
}
|
|
22103
22217
|
get _evt() {
|
|
22104
22218
|
return this.evt;
|
|
@@ -22129,7 +22243,7 @@ var FormController = class extends ControlController {
|
|
|
22129
22243
|
* @protected
|
|
22130
22244
|
*/
|
|
22131
22245
|
preprocessModel(model) {
|
|
22132
|
-
if (this.context && this.context.srfreadonly === true) {
|
|
22246
|
+
if (this.context && (this.context.srfreadonly === true || this.context.srfreadonly === "true")) {
|
|
22133
22247
|
const pages = model.deformPages;
|
|
22134
22248
|
if (pages) {
|
|
22135
22249
|
pages.forEach((page) => {
|
|
@@ -22221,6 +22335,7 @@ var FormController = class extends ControlController {
|
|
|
22221
22335
|
async onCreated() {
|
|
22222
22336
|
await super.onCreated();
|
|
22223
22337
|
await this.initDetailControllers();
|
|
22338
|
+
await this.initCounter();
|
|
22224
22339
|
this.dataChangeNotify = debounceAndAsyncMerge(
|
|
22225
22340
|
this.dataChangeNotify.bind(this),
|
|
22226
22341
|
(arr1, arr2) => {
|
|
@@ -22252,7 +22367,7 @@ var FormController = class extends ControlController {
|
|
|
22252
22367
|
return;
|
|
22253
22368
|
}
|
|
22254
22369
|
if (form.details[detail.id]) {
|
|
22255
|
-
throw new
|
|
22370
|
+
throw new RuntimeModelError57(
|
|
22256
22371
|
detail,
|
|
22257
22372
|
"\u521D\u59CB\u5316\u5F02\u5E38: \u8868\u5355\u6210\u5458[".concat(detail.id, "](").concat(detail.detailType, ")\u5DF2\u5B58\u5728\uFF0C\u8868\u5355\u9879\u6807\u8BC6\u91CD\u590D\u8BF7\u68C0\u67E5\u914D\u7F6E")
|
|
22258
22373
|
);
|
|
@@ -22358,6 +22473,36 @@ var FormController = class extends ControlController {
|
|
|
22358
22473
|
);
|
|
22359
22474
|
super.initControlScheduler(actualLogics);
|
|
22360
22475
|
}
|
|
22476
|
+
async onDestroyed() {
|
|
22477
|
+
await super.onDestroyed();
|
|
22478
|
+
Object.values(this.counters).forEach((counter) => counter.destroy());
|
|
22479
|
+
}
|
|
22480
|
+
/**
|
|
22481
|
+
* 初始化计数器
|
|
22482
|
+
* @author lxm
|
|
22483
|
+
* @date 2024-01-18 05:12:02
|
|
22484
|
+
* @protected
|
|
22485
|
+
* @return {*} {Promise<void>}
|
|
22486
|
+
*/
|
|
22487
|
+
async initCounter() {
|
|
22488
|
+
this.counters = {};
|
|
22489
|
+
const { appCounterRefs } = this.model;
|
|
22490
|
+
if (appCounterRefs && appCounterRefs.length > 0) {
|
|
22491
|
+
try {
|
|
22492
|
+
await Promise.all(
|
|
22493
|
+
appCounterRefs.map(async (counterRef) => {
|
|
22494
|
+
const counter = await CounterService.getCounterByRef(
|
|
22495
|
+
counterRef,
|
|
22496
|
+
this.context
|
|
22497
|
+
);
|
|
22498
|
+
this.counters[counterRef.id] = counter;
|
|
22499
|
+
})
|
|
22500
|
+
);
|
|
22501
|
+
} catch (error) {
|
|
22502
|
+
console.error(error);
|
|
22503
|
+
}
|
|
22504
|
+
}
|
|
22505
|
+
}
|
|
22361
22506
|
};
|
|
22362
22507
|
|
|
22363
22508
|
// src/controller/control/form/search-form/search-form.service.ts
|
|
@@ -23873,7 +24018,7 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
23873
24018
|
import {
|
|
23874
24019
|
mergeInLeft,
|
|
23875
24020
|
ModelError as ModelError27,
|
|
23876
|
-
RuntimeModelError as
|
|
24021
|
+
RuntimeModelError as RuntimeModelError58
|
|
23877
24022
|
} from "@ibiz-template/core";
|
|
23878
24023
|
var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
23879
24024
|
constructor() {
|
|
@@ -23899,7 +24044,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
23899
24044
|
await super.onInit();
|
|
23900
24045
|
const { contentControl } = this.model;
|
|
23901
24046
|
if (!contentControl) {
|
|
23902
|
-
throw new
|
|
24047
|
+
throw new RuntimeModelError58(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
|
|
23903
24048
|
}
|
|
23904
24049
|
if (contentControl.controlType === "GRID") {
|
|
23905
24050
|
mergeInLeft(contentControl, {
|
|
@@ -23996,7 +24141,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
23996
24141
|
};
|
|
23997
24142
|
|
|
23998
24143
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
23999
|
-
import { RuntimeError as RuntimeError53, RuntimeModelError as
|
|
24144
|
+
import { RuntimeError as RuntimeError53, RuntimeModelError as RuntimeModelError59 } from "@ibiz-template/core";
|
|
24000
24145
|
import { createUUID as createUUID11 } from "qx-util";
|
|
24001
24146
|
|
|
24002
24147
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -24037,7 +24182,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
24037
24182
|
super.onInit();
|
|
24038
24183
|
const { contentControl } = this.model;
|
|
24039
24184
|
if (!contentControl) {
|
|
24040
|
-
throw new
|
|
24185
|
+
throw new RuntimeModelError59(this.model, "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6");
|
|
24041
24186
|
}
|
|
24042
24187
|
contentControl.enableAutoSave = this.enableCreate || this.enableUpdate;
|
|
24043
24188
|
const controlProvider = await getControlProvider(contentControl);
|
|
@@ -24409,6 +24554,19 @@ var FormTabPanelController = class extends FormDetailController {
|
|
|
24409
24554
|
onTabChange(tabId) {
|
|
24410
24555
|
this.state.activeTab = tabId;
|
|
24411
24556
|
}
|
|
24557
|
+
/**
|
|
24558
|
+
* 根据id去表单控制器里取得计数器对象
|
|
24559
|
+
* @return {*}
|
|
24560
|
+
* @author: zhujiamin
|
|
24561
|
+
* @Date: 2023-07-10 15:14:21
|
|
24562
|
+
*/
|
|
24563
|
+
getCounter(id) {
|
|
24564
|
+
const { counters } = this.form;
|
|
24565
|
+
if (counters && counters[id]) {
|
|
24566
|
+
return counters[id];
|
|
24567
|
+
}
|
|
24568
|
+
return null;
|
|
24569
|
+
}
|
|
24412
24570
|
};
|
|
24413
24571
|
|
|
24414
24572
|
// src/controller/control/form/edit-form/edit-form.controller.ts
|
|
@@ -24424,7 +24582,7 @@ import { clone as clone25 } from "ramda";
|
|
|
24424
24582
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
24425
24583
|
import {
|
|
24426
24584
|
recursiveIterate as recursiveIterate6,
|
|
24427
|
-
RuntimeModelError as
|
|
24585
|
+
RuntimeModelError as RuntimeModelError60
|
|
24428
24586
|
} from "@ibiz-template/core";
|
|
24429
24587
|
var EditFormService = class extends FormService {
|
|
24430
24588
|
/**
|
|
@@ -24548,7 +24706,7 @@ var EditFormService = class extends FormService {
|
|
|
24548
24706
|
const wizardForm = this.model;
|
|
24549
24707
|
const methodName = (_a = wizardForm.goBackControlAction) == null ? void 0 : _a.appDEMethodId;
|
|
24550
24708
|
if (!methodName) {
|
|
24551
|
-
throw new
|
|
24709
|
+
throw new RuntimeModelError60(this.model, "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A");
|
|
24552
24710
|
}
|
|
24553
24711
|
let res = await this.exec(
|
|
24554
24712
|
methodName,
|
|
@@ -25125,10 +25283,13 @@ var EditFormController = class extends FormController {
|
|
|
25125
25283
|
if (!this.model.enableAutoSave) {
|
|
25126
25284
|
return;
|
|
25127
25285
|
}
|
|
25128
|
-
const {
|
|
25286
|
+
const { autoSaveMode } = this.model;
|
|
25129
25287
|
const saveParam = { silent: true, noFillBack: true };
|
|
25130
|
-
|
|
25131
|
-
|
|
25288
|
+
switch (autoSaveMode) {
|
|
25289
|
+
case 3:
|
|
25290
|
+
saveParam.data = this.getDiffData();
|
|
25291
|
+
break;
|
|
25292
|
+
default:
|
|
25132
25293
|
}
|
|
25133
25294
|
try {
|
|
25134
25295
|
await this.save(saveParam);
|
|
@@ -25410,12 +25571,12 @@ import {
|
|
|
25410
25571
|
mergeDefaultInLeft,
|
|
25411
25572
|
recursiveIterate as recursiveIterate7,
|
|
25412
25573
|
RuntimeError as RuntimeError55,
|
|
25413
|
-
RuntimeModelError as
|
|
25574
|
+
RuntimeModelError as RuntimeModelError62
|
|
25414
25575
|
} from "@ibiz-template/core";
|
|
25415
25576
|
import { clone as clone26 } from "ramda";
|
|
25416
25577
|
|
|
25417
25578
|
// src/controller/control/grid/grid/grid.service.ts
|
|
25418
|
-
import { RuntimeModelError as
|
|
25579
|
+
import { RuntimeModelError as RuntimeModelError61 } from "@ibiz-template/core";
|
|
25419
25580
|
var GridService = class extends MDControlService {
|
|
25420
25581
|
/**
|
|
25421
25582
|
* 初始化属性映射
|
|
@@ -25443,7 +25604,7 @@ var GridService = class extends MDControlService {
|
|
|
25443
25604
|
dataType: dataItem.dataType
|
|
25444
25605
|
});
|
|
25445
25606
|
} else {
|
|
25446
|
-
throw new
|
|
25607
|
+
throw new RuntimeModelError61(
|
|
25447
25608
|
column,
|
|
25448
25609
|
"\u672A\u627E\u5230\u5BF9\u5E94\u7684\u8868\u683C\u6570\u636E\u9879[".concat(deField, "]")
|
|
25449
25610
|
);
|
|
@@ -25753,11 +25914,11 @@ var GridController = class extends MDControlController {
|
|
|
25753
25914
|
(item) => item.model.appDEFieldId === groupAppDEFieldId
|
|
25754
25915
|
);
|
|
25755
25916
|
if (!this.groupFieldColumn) {
|
|
25756
|
-
throw new
|
|
25917
|
+
throw new RuntimeModelError62(this.model, "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217");
|
|
25757
25918
|
}
|
|
25758
25919
|
const groupFieldName = this.groupFieldColumn.model.id;
|
|
25759
25920
|
if (!this.groupFieldColumn.model.appCodeListId) {
|
|
25760
|
-
throw new
|
|
25921
|
+
throw new RuntimeModelError62(
|
|
25761
25922
|
this.groupFieldColumn.model,
|
|
25762
25923
|
"\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217".concat(groupFieldName, "\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868")
|
|
25763
25924
|
);
|
|
@@ -25767,7 +25928,7 @@ var GridController = class extends MDControlController {
|
|
|
25767
25928
|
);
|
|
25768
25929
|
if (index !== -1 && index !== 0) {
|
|
25769
25930
|
if (this.isMultistageHeader) {
|
|
25770
|
-
throw new
|
|
25931
|
+
throw new RuntimeModelError62(
|
|
25771
25932
|
this.model,
|
|
25772
25933
|
"\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217".concat(groupFieldName, "\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217")
|
|
25773
25934
|
);
|
|
@@ -25777,10 +25938,10 @@ var GridController = class extends MDControlController {
|
|
|
25777
25938
|
}
|
|
25778
25939
|
if (groupMode === "CODELIST") {
|
|
25779
25940
|
if (!groupCodeListId) {
|
|
25780
|
-
throw new
|
|
25941
|
+
throw new RuntimeModelError62(this.model, "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868");
|
|
25781
25942
|
}
|
|
25782
25943
|
if (this.groupFieldColumn.model.appCodeListId !== groupCodeListId) {
|
|
25783
|
-
throw new
|
|
25944
|
+
throw new RuntimeModelError62(
|
|
25784
25945
|
this.model,
|
|
25785
25946
|
"\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217".concat(groupFieldName, "\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4")
|
|
25786
25947
|
);
|
|
@@ -25868,7 +26029,7 @@ var GridController = class extends MDControlController {
|
|
|
25868
26029
|
return;
|
|
25869
26030
|
}
|
|
25870
26031
|
if (!aggAppDEDataSetId || !aggAppDataEntityId) {
|
|
25871
|
-
throw new
|
|
26032
|
+
throw new RuntimeModelError62(this.model, "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6");
|
|
25872
26033
|
}
|
|
25873
26034
|
const params = await this.getFetchParams();
|
|
25874
26035
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
@@ -26476,12 +26637,12 @@ var GridController = class extends MDControlController {
|
|
|
26476
26637
|
(column) => column.caption
|
|
26477
26638
|
);
|
|
26478
26639
|
} else {
|
|
26479
|
-
|
|
26480
|
-
|
|
26481
|
-
|
|
26482
|
-
|
|
26483
|
-
|
|
26484
|
-
);
|
|
26640
|
+
const { degridColumns } = this.model;
|
|
26641
|
+
if (!degridColumns) {
|
|
26642
|
+
throw new RuntimeError55("\u65E0\u8868\u683C\u5217");
|
|
26643
|
+
}
|
|
26644
|
+
filterVal = degridColumns.map((item) => item.id);
|
|
26645
|
+
header = degridColumns.map((item) => item.caption);
|
|
26485
26646
|
}
|
|
26486
26647
|
const data = formatArrayData(filterVal, await getExportData());
|
|
26487
26648
|
await exportData(header, data, this.model.logicName);
|
|
@@ -26967,7 +27128,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
26967
27128
|
};
|
|
26968
27129
|
|
|
26969
27130
|
// src/controller/control/grid/grid-column/grid-ua-column/grid-ua-column.controller.ts
|
|
26970
|
-
import { RuntimeModelError as
|
|
27131
|
+
import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
26971
27132
|
var GridUAColumnController = class extends GridColumnController {
|
|
26972
27133
|
/**
|
|
26973
27134
|
* 给rowController初始化操作列的状态
|
|
@@ -26980,7 +27141,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
26980
27141
|
var _a;
|
|
26981
27142
|
const { deuiactionGroup } = this.model;
|
|
26982
27143
|
if (!deuiactionGroup) {
|
|
26983
|
-
throw new
|
|
27144
|
+
throw new RuntimeModelError63(this.model, "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4");
|
|
26984
27145
|
}
|
|
26985
27146
|
if (!((_a = deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
26986
27147
|
ibiz.log.debug("\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A");
|
|
@@ -28194,7 +28355,7 @@ import { clone as clone28, isNil as isNil28 } from "ramda";
|
|
|
28194
28355
|
import { isString as isString2 } from "lodash-es";
|
|
28195
28356
|
|
|
28196
28357
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
28197
|
-
import { RuntimeModelError as
|
|
28358
|
+
import { RuntimeModelError as RuntimeModelError64 } from "@ibiz-template/core";
|
|
28198
28359
|
var ExcludeOPs = [
|
|
28199
28360
|
"ISNULL" /* IS_NULL */,
|
|
28200
28361
|
"ISNOTNULL" /* IS_NOT_NULL */
|
|
@@ -28242,7 +28403,7 @@ var SearchBarFilterController = class {
|
|
|
28242
28403
|
async init() {
|
|
28243
28404
|
if (!this.noEditor) {
|
|
28244
28405
|
if (!this.model.editor) {
|
|
28245
|
-
throw new
|
|
28406
|
+
throw new RuntimeModelError64(this.model, "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B");
|
|
28246
28407
|
}
|
|
28247
28408
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
28248
28409
|
if (this.editorProvider) {
|
|
@@ -29431,7 +29592,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
29431
29592
|
// src/controller/control/tree/tree.controller.ts
|
|
29432
29593
|
import {
|
|
29433
29594
|
RuntimeError as RuntimeError59,
|
|
29434
|
-
RuntimeModelError as
|
|
29595
|
+
RuntimeModelError as RuntimeModelError65,
|
|
29435
29596
|
recursiveIterate as recursiveIterate11
|
|
29436
29597
|
} from "@ibiz-template/core";
|
|
29437
29598
|
|
|
@@ -29717,6 +29878,49 @@ var TreeService = class extends MDControlService {
|
|
|
29717
29878
|
}
|
|
29718
29879
|
return [];
|
|
29719
29880
|
}
|
|
29881
|
+
/**
|
|
29882
|
+
* 删除单条数据
|
|
29883
|
+
*
|
|
29884
|
+
* @author lxm
|
|
29885
|
+
* @date 2022-09-07 19:09:48
|
|
29886
|
+
* @param {IContext} context 上下文
|
|
29887
|
+
* @param {IParams} [params={}] 视图参数
|
|
29888
|
+
* @returns {*}
|
|
29889
|
+
*/
|
|
29890
|
+
async removeItem(appDataEntityId, context, params = {}) {
|
|
29891
|
+
var _a;
|
|
29892
|
+
const removeAction = ((_a = this.model.removeControlAction) == null ? void 0 : _a.appDEMethodId) || "remove";
|
|
29893
|
+
const res = await this.execWithEntityId(
|
|
29894
|
+
appDataEntityId,
|
|
29895
|
+
removeAction,
|
|
29896
|
+
context,
|
|
29897
|
+
void 0,
|
|
29898
|
+
params
|
|
29899
|
+
);
|
|
29900
|
+
return res;
|
|
29901
|
+
}
|
|
29902
|
+
/**
|
|
29903
|
+
* 执行服务方法(带实体id)
|
|
29904
|
+
*
|
|
29905
|
+
* @author lxm
|
|
29906
|
+
* @date 2022-08-31 17:08:41
|
|
29907
|
+
* @param {string} methodName 方法名
|
|
29908
|
+
* @param {IContext} context 上下文
|
|
29909
|
+
* @param {IParams} [params={}] 视图参数或数据
|
|
29910
|
+
* @returns {*} {Promise<IHttpResponse>}
|
|
29911
|
+
*/
|
|
29912
|
+
async execWithEntityId(appDataEntityId, methodName, context, data, params) {
|
|
29913
|
+
const header = this.handleCustomRequestHeader();
|
|
29914
|
+
const res = await this.app.deService.exec(
|
|
29915
|
+
appDataEntityId,
|
|
29916
|
+
methodName,
|
|
29917
|
+
context,
|
|
29918
|
+
data,
|
|
29919
|
+
params,
|
|
29920
|
+
header
|
|
29921
|
+
);
|
|
29922
|
+
return res;
|
|
29923
|
+
}
|
|
29720
29924
|
};
|
|
29721
29925
|
|
|
29722
29926
|
// src/controller/control/tree/tree.controller.ts
|
|
@@ -30340,7 +30544,7 @@ var TreeController = class extends MDControlController {
|
|
|
30340
30544
|
const { sortAppDEFieldId, sortDir, allowOrder } = orderNodeModel;
|
|
30341
30545
|
if (allowOrder === true) {
|
|
30342
30546
|
if (!sortAppDEFieldId) {
|
|
30343
|
-
throw new
|
|
30547
|
+
throw new RuntimeModelError65(orderNodeModel, "\u7F3A\u5C11\u914D\u7F6E\u6392\u5E8F\u5C5E\u6027");
|
|
30344
30548
|
}
|
|
30345
30549
|
const sortField = sortAppDEFieldId.toLowerCase();
|
|
30346
30550
|
const isAsc = sortDir === "ASC";
|
|
@@ -30421,7 +30625,7 @@ var TreeController = class extends MDControlController {
|
|
|
30421
30625
|
async modifyNodeText(nodeData, text) {
|
|
30422
30626
|
const model = this.getNodeModel(nodeData._nodeId);
|
|
30423
30627
|
if (!model.allowEditText) {
|
|
30424
|
-
throw new
|
|
30628
|
+
throw new RuntimeModelError65(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
|
|
30425
30629
|
}
|
|
30426
30630
|
if (nodeData._nodeType !== "DE") {
|
|
30427
30631
|
throw new RuntimeError59("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
|
|
@@ -30430,18 +30634,30 @@ var TreeController = class extends MDControlController {
|
|
|
30430
30634
|
await this.updateDeNodeData([nodeData]);
|
|
30431
30635
|
}
|
|
30432
30636
|
/**
|
|
30433
|
-
*
|
|
30434
|
-
* @param {IData} item
|
|
30637
|
+
* 删除每一项
|
|
30435
30638
|
* @return {*}
|
|
30436
30639
|
* @author: zhujiamin
|
|
30437
|
-
* @Date: 2024-02-
|
|
30640
|
+
* @Date: 2024-02-27 09:47:52
|
|
30438
30641
|
*/
|
|
30439
|
-
|
|
30642
|
+
async handleItemRemove(item, context, params) {
|
|
30643
|
+
let needRefresh = false;
|
|
30440
30644
|
const treeNode = this.getNodeModel(item._nodeId);
|
|
30441
|
-
if (treeNode) {
|
|
30442
|
-
|
|
30645
|
+
if (!treeNode) {
|
|
30646
|
+
throw new RuntimeError59("\u672A\u627E\u5230\u6811\u8282\u70B9");
|
|
30443
30647
|
}
|
|
30444
|
-
|
|
30648
|
+
const nodeAppDataEntityId = treeNode.appDataEntityId;
|
|
30649
|
+
if (nodeAppDataEntityId) {
|
|
30650
|
+
const deName = calcDeCodeNameById(nodeAppDataEntityId);
|
|
30651
|
+
if (item.srfuf !== 0 /* CREATE */) {
|
|
30652
|
+
const tempContext = context.clone();
|
|
30653
|
+
tempContext[deName] = item.srfkey;
|
|
30654
|
+
await this.service.removeItem(nodeAppDataEntityId, tempContext, params);
|
|
30655
|
+
needRefresh = true;
|
|
30656
|
+
}
|
|
30657
|
+
}
|
|
30658
|
+
return needRefresh;
|
|
30659
|
+
}
|
|
30660
|
+
onDataChange(_msg) {
|
|
30445
30661
|
}
|
|
30446
30662
|
};
|
|
30447
30663
|
|
|
@@ -30798,7 +31014,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
30798
31014
|
};
|
|
30799
31015
|
|
|
30800
31016
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
30801
|
-
import { RuntimeModelError as
|
|
31017
|
+
import { RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
|
|
30802
31018
|
import { isNil as isNil29 } from "ramda";
|
|
30803
31019
|
|
|
30804
31020
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
@@ -31005,7 +31221,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
31005
31221
|
const { enableGroup, groupMode, groupAppDEFieldId } = this.model;
|
|
31006
31222
|
if (enableGroup && groupMode) {
|
|
31007
31223
|
if (!groupAppDEFieldId) {
|
|
31008
|
-
throw new
|
|
31224
|
+
throw new RuntimeModelError66(this.model, "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E");
|
|
31009
31225
|
}
|
|
31010
31226
|
if (groupMode === "AUTO") {
|
|
31011
31227
|
this.handleAutoGroup();
|
|
@@ -31072,7 +31288,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
31072
31288
|
async handleCodeListGroup() {
|
|
31073
31289
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
31074
31290
|
if (!groupCodeListId) {
|
|
31075
|
-
throw new
|
|
31291
|
+
throw new RuntimeModelError66(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
31076
31292
|
}
|
|
31077
31293
|
const { items } = this.state;
|
|
31078
31294
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -31102,7 +31318,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
31102
31318
|
};
|
|
31103
31319
|
|
|
31104
31320
|
// src/controller/control/kanban/kanban.controller.ts
|
|
31105
|
-
import { RuntimeError as RuntimeError61, RuntimeModelError as
|
|
31321
|
+
import { RuntimeError as RuntimeError61, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
|
|
31106
31322
|
import { isNil as isNil30 } from "ramda";
|
|
31107
31323
|
|
|
31108
31324
|
// src/controller/control/kanban/kanban.service.ts
|
|
@@ -31180,10 +31396,10 @@ var KanbanController = class extends DataViewControlController {
|
|
|
31180
31396
|
const sortField = this.model.minorSortAppDEFieldId;
|
|
31181
31397
|
const { minorSortDir } = this.model;
|
|
31182
31398
|
if (!sortField) {
|
|
31183
|
-
throw new
|
|
31399
|
+
throw new RuntimeModelError67(this.model, "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E");
|
|
31184
31400
|
}
|
|
31185
31401
|
if (!minorSortDir) {
|
|
31186
|
-
throw new
|
|
31402
|
+
throw new RuntimeModelError67(this.model, "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E");
|
|
31187
31403
|
}
|
|
31188
31404
|
const isAsc = minorSortDir === "ASC";
|
|
31189
31405
|
items.forEach((item) => {
|
|
@@ -31327,7 +31543,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
31327
31543
|
async handleCodeListGroup() {
|
|
31328
31544
|
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
31329
31545
|
if (!groupCodeListId) {
|
|
31330
|
-
throw new
|
|
31546
|
+
throw new RuntimeModelError67(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
31331
31547
|
}
|
|
31332
31548
|
const { items } = this.state;
|
|
31333
31549
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -31623,7 +31839,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
31623
31839
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
31624
31840
|
import {
|
|
31625
31841
|
RuntimeError as RuntimeError62,
|
|
31626
|
-
RuntimeModelError as
|
|
31842
|
+
RuntimeModelError as RuntimeModelError68,
|
|
31627
31843
|
awaitTimeout as awaitTimeout3,
|
|
31628
31844
|
recursiveIterate as recursiveIterate12
|
|
31629
31845
|
} from "@ibiz-template/core";
|
|
@@ -31903,7 +32119,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
31903
32119
|
throw new RuntimeError62("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
|
|
31904
32120
|
}
|
|
31905
32121
|
if (!updateAppDEActionId) {
|
|
31906
|
-
throw new
|
|
32122
|
+
throw new RuntimeModelError68(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
|
|
31907
32123
|
}
|
|
31908
32124
|
const deName = calcDeCodeNameById(appDataEntityId);
|
|
31909
32125
|
const tempContext = this.context.clone();
|
|
@@ -32174,7 +32390,7 @@ var TreeGridExColumnController = class {
|
|
|
32174
32390
|
import {
|
|
32175
32391
|
DataTypes as DataTypes5,
|
|
32176
32392
|
RuntimeError as RuntimeError63,
|
|
32177
|
-
RuntimeModelError as
|
|
32393
|
+
RuntimeModelError as RuntimeModelError69
|
|
32178
32394
|
} from "@ibiz-template/core";
|
|
32179
32395
|
import { clone as clone30 } from "ramda";
|
|
32180
32396
|
import dayjs6 from "dayjs";
|
|
@@ -32205,7 +32421,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
32205
32421
|
}
|
|
32206
32422
|
);
|
|
32207
32423
|
if (!nodeColumn || !nodeDataItem) {
|
|
32208
|
-
throw new
|
|
32424
|
+
throw new RuntimeModelError69(
|
|
32209
32425
|
nodeModel,
|
|
32210
32426
|
"\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u6570\u636E\u9879")
|
|
32211
32427
|
);
|
|
@@ -32219,7 +32435,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
32219
32435
|
}
|
|
32220
32436
|
);
|
|
32221
32437
|
if (!nodeEditItem) {
|
|
32222
|
-
throw new
|
|
32438
|
+
throw new RuntimeModelError69(
|
|
32223
32439
|
nodeModel,
|
|
32224
32440
|
"\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u8868\u683C\u5217".concat(this.fieldColumn.name, "\u7684\u7F16\u8F91\u9879\u6A21\u578B")
|
|
32225
32441
|
);
|
|
@@ -32719,7 +32935,7 @@ var TreeGridExUAColumnController = class extends TreeGridExColumnController {
|
|
|
32719
32935
|
};
|
|
32720
32936
|
|
|
32721
32937
|
// src/controller/control/tree-grid/tree-grid.controller.ts
|
|
32722
|
-
import { RuntimeModelError as
|
|
32938
|
+
import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
|
|
32723
32939
|
var TreeGridController = class extends GridController {
|
|
32724
32940
|
constructor() {
|
|
32725
32941
|
super(...arguments);
|
|
@@ -32764,10 +32980,10 @@ var TreeGridController = class extends GridController {
|
|
|
32764
32980
|
return item.treeColumnMode === 2 || item.treeColumnMode === 3;
|
|
32765
32981
|
});
|
|
32766
32982
|
if (!treeGridParent) {
|
|
32767
|
-
throw new
|
|
32983
|
+
throw new RuntimeModelError70(this.model, "\u6811\u8868\u683C\u65E0\u503C\u5217\u6A21\u5F0F");
|
|
32768
32984
|
}
|
|
32769
32985
|
if (!treeGridValue) {
|
|
32770
|
-
throw new
|
|
32986
|
+
throw new RuntimeModelError70(this.model, "\u6811\u8868\u683C\u65E0\u7236\u503C\u5217\u6A21\u5F0F");
|
|
32771
32987
|
}
|
|
32772
32988
|
this.treeGridValueField = treeGridValue.appDEFieldId.toLowerCase();
|
|
32773
32989
|
this.treeGridParentField = treeGridParent.appDEFieldId.toLowerCase();
|
|
@@ -33510,7 +33726,11 @@ var ReportPanelController = class extends ControlController {
|
|
|
33510
33726
|
};
|
|
33511
33727
|
|
|
33512
33728
|
// src/controller/control/gantt/gantt.controller.ts
|
|
33513
|
-
import {
|
|
33729
|
+
import {
|
|
33730
|
+
awaitTimeout as awaitTimeout4,
|
|
33731
|
+
RuntimeError as RuntimeError65,
|
|
33732
|
+
RuntimeModelError as RuntimeModelError71
|
|
33733
|
+
} from "@ibiz-template/core";
|
|
33514
33734
|
|
|
33515
33735
|
// src/controller/control/gantt/gantt.service.ts
|
|
33516
33736
|
import { ModelError as ModelError31 } from "@ibiz-template/core";
|
|
@@ -33826,6 +34046,96 @@ var GanttController = class extends TreeGridExController {
|
|
|
33826
34046
|
setGanttStyle(style) {
|
|
33827
34047
|
this.state.ganttStyle = style;
|
|
33828
34048
|
}
|
|
34049
|
+
async onCreated() {
|
|
34050
|
+
await super.onCreated();
|
|
34051
|
+
this.initViewScheduler();
|
|
34052
|
+
}
|
|
34053
|
+
/**
|
|
34054
|
+
* 初始化视图触发器
|
|
34055
|
+
*
|
|
34056
|
+
* @protected
|
|
34057
|
+
* @memberof GanttController
|
|
34058
|
+
*/
|
|
34059
|
+
initViewScheduler() {
|
|
34060
|
+
const viewLogics = this.model.appViewLogics || [];
|
|
34061
|
+
if (viewLogics.length !== 0) {
|
|
34062
|
+
this.viewScheduler = ibiz.scheduler.createViewScheduler(viewLogics);
|
|
34063
|
+
this.viewScheduler.defaultParamsCb = () => {
|
|
34064
|
+
return this.getEventArgs();
|
|
34065
|
+
};
|
|
34066
|
+
if (this.viewScheduler.hasViewEventTrigger) {
|
|
34067
|
+
this.evt.onAll((_eventName, event) => {
|
|
34068
|
+
this.viewScheduler.triggerViewEvent(event);
|
|
34069
|
+
});
|
|
34070
|
+
}
|
|
34071
|
+
}
|
|
34072
|
+
}
|
|
34073
|
+
/**
|
|
34074
|
+
* 设置激活数据
|
|
34075
|
+
*
|
|
34076
|
+
* @param {IGanttNodeData} item
|
|
34077
|
+
* @return {*} {Promise<void>}
|
|
34078
|
+
* @memberof GanttController
|
|
34079
|
+
*/
|
|
34080
|
+
async setActive(item) {
|
|
34081
|
+
const nodeParams = this.parseTreeNodeData(item);
|
|
34082
|
+
if (item._nodeType === "DE") {
|
|
34083
|
+
await this.onNodeDataActive(nodeParams);
|
|
34084
|
+
}
|
|
34085
|
+
return this._evt.emit("onActive", { ...nodeParams, nodeData: item });
|
|
34086
|
+
}
|
|
34087
|
+
/**
|
|
34088
|
+
* 节点数据激活
|
|
34089
|
+
*
|
|
34090
|
+
* @param {IGanttNodeData} item
|
|
34091
|
+
* @return {*} {Promise<void>}
|
|
34092
|
+
* @memberof GanttController
|
|
34093
|
+
*/
|
|
34094
|
+
async onNodeDataActive(nodeParams) {
|
|
34095
|
+
const res = await this.openData(nodeParams);
|
|
34096
|
+
if (!res.cancel) {
|
|
34097
|
+
this.refreshNodeChildren(nodeParams.data[0], true);
|
|
34098
|
+
}
|
|
34099
|
+
}
|
|
34100
|
+
/**
|
|
34101
|
+
* 打开编辑数据视图
|
|
34102
|
+
*
|
|
34103
|
+
* @param {IGanttNodeData} item
|
|
34104
|
+
* @memberof GanttController
|
|
34105
|
+
*/
|
|
34106
|
+
async openData({
|
|
34107
|
+
data,
|
|
34108
|
+
context,
|
|
34109
|
+
params
|
|
34110
|
+
}) {
|
|
34111
|
+
var _a, _b;
|
|
34112
|
+
const nodeData = data[0];
|
|
34113
|
+
const nodeModel = this.getNodeModel(nodeData._nodeId);
|
|
34114
|
+
const { appDataEntityId } = nodeModel;
|
|
34115
|
+
const deName = calcDeCodeNameById(appDataEntityId);
|
|
34116
|
+
context[deName.toLowerCase()] = (_a = nodeData._deData) == null ? void 0 : _a.srfkey;
|
|
34117
|
+
const result = await ((_b = this.viewScheduler) == null ? void 0 : _b.triggerCustom(
|
|
34118
|
+
"".concat(nodeModel.id.toLowerCase(), "_opendata"),
|
|
34119
|
+
{
|
|
34120
|
+
context,
|
|
34121
|
+
params,
|
|
34122
|
+
data,
|
|
34123
|
+
event: void 0,
|
|
34124
|
+
view: this.view,
|
|
34125
|
+
ctrl: this
|
|
34126
|
+
}
|
|
34127
|
+
));
|
|
34128
|
+
if (result === -1) {
|
|
34129
|
+
throw new RuntimeModelError71(
|
|
34130
|
+
nodeModel,
|
|
34131
|
+
"\u7F3A\u5C11".concat(nodeModel.id.toLowerCase(), "_opendata\u7684\u89C6\u56FE\u903B\u8F91")
|
|
34132
|
+
);
|
|
34133
|
+
} else {
|
|
34134
|
+
return {
|
|
34135
|
+
cancel: result ? result.ok : true
|
|
34136
|
+
};
|
|
34137
|
+
}
|
|
34138
|
+
}
|
|
33829
34139
|
/**
|
|
33830
34140
|
* 设置行属性的值
|
|
33831
34141
|
*
|
|
@@ -33970,8 +34280,11 @@ var GanttController = class extends TreeGridExController {
|
|
|
33970
34280
|
tempContext,
|
|
33971
34281
|
params
|
|
33972
34282
|
);
|
|
33973
|
-
if (refreshNode) {
|
|
33974
|
-
|
|
34283
|
+
if (!refreshNode && item._parent) {
|
|
34284
|
+
const parentNodeData = this.getNodeData(
|
|
34285
|
+
item._parent._id
|
|
34286
|
+
);
|
|
34287
|
+
refreshNode = parentNodeData;
|
|
33975
34288
|
}
|
|
33976
34289
|
needRefresh = true;
|
|
33977
34290
|
}
|
|
@@ -33985,8 +34298,8 @@ var GanttController = class extends TreeGridExController {
|
|
|
33985
34298
|
default: "\u6570\u636E[".concat(data.map((item) => item.srfmajortext).join("\u3001"), "]\u5220\u9664\u6210\u529F!")
|
|
33986
34299
|
});
|
|
33987
34300
|
}
|
|
33988
|
-
if (needRefresh && !(args == null ? void 0 : args.notRefresh)) {
|
|
33989
|
-
await this.refreshNodeChildren(refreshNode
|
|
34301
|
+
if (needRefresh && refreshNode && !(args == null ? void 0 : args.notRefresh)) {
|
|
34302
|
+
await this.refreshNodeChildren(refreshNode);
|
|
33990
34303
|
}
|
|
33991
34304
|
} catch (error) {
|
|
33992
34305
|
await this._evt.emit("onRemoveError", void 0);
|
|
@@ -34016,7 +34329,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
34016
34329
|
if (this.state.rows[data._uuid]) {
|
|
34017
34330
|
delete this.state.rows[data._uuid];
|
|
34018
34331
|
}
|
|
34019
|
-
if (data.
|
|
34332
|
+
if (data._parent) {
|
|
34020
34333
|
const parentNodeData = this.getNodeData(
|
|
34021
34334
|
data._parent._id
|
|
34022
34335
|
);
|
|
@@ -34277,6 +34590,9 @@ var AsyncActionController = class {
|
|
|
34277
34590
|
};
|
|
34278
34591
|
|
|
34279
34592
|
// src/controller/notification/internal-message.controller.ts
|
|
34593
|
+
import {
|
|
34594
|
+
IBizContext as IBizContext4
|
|
34595
|
+
} from "@ibiz-template/core";
|
|
34280
34596
|
import { QXEvent as QXEvent8 } from "qx-util";
|
|
34281
34597
|
function isHTML(str) {
|
|
34282
34598
|
if (str === "")
|
|
@@ -34302,7 +34618,6 @@ var InternalMessageController = class {
|
|
|
34302
34618
|
this.service = new InternalMessageService();
|
|
34303
34619
|
}
|
|
34304
34620
|
async init() {
|
|
34305
|
-
await this.load();
|
|
34306
34621
|
this.listenMqtt();
|
|
34307
34622
|
await this.refreshUnreadCount();
|
|
34308
34623
|
}
|
|
@@ -34389,10 +34704,22 @@ var InternalMessageController = class {
|
|
|
34389
34704
|
return;
|
|
34390
34705
|
}
|
|
34391
34706
|
if (msg.content) {
|
|
34392
|
-
ibiz.notification.
|
|
34707
|
+
ibiz.notification.default({
|
|
34393
34708
|
isHtmlDesc: isHTML(msg.content),
|
|
34394
34709
|
desc: msg.content,
|
|
34395
|
-
position: "bottom-right"
|
|
34710
|
+
position: "bottom-right",
|
|
34711
|
+
onClick: () => {
|
|
34712
|
+
const redirectUrl = ibiz.env.isMob ? msg.mobileurl : msg.url;
|
|
34713
|
+
if (redirectUrl) {
|
|
34714
|
+
const { viewId, context, params } = parseViewProtocol(redirectUrl);
|
|
34715
|
+
ibiz.commands.execute(
|
|
34716
|
+
OpenAppViewCommand.TAG,
|
|
34717
|
+
viewId,
|
|
34718
|
+
IBizContext4.create(context),
|
|
34719
|
+
params
|
|
34720
|
+
);
|
|
34721
|
+
}
|
|
34722
|
+
}
|
|
34396
34723
|
});
|
|
34397
34724
|
}
|
|
34398
34725
|
this.refreshUnreadCount();
|
|
@@ -35129,7 +35456,7 @@ var ViewEngineBase = class {
|
|
|
35129
35456
|
};
|
|
35130
35457
|
|
|
35131
35458
|
// src/engine/md-view.engine.ts
|
|
35132
|
-
import { RuntimeModelError as
|
|
35459
|
+
import { RuntimeModelError as RuntimeModelError72 } from "@ibiz-template/core";
|
|
35133
35460
|
import { clone as clone32 } from "ramda";
|
|
35134
35461
|
var MDViewEngine = class extends ViewEngineBase {
|
|
35135
35462
|
/**
|
|
@@ -35229,6 +35556,9 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
35229
35556
|
this.load();
|
|
35230
35557
|
}
|
|
35231
35558
|
}
|
|
35559
|
+
if (this.view.context.srfsimple == null) {
|
|
35560
|
+
this.view.context.srfsimple = true;
|
|
35561
|
+
}
|
|
35232
35562
|
}
|
|
35233
35563
|
/**
|
|
35234
35564
|
* 多数据部件激活事件处理
|
|
@@ -35317,7 +35647,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
35317
35647
|
view: this.view
|
|
35318
35648
|
}));
|
|
35319
35649
|
if (result === -1) {
|
|
35320
|
-
throw new
|
|
35650
|
+
throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11opendata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
35321
35651
|
} else {
|
|
35322
35652
|
return {
|
|
35323
35653
|
cancel: !result.ok
|
|
@@ -35340,7 +35670,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
35340
35670
|
(item) => item.id === "newdata"
|
|
35341
35671
|
);
|
|
35342
35672
|
if (!openAppViewLogic) {
|
|
35343
|
-
throw new
|
|
35673
|
+
throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
35344
35674
|
}
|
|
35345
35675
|
const params = clone32(this.view.params);
|
|
35346
35676
|
if (copyMode) {
|
|
@@ -35354,7 +35684,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
35354
35684
|
view: this.view
|
|
35355
35685
|
}));
|
|
35356
35686
|
if (result === -1) {
|
|
35357
|
-
throw new
|
|
35687
|
+
throw new RuntimeModelError72(this.view.model, "\u7F3A\u5C11newdata\u7684\u89C6\u56FE\u903B\u8F91");
|
|
35358
35688
|
} else {
|
|
35359
35689
|
return {
|
|
35360
35690
|
cancel: !result.ok
|
|
@@ -35623,10 +35953,18 @@ var GlobalUtil = class {
|
|
|
35623
35953
|
*/
|
|
35624
35954
|
setBrowserTitle(title) {
|
|
35625
35955
|
const app = ibiz.hub.getApp();
|
|
35956
|
+
let tabTitle = "";
|
|
35957
|
+
if (ibiz.env.AppTitle) {
|
|
35958
|
+
tabTitle = ibiz.env.AppTitle;
|
|
35959
|
+
} else if (app.model.title) {
|
|
35960
|
+
tabTitle = app.model.title;
|
|
35961
|
+
} else {
|
|
35962
|
+
tabTitle = sourceTitle;
|
|
35963
|
+
}
|
|
35626
35964
|
if (title) {
|
|
35627
|
-
document.title = "".concat(
|
|
35965
|
+
document.title = "".concat(tabTitle, " - ").concat(title);
|
|
35628
35966
|
} else {
|
|
35629
|
-
document.title =
|
|
35967
|
+
document.title = tabTitle;
|
|
35630
35968
|
}
|
|
35631
35969
|
}
|
|
35632
35970
|
};
|
|
@@ -35744,13 +36082,13 @@ var ScriptExecutor = class extends LogicExecutor {
|
|
|
35744
36082
|
};
|
|
35745
36083
|
|
|
35746
36084
|
// src/logic-scheduler/executor/app-de-ui-logic-executor.ts
|
|
35747
|
-
import { RuntimeModelError as
|
|
36085
|
+
import { RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
35748
36086
|
var AppDEUILogicExecutor = class extends LogicExecutor {
|
|
35749
36087
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35750
36088
|
execute(executeParams) {
|
|
35751
36089
|
const { appDEUILogicId, appDataEntityId } = this.logic;
|
|
35752
36090
|
if (!appDEUILogicId) {
|
|
35753
|
-
throw new
|
|
36091
|
+
throw new RuntimeModelError73(this.logic, "\u6CA1\u6709\u914D\u7F6E\u5B9E\u4F53\u754C\u9762\u903B\u8F91");
|
|
35754
36092
|
}
|
|
35755
36093
|
return execUILogic(appDEUILogicId, appDataEntityId, executeParams);
|
|
35756
36094
|
}
|
|
@@ -36208,7 +36546,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
36208
36546
|
};
|
|
36209
36547
|
|
|
36210
36548
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
36211
|
-
import { RuntimeError as RuntimeError71, RuntimeModelError as
|
|
36549
|
+
import { RuntimeError as RuntimeError71, RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
|
|
36212
36550
|
var TimerTrigger = class extends LogicTrigger {
|
|
36213
36551
|
constructor() {
|
|
36214
36552
|
super(...arguments);
|
|
@@ -36216,7 +36554,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
36216
36554
|
}
|
|
36217
36555
|
start() {
|
|
36218
36556
|
if (!this.logic.timer) {
|
|
36219
|
-
throw new
|
|
36557
|
+
throw new RuntimeModelError74(this.logic, "\u5B9A\u65F6\u5668\u7F3A\u5C11\u5B9A\u65F6\u95F4\u9694");
|
|
36220
36558
|
}
|
|
36221
36559
|
this.timer = setInterval(() => {
|
|
36222
36560
|
if (!this.scheduler.defaultParamsCb) {
|
|
@@ -36238,7 +36576,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
36238
36576
|
import {
|
|
36239
36577
|
ModelError as ModelError34,
|
|
36240
36578
|
RuntimeError as RuntimeError72,
|
|
36241
|
-
RuntimeModelError as
|
|
36579
|
+
RuntimeModelError as RuntimeModelError75
|
|
36242
36580
|
} from "@ibiz-template/core";
|
|
36243
36581
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
36244
36582
|
var AppUILogicExecutor = class extends LogicExecutor {
|
|
@@ -36284,7 +36622,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36284
36622
|
} else {
|
|
36285
36623
|
openViewRef = appUILogic.openDataAppView;
|
|
36286
36624
|
if (!openViewRef) {
|
|
36287
|
-
throw new
|
|
36625
|
+
throw new RuntimeModelError75(
|
|
36288
36626
|
appUILogic,
|
|
36289
36627
|
"opendata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE"
|
|
36290
36628
|
);
|
|
@@ -36292,7 +36630,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36292
36630
|
}
|
|
36293
36631
|
const openView = openViewRef.refAppViewId;
|
|
36294
36632
|
if (!openView) {
|
|
36295
|
-
throw new
|
|
36633
|
+
throw new RuntimeModelError75(
|
|
36296
36634
|
appUILogic,
|
|
36297
36635
|
"opendata\u89C6\u56FE\u903B\u8F91\u7684\u9ED8\u8BA4\u6253\u5F00\u89C6\u56FE\u6CA1\u6709\u5B9E\u9645\u5F15\u7528\u89C6\u56FE"
|
|
36298
36636
|
);
|
|
@@ -36322,7 +36660,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36322
36660
|
);
|
|
36323
36661
|
const typeFileName = appDataEntity.formTypeAppDEFieldId || appDataEntity.dataTypeAppDEFieldId;
|
|
36324
36662
|
if (!typeFileName) {
|
|
36325
|
-
throw new
|
|
36663
|
+
throw new RuntimeModelError75(
|
|
36326
36664
|
appUILogic,
|
|
36327
36665
|
"".concat(appDataEntity.codeName, "[\u591A\u8868\u5355\u5B9E\u4F53] or [\u7D22\u5F15\u5B9E\u4F53]\u7F3A\u5C11\u7C7B\u578B\u5C5E\u6027\u914D\u7F6E")
|
|
36328
36666
|
);
|
|
@@ -36330,7 +36668,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36330
36668
|
const { data } = parameters;
|
|
36331
36669
|
const formTypeValue = data[0][typeFileName];
|
|
36332
36670
|
if (!formTypeValue) {
|
|
36333
|
-
throw new
|
|
36671
|
+
throw new RuntimeModelError75(appUILogic, "\u6570\u636E\u6E90\u65E0\u8868\u5355\u7C7B\u578B\u5E94\u7528\u5B9E\u4F53\u5C5E\u6027\u503C");
|
|
36334
36672
|
}
|
|
36335
36673
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
36336
36674
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
@@ -36372,7 +36710,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36372
36710
|
return viewRef.refMode.toLowerCase() !== parentDeName;
|
|
36373
36711
|
});
|
|
36374
36712
|
if (!newViewRef) {
|
|
36375
|
-
throw new
|
|
36713
|
+
throw new RuntimeModelError75(
|
|
36376
36714
|
appUILogic,
|
|
36377
36715
|
"\u6CA1\u6709\u627E\u5230\u6279\u6DFB\u52A0\u9700\u8981\u6253\u5F00\u7684\u9009\u62E9\u89C6\u56FE"
|
|
36378
36716
|
);
|
|
@@ -36382,7 +36720,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36382
36720
|
} else {
|
|
36383
36721
|
newViewRef = newDataAppView;
|
|
36384
36722
|
if (!newViewRef || !newViewRef.refAppViewId) {
|
|
36385
|
-
throw new
|
|
36723
|
+
throw new RuntimeModelError75(
|
|
36386
36724
|
appUILogic,
|
|
36387
36725
|
"newdata\u89C6\u56FE\u903B\u8F91\u6CA1\u6709\u914D\u7F6E\u9ED8\u8BA4\u65B0\u5EFA\u6570\u636E\u89C6\u56FE"
|
|
36388
36726
|
);
|
|
@@ -36446,7 +36784,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36446
36784
|
const { wizardAppView, newDataAppViews } = appUILogic;
|
|
36447
36785
|
const { context, params, ...rest } = parameters;
|
|
36448
36786
|
if (!wizardAppView || !wizardAppView.refAppViewId) {
|
|
36449
|
-
throw new
|
|
36787
|
+
throw new RuntimeModelError75(appUILogic, "\u7F3A\u5C11\u9ED8\u8BA4\u7D22\u5F15\u5B9E\u4F53\u9009\u62E9\u89C6\u56FE");
|
|
36450
36788
|
}
|
|
36451
36789
|
const result = await ibiz.commands.execute(
|
|
36452
36790
|
OpenAppViewCommand.TAG,
|
|
@@ -36497,7 +36835,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
36497
36835
|
const minorDERs = selfDe.minorAppDERSs;
|
|
36498
36836
|
const pickParentDeName = newViewRef.refMode.toLowerCase();
|
|
36499
36837
|
if (!minorDERs) {
|
|
36500
|
-
throw new
|
|
36838
|
+
throw new RuntimeModelError75(selfDe, "\u5B9E\u4F53\u6CA1\u6709\u4ECE\u5173\u7CFB\u96C6\u5408\uFF01");
|
|
36501
36839
|
}
|
|
36502
36840
|
let pickParentFieldName = "";
|
|
36503
36841
|
minorDERs == null ? void 0 : minorDERs.forEach((item) => {
|
|
@@ -36594,12 +36932,12 @@ var ControlEventTrigger = class extends LogicTrigger {
|
|
|
36594
36932
|
};
|
|
36595
36933
|
|
|
36596
36934
|
// src/logic-scheduler/executor/app-ui-action-executor.ts
|
|
36597
|
-
import { RuntimeModelError as
|
|
36935
|
+
import { RuntimeModelError as RuntimeModelError76 } from "@ibiz-template/core";
|
|
36598
36936
|
var AppDEUIActionExecutor = class extends LogicExecutor {
|
|
36599
36937
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36600
36938
|
execute(executeParams) {
|
|
36601
36939
|
if (!this.logic.appDEUIActionId) {
|
|
36602
|
-
throw new
|
|
36940
|
+
throw new RuntimeModelError76(
|
|
36603
36941
|
this.logic,
|
|
36604
36942
|
"\u903B\u8F91\u4E2D\u7F3A\u5C11\u89E6\u53D1\u5E94\u7528\u5B9E\u4F53\u754C\u9762\u884C\u4E3Aid"
|
|
36605
36943
|
);
|