@ibiz-template/runtime 0.6.16 → 0.6.18
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 +140 -33
- package/dist/index.system.min.js +1 -1
- package/out/constant/sys-uiaction-tag.d.ts +16 -0
- package/out/constant/sys-uiaction-tag.d.ts.map +1 -1
- package/out/constant/sys-uiaction-tag.js +16 -0
- package/out/controller/common/control/control.controller.js +1 -1
- 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 +8 -6
- package/out/controller/control/form/form/form.controller.d.ts +16 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +29 -1
- package/out/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.js +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +14 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +20 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +6 -0
- package/out/global/global-util/global-util.d.ts +14 -0
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +19 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts +63 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item-coop-pos.controller.js +1 -0
- package/out/interface/controller/controller/control/panel-item/index.d.ts +1 -0
- package/out/interface/controller/controller/control/panel-item/index.d.ts.map +1 -1
- package/out/interface/controller/controller/control/panel-item/index.js +1 -0
- package/out/interface/util/i-view-stack/i-view-stack.d.ts +8 -0
- package/out/interface/util/i-view-stack/i-view-stack.d.ts.map +1 -1
- package/out/model/utils/util.d.ts +5 -2
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +9 -4
- package/out/service/service/authority/authority.service.d.ts.map +1 -1
- package/out/service/service/authority/authority.service.js +3 -5
- package/out/service/utils/app-counter/app-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-counter.js +3 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +0 -1
- package/out/ui-logic/ui-logic-context.d.ts +7 -0
- package/out/ui-logic/ui-logic-context.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-context.js +7 -0
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +16 -3
- package/out/utils/view-stack/view-stack.d.ts +8 -0
- package/out/utils/view-stack/view-stack.d.ts.map +1 -1
- package/out/utils/view-stack/view-stack.js +10 -0
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -831,9 +831,14 @@ function findAppDEMethod(appDataEntity, id) {
|
|
|
831
831
|
}
|
|
832
832
|
return null;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
var _a, _b;
|
|
836
|
-
|
|
834
|
+
function getCtrlTeleportParams(control) {
|
|
835
|
+
var _a, _b, _c, _d;
|
|
836
|
+
const teleportTag = (_b = (_a = control.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.TELEPORTTAG;
|
|
837
|
+
const teleportFlag = ((_d = (_c = control.controlParam) == null ? void 0 : _c.ctrlParams) == null ? void 0 : _d.TELEPORTFLAG) === "true";
|
|
838
|
+
return {
|
|
839
|
+
teleportTag,
|
|
840
|
+
teleportFlag
|
|
841
|
+
};
|
|
837
842
|
}
|
|
838
843
|
|
|
839
844
|
// src/model/layout/layout.ts
|
|
@@ -2485,6 +2490,10 @@ var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
|
|
|
2485
2490
|
SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
|
|
2486
2491
|
SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
|
|
2487
2492
|
SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
|
|
2493
|
+
SysUIActionTag2["FIRST_RECORD"] = "FirstRecord";
|
|
2494
|
+
SysUIActionTag2["LAST_RECORD"] = "LastRecord";
|
|
2495
|
+
SysUIActionTag2["PREV_RECORD"] = "PrevRecord";
|
|
2496
|
+
SysUIActionTag2["NEXT_RECORD"] = "NextRecord";
|
|
2488
2497
|
SysUIActionTag2["LOAD_MORE"] = "LoadMore";
|
|
2489
2498
|
return SysUIActionTag2;
|
|
2490
2499
|
})(SysUIActionTag || {});
|
|
@@ -3291,6 +3300,16 @@ var ViewStack = class {
|
|
|
3291
3300
|
this.evt.emit("change", { type: "deactivate", view });
|
|
3292
3301
|
}
|
|
3293
3302
|
}
|
|
3303
|
+
/**
|
|
3304
|
+
* 获取视图堆栈里的视图控制器
|
|
3305
|
+
* @author lxm
|
|
3306
|
+
* @date 2024-04-01 01:15:52
|
|
3307
|
+
* @param {string} id
|
|
3308
|
+
* @return {*} {(IViewController | undefined)}
|
|
3309
|
+
*/
|
|
3310
|
+
getView(id) {
|
|
3311
|
+
return this.stackMap.get(id);
|
|
3312
|
+
}
|
|
3294
3313
|
/**
|
|
3295
3314
|
* 重新计算激活视图堆栈
|
|
3296
3315
|
*
|
|
@@ -6191,7 +6210,7 @@ var AppCounter = class {
|
|
|
6191
6210
|
const data = msg.data;
|
|
6192
6211
|
if (this.model.appDataEntityId) {
|
|
6193
6212
|
const codeName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
6194
|
-
if (data && data.srfdecodename === codeName) {
|
|
6213
|
+
if (data && data.srfdecodename && data.srfdecodename.toLowerCase() === codeName) {
|
|
6195
6214
|
this.refresh();
|
|
6196
6215
|
}
|
|
6197
6216
|
}
|
|
@@ -9561,8 +9580,8 @@ var AuthorityService = class {
|
|
|
9561
9580
|
if (this.enablePermission) {
|
|
9562
9581
|
const app = await ibiz.hub.getApp(this.appModel.appId);
|
|
9563
9582
|
const opPriv = await app.getOPPriv(dataAccessAction, appDeId);
|
|
9564
|
-
if (
|
|
9565
|
-
return
|
|
9583
|
+
if (opPriv && opPriv.mapSysUniResMode && opPriv.mapSysUniResCode) {
|
|
9584
|
+
return !!this.calcByResCode(opPriv.mapSysUniResCode);
|
|
9566
9585
|
}
|
|
9567
9586
|
}
|
|
9568
9587
|
if (appDeId) {
|
|
@@ -15962,7 +15981,7 @@ var ControlController = class extends BaseController {
|
|
|
15962
15981
|
}
|
|
15963
15982
|
if (this.model.appDataEntityId) {
|
|
15964
15983
|
const codeName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
15965
|
-
this.triggerKey = "".concat(codeName, "@").concat(this.model.controlType, "@").concat(this.model.codeName);
|
|
15984
|
+
this.triggerKey = "".concat(this.view.name, "@").concat(codeName, "@").concat(this.model.controlType, "@").concat(this.model.codeName);
|
|
15966
15985
|
}
|
|
15967
15986
|
this.onDEDataChange = this.onDEDataChange.bind(this);
|
|
15968
15987
|
ibiz.mc.command.change.on(this.onDEDataChange);
|
|
@@ -18562,6 +18581,13 @@ var UILogicContext = class {
|
|
|
18562
18581
|
constructor(deLogicParams, parameters) {
|
|
18563
18582
|
this.deLogicParams = deLogicParams;
|
|
18564
18583
|
this.parameters = parameters;
|
|
18584
|
+
/**
|
|
18585
|
+
* 逻辑操作的会话变量
|
|
18586
|
+
* @author lxm
|
|
18587
|
+
* @date 2024-04-07 11:55:01
|
|
18588
|
+
* @type {IParams}
|
|
18589
|
+
*/
|
|
18590
|
+
this.session = {};
|
|
18565
18591
|
/**
|
|
18566
18592
|
* 界面逻辑参数
|
|
18567
18593
|
*
|
|
@@ -19755,13 +19781,17 @@ var UILogicParam = class {
|
|
|
19755
19781
|
} else if (m.activeViewParam) {
|
|
19756
19782
|
ctx.params[tag] = parameters.view;
|
|
19757
19783
|
} else if (m.appGlobalParam) {
|
|
19758
|
-
|
|
19784
|
+
let value = ibiz.util.getGlobalParam();
|
|
19785
|
+
if (m.paramFieldName) {
|
|
19786
|
+
value = value[m.paramFieldName];
|
|
19787
|
+
}
|
|
19788
|
+
ctx.params[tag] = value;
|
|
19759
19789
|
} else if (m.applicationParam) {
|
|
19760
19790
|
ctx.params[tag] = app;
|
|
19761
19791
|
} else if (m.entityListParam) {
|
|
19762
19792
|
ctx.params[tag] = [];
|
|
19763
19793
|
} else if (m.entityPageParam) {
|
|
19764
|
-
ctx.params[tag] =
|
|
19794
|
+
ctx.params[tag] = [];
|
|
19765
19795
|
} else if (m.entityParam) {
|
|
19766
19796
|
ctx.params[tag] = {};
|
|
19767
19797
|
} else if (m.lastReturnParam) {
|
|
@@ -19769,7 +19799,7 @@ var UILogicParam = class {
|
|
|
19769
19799
|
} else if (m.navContextParam) {
|
|
19770
19800
|
ctx.params[tag] = context;
|
|
19771
19801
|
} else if (m.navViewParamParam) {
|
|
19772
|
-
|
|
19802
|
+
ctx.params[tag] = ibiz.util.getRouterParams();
|
|
19773
19803
|
} else if (m.routeViewSessionParam) {
|
|
19774
19804
|
let value = parameters.view.getTopView().state;
|
|
19775
19805
|
if (m.paramFieldName) {
|
|
@@ -19790,6 +19820,10 @@ var UILogicParam = class {
|
|
|
19790
19820
|
ctx.params[tag] = value;
|
|
19791
19821
|
} else if (m.filterParam) {
|
|
19792
19822
|
ctx.params[tag] = {};
|
|
19823
|
+
} else if (m.envParam) {
|
|
19824
|
+
ctx.params[tag] = ibiz.env;
|
|
19825
|
+
} else if (m.sessionParam) {
|
|
19826
|
+
ctx.params[tag] = ctx.session;
|
|
19793
19827
|
}
|
|
19794
19828
|
ibiz.log.debug("\u8BA1\u7B97\u754C\u9762\u903B\u8F91\u53C2\u6570\uFF0C\u6807\u8BC6\uFF1A".concat(tag), "-\u503C\uFF1A", ctx.params[tag]);
|
|
19795
19829
|
}
|
|
@@ -20801,7 +20835,6 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
20801
20835
|
* @return {*} {IUIActionResult}
|
|
20802
20836
|
*/
|
|
20803
20837
|
async openEditForm(action, args) {
|
|
20804
|
-
console.log(action.deeditForm, args);
|
|
20805
20838
|
const actionResult = {};
|
|
20806
20839
|
const { context, params, data, event } = args;
|
|
20807
20840
|
if (!event) {
|
|
@@ -22765,7 +22798,8 @@ import { RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
|
22765
22798
|
import {
|
|
22766
22799
|
RuntimeModelError as RuntimeModelError57,
|
|
22767
22800
|
debounceAndAsyncMerge,
|
|
22768
|
-
recursiveIterate as recursiveIterate3
|
|
22801
|
+
recursiveIterate as recursiveIterate3,
|
|
22802
|
+
EntityError
|
|
22769
22803
|
} from "@ibiz-template/core";
|
|
22770
22804
|
var FormController = class extends ControlController {
|
|
22771
22805
|
constructor() {
|
|
@@ -22980,7 +23014,21 @@ var FormController = class extends ControlController {
|
|
|
22980
23014
|
);
|
|
22981
23015
|
return values.findIndex((value) => !value) === -1;
|
|
22982
23016
|
}
|
|
23017
|
+
/**
|
|
23018
|
+
* 执行对应部件行为消息提示
|
|
23019
|
+
* @author zzq
|
|
23020
|
+
* @date 2024-04-03 15:51:21
|
|
23021
|
+
* @param {string} tag
|
|
23022
|
+
* @param {({ default?: string; data?: IData | IData[]; error?: Error })} [opts]
|
|
23023
|
+
* @return {*} {void}
|
|
23024
|
+
*/
|
|
22983
23025
|
actionNotification(tag, opts) {
|
|
23026
|
+
if ((opts == null ? void 0 : opts.error) && opts.error instanceof EntityError) {
|
|
23027
|
+
const { details } = opts.error;
|
|
23028
|
+
details.forEach((detail) => {
|
|
23029
|
+
this.setDetailError(detail.name, detail.errorInfo);
|
|
23030
|
+
});
|
|
23031
|
+
}
|
|
22984
23032
|
super.actionNotification(tag, { data: this.data, ...opts || {} });
|
|
22985
23033
|
}
|
|
22986
23034
|
/**
|
|
@@ -23035,6 +23083,20 @@ var FormController = class extends ControlController {
|
|
|
23035
23083
|
}
|
|
23036
23084
|
}
|
|
23037
23085
|
}
|
|
23086
|
+
/**
|
|
23087
|
+
* 设置表单项错误信息
|
|
23088
|
+
* @author zzq
|
|
23089
|
+
* @date 2024-04-03 18:12:02
|
|
23090
|
+
* @protected
|
|
23091
|
+
* @return {*} {void}
|
|
23092
|
+
*/
|
|
23093
|
+
setDetailError(name, message) {
|
|
23094
|
+
const detail = this.details[name];
|
|
23095
|
+
const state = detail == null ? void 0 : detail.state;
|
|
23096
|
+
if (state && state.error) {
|
|
23097
|
+
state.error = message;
|
|
23098
|
+
}
|
|
23099
|
+
}
|
|
23038
23100
|
};
|
|
23039
23101
|
|
|
23040
23102
|
// src/controller/control/form/search-form/search-form.service.ts
|
|
@@ -24159,7 +24221,7 @@ var FormGroupPanelController = class extends FormDetailController {
|
|
|
24159
24221
|
super.formStateNotify(state);
|
|
24160
24222
|
if (this.state.actionGroupState) {
|
|
24161
24223
|
const deData = this.data.getOrigin ? this.data.getOrigin() : this.data;
|
|
24162
|
-
this.state.actionGroupState.update(deData);
|
|
24224
|
+
this.state.actionGroupState.update(this.form.context, deData);
|
|
24163
24225
|
}
|
|
24164
24226
|
}
|
|
24165
24227
|
/**
|
|
@@ -25985,11 +26047,13 @@ var EditFormController = class extends FormController {
|
|
|
25985
26047
|
if (!isNil27(msg.triggerKey) && msg.triggerKey === this.triggerKey) {
|
|
25986
26048
|
return;
|
|
25987
26049
|
}
|
|
25988
|
-
|
|
25989
|
-
|
|
25990
|
-
|
|
26050
|
+
if (this.model.appDataEntityId) {
|
|
26051
|
+
const dename = calcDeCodeNameById(this.model.appDataEntityId);
|
|
26052
|
+
if (!msg.data || ((_a = msg.data.srfdecodename) == null ? void 0 : _a.toLowerCase()) !== dename || msg.data.srfkey !== this.data.srfkey) {
|
|
26053
|
+
return;
|
|
26054
|
+
}
|
|
26055
|
+
this.doNextActive(() => this.load(), { key: "load" });
|
|
25991
26056
|
}
|
|
25992
|
-
this.doNextActive(() => this.load(), { key: "load" });
|
|
25993
26057
|
}
|
|
25994
26058
|
};
|
|
25995
26059
|
|
|
@@ -26231,6 +26295,7 @@ var GridRowState = class {
|
|
|
26231
26295
|
import {
|
|
26232
26296
|
awaitTimeout as awaitTimeout2,
|
|
26233
26297
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
26298
|
+
EntityError as EntityError2,
|
|
26234
26299
|
mergeDefaultInLeft,
|
|
26235
26300
|
recursiveIterate as recursiveIterate7,
|
|
26236
26301
|
RuntimeError as RuntimeError56,
|
|
@@ -26928,7 +26993,8 @@ var GridController = class extends MDControlController {
|
|
|
26928
26993
|
await this._evt.emit("onSaveError", void 0);
|
|
26929
26994
|
this.actionNotification("".concat(isCreate ? "CREATE" : "UPDATE", "ERROR"), {
|
|
26930
26995
|
error,
|
|
26931
|
-
data: rowState.data
|
|
26996
|
+
data: rowState.data,
|
|
26997
|
+
rowState
|
|
26932
26998
|
});
|
|
26933
26999
|
throw error;
|
|
26934
27000
|
}
|
|
@@ -27551,6 +27617,24 @@ var GridController = class extends MDControlController {
|
|
|
27551
27617
|
JSON.stringify(storageColumnStates)
|
|
27552
27618
|
);
|
|
27553
27619
|
}
|
|
27620
|
+
/**
|
|
27621
|
+
* 执行对应部件行为消息提示
|
|
27622
|
+
* @author zzq
|
|
27623
|
+
* @date 2024-04-03 15:51:21
|
|
27624
|
+
* @param {string} tag
|
|
27625
|
+
* @param {({ default?: string; data?: IData | IData[]; error?: Error; rowState?: IGridRowState })} [opts]
|
|
27626
|
+
* @return {*} {void}
|
|
27627
|
+
*/
|
|
27628
|
+
actionNotification(tag, opts) {
|
|
27629
|
+
if ((opts == null ? void 0 : opts.error) && (opts == null ? void 0 : opts.rowState) && opts.error instanceof EntityError2) {
|
|
27630
|
+
const { details } = opts.error;
|
|
27631
|
+
const { errors } = opts.rowState;
|
|
27632
|
+
details.forEach((detail) => {
|
|
27633
|
+
errors[detail.name] = detail.errorInfo;
|
|
27634
|
+
});
|
|
27635
|
+
}
|
|
27636
|
+
super.actionNotification(tag, { ...opts || {} });
|
|
27637
|
+
}
|
|
27554
27638
|
};
|
|
27555
27639
|
|
|
27556
27640
|
// src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts
|
|
@@ -36719,6 +36803,9 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
36719
36803
|
this.load(args);
|
|
36720
36804
|
return null;
|
|
36721
36805
|
}
|
|
36806
|
+
if (key === "GetAllData" /* GET_ALL_DATA */) {
|
|
36807
|
+
return this.xdataControl.state.items;
|
|
36808
|
+
}
|
|
36722
36809
|
return super.call(key, args);
|
|
36723
36810
|
}
|
|
36724
36811
|
getData() {
|
|
@@ -36737,6 +36824,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
36737
36824
|
var _a, _b;
|
|
36738
36825
|
const { data, event } = args;
|
|
36739
36826
|
const context = (args.context || this.view.context).clone();
|
|
36827
|
+
context.srfpaginationviewid = this.view.id;
|
|
36740
36828
|
const params = args.params || this.view.params;
|
|
36741
36829
|
const deName = ((_a = data[0].srfdecodename) == null ? void 0 : _a.toLowerCase()) || calcDeCodeNameById(this.xdataControl.model.appDataEntityId);
|
|
36742
36830
|
context[deName.toLowerCase()] = data[0].srfkey;
|
|
@@ -36949,6 +37037,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
36949
37037
|
};
|
|
36950
37038
|
|
|
36951
37039
|
// src/global/global-util/global-util.ts
|
|
37040
|
+
import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
|
|
36952
37041
|
var sourceTitle = document.title;
|
|
36953
37042
|
var GlobalUtil = class {
|
|
36954
37043
|
constructor() {
|
|
@@ -37074,10 +37163,28 @@ var GlobalUtil = class {
|
|
|
37074
37163
|
document.title = tabTitle;
|
|
37075
37164
|
}
|
|
37076
37165
|
}
|
|
37166
|
+
/**
|
|
37167
|
+
* 获取应用全局变量
|
|
37168
|
+
* @author lxm
|
|
37169
|
+
* @date 2024-04-01 11:24:58
|
|
37170
|
+
* @return {*} {IParams}
|
|
37171
|
+
*/
|
|
37172
|
+
getGlobalParam() {
|
|
37173
|
+
throw new RuntimeError70("\u83B7\u53D6\u5E94\u7528\u5168\u5C40\u53D8\u91CF\u6CA1\u6709\u5B9E\u73B0");
|
|
37174
|
+
}
|
|
37175
|
+
/**
|
|
37176
|
+
* 获取视图路由参数变量,数组类型,基于路由解析出来的,每一个对象里面都有context和params
|
|
37177
|
+
* @author lxm
|
|
37178
|
+
* @date 2024-04-01 11:24:58
|
|
37179
|
+
* @return {*} {IParams}
|
|
37180
|
+
*/
|
|
37181
|
+
getRouterParams() {
|
|
37182
|
+
throw new RuntimeError70("\u83B7\u53D6\u89C6\u56FE\u8DEF\u7531\u53C2\u6570\u53D8\u91CF\u6CA1\u6709\u5B9E\u73B0");
|
|
37183
|
+
}
|
|
37077
37184
|
};
|
|
37078
37185
|
|
|
37079
37186
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
37080
|
-
import { RuntimeError as
|
|
37187
|
+
import { RuntimeError as RuntimeError71 } from "@ibiz-template/core";
|
|
37081
37188
|
var LogicExecutor = class {
|
|
37082
37189
|
/**
|
|
37083
37190
|
* @author lxm
|
|
@@ -37098,7 +37205,7 @@ var LogicExecutor = class {
|
|
|
37098
37205
|
*/
|
|
37099
37206
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37100
37207
|
execute(_executeParams) {
|
|
37101
|
-
throw new
|
|
37208
|
+
throw new RuntimeError71("Method not implemented.");
|
|
37102
37209
|
}
|
|
37103
37210
|
/**
|
|
37104
37211
|
* 销毁方法
|
|
@@ -37535,7 +37642,7 @@ var LogicSchedulerCenter = class {
|
|
|
37535
37642
|
};
|
|
37536
37643
|
|
|
37537
37644
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
37538
|
-
import { RuntimeError as
|
|
37645
|
+
import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
37539
37646
|
var LogicTrigger = class {
|
|
37540
37647
|
/**
|
|
37541
37648
|
* @author lxm
|
|
@@ -37595,7 +37702,7 @@ var LogicTrigger = class {
|
|
|
37595
37702
|
if (this.executor) {
|
|
37596
37703
|
return this.executor.execute(executeParams);
|
|
37597
37704
|
}
|
|
37598
|
-
throw new
|
|
37705
|
+
throw new RuntimeError72("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
37599
37706
|
}
|
|
37600
37707
|
/**
|
|
37601
37708
|
* 销毁方法
|
|
@@ -37612,12 +37719,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
37612
37719
|
};
|
|
37613
37720
|
|
|
37614
37721
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
37615
|
-
import { RuntimeError as
|
|
37722
|
+
import { RuntimeError as RuntimeError73 } from "@ibiz-template/core";
|
|
37616
37723
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
37617
37724
|
bindExecutor(executor) {
|
|
37618
37725
|
super.bindExecutor(executor);
|
|
37619
37726
|
if (this.executor.type !== "SCRIPT") {
|
|
37620
|
-
throw new
|
|
37727
|
+
throw new RuntimeError73(
|
|
37621
37728
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
37622
37729
|
);
|
|
37623
37730
|
}
|
|
@@ -37654,7 +37761,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
37654
37761
|
};
|
|
37655
37762
|
|
|
37656
37763
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
37657
|
-
import { RuntimeError as
|
|
37764
|
+
import { RuntimeError as RuntimeError74, RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
|
|
37658
37765
|
var TimerTrigger = class extends LogicTrigger {
|
|
37659
37766
|
constructor() {
|
|
37660
37767
|
super(...arguments);
|
|
@@ -37666,7 +37773,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
37666
37773
|
}
|
|
37667
37774
|
this.timer = setInterval(() => {
|
|
37668
37775
|
if (!this.scheduler.defaultParamsCb) {
|
|
37669
|
-
throw new
|
|
37776
|
+
throw new RuntimeError74("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
37670
37777
|
}
|
|
37671
37778
|
const params = this.scheduler.defaultParamsCb();
|
|
37672
37779
|
this.executor.execute(params);
|
|
@@ -37683,7 +37790,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
37683
37790
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
37684
37791
|
import {
|
|
37685
37792
|
ModelError as ModelError34,
|
|
37686
|
-
RuntimeError as
|
|
37793
|
+
RuntimeError as RuntimeError75,
|
|
37687
37794
|
RuntimeModelError as RuntimeModelError75
|
|
37688
37795
|
} from "@ibiz-template/core";
|
|
37689
37796
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -37721,7 +37828,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
37721
37828
|
const { context, params, ...rest } = parameters;
|
|
37722
37829
|
const { data } = parameters;
|
|
37723
37830
|
if (!(data == null ? void 0 : data[0])) {
|
|
37724
|
-
throw new
|
|
37831
|
+
throw new RuntimeError75("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
37725
37832
|
}
|
|
37726
37833
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
37727
37834
|
let openViewRef;
|
|
@@ -37781,7 +37888,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
37781
37888
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
37782
37889
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
37783
37890
|
if (!findView) {
|
|
37784
|
-
throw new
|
|
37891
|
+
throw new RuntimeError75(
|
|
37785
37892
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
37786
37893
|
);
|
|
37787
37894
|
}
|
|
@@ -37906,7 +38013,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
37906
38013
|
}
|
|
37907
38014
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
37908
38015
|
if (!selectData) {
|
|
37909
|
-
throw new
|
|
38016
|
+
throw new RuntimeError75("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
37910
38017
|
}
|
|
37911
38018
|
const indexType = selectData.srfkey;
|
|
37912
38019
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -37916,7 +38023,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
37916
38023
|
}
|
|
37917
38024
|
);
|
|
37918
38025
|
if (!findView) {
|
|
37919
|
-
throw new
|
|
38026
|
+
throw new RuntimeError75(
|
|
37920
38027
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
37921
38028
|
);
|
|
37922
38029
|
}
|
|
@@ -37953,7 +38060,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
37953
38060
|
}
|
|
37954
38061
|
});
|
|
37955
38062
|
if (pickParentFieldName === void 0) {
|
|
37956
|
-
throw new
|
|
38063
|
+
throw new RuntimeError75(
|
|
37957
38064
|
"\u6CA1\u6709\u627E\u5230".concat(pickParentDeName, "\u5728\u5F53\u524D\u5B9E\u4F53\u7684\u5916\u952E\u5C5E\u6027")
|
|
37958
38065
|
);
|
|
37959
38066
|
}
|
|
@@ -38504,7 +38611,7 @@ export {
|
|
|
38504
38611
|
getControlPanel,
|
|
38505
38612
|
getControlProvider,
|
|
38506
38613
|
getControlsByView,
|
|
38507
|
-
|
|
38614
|
+
getCtrlTeleportParams,
|
|
38508
38615
|
getDEMethodProvider,
|
|
38509
38616
|
getDERedirectToView,
|
|
38510
38617
|
getDeACMode,
|