@ibiz-template/runtime 0.1.26 → 0.1.28
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 +654 -355
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/control/md-control.controller.d.ts +1 -0
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +7 -0
- package/out/controller/control/data-view/data-view.controller.d.ts +42 -1
- package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +131 -4
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +4 -1
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts +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 +7 -0
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +10 -68
- package/out/controller/control/form/search-form/search-form.controller.d.ts +1 -0
- package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.controller.js +7 -0
- package/out/controller/control/grid/grid/grid-row.state.d.ts +1 -0
- package/out/controller/control/grid/grid/grid-row.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +10 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +61 -17
- package/out/controller/control/kanban/kanban.controller.d.ts +1 -34
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +0 -83
- package/out/controller/control/panel/panel/panel-item.controller.d.ts +34 -2
- package/out/controller/control/panel/panel/panel-item.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel-item.controller.js +84 -5
- package/out/controller/control/panel/panel/panel.controller.d.ts +2 -1
- package/out/controller/control/panel/panel/panel.controller.d.ts.map +1 -1
- package/out/controller/control/panel/panel/panel.controller.js +11 -1
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts +20 -0
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts.map +1 -1
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.js +45 -0
- package/out/controller/control/toolbar/toolbar.controllerr.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controllerr.js +33 -21
- package/out/controller/utils/index.d.ts +1 -0
- package/out/controller/utils/index.d.ts.map +1 -1
- package/out/controller/utils/index.js +1 -0
- package/out/controller/utils/value-default/value-default.d.ts +37 -0
- package/out/controller/utils/value-default/value-default.d.ts.map +1 -0
- package/out/controller/utils/value-default/value-default.js +65 -0
- package/out/de-logic/de-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/de-logic/de-logic-node/end-node/end-node.js +4 -0
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +7 -0
- package/out/interface/controller/controller/control/panel-item/i-panel-item.controller.d.ts +2 -2
- package/out/interface/controller/controller/control/panel-item/i-panel-item.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-control.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-control.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-data-view-control.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-data-view-control.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-grid.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-grid.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +0 -8
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-md-control.state.d.ts +14 -0
- package/out/interface/controller/state/control/i-md-control.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tab-exp-panel.state.d.ts +8 -0
- package/out/interface/controller/state/control/i-tab-exp-panel.state.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.d.ts.map +1 -1
- package/out/logic-scheduler/trigger/item-dyna-logic-trigger.js +4 -1
- package/out/model/layout/layout.d.ts.map +1 -1
- package/out/model/layout/layout.js +17 -1
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +2 -2
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +4 -4
- package/out/ui-logic/ui-logic-node/end-node/end-node.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/end-node/end-node.js +4 -0
- package/out/utils/wf-helper/wf-helper.js +2 -2
- package/package.json +5 -5
- package/src/controller/common/control/md-control.controller.ts +9 -0
- package/src/controller/control/data-view/data-view.controller.ts +152 -4
- package/src/controller/control/exp-bar/exp-bar.controller.ts +5 -1
- package/src/controller/control/form/edit-form/edit-form.controller.ts +9 -0
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +13 -67
- package/src/controller/control/form/search-form/search-form.controller.ts +9 -0
- package/src/controller/control/grid/grid/grid-row.state.ts +2 -0
- package/src/controller/control/grid/grid/grid.controller.ts +69 -18
- package/src/controller/control/kanban/kanban.controller.ts +1 -98
- package/src/controller/control/panel/panel/panel-item.controller.ts +105 -5
- package/src/controller/control/panel/panel/panel.controller.ts +17 -1
- package/src/controller/control/tab-exp-panel/tab-exp-panel.controller.ts +45 -0
- package/src/controller/control/toolbar/toolbar.controllerr.ts +40 -24
- package/src/controller/utils/index.ts +1 -0
- package/src/controller/utils/value-default/value-default.ts +110 -0
- package/src/de-logic/de-logic-node/end-node/end-node.ts +6 -0
- package/src/engine/md-view.engine.ts +8 -0
- package/src/interface/controller/controller/control/panel-item/i-panel-item.controller.ts +2 -2
- package/src/interface/controller/state/control/i-control.state.ts +8 -0
- package/src/interface/controller/state/control/i-data-view-control.state.ts +10 -1
- package/src/interface/controller/state/control/i-grid.state.ts +8 -0
- package/src/interface/controller/state/control/i-kanban.state.ts +0 -9
- package/src/interface/controller/state/control/i-md-control.state.ts +16 -0
- package/src/interface/controller/state/control/i-tab-exp-panel.state.ts +9 -0
- package/src/logic-scheduler/trigger/item-dyna-logic-trigger.ts +5 -1
- package/src/model/layout/layout.ts +16 -2
- package/src/service/service/entity/method/method.ts +5 -2
- package/src/service/utils/dynamic-code-list/dynamic-code-list.ts +4 -4
- package/src/ui-logic/ui-logic-node/end-node/end-node.ts +6 -0
- package/src/utils/wf-helper/wf-helper.ts +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -71,10 +71,10 @@ var require_utils = __commonJS({
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
exports.isFunction = isFunction2;
|
|
74
|
-
var
|
|
74
|
+
var isArray6 = Array.isArray || function(value) {
|
|
75
75
|
return value && typeof value === "object" ? toString.call(value) === "[object Array]" : false;
|
|
76
76
|
};
|
|
77
|
-
exports.isArray =
|
|
77
|
+
exports.isArray = isArray6;
|
|
78
78
|
function indexOf(array, value) {
|
|
79
79
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
80
80
|
if (array[i] === value) {
|
|
@@ -102,7 +102,7 @@ var require_utils = __commonJS({
|
|
|
102
102
|
function isEmpty9(value) {
|
|
103
103
|
if (!value && value !== 0) {
|
|
104
104
|
return true;
|
|
105
|
-
} else if (
|
|
105
|
+
} else if (isArray6(value) && value.length === 0) {
|
|
106
106
|
return true;
|
|
107
107
|
} else {
|
|
108
108
|
return false;
|
|
@@ -6832,6 +6832,7 @@ function parseUserParams(userParams) {
|
|
|
6832
6832
|
}
|
|
6833
6833
|
|
|
6834
6834
|
// src/model/layout/layout.ts
|
|
6835
|
+
import { isArray as isArray2, isObject, isString } from "lodash-es";
|
|
6835
6836
|
function calcLayoutHeightWidth(layoutPos) {
|
|
6836
6837
|
const { width, height, widthMode, heightMode } = layoutPos;
|
|
6837
6838
|
const result = { width: "", height: "" };
|
|
@@ -6926,10 +6927,23 @@ function calcGridLayoutPos(layoutPos) {
|
|
|
6926
6927
|
};
|
|
6927
6928
|
}
|
|
6928
6929
|
function calcDynaClass(expression, data) {
|
|
6929
|
-
|
|
6930
|
+
const classArr = [];
|
|
6931
|
+
const result = ScriptFactory.execScriptFn({ data }, expression, {
|
|
6930
6932
|
singleRowReturn: true,
|
|
6931
6933
|
isAsync: false
|
|
6932
6934
|
});
|
|
6935
|
+
if (isString(result)) {
|
|
6936
|
+
classArr.push(result);
|
|
6937
|
+
} else if (isArray2(result)) {
|
|
6938
|
+
classArr.push(...result);
|
|
6939
|
+
} else if (isObject(result)) {
|
|
6940
|
+
Object.keys(result).forEach((key) => {
|
|
6941
|
+
if (result[key]) {
|
|
6942
|
+
classArr.push(key);
|
|
6943
|
+
}
|
|
6944
|
+
});
|
|
6945
|
+
}
|
|
6946
|
+
return classArr;
|
|
6933
6947
|
}
|
|
6934
6948
|
|
|
6935
6949
|
// src/model/main-state/main-state.ts
|
|
@@ -8089,8 +8103,8 @@ function getWFSubmitViewId(view, link) {
|
|
|
8089
8103
|
const { type, sequenceflowview, sequenceflowmobview } = link;
|
|
8090
8104
|
const appViewRefs = ((_a = view.viewLayoutPanel) == null ? void 0 : _a.appViewRefs) || view.appViewRefs;
|
|
8091
8105
|
const key = type ? "WFUTILACTION@".concat(type.toUpperCase()) : "WFACTION@".concat(ibiz.env.isMob ? sequenceflowmobview : sequenceflowview);
|
|
8092
|
-
const submitViewRef = appViewRefs.find((viewRef) => {
|
|
8093
|
-
return viewRef.name
|
|
8106
|
+
const submitViewRef = appViewRefs == null ? void 0 : appViewRefs.find((viewRef) => {
|
|
8107
|
+
return viewRef.name.indexOf(key) !== -1;
|
|
8094
8108
|
});
|
|
8095
8109
|
return submitViewRef == null ? void 0 : submitViewRef.refAppViewId;
|
|
8096
8110
|
}
|
|
@@ -10028,10 +10042,10 @@ var DynamicCodeListCache = class {
|
|
|
10028
10042
|
*/
|
|
10029
10043
|
async load(context = {}, params = {}) {
|
|
10030
10044
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
10045
|
+
if (!params.size) {
|
|
10046
|
+
params = { ...params, size: 1e4 };
|
|
10047
|
+
}
|
|
10031
10048
|
if (this.isPredefined) {
|
|
10032
|
-
if (!params.size) {
|
|
10033
|
-
params = { ...params, size: 1e4 };
|
|
10034
|
-
}
|
|
10035
10049
|
const res2 = await app.net.get(
|
|
10036
10050
|
"/dictionaries/codelist/".concat(this.codeList.codeName),
|
|
10037
10051
|
params
|
|
@@ -11602,7 +11616,7 @@ var Method = class {
|
|
|
11602
11616
|
);
|
|
11603
11617
|
break;
|
|
11604
11618
|
case "GET":
|
|
11605
|
-
res = await this.app.net.get("".concat(path2, "/").concat(methodName), data);
|
|
11619
|
+
res = await this.app.net.get("".concat(path2, "/").concat(methodName), data || params);
|
|
11606
11620
|
break;
|
|
11607
11621
|
case "PUT": {
|
|
11608
11622
|
res = await this.app.net.put(
|
|
@@ -11612,7 +11626,10 @@ var Method = class {
|
|
|
11612
11626
|
break;
|
|
11613
11627
|
}
|
|
11614
11628
|
case "DELETE":
|
|
11615
|
-
res = await this.app.net.delete(
|
|
11629
|
+
res = await this.app.net.delete(
|
|
11630
|
+
"".concat(path2, "/").concat(methodName),
|
|
11631
|
+
data || params
|
|
11632
|
+
);
|
|
11616
11633
|
break;
|
|
11617
11634
|
default:
|
|
11618
11635
|
if (requestMethod) {
|
|
@@ -12040,6 +12057,9 @@ var EndNode = class extends DELogicNode {
|
|
|
12040
12057
|
async exec(ctx) {
|
|
12041
12058
|
ctx.isEndNode = true;
|
|
12042
12059
|
const { returnParamId, returnType, rawValue } = this.model;
|
|
12060
|
+
if (!returnType) {
|
|
12061
|
+
return;
|
|
12062
|
+
}
|
|
12043
12063
|
switch (returnType) {
|
|
12044
12064
|
case "NONEVALUE":
|
|
12045
12065
|
ctx.result = void 0;
|
|
@@ -13524,7 +13544,7 @@ var ControlService = class {
|
|
|
13524
13544
|
|
|
13525
13545
|
// src/service/service/control/md-control.service.ts
|
|
13526
13546
|
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
13527
|
-
import { isArray as
|
|
13547
|
+
import { isArray as isArray3 } from "qx-util";
|
|
13528
13548
|
var MDControlService = class extends ControlService {
|
|
13529
13549
|
/**
|
|
13530
13550
|
* 执行查询多条数据的方法
|
|
@@ -13656,7 +13676,7 @@ var MDControlService = class extends ControlService {
|
|
|
13656
13676
|
}
|
|
13657
13677
|
}
|
|
13658
13678
|
if (res.ok) {
|
|
13659
|
-
if (
|
|
13679
|
+
if (isArray3(res.data)) {
|
|
13660
13680
|
res.data = res.data.map((item) => this.toUIData(item));
|
|
13661
13681
|
} else {
|
|
13662
13682
|
res.data = this.toUIData(res.data);
|
|
@@ -14287,7 +14307,7 @@ var DEServiceUtil = class {
|
|
|
14287
14307
|
};
|
|
14288
14308
|
|
|
14289
14309
|
// src/app-hub.ts
|
|
14290
|
-
import { RuntimeError as
|
|
14310
|
+
import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
|
|
14291
14311
|
|
|
14292
14312
|
// src/application.ts
|
|
14293
14313
|
import { Net } from "@ibiz-template/core";
|
|
@@ -14529,9 +14549,9 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
14529
14549
|
})(PanelNotifyState || {});
|
|
14530
14550
|
|
|
14531
14551
|
// src/controller/common/view/view.controller.ts
|
|
14532
|
-
import { createUUID as
|
|
14533
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
14534
|
-
import { isEmpty as isEmpty8, isNil as
|
|
14552
|
+
import { createUUID as createUUID3, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
14553
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
14554
|
+
import { isEmpty as isEmpty8, isNil as isNil13, isNotNil as isNotNil3 } from "ramda";
|
|
14535
14555
|
|
|
14536
14556
|
// src/controller/utils/loading/loading.state.ts
|
|
14537
14557
|
import { NOOP } from "@ibiz-template/core";
|
|
@@ -15250,6 +15270,60 @@ var ValueExUtil = class {
|
|
|
15250
15270
|
}
|
|
15251
15271
|
};
|
|
15252
15272
|
|
|
15273
|
+
// src/controller/utils/value-default/value-default.ts
|
|
15274
|
+
import { RuntimeError as RuntimeError22, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
15275
|
+
import dayjs from "dayjs";
|
|
15276
|
+
import { createUUID as createUUID2 } from "qx-util";
|
|
15277
|
+
import { isNil as isNil12, isNotNil as isNotNil2 } from "ramda";
|
|
15278
|
+
function getDefaultValue(opts, origins) {
|
|
15279
|
+
var _a;
|
|
15280
|
+
const { name, valueType, defaultValue, valueFormat } = opts;
|
|
15281
|
+
const { data, context, params } = origins;
|
|
15282
|
+
if (isNil12(valueType) && isNil12(defaultValue)) {
|
|
15283
|
+
return;
|
|
15284
|
+
}
|
|
15285
|
+
if (valueType === "RESET") {
|
|
15286
|
+
return null;
|
|
15287
|
+
}
|
|
15288
|
+
const value = data[name];
|
|
15289
|
+
if (isNotNil2(value)) {
|
|
15290
|
+
return;
|
|
15291
|
+
}
|
|
15292
|
+
if (!valueType && defaultValue) {
|
|
15293
|
+
return defaultValue;
|
|
15294
|
+
}
|
|
15295
|
+
switch (valueType) {
|
|
15296
|
+
case "APPDATA":
|
|
15297
|
+
if (Object.prototype.hasOwnProperty.call(params, defaultValue)) {
|
|
15298
|
+
return params[defaultValue];
|
|
15299
|
+
}
|
|
15300
|
+
if (Object.prototype.hasOwnProperty.call(context, defaultValue)) {
|
|
15301
|
+
return context[defaultValue];
|
|
15302
|
+
}
|
|
15303
|
+
break;
|
|
15304
|
+
case "OPERATORNAME":
|
|
15305
|
+
return context.srfusername;
|
|
15306
|
+
case "OPERATOR":
|
|
15307
|
+
return context.srfuserid;
|
|
15308
|
+
case "CURTIME":
|
|
15309
|
+
return dayjs().format(valueFormat);
|
|
15310
|
+
case "PARAM":
|
|
15311
|
+
return data[defaultValue];
|
|
15312
|
+
case "SESSION":
|
|
15313
|
+
case "APPLICATION":
|
|
15314
|
+
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
15315
|
+
throw new RuntimeError22("appdata.context\u4E0D\u5B58\u5728");
|
|
15316
|
+
}
|
|
15317
|
+
return ibiz.appData.context[defaultValue];
|
|
15318
|
+
case "CONTEXT":
|
|
15319
|
+
return params[defaultValue];
|
|
15320
|
+
case "UNIQUEID":
|
|
15321
|
+
return createUUID2();
|
|
15322
|
+
default:
|
|
15323
|
+
throw new ModelError16({}, "\u9ED8\u8BA4\u503C\u7C7B\u578B[".concat(valueType, "]\u672A\u652F\u6301"));
|
|
15324
|
+
}
|
|
15325
|
+
}
|
|
15326
|
+
|
|
15253
15327
|
// src/controller/common/base.controller.ts
|
|
15254
15328
|
var SELF_KEY = "__self";
|
|
15255
15329
|
var BaseController = class {
|
|
@@ -15595,7 +15669,7 @@ var ViewController = class extends BaseController {
|
|
|
15595
15669
|
async onCreated() {
|
|
15596
15670
|
await super.onCreated();
|
|
15597
15671
|
this.modal.hooks.beforeDismiss.tapPromise(async (modalData) => {
|
|
15598
|
-
if (
|
|
15672
|
+
if (isNotNil3(this.state.closeOK)) {
|
|
15599
15673
|
modalData.ok = this.state.closeOK;
|
|
15600
15674
|
}
|
|
15601
15675
|
await this._evt.emit("onCloseView", { ...modalData });
|
|
@@ -15665,8 +15739,8 @@ var ViewController = class extends BaseController {
|
|
|
15665
15739
|
*/
|
|
15666
15740
|
handleContextParams() {
|
|
15667
15741
|
this.context.srfappid = this.model.appId;
|
|
15668
|
-
if (
|
|
15669
|
-
this.context.srfsessionid =
|
|
15742
|
+
if (isNil13(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
|
|
15743
|
+
this.context.srfsessionid = createUUID3();
|
|
15670
15744
|
}
|
|
15671
15745
|
const navContexts = this.model.appViewNavContexts;
|
|
15672
15746
|
let context = {};
|
|
@@ -15697,7 +15771,7 @@ var ViewController = class extends BaseController {
|
|
|
15697
15771
|
async callUIAction(key, args) {
|
|
15698
15772
|
const result = this.call(key, args);
|
|
15699
15773
|
if (result === void 0) {
|
|
15700
|
-
throw new
|
|
15774
|
+
throw new RuntimeError23("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
15701
15775
|
}
|
|
15702
15776
|
return result;
|
|
15703
15777
|
}
|
|
@@ -15928,7 +16002,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
15928
16002
|
|
|
15929
16003
|
// src/controller/common/control/control.controller.ts
|
|
15930
16004
|
import { NoticeError } from "@ibiz-template/core";
|
|
15931
|
-
import { isNil as
|
|
16005
|
+
import { isNil as isNil14 } from "ramda";
|
|
15932
16006
|
var ControlController = class extends BaseController {
|
|
15933
16007
|
/**
|
|
15934
16008
|
* Creates an instance of ControlController.
|
|
@@ -16105,7 +16179,7 @@ var ControlController = class extends BaseController {
|
|
|
16105
16179
|
let message;
|
|
16106
16180
|
let duration;
|
|
16107
16181
|
if (msgItem && msgItem.content) {
|
|
16108
|
-
duration =
|
|
16182
|
+
duration = isNil14(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
16109
16183
|
const scriptParams = { ...this.getEventArgs() };
|
|
16110
16184
|
if (opts == null ? void 0 : opts.data) {
|
|
16111
16185
|
scriptParams.data = opts.data;
|
|
@@ -16144,7 +16218,7 @@ var ControlController = class extends BaseController {
|
|
|
16144
16218
|
};
|
|
16145
16219
|
|
|
16146
16220
|
// src/controller/common/control/md-control.controller.ts
|
|
16147
|
-
import { isElementSame, RuntimeError as
|
|
16221
|
+
import { isElementSame, RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
16148
16222
|
var MDControlController = class extends ControlController {
|
|
16149
16223
|
constructor() {
|
|
16150
16224
|
super(...arguments);
|
|
@@ -16187,6 +16261,12 @@ var MDControlController = class extends ControlController {
|
|
|
16187
16261
|
ibiz.mc.command.change.on(this.onDataChange);
|
|
16188
16262
|
this.setSort();
|
|
16189
16263
|
}
|
|
16264
|
+
async onMounted() {
|
|
16265
|
+
await super.onMounted();
|
|
16266
|
+
if (this.state.loadDefault) {
|
|
16267
|
+
this.load({ isInitialLoad: true });
|
|
16268
|
+
}
|
|
16269
|
+
}
|
|
16190
16270
|
onDestroyed() {
|
|
16191
16271
|
ibiz.mc.command.change.off(this.onDataChange);
|
|
16192
16272
|
return super.onDestroyed();
|
|
@@ -16320,7 +16400,7 @@ var MDControlController = class extends ControlController {
|
|
|
16320
16400
|
async remove(args) {
|
|
16321
16401
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
16322
16402
|
if (!(data == null ? void 0 : data.length)) {
|
|
16323
|
-
throw new
|
|
16403
|
+
throw new RuntimeError24("\u672A\u9009\u4E2D\u6570\u636E");
|
|
16324
16404
|
}
|
|
16325
16405
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
16326
16406
|
const del = await ibiz.confirm.error({
|
|
@@ -16464,7 +16544,7 @@ var MDControlController = class extends ControlController {
|
|
|
16464
16544
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
16465
16545
|
import {
|
|
16466
16546
|
findRecursiveChild,
|
|
16467
|
-
RuntimeError as
|
|
16547
|
+
RuntimeError as RuntimeError25,
|
|
16468
16548
|
RuntimeModelError as RuntimeModelError21
|
|
16469
16549
|
} from "@ibiz-template/core";
|
|
16470
16550
|
var AppMenuController = class extends ControlController {
|
|
@@ -16504,7 +16584,7 @@ var AppMenuController = class extends ControlController {
|
|
|
16504
16584
|
childrenFields: ["appMenuItems"]
|
|
16505
16585
|
});
|
|
16506
16586
|
if (!menuItem) {
|
|
16507
|
-
throw new
|
|
16587
|
+
throw new RuntimeError25("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
16508
16588
|
}
|
|
16509
16589
|
this.evt.emit("onClick", {
|
|
16510
16590
|
eventArg: id,
|
|
@@ -16594,7 +16674,7 @@ var AppMenuController = class extends ControlController {
|
|
|
16594
16674
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
16595
16675
|
import {
|
|
16596
16676
|
findRecursiveChild as findRecursiveChild2,
|
|
16597
|
-
RuntimeError as
|
|
16677
|
+
RuntimeError as RuntimeError26,
|
|
16598
16678
|
RuntimeModelError as RuntimeModelError22
|
|
16599
16679
|
} from "@ibiz-template/core";
|
|
16600
16680
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -16604,7 +16684,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
16604
16684
|
childrenFields: ["appMenuItems"]
|
|
16605
16685
|
});
|
|
16606
16686
|
if (!menuItem) {
|
|
16607
|
-
throw new
|
|
16687
|
+
throw new RuntimeError26("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
16608
16688
|
}
|
|
16609
16689
|
this.evt.emit("onClick", {
|
|
16610
16690
|
eventArg: id,
|
|
@@ -16629,10 +16709,10 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
16629
16709
|
};
|
|
16630
16710
|
|
|
16631
16711
|
// src/controller/control/calendar/calendar.controller.ts
|
|
16632
|
-
import
|
|
16712
|
+
import dayjs2 from "dayjs";
|
|
16633
16713
|
|
|
16634
16714
|
// src/controller/control/calendar/calendar.service.ts
|
|
16635
|
-
import { RuntimeError as
|
|
16715
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
16636
16716
|
var CalendarService = class extends MDControlService {
|
|
16637
16717
|
/**
|
|
16638
16718
|
* 执行查询多条数据的方法
|
|
@@ -16682,11 +16762,11 @@ var CalendarService = class extends MDControlService {
|
|
|
16682
16762
|
setCalendarConfigData(items, index) {
|
|
16683
16763
|
const { sysCalendarItems } = this.model;
|
|
16684
16764
|
if (!sysCalendarItems) {
|
|
16685
|
-
throw new
|
|
16765
|
+
throw new RuntimeError27("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
16686
16766
|
}
|
|
16687
16767
|
const calendarItem = sysCalendarItems[index];
|
|
16688
16768
|
if (!calendarItem) {
|
|
16689
|
-
throw new
|
|
16769
|
+
throw new RuntimeError27("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
16690
16770
|
}
|
|
16691
16771
|
return items.map((item) => {
|
|
16692
16772
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -16799,8 +16879,8 @@ var CalendarController = class extends MDControlController {
|
|
|
16799
16879
|
1
|
|
16800
16880
|
);
|
|
16801
16881
|
return {
|
|
16802
|
-
start:
|
|
16803
|
-
end:
|
|
16882
|
+
start: dayjs2(firstDayOfMonth).format("YYYY-MM-DD HH:mm:ss"),
|
|
16883
|
+
end: dayjs2(lastDayOfMonth).format("YYYY-MM-DD HH:mm:ss")
|
|
16804
16884
|
};
|
|
16805
16885
|
}
|
|
16806
16886
|
return { start, end };
|
|
@@ -16876,29 +16956,29 @@ var CalendarController = class extends MDControlController {
|
|
|
16876
16956
|
};
|
|
16877
16957
|
|
|
16878
16958
|
// src/controller/control/chart/chart.controller.ts
|
|
16879
|
-
import { RuntimeError as
|
|
16959
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
16880
16960
|
|
|
16881
16961
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
16882
16962
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
16883
|
-
import { RuntimeError as
|
|
16963
|
+
import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
16884
16964
|
|
|
16885
16965
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
16886
16966
|
import { RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
16887
16967
|
|
|
16888
16968
|
// src/controller/control/chart/generator/base-series-generator.ts
|
|
16889
16969
|
import { RuntimeModelError as RuntimeModelError23, toNumberOrNil } from "@ibiz-template/core";
|
|
16890
|
-
import
|
|
16970
|
+
import dayjs3 from "dayjs";
|
|
16891
16971
|
import minMax from "dayjs/plugin/minMax";
|
|
16892
16972
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
16893
16973
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
16894
16974
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
16895
16975
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
16896
|
-
import { clone as clone11, isNil as
|
|
16897
|
-
|
|
16898
|
-
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16976
|
+
import { clone as clone11, isNil as isNil15, mergeDeepRight } from "ramda";
|
|
16977
|
+
dayjs3.extend(minMax);
|
|
16978
|
+
dayjs3.extend(isSameOrBefore);
|
|
16979
|
+
dayjs3.extend(quarterOfYear);
|
|
16980
|
+
dayjs3.extend(weekOfYear);
|
|
16981
|
+
dayjs3.extend(isoWeek);
|
|
16902
16982
|
var DEFAULT_GROUP = "$default_group";
|
|
16903
16983
|
var BaseSeriesGenerator = class {
|
|
16904
16984
|
/**
|
|
@@ -16982,10 +17062,10 @@ var BaseSeriesGenerator = class {
|
|
|
16982
17062
|
* @return {*} {(string | undefined)}
|
|
16983
17063
|
*/
|
|
16984
17064
|
translateVal(codeListKey, val, isExclude = false) {
|
|
16985
|
-
if (
|
|
17065
|
+
if (isNil15(val)) {
|
|
16986
17066
|
return void 0;
|
|
16987
17067
|
}
|
|
16988
|
-
if (
|
|
17068
|
+
if (isNil15(codeListKey)) {
|
|
16989
17069
|
return val;
|
|
16990
17070
|
}
|
|
16991
17071
|
const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
|
|
@@ -17015,7 +17095,7 @@ var BaseSeriesGenerator = class {
|
|
|
17015
17095
|
seriesCodeListId,
|
|
17016
17096
|
item[this.groupField]
|
|
17017
17097
|
);
|
|
17018
|
-
if (
|
|
17098
|
+
if (isNil15(groupVal)) {
|
|
17019
17099
|
return;
|
|
17020
17100
|
}
|
|
17021
17101
|
group = groupVal;
|
|
@@ -17131,25 +17211,25 @@ var BaseSeriesGenerator = class {
|
|
|
17131
17211
|
format = "YYYY-MM";
|
|
17132
17212
|
}
|
|
17133
17213
|
if (singleData[this.catalogField]) {
|
|
17134
|
-
const formattedDate =
|
|
17214
|
+
const formattedDate = dayjs3(singleData[this.catalogField]).format(
|
|
17135
17215
|
format
|
|
17136
17216
|
);
|
|
17137
17217
|
singleData[this.catalogField] = formattedDate;
|
|
17138
17218
|
}
|
|
17139
17219
|
} else if (groupMode === "QUARTER") {
|
|
17140
17220
|
if (singleData[this.catalogField]) {
|
|
17141
|
-
const formattedDate = "".concat(
|
|
17221
|
+
const formattedDate = "".concat(dayjs3(
|
|
17142
17222
|
singleData[this.catalogField]
|
|
17143
|
-
).format("YYYY"), "-").concat(
|
|
17223
|
+
).format("YYYY"), "-").concat(dayjs3(
|
|
17144
17224
|
singleData[this.catalogField]
|
|
17145
17225
|
).quarter());
|
|
17146
17226
|
singleData[this.catalogField] = formattedDate;
|
|
17147
17227
|
}
|
|
17148
17228
|
} else if (groupMode === "YEARWEEK") {
|
|
17149
17229
|
if (singleData[this.catalogField]) {
|
|
17150
|
-
const formattedDate = "".concat(
|
|
17230
|
+
const formattedDate = "".concat(dayjs3(
|
|
17151
17231
|
singleData[this.catalogField]
|
|
17152
|
-
).format("YYYY"), "-").concat(
|
|
17232
|
+
).format("YYYY"), "-").concat(dayjs3(singleData[this.catalogField]).week());
|
|
17153
17233
|
singleData[this.catalogField] = formattedDate;
|
|
17154
17234
|
}
|
|
17155
17235
|
}
|
|
@@ -17171,7 +17251,7 @@ var BaseSeriesGenerator = class {
|
|
|
17171
17251
|
let sortedKeys = [];
|
|
17172
17252
|
if (groupMode === "DAY" || groupMode === "YEAR" || groupMode === "MONTH") {
|
|
17173
17253
|
sortedKeys = Array.from(dateMap.keys()).sort(
|
|
17174
|
-
(a, b) =>
|
|
17254
|
+
(a, b) => dayjs3(a).diff(dayjs3(b))
|
|
17175
17255
|
);
|
|
17176
17256
|
} else if (groupMode === "QUARTER" || groupMode === "YEARWEEK") {
|
|
17177
17257
|
sortedKeys = Array.from(dateMap.keys()).sort((a, b) => {
|
|
@@ -17205,11 +17285,11 @@ var BaseSeriesGenerator = class {
|
|
|
17205
17285
|
const dates = [];
|
|
17206
17286
|
Object.keys(data).forEach((key) => {
|
|
17207
17287
|
data[key].forEach((_val, date) => {
|
|
17208
|
-
dates.push(
|
|
17288
|
+
dates.push(dayjs3(date));
|
|
17209
17289
|
});
|
|
17210
17290
|
});
|
|
17211
|
-
const maxDate =
|
|
17212
|
-
const minDate =
|
|
17291
|
+
const maxDate = dayjs3.max(dates);
|
|
17292
|
+
const minDate = dayjs3.min(dates);
|
|
17213
17293
|
if (groupMode === "DAY") {
|
|
17214
17294
|
let currentDate = minDate;
|
|
17215
17295
|
const endDate = maxDate;
|
|
@@ -17291,7 +17371,7 @@ var BaseSeriesGenerator = class {
|
|
|
17291
17371
|
const [minYear] = minYearWeek.split("-");
|
|
17292
17372
|
const [maxYear] = maxYearWeek.split("-");
|
|
17293
17373
|
for (let year = parseInt(minYear, 10); year <= parseInt(maxYear, 10); year++) {
|
|
17294
|
-
const numWeeks =
|
|
17374
|
+
const numWeeks = dayjs3("".concat(year, "-12-31")).isoWeek();
|
|
17295
17375
|
for (let week = 1; week <= numWeeks; week++) {
|
|
17296
17376
|
const yearWeek = "".concat(year, "-").concat(week);
|
|
17297
17377
|
Object.keys(data).forEach((key) => {
|
|
@@ -17816,7 +17896,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
17816
17896
|
getSrfkeyByParams(params) {
|
|
17817
17897
|
const generator = this.seriesGenerators[params.seriesIndex];
|
|
17818
17898
|
if (!generator) {
|
|
17819
|
-
throw new
|
|
17899
|
+
throw new RuntimeError28("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
17820
17900
|
}
|
|
17821
17901
|
return generator.getSrfkeyByParams(params);
|
|
17822
17902
|
}
|
|
@@ -17928,10 +18008,10 @@ var ChartController = class extends MDControlController {
|
|
|
17928
18008
|
*/
|
|
17929
18009
|
updateChart() {
|
|
17930
18010
|
if (!this.chart) {
|
|
17931
|
-
throw new
|
|
18011
|
+
throw new RuntimeError29("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
17932
18012
|
}
|
|
17933
18013
|
if (!this.options) {
|
|
17934
|
-
throw new
|
|
18014
|
+
throw new RuntimeError29("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
17935
18015
|
}
|
|
17936
18016
|
this.chart.setOption(this.options);
|
|
17937
18017
|
this.resizeChart();
|
|
@@ -17976,20 +18056,20 @@ var CaptionBarController = class extends ControlController {
|
|
|
17976
18056
|
};
|
|
17977
18057
|
|
|
17978
18058
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
17979
|
-
import { recursiveIterate } from "@ibiz-template/core";
|
|
18059
|
+
import { recursiveIterate, RuntimeError as RuntimeError36 } from "@ibiz-template/core";
|
|
17980
18060
|
|
|
17981
18061
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
17982
18062
|
import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
|
|
17983
|
-
import { isArray as
|
|
18063
|
+
import { isArray as isArray4 } from "qx-util";
|
|
17984
18064
|
|
|
17985
18065
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
17986
18066
|
import { RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
|
|
17987
18067
|
|
|
17988
18068
|
// src/ui-logic/index.ts
|
|
17989
|
-
import { RuntimeError as
|
|
18069
|
+
import { RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
17990
18070
|
|
|
17991
18071
|
// src/ui-logic/ui-logic.ts
|
|
17992
|
-
import { ModelError as
|
|
18072
|
+
import { ModelError as ModelError24, RuntimeModelError as RuntimeModelError42 } from "@ibiz-template/core";
|
|
17993
18073
|
|
|
17994
18074
|
// src/ui-logic/ui-logic-context.ts
|
|
17995
18075
|
var UILogicContext = class {
|
|
@@ -18115,7 +18195,7 @@ var UILogicContext = class {
|
|
|
18115
18195
|
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
18116
18196
|
|
|
18117
18197
|
// src/ui-logic/ui-logic-link/ui-logic-link.ts
|
|
18118
|
-
import { ModelError as
|
|
18198
|
+
import { ModelError as ModelError18 } from "@ibiz-template/core";
|
|
18119
18199
|
|
|
18120
18200
|
// src/ui-logic/ui-logic-link/ui-logic-link-group-cond/ui-logic-link-group-cond.ts
|
|
18121
18201
|
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
@@ -18125,7 +18205,7 @@ var UILogicLinkCond = class {
|
|
|
18125
18205
|
};
|
|
18126
18206
|
|
|
18127
18207
|
// src/ui-logic/ui-logic-link/ui-logic-link-single-cond/ui-logic-link-single-cond.ts
|
|
18128
|
-
import { ModelError as
|
|
18208
|
+
import { ModelError as ModelError17, RuntimeModelError as RuntimeModelError27 } from "@ibiz-template/core";
|
|
18129
18209
|
var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
18130
18210
|
constructor(model) {
|
|
18131
18211
|
super();
|
|
@@ -18179,7 +18259,7 @@ var UILogicLinkSingleCond = class extends UILogicLinkCond {
|
|
|
18179
18259
|
return testCond(dst[this.dstField], this.op, src[this.value]);
|
|
18180
18260
|
}
|
|
18181
18261
|
case "CURTIME":
|
|
18182
|
-
throw new
|
|
18262
|
+
throw new ModelError17(this.model, "\u6682\u672A\u652F\u6301\u6761\u4EF6\u503C\u7C7B\u578B\u4E3A[\u5F53\u524D\u65F6\u95F4]");
|
|
18183
18263
|
default:
|
|
18184
18264
|
return testCond(dst[this.dstField], this.op, this.value);
|
|
18185
18265
|
}
|
|
@@ -18321,13 +18401,13 @@ var UILogicLink = class {
|
|
|
18321
18401
|
case 1:
|
|
18322
18402
|
return true;
|
|
18323
18403
|
case 2:
|
|
18324
|
-
throw new
|
|
18404
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u7ED3\u675F");
|
|
18325
18405
|
case 3:
|
|
18326
|
-
throw new
|
|
18406
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u6B65\u62D2\u7EDD");
|
|
18327
18407
|
case 9:
|
|
18328
|
-
throw new
|
|
18408
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B: \u5F02\u5E38\u5904\u7406");
|
|
18329
18409
|
default:
|
|
18330
|
-
throw new
|
|
18410
|
+
throw new ModelError18(this.model, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8FDE\u63A5\u7C7B\u578B:".concat(linkMode));
|
|
18331
18411
|
}
|
|
18332
18412
|
}
|
|
18333
18413
|
};
|
|
@@ -18411,11 +18491,14 @@ var StartNode2 = class extends UILogicNode {
|
|
|
18411
18491
|
};
|
|
18412
18492
|
|
|
18413
18493
|
// src/ui-logic/ui-logic-node/end-node/end-node.ts
|
|
18414
|
-
import { ModelError as
|
|
18494
|
+
import { ModelError as ModelError19 } from "@ibiz-template/core";
|
|
18415
18495
|
var EndNode2 = class extends UILogicNode {
|
|
18416
18496
|
async exec(ctx) {
|
|
18417
18497
|
ctx.isEndNode = true;
|
|
18418
18498
|
const { returnType, rawValue, returnParamId } = this.model;
|
|
18499
|
+
if (!returnType) {
|
|
18500
|
+
return;
|
|
18501
|
+
}
|
|
18419
18502
|
switch (returnType) {
|
|
18420
18503
|
case "NONEVALUE":
|
|
18421
18504
|
ctx.result = void 0;
|
|
@@ -18432,7 +18515,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
18432
18515
|
case "LOGICPARAMFIELD":
|
|
18433
18516
|
case "BREAK":
|
|
18434
18517
|
default:
|
|
18435
|
-
throw new
|
|
18518
|
+
throw new ModelError19(
|
|
18436
18519
|
this.model,
|
|
18437
18520
|
"\u6682\u672A\u652F\u6301\u7684\u7ED3\u675F\u8282\u70B9\u8FD4\u56DE\u503C\u7C7B\u578B: ".concat(returnType)
|
|
18438
18521
|
);
|
|
@@ -18441,11 +18524,11 @@ var EndNode2 = class extends UILogicNode {
|
|
|
18441
18524
|
};
|
|
18442
18525
|
|
|
18443
18526
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
18444
|
-
import { ModelError as
|
|
18527
|
+
import { ModelError as ModelError21 } from "@ibiz-template/core";
|
|
18445
18528
|
import { clone as clone13 } from "ramda";
|
|
18446
18529
|
|
|
18447
18530
|
// src/ui-logic/utils/handle-src-val.ts
|
|
18448
|
-
import { ModelError as
|
|
18531
|
+
import { ModelError as ModelError20 } from "@ibiz-template/core";
|
|
18449
18532
|
import { clone as clone12 } from "ramda";
|
|
18450
18533
|
function handleSrcVal2(ctx, srcValParams) {
|
|
18451
18534
|
const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
@@ -18475,7 +18558,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
18475
18558
|
value = clone12(ibiz.env);
|
|
18476
18559
|
break;
|
|
18477
18560
|
default:
|
|
18478
|
-
throw new
|
|
18561
|
+
throw new ModelError20(srcValParams, "\u6682\u672A\u652F\u6301\u6E90\u503C\u7C7B\u578B".concat(srcValueType));
|
|
18479
18562
|
}
|
|
18480
18563
|
const srcField = srcFieldName;
|
|
18481
18564
|
if (value && srcField) {
|
|
@@ -18515,7 +18598,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
18515
18598
|
await this.sortParam(nodeParam, ctx);
|
|
18516
18599
|
break;
|
|
18517
18600
|
default:
|
|
18518
|
-
throw new
|
|
18601
|
+
throw new ModelError21(
|
|
18519
18602
|
nodeParam,
|
|
18520
18603
|
"\u6682\u672A\u652F\u6301\u903B\u8F91\u5904\u7406\u53C2\u6570\u64CD\u4F5C".concat(nodeParam.paramAction)
|
|
18521
18604
|
);
|
|
@@ -18629,7 +18712,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
18629
18712
|
};
|
|
18630
18713
|
|
|
18631
18714
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
18632
|
-
import { RuntimeError as
|
|
18715
|
+
import { RuntimeError as RuntimeError30, RuntimeModelError as RuntimeModelError31 } from "@ibiz-template/core";
|
|
18633
18716
|
import { isFunction } from "lodash-es";
|
|
18634
18717
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
18635
18718
|
async exec(ctx) {
|
|
@@ -18646,14 +18729,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
18646
18729
|
}
|
|
18647
18730
|
const invokeParam = ctx.params[invokeParamId];
|
|
18648
18731
|
if (!invokeParam) {
|
|
18649
|
-
throw new
|
|
18732
|
+
throw new RuntimeError30("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
18650
18733
|
}
|
|
18651
18734
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
18652
18735
|
if (!invokeCtrl) {
|
|
18653
|
-
throw new
|
|
18736
|
+
throw new RuntimeError30("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
18654
18737
|
}
|
|
18655
18738
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
18656
|
-
throw new
|
|
18739
|
+
throw new RuntimeError30("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
18657
18740
|
}
|
|
18658
18741
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
18659
18742
|
}
|
|
@@ -18676,7 +18759,7 @@ var BindParamNode2 = class extends UILogicNode {
|
|
|
18676
18759
|
};
|
|
18677
18760
|
|
|
18678
18761
|
// src/ui-logic/ui-logic-node/msg-box-node/msg-box-node.ts
|
|
18679
|
-
import { ModelError as
|
|
18762
|
+
import { ModelError as ModelError22, RuntimeModelError as RuntimeModelError33 } from "@ibiz-template/core";
|
|
18680
18763
|
var MsgBoxNode = class extends UILogicNode {
|
|
18681
18764
|
constructor() {
|
|
18682
18765
|
super(...arguments);
|
|
@@ -18735,7 +18818,7 @@ var MsgBoxNode = class extends UILogicNode {
|
|
|
18735
18818
|
resultTags = ["ok", "cancel"];
|
|
18736
18819
|
break;
|
|
18737
18820
|
default:
|
|
18738
|
-
throw new
|
|
18821
|
+
throw new ModelError22(this.model, "".concat(buttonsType, "\u6682\u672A\u652F\u6301"));
|
|
18739
18822
|
}
|
|
18740
18823
|
const result = await ibiz.modal.confirm(modalParams);
|
|
18741
18824
|
ctx.setLastReturn(resultTags[result ? 0 : 1]);
|
|
@@ -18866,16 +18949,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
18866
18949
|
};
|
|
18867
18950
|
|
|
18868
18951
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
18869
|
-
import { RuntimeError as
|
|
18952
|
+
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
18870
18953
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
18871
18954
|
async exec(_ctx) {
|
|
18872
18955
|
const { errorInfo } = this.model;
|
|
18873
|
-
throw new
|
|
18956
|
+
throw new RuntimeError31(errorInfo);
|
|
18874
18957
|
}
|
|
18875
18958
|
};
|
|
18876
18959
|
|
|
18877
18960
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
18878
|
-
import { RuntimeError as
|
|
18961
|
+
import { RuntimeError as RuntimeError32, RuntimeModelError as RuntimeModelError40 } from "@ibiz-template/core";
|
|
18879
18962
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
18880
18963
|
async exec(ctx) {
|
|
18881
18964
|
ctx.isEndNode = true;
|
|
@@ -18891,18 +18974,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
18891
18974
|
}
|
|
18892
18975
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
18893
18976
|
if (!invokeCtrl) {
|
|
18894
|
-
throw new
|
|
18977
|
+
throw new RuntimeError32("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
18895
18978
|
}
|
|
18896
18979
|
const eventParam = ctx.params[eventParamId];
|
|
18897
18980
|
if (!eventParam) {
|
|
18898
|
-
throw new
|
|
18981
|
+
throw new RuntimeError32("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
18899
18982
|
}
|
|
18900
18983
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
18901
18984
|
}
|
|
18902
18985
|
};
|
|
18903
18986
|
|
|
18904
18987
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
18905
|
-
import { RuntimeError as
|
|
18988
|
+
import { RuntimeError as RuntimeError33, RuntimeModelError as RuntimeModelError41 } from "@ibiz-template/core";
|
|
18906
18989
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
18907
18990
|
async exec(ctx) {
|
|
18908
18991
|
const {
|
|
@@ -18922,7 +19005,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
18922
19005
|
}
|
|
18923
19006
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
18924
19007
|
if (!dstParam) {
|
|
18925
|
-
throw new
|
|
19008
|
+
throw new RuntimeError33("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
18926
19009
|
}
|
|
18927
19010
|
const result = await execDELogicById(
|
|
18928
19011
|
dstAppDELogicId,
|
|
@@ -18938,7 +19021,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
18938
19021
|
};
|
|
18939
19022
|
|
|
18940
19023
|
// src/ui-logic/ui-logic-param/ui-logic-param.ts
|
|
18941
|
-
import { ModelError as
|
|
19024
|
+
import { ModelError as ModelError23 } from "@ibiz-template/core";
|
|
18942
19025
|
var UILogicParam = class {
|
|
18943
19026
|
/**
|
|
18944
19027
|
* Creates an instance of UILogicParam.
|
|
@@ -18984,7 +19067,7 @@ var UILogicParam = class {
|
|
|
18984
19067
|
} else if (m.entityListParam) {
|
|
18985
19068
|
ctx.params[tag] = [];
|
|
18986
19069
|
} else if (m.entityPageParam) {
|
|
18987
|
-
throw new
|
|
19070
|
+
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5206\u9875\u67E5\u8BE2\u7ED3\u679C");
|
|
18988
19071
|
} else if (m.entityParam) {
|
|
18989
19072
|
ctx.params[tag] = {};
|
|
18990
19073
|
} else if (m.lastReturnParam) {
|
|
@@ -18992,9 +19075,9 @@ var UILogicParam = class {
|
|
|
18992
19075
|
} else if (m.navContextParam) {
|
|
18993
19076
|
ctx.params[tag] = context;
|
|
18994
19077
|
} else if (m.navViewParamParam) {
|
|
18995
|
-
throw new
|
|
19078
|
+
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u89C6\u56FE\u8DEF\u7531\u53C2\u6570");
|
|
18996
19079
|
} else if (m.routeViewSessionParam) {
|
|
18997
|
-
throw new
|
|
19080
|
+
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u8DEF\u7531\u89C6\u56FE\u4F1A\u8BDD");
|
|
18998
19081
|
} else if (m.simpleListParam) {
|
|
18999
19082
|
ctx.params[tag] = [];
|
|
19000
19083
|
} else if (m.simpleParam) {
|
|
@@ -19002,7 +19085,7 @@ var UILogicParam = class {
|
|
|
19002
19085
|
} else if (m.viewNavDataParam) {
|
|
19003
19086
|
ctx.params[tag] = viewParams;
|
|
19004
19087
|
} else if (m.viewSessionParam) {
|
|
19005
|
-
throw new
|
|
19088
|
+
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B: \u5F53\u524D\u89C6\u56FE\u4F1A\u8BDD");
|
|
19006
19089
|
}
|
|
19007
19090
|
}
|
|
19008
19091
|
/**
|
|
@@ -19019,7 +19102,7 @@ var UILogicParam = class {
|
|
|
19019
19102
|
} else if (m.simpleParam || m.entityParam) {
|
|
19020
19103
|
ctx.params[tag] = {};
|
|
19021
19104
|
} else {
|
|
19022
|
-
throw new
|
|
19105
|
+
throw new ModelError23(m, "\u672A\u652F\u6301\u7684\u903B\u8F91\u53C2\u6570\u7C7B\u578B\u91CD\u65B0\u5EFA\u7ACB\u53D8\u91CF");
|
|
19023
19106
|
}
|
|
19024
19107
|
}
|
|
19025
19108
|
};
|
|
@@ -19116,7 +19199,7 @@ var UILogic = class {
|
|
|
19116
19199
|
break;
|
|
19117
19200
|
case "PFPLUGIN":
|
|
19118
19201
|
default:
|
|
19119
|
-
throw new
|
|
19202
|
+
throw new ModelError24(node, "\u672A\u652F\u6301\u7684\u903B\u8F91\u8282\u70B9\u7C7B\u578B: ".concat(logicNodeType));
|
|
19120
19203
|
}
|
|
19121
19204
|
this.nodes.set(node.id, logicNode);
|
|
19122
19205
|
});
|
|
@@ -19215,7 +19298,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
19215
19298
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
19216
19299
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
19217
19300
|
if (!deUILogic) {
|
|
19218
|
-
throw new
|
|
19301
|
+
throw new RuntimeError34(
|
|
19219
19302
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
19220
19303
|
);
|
|
19221
19304
|
}
|
|
@@ -19228,7 +19311,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
19228
19311
|
}
|
|
19229
19312
|
|
|
19230
19313
|
// src/ui-action/uiaction-util.ts
|
|
19231
|
-
import { RuntimeError as
|
|
19314
|
+
import { RuntimeError as RuntimeError35 } from "@ibiz-template/core";
|
|
19232
19315
|
var UIActionUtil = class {
|
|
19233
19316
|
/**
|
|
19234
19317
|
* 执行界面行为
|
|
@@ -19243,7 +19326,7 @@ var UIActionUtil = class {
|
|
|
19243
19326
|
static async exec(actionId, params) {
|
|
19244
19327
|
const action = await getUIActionById(actionId);
|
|
19245
19328
|
if (!action) {
|
|
19246
|
-
throw new
|
|
19329
|
+
throw new RuntimeError35("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
19247
19330
|
}
|
|
19248
19331
|
const provider = await getUIActionProvider(action);
|
|
19249
19332
|
return provider.exec(action, params);
|
|
@@ -19510,7 +19593,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
19510
19593
|
ibiz.message.success(action.successMsg);
|
|
19511
19594
|
}
|
|
19512
19595
|
Object.assign(actionResult, {
|
|
19513
|
-
data:
|
|
19596
|
+
data: isArray4(res.data) ? res.data : [res.data],
|
|
19514
19597
|
nextContext: resultContext,
|
|
19515
19598
|
nextParams: tempParams
|
|
19516
19599
|
});
|
|
@@ -19572,7 +19655,7 @@ var SysUIActionProvider = class extends UIActionProviderBase {
|
|
|
19572
19655
|
};
|
|
19573
19656
|
|
|
19574
19657
|
// src/ui-action/provider/front-ui-action-provider.ts
|
|
19575
|
-
import { StringUtil, RuntimeModelError as RuntimeModelError45, ModelError as
|
|
19658
|
+
import { StringUtil, RuntimeModelError as RuntimeModelError45, ModelError as ModelError25 } from "@ibiz-template/core";
|
|
19576
19659
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
19577
19660
|
async execAction(action, args) {
|
|
19578
19661
|
const { context, params, data, event, noWaitRoute } = args;
|
|
@@ -19616,7 +19699,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
19616
19699
|
actionResult = this.doOther(action, args);
|
|
19617
19700
|
break;
|
|
19618
19701
|
default:
|
|
19619
|
-
throw new
|
|
19702
|
+
throw new ModelError25(
|
|
19620
19703
|
action,
|
|
19621
19704
|
"\u672A\u652F\u6301\u7684\u524D\u53F0\u5904\u7406\u6A21\u5F0F[".concat(action.frontProcessType, "]")
|
|
19622
19705
|
);
|
|
@@ -19708,15 +19791,29 @@ var ToolbarController = class extends ControlController {
|
|
|
19708
19791
|
async doUIAction(item, event, param = {}) {
|
|
19709
19792
|
if (item.itemType === "DEUIACTION") {
|
|
19710
19793
|
const actionId = item.uiactionId;
|
|
19711
|
-
const
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19794
|
+
const uiAction = await getUIActionById(actionId);
|
|
19795
|
+
if (!uiAction) {
|
|
19796
|
+
throw new RuntimeError36("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
19797
|
+
}
|
|
19798
|
+
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
19799
|
+
if (enableLoading) {
|
|
19800
|
+
this.state.buttonsState.setLoading(item.id);
|
|
19801
|
+
}
|
|
19802
|
+
try {
|
|
19803
|
+
const res = await this.ctx.view.call("GetData" /* GET_DATA */);
|
|
19804
|
+
const data = res || [];
|
|
19805
|
+
const args = this.getEventArgs();
|
|
19806
|
+
args.params = Object.assign(param, args.params);
|
|
19807
|
+
await UIActionUtil.execAndResolved(actionId, {
|
|
19808
|
+
...args,
|
|
19809
|
+
data,
|
|
19810
|
+
event
|
|
19811
|
+
});
|
|
19812
|
+
} finally {
|
|
19813
|
+
if (enableLoading) {
|
|
19814
|
+
this.state.buttonsState.setLoading("");
|
|
19815
|
+
}
|
|
19816
|
+
}
|
|
19720
19817
|
}
|
|
19721
19818
|
}
|
|
19722
19819
|
async onCreated() {
|
|
@@ -19751,19 +19848,14 @@ var ToolbarController = class extends ControlController {
|
|
|
19751
19848
|
* @memberof ToolbarController
|
|
19752
19849
|
*/
|
|
19753
19850
|
async onItemClick(item, event, params) {
|
|
19754
|
-
this.state.buttonsState.setLoading(item.id);
|
|
19755
19851
|
const isExtra = item.buttonType === "extra";
|
|
19756
|
-
|
|
19757
|
-
|
|
19758
|
-
|
|
19759
|
-
|
|
19760
|
-
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
await this.doUIAction(item, event, params);
|
|
19764
|
-
}
|
|
19765
|
-
} finally {
|
|
19766
|
-
this.state.buttonsState.setLoading("");
|
|
19852
|
+
await this._evt.emit("onClick", {
|
|
19853
|
+
event,
|
|
19854
|
+
eventArg: item.id,
|
|
19855
|
+
buttonType: isExtra ? "extra" : "deuiaction"
|
|
19856
|
+
});
|
|
19857
|
+
if (!isExtra) {
|
|
19858
|
+
await this.doUIAction(item, event, params);
|
|
19767
19859
|
}
|
|
19768
19860
|
}
|
|
19769
19861
|
async calcButtonState(data, appDeId) {
|
|
@@ -20127,7 +20219,7 @@ var ViewPortletController = class extends PortletPartController {
|
|
|
20127
20219
|
|
|
20128
20220
|
// src/controller/control/data-view/data-view.controller.ts
|
|
20129
20221
|
import { RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
20130
|
-
import { isNil as
|
|
20222
|
+
import { isNil as isNil16 } from "ramda";
|
|
20131
20223
|
|
|
20132
20224
|
// src/controller/control/data-view/data-view.service.ts
|
|
20133
20225
|
var DataViewControlService = class extends MDControlService {
|
|
@@ -20159,6 +20251,16 @@ var DataViewControlService = class extends MDControlService {
|
|
|
20159
20251
|
|
|
20160
20252
|
// src/controller/control/data-view/data-view.controller.ts
|
|
20161
20253
|
var DataViewControlController = class extends MDControlController {
|
|
20254
|
+
/**
|
|
20255
|
+
* 是否允许新建
|
|
20256
|
+
* @author lxm
|
|
20257
|
+
* @date 2023-09-11 04:05:25
|
|
20258
|
+
* @readonly
|
|
20259
|
+
* @type {boolean}
|
|
20260
|
+
*/
|
|
20261
|
+
get enableNew() {
|
|
20262
|
+
return this.model.enableCardNew === true;
|
|
20263
|
+
}
|
|
20162
20264
|
/**
|
|
20163
20265
|
* 初始化State
|
|
20164
20266
|
*
|
|
@@ -20169,6 +20271,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20169
20271
|
super.initState();
|
|
20170
20272
|
this.state.noSort = this.model.noSort === true;
|
|
20171
20273
|
this.state.size = this.model.pagingSize || 20;
|
|
20274
|
+
this.state.singleSelect = this.model.singleSelect === true;
|
|
20172
20275
|
}
|
|
20173
20276
|
/**
|
|
20174
20277
|
* 初始化
|
|
@@ -20192,6 +20295,92 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20192
20295
|
this.service = new DataViewControlService(this.model);
|
|
20193
20296
|
await this.service.init(this.context);
|
|
20194
20297
|
}
|
|
20298
|
+
/**
|
|
20299
|
+
* 初始化分组右侧界面行为按钮的状态
|
|
20300
|
+
*
|
|
20301
|
+
* @author chitanda
|
|
20302
|
+
* @date 2023-08-02 17:08:04
|
|
20303
|
+
* @return {*} {Promise<void>}
|
|
20304
|
+
*/
|
|
20305
|
+
async initGroupActionStates() {
|
|
20306
|
+
var _a;
|
|
20307
|
+
const { groupUIActionGroup } = this.model;
|
|
20308
|
+
if (!((_a = groupUIActionGroup == null ? void 0 : groupUIActionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
20309
|
+
return;
|
|
20310
|
+
}
|
|
20311
|
+
this.state.groups.forEach(async (group) => {
|
|
20312
|
+
const containerState = new ButtonContainerState();
|
|
20313
|
+
groupUIActionGroup.uiactionGroupDetails.forEach((detail) => {
|
|
20314
|
+
const actionid = detail.uiactionId;
|
|
20315
|
+
if (actionid) {
|
|
20316
|
+
const buttonState = new UIActionButtonState(
|
|
20317
|
+
detail.id,
|
|
20318
|
+
this.context.srfappid,
|
|
20319
|
+
actionid
|
|
20320
|
+
);
|
|
20321
|
+
containerState.addState(detail.id, buttonState);
|
|
20322
|
+
}
|
|
20323
|
+
});
|
|
20324
|
+
await containerState.update();
|
|
20325
|
+
group.groupActionGroupState = containerState;
|
|
20326
|
+
});
|
|
20327
|
+
}
|
|
20328
|
+
/**
|
|
20329
|
+
* 行单击事件
|
|
20330
|
+
*
|
|
20331
|
+
* @author lxm
|
|
20332
|
+
* @date 2022-08-18 22:08:16
|
|
20333
|
+
* @param {IData} data 选中的单条数据
|
|
20334
|
+
*/
|
|
20335
|
+
async onRowClick(data) {
|
|
20336
|
+
super.onRowClick(data);
|
|
20337
|
+
const { groupAppDEFieldId } = this.model;
|
|
20338
|
+
if (groupAppDEFieldId) {
|
|
20339
|
+
this.state.groups.forEach((group) => {
|
|
20340
|
+
group.selectedData = [];
|
|
20341
|
+
});
|
|
20342
|
+
this.state.selectedData.forEach((select) => {
|
|
20343
|
+
const groupVal = select[groupAppDEFieldId];
|
|
20344
|
+
const selectGroup = this.state.groups.find(
|
|
20345
|
+
(group) => group.key === groupVal
|
|
20346
|
+
);
|
|
20347
|
+
if (selectGroup) {
|
|
20348
|
+
selectGroup.selectedData.push(select);
|
|
20349
|
+
}
|
|
20350
|
+
});
|
|
20351
|
+
if (this.state.singleSelect) {
|
|
20352
|
+
this.state.groups.forEach((group) => {
|
|
20353
|
+
let tempData = data;
|
|
20354
|
+
if (group.selectedData.indexOf(tempData) !== -1) {
|
|
20355
|
+
if (tempData && tempData instanceof ControlVO) {
|
|
20356
|
+
tempData = tempData.getOrigin();
|
|
20357
|
+
}
|
|
20358
|
+
if (tempData) {
|
|
20359
|
+
group.groupActionGroupState.update(
|
|
20360
|
+
tempData,
|
|
20361
|
+
this.model.appDataEntityId
|
|
20362
|
+
);
|
|
20363
|
+
}
|
|
20364
|
+
} else {
|
|
20365
|
+
group.groupActionGroupState.update(
|
|
20366
|
+
void 0,
|
|
20367
|
+
this.model.appDataEntityId
|
|
20368
|
+
);
|
|
20369
|
+
}
|
|
20370
|
+
});
|
|
20371
|
+
} else {
|
|
20372
|
+
const actionGroup = this.state.groups.find((group) => {
|
|
20373
|
+
return group.children.indexOf(data) !== -1;
|
|
20374
|
+
});
|
|
20375
|
+
if (actionGroup) {
|
|
20376
|
+
actionGroup.groupActionGroupState.update(
|
|
20377
|
+
actionGroup.selectedData[0],
|
|
20378
|
+
this.model.appDataEntityId
|
|
20379
|
+
);
|
|
20380
|
+
}
|
|
20381
|
+
}
|
|
20382
|
+
}
|
|
20383
|
+
}
|
|
20195
20384
|
/**
|
|
20196
20385
|
* 加载更多
|
|
20197
20386
|
*
|
|
@@ -20204,7 +20393,9 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20204
20393
|
}
|
|
20205
20394
|
}
|
|
20206
20395
|
async afterLoad(args, items) {
|
|
20396
|
+
await this.initGroupCodeListItems();
|
|
20207
20397
|
await this.handleDataGroup();
|
|
20398
|
+
await this.initGroupActionStates();
|
|
20208
20399
|
return items;
|
|
20209
20400
|
}
|
|
20210
20401
|
/**
|
|
@@ -20308,7 +20499,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20308
20499
|
const groupMap = /* @__PURE__ */ new Map();
|
|
20309
20500
|
items.forEach((item) => {
|
|
20310
20501
|
const groupVal = item[groupAppDEFieldId];
|
|
20311
|
-
if (
|
|
20502
|
+
if (isNil16(groupVal)) {
|
|
20312
20503
|
return;
|
|
20313
20504
|
}
|
|
20314
20505
|
if (!groupMap.has(groupVal)) {
|
|
@@ -20337,7 +20528,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20337
20528
|
async initGroupCodeListItems() {
|
|
20338
20529
|
const { groupCodeListId } = this.model;
|
|
20339
20530
|
if (!groupCodeListId) {
|
|
20340
|
-
|
|
20531
|
+
return;
|
|
20341
20532
|
}
|
|
20342
20533
|
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
20343
20534
|
this.groupCodeListItems = await app.codeList.get(
|
|
@@ -20352,9 +20543,9 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20352
20543
|
* @memberof DataViewControlController
|
|
20353
20544
|
*/
|
|
20354
20545
|
async handleCodeListGroup() {
|
|
20355
|
-
const { groupAppDEFieldId } = this.model;
|
|
20356
|
-
if (!
|
|
20357
|
-
|
|
20546
|
+
const { groupAppDEFieldId, groupCodeListId } = this.model;
|
|
20547
|
+
if (!groupCodeListId) {
|
|
20548
|
+
throw new RuntimeModelError46(this.model, "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E");
|
|
20358
20549
|
}
|
|
20359
20550
|
const { items } = this.state;
|
|
20360
20551
|
const groupMap = /* @__PURE__ */ new Map();
|
|
@@ -20402,13 +20593,49 @@ var DataViewControlController = class extends MDControlController {
|
|
|
20402
20593
|
}
|
|
20403
20594
|
}
|
|
20404
20595
|
}
|
|
20596
|
+
/**
|
|
20597
|
+
* 点击新建
|
|
20598
|
+
* @author lxm
|
|
20599
|
+
* @date 2023-09-11 07:22:33
|
|
20600
|
+
* @param {MouseEvent} event
|
|
20601
|
+
* @param {(string | number)} group 分组标识
|
|
20602
|
+
*/
|
|
20603
|
+
onClickNew(event, group) {
|
|
20604
|
+
const params = { ...this.params, srfgroup: group };
|
|
20605
|
+
UIActionUtil.execAndResolved("new", {
|
|
20606
|
+
context: this.context,
|
|
20607
|
+
params,
|
|
20608
|
+
data: [],
|
|
20609
|
+
view: this.view,
|
|
20610
|
+
event
|
|
20611
|
+
});
|
|
20612
|
+
}
|
|
20613
|
+
/**
|
|
20614
|
+
* 分组工具栏点击处理回调
|
|
20615
|
+
* @author lxm
|
|
20616
|
+
* @date 2023-09-11 04:48:06
|
|
20617
|
+
* @param {IUIActionGroupDetail} detail
|
|
20618
|
+
* @param {MouseEvent} event
|
|
20619
|
+
* @return {*} {Promise<void>}
|
|
20620
|
+
*/
|
|
20621
|
+
async onGroupToolbarClick(detail, event, group) {
|
|
20622
|
+
const actionId = detail.uiactionId;
|
|
20623
|
+
const params = { ...this.params, srfgroup: group.key };
|
|
20624
|
+
await UIActionUtil.execAndResolved(actionId, {
|
|
20625
|
+
context: this.context,
|
|
20626
|
+
params,
|
|
20627
|
+
data: group.selectedData || [],
|
|
20628
|
+
view: this.view,
|
|
20629
|
+
event
|
|
20630
|
+
});
|
|
20631
|
+
}
|
|
20405
20632
|
};
|
|
20406
20633
|
|
|
20407
20634
|
// src/controller/control/exp-bar/calendar-exp-bar.controller.ts
|
|
20408
20635
|
import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
20409
20636
|
|
|
20410
20637
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
20411
|
-
import { RuntimeError as
|
|
20638
|
+
import { RuntimeError as RuntimeError37, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
20412
20639
|
var ExpBarControlController = class extends ControlController {
|
|
20413
20640
|
constructor() {
|
|
20414
20641
|
super(...arguments);
|
|
@@ -20570,6 +20797,9 @@ var ExpBarControlController = class extends ControlController {
|
|
|
20570
20797
|
);
|
|
20571
20798
|
});
|
|
20572
20799
|
}
|
|
20800
|
+
if (this.state.loadDefault) {
|
|
20801
|
+
this.load();
|
|
20802
|
+
}
|
|
20573
20803
|
}
|
|
20574
20804
|
/**
|
|
20575
20805
|
* 多数据部件加载成功 设置默认选中
|
|
@@ -20599,7 +20829,6 @@ var ExpBarControlController = class extends ControlController {
|
|
|
20599
20829
|
(item) => item[this.navKeyName] === this.state.srfnav
|
|
20600
20830
|
);
|
|
20601
20831
|
const routeAndHasSub = this.routeDepth && window.location.hash.split("/").length > this.routeDepth * 2 + 2;
|
|
20602
|
-
console.log("routeAndHasSub", routeAndHasSub);
|
|
20603
20832
|
if (routeAndHasSub) {
|
|
20604
20833
|
if (selectItem) {
|
|
20605
20834
|
this.xDataController.setSelection([selectItem]);
|
|
@@ -20694,7 +20923,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
20694
20923
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
20695
20924
|
return this.XDataModel.navAppViewId;
|
|
20696
20925
|
}
|
|
20697
|
-
throw new
|
|
20926
|
+
throw new RuntimeError37("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
20698
20927
|
}
|
|
20699
20928
|
/**
|
|
20700
20929
|
* 获取导航视图
|
|
@@ -20836,7 +21065,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
20836
21065
|
};
|
|
20837
21066
|
|
|
20838
21067
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
20839
|
-
import { RuntimeError as
|
|
21068
|
+
import { RuntimeError as RuntimeError38, RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
20840
21069
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
20841
21070
|
constructor() {
|
|
20842
21071
|
super(...arguments);
|
|
@@ -20911,7 +21140,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
20911
21140
|
const deData = node.deData || node;
|
|
20912
21141
|
const nodeModel = this.getNodeModel(node.nodeId);
|
|
20913
21142
|
if (!nodeModel) {
|
|
20914
|
-
throw new
|
|
21143
|
+
throw new RuntimeError38("\u627E\u4E0D\u5230".concat(node.nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
20915
21144
|
}
|
|
20916
21145
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
20917
21146
|
result.context.currentSrfNav = nodeId;
|
|
@@ -21224,6 +21453,12 @@ var SearchFormController = class extends FormController {
|
|
|
21224
21453
|
await this.service.init(this.context);
|
|
21225
21454
|
await this.load();
|
|
21226
21455
|
}
|
|
21456
|
+
async onMounted() {
|
|
21457
|
+
await super.onMounted();
|
|
21458
|
+
if (this.state.loadDefault) {
|
|
21459
|
+
this.load();
|
|
21460
|
+
}
|
|
21461
|
+
}
|
|
21227
21462
|
/**
|
|
21228
21463
|
* 加载草稿
|
|
21229
21464
|
*
|
|
@@ -21650,7 +21885,7 @@ var FormButtonController = class extends FormDetailController {
|
|
|
21650
21885
|
|
|
21651
21886
|
// src/controller/control/form/form-detail/form-druipart/form-druipart.controller.ts
|
|
21652
21887
|
import { isOverlap as isOverlap2 } from "@ibiz-template/core";
|
|
21653
|
-
import { createUUID as
|
|
21888
|
+
import { createUUID as createUUID4, notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
21654
21889
|
|
|
21655
21890
|
// src/controller/control/form/form-detail/form-druipart/form-druipart.state.ts
|
|
21656
21891
|
var FormDruipartState = class extends FormDetailState {
|
|
@@ -21763,7 +21998,7 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
21763
21998
|
this.form.context
|
|
21764
21999
|
);
|
|
21765
22000
|
if (!this.state.viewComponentKey) {
|
|
21766
|
-
this.state.viewComponentKey =
|
|
22001
|
+
this.state.viewComponentKey = createUUID4();
|
|
21767
22002
|
this.navContext = newContext;
|
|
21768
22003
|
this.navParams = newParams;
|
|
21769
22004
|
} else if (JSON.stringify(this.navContext) !== JSON.stringify(newContext) || JSON.stringify(this.navParams) !== JSON.stringify(newParams)) {
|
|
@@ -21914,9 +22149,7 @@ var FormGroupPanelController = class extends FormDetailController {
|
|
|
21914
22149
|
|
|
21915
22150
|
// src/controller/control/form/form-detail/form-item/form-item.controller.ts
|
|
21916
22151
|
import Schema from "async-validator";
|
|
21917
|
-
import {
|
|
21918
|
-
import { ModelError as ModelError25, RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
21919
|
-
import dayjs3 from "dayjs";
|
|
22152
|
+
import { isNilOrEmpty as isNilOrEmpty6 } from "qx-util";
|
|
21920
22153
|
|
|
21921
22154
|
// src/controller/control/form/form-detail/form-item/form-item.state.ts
|
|
21922
22155
|
var FormItemState = class extends FormDetailState {
|
|
@@ -22189,60 +22422,20 @@ var FormItemController = class extends FormDetailController {
|
|
|
22189
22422
|
* @param {boolean} isCreate 新建默认值还是更新默认值
|
|
22190
22423
|
*/
|
|
22191
22424
|
setDefaultValue(isCreate, data = this.data) {
|
|
22192
|
-
var _a;
|
|
22193
22425
|
const { createDVT, createDV, updateDVT, updateDV } = this.model;
|
|
22194
22426
|
const valueType = isCreate ? createDVT : updateDVT;
|
|
22195
22427
|
const defaultValue = isCreate ? createDV : updateDV;
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22202
|
-
|
|
22203
|
-
|
|
22204
|
-
|
|
22205
|
-
|
|
22206
|
-
|
|
22207
|
-
data[this.name] = defaultValue;
|
|
22208
|
-
return;
|
|
22209
|
-
}
|
|
22210
|
-
switch (valueType) {
|
|
22211
|
-
case "APPDATA":
|
|
22212
|
-
if (Object.prototype.hasOwnProperty.call(this.params, defaultValue)) {
|
|
22213
|
-
data[this.name] = this.params[defaultValue];
|
|
22214
|
-
}
|
|
22215
|
-
if (Object.prototype.hasOwnProperty.call(this.context, defaultValue)) {
|
|
22216
|
-
data[this.name] = this.context[defaultValue];
|
|
22217
|
-
}
|
|
22218
|
-
break;
|
|
22219
|
-
case "OPERATORNAME":
|
|
22220
|
-
data[this.name] = this.context.srfusername;
|
|
22221
|
-
break;
|
|
22222
|
-
case "OPERATOR":
|
|
22223
|
-
data[this.name] = this.context.srfuserid;
|
|
22224
|
-
break;
|
|
22225
|
-
case "CURTIME":
|
|
22226
|
-
data[this.name] = dayjs3().format(this.model.valueFormat);
|
|
22227
|
-
break;
|
|
22228
|
-
case "PARAM":
|
|
22229
|
-
data[this.name] = this.data[defaultValue];
|
|
22230
|
-
break;
|
|
22231
|
-
case "SESSION":
|
|
22232
|
-
case "APPLICATION":
|
|
22233
|
-
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
22234
|
-
throw new RuntimeError37("appdata.context\u4E0D\u5B58\u5728");
|
|
22235
|
-
}
|
|
22236
|
-
data[this.name] = ibiz.appData.context[defaultValue];
|
|
22237
|
-
break;
|
|
22238
|
-
case "CONTEXT":
|
|
22239
|
-
data[this.name] = this.params[defaultValue];
|
|
22240
|
-
break;
|
|
22241
|
-
case "UNIQUEID":
|
|
22242
|
-
data[this.name] = createUUID4();
|
|
22243
|
-
break;
|
|
22244
|
-
default:
|
|
22245
|
-
throw new ModelError25(this.model, "\u9ED8\u8BA4\u503C\u7C7B\u578B[".concat(valueType, "]\u672A\u652F\u6301"));
|
|
22428
|
+
const defaultVal = getDefaultValue(
|
|
22429
|
+
{
|
|
22430
|
+
name: this.name,
|
|
22431
|
+
valueType,
|
|
22432
|
+
defaultValue,
|
|
22433
|
+
valueFormat: this.model.valueFormat
|
|
22434
|
+
},
|
|
22435
|
+
{ data, context: this.context, params: this.params }
|
|
22436
|
+
);
|
|
22437
|
+
if (defaultVal !== void 0) {
|
|
22438
|
+
data[this.name] = defaultVal;
|
|
22246
22439
|
}
|
|
22247
22440
|
}
|
|
22248
22441
|
};
|
|
@@ -22356,7 +22549,7 @@ var FormMDCtrlContentTypeController = class {
|
|
|
22356
22549
|
};
|
|
22357
22550
|
|
|
22358
22551
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-control/form-mdctrl-control.controller.ts
|
|
22359
|
-
import { RuntimeError as
|
|
22552
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
22360
22553
|
var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController {
|
|
22361
22554
|
/**
|
|
22362
22555
|
* 初始化
|
|
@@ -22371,7 +22564,7 @@ var FormMDCtrlControlController = class extends FormMDCtrlContentTypeController
|
|
|
22371
22564
|
const { model } = this.parent;
|
|
22372
22565
|
const { contentControl } = model;
|
|
22373
22566
|
if (!contentControl) {
|
|
22374
|
-
throw new
|
|
22567
|
+
throw new RuntimeError39("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
22375
22568
|
}
|
|
22376
22569
|
this.controlModel = contentControl;
|
|
22377
22570
|
const controlProvider = await getControlProvider(this.controlModel);
|
|
@@ -22475,13 +22668,13 @@ var FormMDCtrlDataViewController = class extends FormMDCtrlControlController {
|
|
|
22475
22668
|
|
|
22476
22669
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.ts
|
|
22477
22670
|
import { mergeInLeft as mergeInLeft2 } from "@ibiz-template/core";
|
|
22478
|
-
import { isArray as
|
|
22671
|
+
import { isArray as isArray5 } from "lodash-es";
|
|
22479
22672
|
|
|
22480
22673
|
// src/controller/control/form/edit-form/edit-form.controller.ts
|
|
22481
22674
|
import {
|
|
22482
22675
|
awaitTimeout,
|
|
22483
22676
|
mergeInLeft,
|
|
22484
|
-
RuntimeError as
|
|
22677
|
+
RuntimeError as RuntimeError40,
|
|
22485
22678
|
mergeDefaultInLeft as mergeDefaultInLeft2
|
|
22486
22679
|
} from "@ibiz-template/core";
|
|
22487
22680
|
import { debounce } from "lodash-es";
|
|
@@ -22782,6 +22975,12 @@ var EditFormController = class extends FormController {
|
|
|
22782
22975
|
trailing: true
|
|
22783
22976
|
});
|
|
22784
22977
|
}
|
|
22978
|
+
async onMounted() {
|
|
22979
|
+
await super.onMounted();
|
|
22980
|
+
if (this.state.loadDefault) {
|
|
22981
|
+
this.load();
|
|
22982
|
+
}
|
|
22983
|
+
}
|
|
22785
22984
|
/**
|
|
22786
22985
|
* 加载草稿行为
|
|
22787
22986
|
* @author lxm
|
|
@@ -22864,7 +23063,7 @@ var EditFormController = class extends FormController {
|
|
|
22864
23063
|
}
|
|
22865
23064
|
const isValid = await this.validate();
|
|
22866
23065
|
if (!isValid) {
|
|
22867
|
-
throw new
|
|
23066
|
+
throw new RuntimeError40("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22868
23067
|
}
|
|
22869
23068
|
await this.startLoading();
|
|
22870
23069
|
await this.evt.emit("onBeforeSave", void 0);
|
|
@@ -22973,7 +23172,7 @@ var EditFormController = class extends FormController {
|
|
|
22973
23172
|
(item) => item.id === formItemUpdateId
|
|
22974
23173
|
);
|
|
22975
23174
|
if (!formItemUpdate) {
|
|
22976
|
-
throw new
|
|
23175
|
+
throw new RuntimeError40("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
22977
23176
|
}
|
|
22978
23177
|
const { appDEMethodId, defiupdateDetails, customCode, scriptCode } = formItemUpdate;
|
|
22979
23178
|
const updateItems = defiupdateDetails == null ? void 0 : defiupdateDetails.map((item) => item.id);
|
|
@@ -23017,7 +23216,7 @@ var EditFormController = class extends FormController {
|
|
|
23017
23216
|
async wfStart(extraParams = {}) {
|
|
23018
23217
|
const isValid = await this.validate();
|
|
23019
23218
|
if (!isValid) {
|
|
23020
|
-
throw new
|
|
23219
|
+
throw new RuntimeError40("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
23021
23220
|
}
|
|
23022
23221
|
await this.startLoading();
|
|
23023
23222
|
try {
|
|
@@ -23050,7 +23249,7 @@ var EditFormController = class extends FormController {
|
|
|
23050
23249
|
async wfSubmit(extraParams = {}) {
|
|
23051
23250
|
const isValid = await this.validate();
|
|
23052
23251
|
if (!isValid) {
|
|
23053
|
-
throw new
|
|
23252
|
+
throw new RuntimeError40("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
23054
23253
|
}
|
|
23055
23254
|
await this.startLoading();
|
|
23056
23255
|
try {
|
|
@@ -23169,7 +23368,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
23169
23368
|
handleResponse(response) {
|
|
23170
23369
|
const res = response;
|
|
23171
23370
|
if (res.ok) {
|
|
23172
|
-
if (
|
|
23371
|
+
if (isArray5(res.data)) {
|
|
23173
23372
|
res.data = res.data.map(
|
|
23174
23373
|
(item) => this.service.toUIData(item)
|
|
23175
23374
|
);
|
|
@@ -23281,7 +23480,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
23281
23480
|
};
|
|
23282
23481
|
|
|
23283
23482
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
23284
|
-
import { RuntimeError as
|
|
23483
|
+
import { RuntimeError as RuntimeError41, mergeInLeft as mergeInLeft3 } from "@ibiz-template/core";
|
|
23285
23484
|
var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
23286
23485
|
constructor() {
|
|
23287
23486
|
super(...arguments);
|
|
@@ -23386,7 +23585,7 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
23386
23585
|
const { model } = this.parent;
|
|
23387
23586
|
const { contentControl } = model;
|
|
23388
23587
|
if (!contentControl) {
|
|
23389
|
-
throw new
|
|
23588
|
+
throw new RuntimeError41("\u8868\u5355\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5D4C\u5165\u90E8\u4EF6");
|
|
23390
23589
|
}
|
|
23391
23590
|
mergeInLeft3(contentControl, { enableRowEdit: true, enableRowNew: true });
|
|
23392
23591
|
this.controlModel = contentControl;
|
|
@@ -24096,8 +24295,9 @@ var GridRowState = class {
|
|
|
24096
24295
|
import {
|
|
24097
24296
|
awaitTimeout as awaitTimeout2,
|
|
24098
24297
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
24298
|
+
mergeDefaultInLeft as mergeDefaultInLeft3,
|
|
24099
24299
|
recursiveIterate as recursiveIterate4,
|
|
24100
|
-
RuntimeError as
|
|
24300
|
+
RuntimeError as RuntimeError42,
|
|
24101
24301
|
RuntimeModelError as RuntimeModelError51
|
|
24102
24302
|
} from "@ibiz-template/core";
|
|
24103
24303
|
import { clone as clone15 } from "ramda";
|
|
@@ -24470,23 +24670,28 @@ var GridController = class extends MDControlController {
|
|
|
24470
24670
|
}
|
|
24471
24671
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
24472
24672
|
if (editingRow) {
|
|
24473
|
-
throw new
|
|
24673
|
+
throw new RuntimeError42("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
24474
24674
|
}
|
|
24675
|
+
const queryParams = { ...this.params };
|
|
24676
|
+
const defaultData = this.calcDefaultValue({}, true);
|
|
24677
|
+
Object.assign(queryParams, defaultData);
|
|
24475
24678
|
let res;
|
|
24476
24679
|
try {
|
|
24477
|
-
res = await this.service.getDraft(this.context,
|
|
24680
|
+
res = await this.service.getDraft(this.context, queryParams);
|
|
24478
24681
|
} catch (error) {
|
|
24479
24682
|
this.actionNotification("GETDRAFTERROR", {
|
|
24480
24683
|
error
|
|
24481
24684
|
});
|
|
24482
24685
|
throw error;
|
|
24483
24686
|
}
|
|
24484
|
-
|
|
24485
|
-
|
|
24687
|
+
const draftData = res.data;
|
|
24688
|
+
mergeDefaultInLeft3(draftData, defaultData);
|
|
24689
|
+
this.state.items.unshift(draftData);
|
|
24690
|
+
const newRow = new GridRowState(draftData, this);
|
|
24486
24691
|
this.state.rows.unshift(newRow);
|
|
24487
24692
|
this.gridStateNotify(newRow, "DRAFT" /* DRAFT */);
|
|
24488
24693
|
this.switchRowEdit(this.state.rows[0], true);
|
|
24489
|
-
this.actionNotification("GETDRAFTSUCCESS", { data:
|
|
24694
|
+
this.actionNotification("GETDRAFTSUCCESS", { data: draftData });
|
|
24490
24695
|
}
|
|
24491
24696
|
/**
|
|
24492
24697
|
* 保存
|
|
@@ -24504,7 +24709,7 @@ var GridController = class extends MDControlController {
|
|
|
24504
24709
|
(item) => item.data.srfkey === data.srfkey
|
|
24505
24710
|
);
|
|
24506
24711
|
if (!rowState) {
|
|
24507
|
-
throw new
|
|
24712
|
+
throw new RuntimeError42("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
24508
24713
|
}
|
|
24509
24714
|
if (!rowState.modified) {
|
|
24510
24715
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -24516,7 +24721,7 @@ var GridController = class extends MDControlController {
|
|
|
24516
24721
|
}
|
|
24517
24722
|
const isValid = await this.validate(rowState);
|
|
24518
24723
|
if (!isValid) {
|
|
24519
|
-
throw new
|
|
24724
|
+
throw new RuntimeError42("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
24520
24725
|
}
|
|
24521
24726
|
await this.startLoading();
|
|
24522
24727
|
let res;
|
|
@@ -24728,7 +24933,7 @@ var GridController = class extends MDControlController {
|
|
|
24728
24933
|
}
|
|
24729
24934
|
async toggleRowEdit() {
|
|
24730
24935
|
if (!this.model.enableRowNew) {
|
|
24731
|
-
throw new
|
|
24936
|
+
throw new RuntimeError42("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
24732
24937
|
}
|
|
24733
24938
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
24734
24939
|
}
|
|
@@ -24750,18 +24955,23 @@ var GridController = class extends MDControlController {
|
|
|
24750
24955
|
if (toState === false) {
|
|
24751
24956
|
if (isSave) {
|
|
24752
24957
|
await this.save(row.data);
|
|
24753
|
-
} else {
|
|
24754
|
-
|
|
24755
|
-
|
|
24756
|
-
|
|
24757
|
-
|
|
24758
|
-
|
|
24958
|
+
} else if (row.data.srfuf === 0 /* CREATE */) {
|
|
24959
|
+
row.showRowEdit = false;
|
|
24960
|
+
this.evt.emit("onRowEditChange", { row });
|
|
24961
|
+
return this.remove({ data: [row.data], silent: true });
|
|
24962
|
+
} else if (row.cacheData) {
|
|
24963
|
+
row.data = row.cacheData;
|
|
24964
|
+
delete row.cacheData;
|
|
24759
24965
|
}
|
|
24760
|
-
}
|
|
24761
|
-
if (toState === true) {
|
|
24966
|
+
} else {
|
|
24762
24967
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
24763
24968
|
if (editingRow) {
|
|
24764
|
-
throw new
|
|
24969
|
+
throw new RuntimeError42("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
24970
|
+
}
|
|
24971
|
+
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
24972
|
+
row.cacheData = clone15(row.data);
|
|
24973
|
+
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
24974
|
+
Object.assign(row.data, defaultVal);
|
|
24765
24975
|
}
|
|
24766
24976
|
}
|
|
24767
24977
|
row.showRowEdit = toState;
|
|
@@ -24806,7 +25016,7 @@ var GridController = class extends MDControlController {
|
|
|
24806
25016
|
(item) => item.id === updateId
|
|
24807
25017
|
);
|
|
24808
25018
|
if (!findUpdate) {
|
|
24809
|
-
throw new
|
|
25019
|
+
throw new RuntimeError42("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
24810
25020
|
}
|
|
24811
25021
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
24812
25022
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -24915,7 +25125,7 @@ var GridController = class extends MDControlController {
|
|
|
24915
25125
|
data2 = this.getData();
|
|
24916
25126
|
}
|
|
24917
25127
|
if (data2.length === 0) {
|
|
24918
|
-
throw new
|
|
25128
|
+
throw new RuntimeError42("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
24919
25129
|
}
|
|
24920
25130
|
return formatExcelData(data2);
|
|
24921
25131
|
};
|
|
@@ -24934,11 +25144,11 @@ var GridController = class extends MDControlController {
|
|
|
24934
25144
|
);
|
|
24935
25145
|
const data = formatArrayData(filterVal, await getExportData());
|
|
24936
25146
|
if (!ibiz.util.getExportExcel) {
|
|
24937
|
-
throw new
|
|
25147
|
+
throw new RuntimeError42("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
24938
25148
|
}
|
|
24939
25149
|
const exportExcel = await ibiz.util.getExportExcel();
|
|
24940
25150
|
if (!exportExcel) {
|
|
24941
|
-
throw new
|
|
25151
|
+
throw new RuntimeError42("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
24942
25152
|
}
|
|
24943
25153
|
exportExcel.exportJsonToExcel({
|
|
24944
25154
|
header,
|
|
@@ -24951,6 +25161,36 @@ var GridController = class extends MDControlController {
|
|
|
24951
25161
|
// 单元格是否自适应
|
|
24952
25162
|
});
|
|
24953
25163
|
}
|
|
25164
|
+
/**
|
|
25165
|
+
* 计算默认值并返回一个对象,对象里的属性就是要填充的默认值
|
|
25166
|
+
* 没有的属性就是不需要填充默认值的属性
|
|
25167
|
+
* @author lxm
|
|
25168
|
+
* @date 2023-09-18 04:01:06
|
|
25169
|
+
* @param {IData} data
|
|
25170
|
+
* @param {boolean} isCreate
|
|
25171
|
+
* @return {*} {IData}
|
|
25172
|
+
*/
|
|
25173
|
+
calcDefaultValue(data, isCreate) {
|
|
25174
|
+
const result = {};
|
|
25175
|
+
Object.values(this.editColumns).forEach((c) => {
|
|
25176
|
+
const { createDV, createDVT, updateDV, updateDVT } = c.editItem;
|
|
25177
|
+
const valueType = isCreate ? createDVT : updateDVT;
|
|
25178
|
+
const defaultValue = isCreate ? createDV : updateDV;
|
|
25179
|
+
const defaultVal = getDefaultValue(
|
|
25180
|
+
{
|
|
25181
|
+
name: c.fieldName,
|
|
25182
|
+
valueType,
|
|
25183
|
+
defaultValue,
|
|
25184
|
+
valueFormat: c.valueFormat
|
|
25185
|
+
},
|
|
25186
|
+
{ data, context: this.context, params: this.params }
|
|
25187
|
+
);
|
|
25188
|
+
if (defaultVal !== void 0) {
|
|
25189
|
+
result[c.fieldName] = defaultVal;
|
|
25190
|
+
}
|
|
25191
|
+
});
|
|
25192
|
+
return result;
|
|
25193
|
+
}
|
|
24954
25194
|
};
|
|
24955
25195
|
|
|
24956
25196
|
// src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts
|
|
@@ -25243,7 +25483,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
25243
25483
|
};
|
|
25244
25484
|
|
|
25245
25485
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
25246
|
-
import { RuntimeError as
|
|
25486
|
+
import { RuntimeError as RuntimeError43 } from "@ibiz-template/core";
|
|
25247
25487
|
import Schema2 from "async-validator";
|
|
25248
25488
|
import { isNilOrEmpty as isNilOrEmpty7 } from "qx-util";
|
|
25249
25489
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -25377,7 +25617,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
25377
25617
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
25378
25618
|
const result = await this.validate(row);
|
|
25379
25619
|
if (!result) {
|
|
25380
|
-
throw new
|
|
25620
|
+
throw new RuntimeError43(
|
|
25381
25621
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
25382
25622
|
);
|
|
25383
25623
|
}
|
|
@@ -25735,7 +25975,7 @@ var ListController = class extends MDControlController {
|
|
|
25735
25975
|
};
|
|
25736
25976
|
|
|
25737
25977
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
25738
|
-
import { RuntimeError as
|
|
25978
|
+
import { recursiveIterate as recursiveIterate5, RuntimeError as RuntimeError44 } from "@ibiz-template/core";
|
|
25739
25979
|
var PanelController = class extends ControlController {
|
|
25740
25980
|
constructor() {
|
|
25741
25981
|
super(...arguments);
|
|
@@ -25833,7 +26073,7 @@ var PanelController = class extends ControlController {
|
|
|
25833
26073
|
async load() {
|
|
25834
26074
|
const data = await this.prepareData();
|
|
25835
26075
|
if (!data) {
|
|
25836
|
-
throw new
|
|
26076
|
+
throw new RuntimeError44("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
25837
26077
|
}
|
|
25838
26078
|
const panelData = this.convertData(data);
|
|
25839
26079
|
this.state.data = panelData;
|
|
@@ -25908,6 +26148,19 @@ var PanelController = class extends ControlController {
|
|
|
25908
26148
|
this.state.data[name] = value;
|
|
25909
26149
|
this.dataChangeNotify([name]);
|
|
25910
26150
|
}
|
|
26151
|
+
initControlScheduler(logics = []) {
|
|
26152
|
+
const actualLogics = [...logics];
|
|
26153
|
+
recursiveIterate5(
|
|
26154
|
+
this.model,
|
|
26155
|
+
(item) => {
|
|
26156
|
+
if (item.controlLogics) {
|
|
26157
|
+
actualLogics.push(...item.controlLogics);
|
|
26158
|
+
}
|
|
26159
|
+
},
|
|
26160
|
+
{ childrenFields: ["rootPanelItems", "panelItems", "panelTabPages"] }
|
|
26161
|
+
);
|
|
26162
|
+
super.initControlScheduler(actualLogics);
|
|
26163
|
+
}
|
|
25911
26164
|
};
|
|
25912
26165
|
|
|
25913
26166
|
// src/controller/control/panel/view-layout-panel/view-layout-panel.controller.ts
|
|
@@ -26029,6 +26282,17 @@ var PanelItemController = class {
|
|
|
26029
26282
|
this.model = model;
|
|
26030
26283
|
this.panel = panel;
|
|
26031
26284
|
this.parent = parent;
|
|
26285
|
+
/**
|
|
26286
|
+
* 动态逻辑结果
|
|
26287
|
+
* @author lxm
|
|
26288
|
+
* @date 2023-09-21 03:36:37
|
|
26289
|
+
* @protected
|
|
26290
|
+
*/
|
|
26291
|
+
this.dynaLogicResult = {
|
|
26292
|
+
visible: true,
|
|
26293
|
+
disabled: false,
|
|
26294
|
+
required: false
|
|
26295
|
+
};
|
|
26032
26296
|
this.state = this.createState();
|
|
26033
26297
|
}
|
|
26034
26298
|
/**
|
|
@@ -26114,8 +26378,11 @@ var PanelItemController = class {
|
|
|
26114
26378
|
* @date 2022-09-20 18:09:56
|
|
26115
26379
|
* @param {string[]} names
|
|
26116
26380
|
*/
|
|
26117
|
-
dataChangeNotify(names) {
|
|
26381
|
+
async dataChangeNotify(names) {
|
|
26118
26382
|
this.calcDynamicLogic(names);
|
|
26383
|
+
this.calcItemDisabled(this.data);
|
|
26384
|
+
this.calcItemVisible(this.data);
|
|
26385
|
+
this.calcItemRequired(this.data);
|
|
26119
26386
|
this.calcDynaClass(this.data);
|
|
26120
26387
|
}
|
|
26121
26388
|
/**
|
|
@@ -26124,10 +26391,76 @@ var PanelItemController = class {
|
|
|
26124
26391
|
* @author lxm
|
|
26125
26392
|
* @date 2022-09-20 18:09:07
|
|
26126
26393
|
*/
|
|
26127
|
-
panelStateNotify(_state) {
|
|
26394
|
+
async panelStateNotify(_state) {
|
|
26128
26395
|
this.calcDynamicLogic([], true);
|
|
26396
|
+
this.calcItemDisabled(this.data);
|
|
26397
|
+
this.calcItemVisible(this.data);
|
|
26398
|
+
this.calcItemRequired(this.data);
|
|
26129
26399
|
this.calcDynaClass(this.data);
|
|
26130
26400
|
}
|
|
26401
|
+
/**
|
|
26402
|
+
* 计算项的禁用状态
|
|
26403
|
+
* @author lxm
|
|
26404
|
+
* @date 2023-06-26 06:19:00
|
|
26405
|
+
* @param {IData} data
|
|
26406
|
+
*/
|
|
26407
|
+
calcItemDisabled(data) {
|
|
26408
|
+
let enable = !this.dynaLogicResult.disabled;
|
|
26409
|
+
if (enable && this.panel.scheduler) {
|
|
26410
|
+
const itemEnable = this.panel.scheduler.triggerItemEnable(
|
|
26411
|
+
this.model.id,
|
|
26412
|
+
{
|
|
26413
|
+
data: [data]
|
|
26414
|
+
}
|
|
26415
|
+
);
|
|
26416
|
+
if (itemEnable !== void 0) {
|
|
26417
|
+
enable = itemEnable;
|
|
26418
|
+
}
|
|
26419
|
+
}
|
|
26420
|
+
this.state.disabled = !enable;
|
|
26421
|
+
}
|
|
26422
|
+
/**
|
|
26423
|
+
* 计算项的显示状态
|
|
26424
|
+
* @author lxm
|
|
26425
|
+
* @date 2023-06-26 06:19:00
|
|
26426
|
+
* @param {IData} data
|
|
26427
|
+
*/
|
|
26428
|
+
calcItemVisible(data) {
|
|
26429
|
+
let { visible } = this.dynaLogicResult;
|
|
26430
|
+
if (visible && this.panel.scheduler) {
|
|
26431
|
+
const itemVIsible = this.panel.scheduler.triggerItemVisible(
|
|
26432
|
+
this.model.id,
|
|
26433
|
+
{
|
|
26434
|
+
data: [data]
|
|
26435
|
+
}
|
|
26436
|
+
);
|
|
26437
|
+
if (itemVIsible !== void 0) {
|
|
26438
|
+
visible = itemVIsible;
|
|
26439
|
+
}
|
|
26440
|
+
}
|
|
26441
|
+
this.state.visible = visible;
|
|
26442
|
+
}
|
|
26443
|
+
/**
|
|
26444
|
+
* 计算项的必填状态
|
|
26445
|
+
* @author lxm
|
|
26446
|
+
* @date 2023-06-26 06:19:00
|
|
26447
|
+
* @param {IData} data
|
|
26448
|
+
*/
|
|
26449
|
+
calcItemRequired(data) {
|
|
26450
|
+
let allowEmpty = !this.dynaLogicResult.required;
|
|
26451
|
+
if (allowEmpty && this.panel.scheduler) {
|
|
26452
|
+
const itemAllowEmpty = this.panel.scheduler.triggerItemBlank(
|
|
26453
|
+
this.model.id,
|
|
26454
|
+
{
|
|
26455
|
+
data: [data]
|
|
26456
|
+
}
|
|
26457
|
+
);
|
|
26458
|
+
if (itemAllowEmpty !== void 0) {
|
|
26459
|
+
allowEmpty = itemAllowEmpty;
|
|
26460
|
+
}
|
|
26461
|
+
}
|
|
26462
|
+
this.state.required = !allowEmpty;
|
|
26463
|
+
}
|
|
26131
26464
|
/**
|
|
26132
26465
|
* 计算动态逻辑
|
|
26133
26466
|
*
|
|
@@ -26151,13 +26484,13 @@ var PanelItemController = class {
|
|
|
26151
26484
|
const ok = verifyPanelGroupLogic(this.data, logic);
|
|
26152
26485
|
switch (logic.logicCat) {
|
|
26153
26486
|
case "ITEMBLANK":
|
|
26154
|
-
this.
|
|
26487
|
+
this.dynaLogicResult.required = !ok;
|
|
26155
26488
|
break;
|
|
26156
26489
|
case "ITEMENABLE":
|
|
26157
|
-
this.
|
|
26490
|
+
this.dynaLogicResult.disabled = !ok;
|
|
26158
26491
|
break;
|
|
26159
26492
|
case "PANELVISIBLE":
|
|
26160
|
-
this.
|
|
26493
|
+
this.dynaLogicResult.visible = ok;
|
|
26161
26494
|
break;
|
|
26162
26495
|
default:
|
|
26163
26496
|
}
|
|
@@ -26364,6 +26697,23 @@ var SearchBarController = class extends ControlController {
|
|
|
26364
26697
|
|
|
26365
26698
|
// src/controller/control/tab-exp-panel/tab-exp-panel.controller.ts
|
|
26366
26699
|
var TabExpPanelController = class extends ControlController {
|
|
26700
|
+
constructor() {
|
|
26701
|
+
super(...arguments);
|
|
26702
|
+
/**
|
|
26703
|
+
* 是否显示文本
|
|
26704
|
+
* @return {*}
|
|
26705
|
+
* @author: zhujiamin
|
|
26706
|
+
* @Date: 2023-09-20 10:36:35
|
|
26707
|
+
*/
|
|
26708
|
+
this.isShowCaption = true;
|
|
26709
|
+
/**
|
|
26710
|
+
* 是否显示图标
|
|
26711
|
+
* @return {*}
|
|
26712
|
+
* @author: zhujiamin
|
|
26713
|
+
* @Date: 2023-09-20 10:36:46
|
|
26714
|
+
*/
|
|
26715
|
+
this.isShowIcon = false;
|
|
26716
|
+
}
|
|
26367
26717
|
/**
|
|
26368
26718
|
* 初始化state的属性
|
|
26369
26719
|
*
|
|
@@ -26386,6 +26736,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26386
26736
|
await super.onCreated();
|
|
26387
26737
|
this.layoutPanel = this.view.layoutPanel;
|
|
26388
26738
|
this.initTabPages();
|
|
26739
|
+
this.initIconCaption();
|
|
26389
26740
|
}
|
|
26390
26741
|
/**
|
|
26391
26742
|
* 初始化分页数据
|
|
@@ -26399,7 +26750,8 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26399
26750
|
tabPages.push({
|
|
26400
26751
|
caption: panel.caption,
|
|
26401
26752
|
tabTag: panel.id,
|
|
26402
|
-
class: panel.sysCss ? [panel.sysCss.cssName] : []
|
|
26753
|
+
class: panel.sysCss ? [panel.sysCss.cssName] : [],
|
|
26754
|
+
sysImage: panel.sysImage
|
|
26403
26755
|
});
|
|
26404
26756
|
});
|
|
26405
26757
|
this.state.tabPages = tabPages;
|
|
@@ -26407,6 +26759,31 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26407
26759
|
this.initDefaultPage();
|
|
26408
26760
|
}
|
|
26409
26761
|
}
|
|
26762
|
+
/**
|
|
26763
|
+
* 初始化图标和文本显示
|
|
26764
|
+
*
|
|
26765
|
+
* @memberof TabExpPanelController
|
|
26766
|
+
*/
|
|
26767
|
+
initIconCaption() {
|
|
26768
|
+
if (this.params.showmode) {
|
|
26769
|
+
switch (this.params.showmode) {
|
|
26770
|
+
case "ICONANDSHORTWORD":
|
|
26771
|
+
this.isShowIcon = true;
|
|
26772
|
+
this.isShowCaption = true;
|
|
26773
|
+
break;
|
|
26774
|
+
case "ICON":
|
|
26775
|
+
this.isShowIcon = true;
|
|
26776
|
+
this.isShowCaption = false;
|
|
26777
|
+
break;
|
|
26778
|
+
case "SHORTWORD":
|
|
26779
|
+
this.isShowIcon = false;
|
|
26780
|
+
this.isShowCaption = true;
|
|
26781
|
+
break;
|
|
26782
|
+
default:
|
|
26783
|
+
break;
|
|
26784
|
+
}
|
|
26785
|
+
}
|
|
26786
|
+
}
|
|
26410
26787
|
/**
|
|
26411
26788
|
* 初始化默认分页
|
|
26412
26789
|
*
|
|
@@ -26522,7 +26899,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26522
26899
|
};
|
|
26523
26900
|
|
|
26524
26901
|
// src/controller/control/tree/tree.controller.ts
|
|
26525
|
-
import { recursiveIterate as
|
|
26902
|
+
import { recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
|
|
26526
26903
|
|
|
26527
26904
|
// src/controller/control/tree/tree.service.ts
|
|
26528
26905
|
import { ModelError as ModelError27 } from "@ibiz-template/core";
|
|
@@ -26885,7 +27262,7 @@ var TreeController = class extends MDControlController {
|
|
|
26885
27262
|
this.state.rootNodes = nodes;
|
|
26886
27263
|
}
|
|
26887
27264
|
this.state.items = [];
|
|
26888
|
-
|
|
27265
|
+
recursiveIterate6(
|
|
26889
27266
|
{ children: this.state.rootNodes },
|
|
26890
27267
|
(node) => {
|
|
26891
27268
|
this.state.items.push(node);
|
|
@@ -27008,7 +27385,7 @@ var TreeController = class extends MDControlController {
|
|
|
27008
27385
|
*/
|
|
27009
27386
|
calcExpandedKeys(nodes) {
|
|
27010
27387
|
let expandedKeys = [];
|
|
27011
|
-
|
|
27388
|
+
recursiveIterate6({ children: nodes }, (node) => {
|
|
27012
27389
|
var _a;
|
|
27013
27390
|
if ((_a = node.children) == null ? void 0 : _a.length) {
|
|
27014
27391
|
expandedKeys.push(node.id);
|
|
@@ -27054,7 +27431,7 @@ var TreeController = class extends MDControlController {
|
|
|
27054
27431
|
};
|
|
27055
27432
|
|
|
27056
27433
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
27057
|
-
import { RuntimeError as
|
|
27434
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
27058
27435
|
|
|
27059
27436
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
27060
27437
|
var WizardPanelService = class extends ControlService {
|
|
@@ -27213,7 +27590,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27213
27590
|
const { activeFormTag } = this.state;
|
|
27214
27591
|
const controller = this.formControllers.get(activeFormTag);
|
|
27215
27592
|
if (!controller) {
|
|
27216
|
-
throw new
|
|
27593
|
+
throw new RuntimeError45("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
27217
27594
|
}
|
|
27218
27595
|
return controller;
|
|
27219
27596
|
}
|
|
@@ -27288,7 +27665,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27288
27665
|
this.tagHistory.pop();
|
|
27289
27666
|
const prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
27290
27667
|
if (!prevTag) {
|
|
27291
|
-
throw new
|
|
27668
|
+
throw new RuntimeError45("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
27292
27669
|
}
|
|
27293
27670
|
this.state.activeFormTag = prevTag;
|
|
27294
27671
|
}
|
|
@@ -27309,7 +27686,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27309
27686
|
}
|
|
27310
27687
|
);
|
|
27311
27688
|
if (!wizardForm) {
|
|
27312
|
-
throw new
|
|
27689
|
+
throw new RuntimeError45("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(data.srfnextform, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
27313
27690
|
}
|
|
27314
27691
|
nextTag = data.srfnextform;
|
|
27315
27692
|
} else {
|
|
@@ -27321,7 +27698,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27321
27698
|
});
|
|
27322
27699
|
const nextWizardStep = wizardSteps[index + 1];
|
|
27323
27700
|
if (!nextWizardStep) {
|
|
27324
|
-
throw new
|
|
27701
|
+
throw new RuntimeError45("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
27325
27702
|
}
|
|
27326
27703
|
const nextWizardForm = this.model.dewizard.dewizardForms.find(
|
|
27327
27704
|
(wizardForm) => {
|
|
@@ -27334,7 +27711,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27334
27711
|
}
|
|
27335
27712
|
}
|
|
27336
27713
|
if (!nextTag) {
|
|
27337
|
-
throw new
|
|
27714
|
+
throw new RuntimeError45("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
27338
27715
|
}
|
|
27339
27716
|
this.state.activeFormTag = nextTag;
|
|
27340
27717
|
this.tagHistory.push(nextTag);
|
|
@@ -27564,8 +27941,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
27564
27941
|
};
|
|
27565
27942
|
|
|
27566
27943
|
// src/controller/control/kanban/kanban.controller.ts
|
|
27567
|
-
import { RuntimeError as
|
|
27568
|
-
import { isNil as
|
|
27944
|
+
import { RuntimeError as RuntimeError46, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
27945
|
+
import { isNil as isNil17 } from "ramda";
|
|
27569
27946
|
|
|
27570
27947
|
// src/controller/control/kanban/kanban.service.ts
|
|
27571
27948
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -27609,16 +27986,6 @@ var KanbanController = class extends DataViewControlController {
|
|
|
27609
27986
|
get enableEditGroup() {
|
|
27610
27987
|
return this.model.enableCardEditGroup === true;
|
|
27611
27988
|
}
|
|
27612
|
-
/**
|
|
27613
|
-
* 是否允许新建
|
|
27614
|
-
* @author lxm
|
|
27615
|
-
* @date 2023-09-11 04:05:25
|
|
27616
|
-
* @readonly
|
|
27617
|
-
* @type {boolean}
|
|
27618
|
-
*/
|
|
27619
|
-
get enableNew() {
|
|
27620
|
-
return this.model.enableCardNew === true;
|
|
27621
|
-
}
|
|
27622
27989
|
async initControlService() {
|
|
27623
27990
|
this.service = new KanbanService(this.model);
|
|
27624
27991
|
await this.service.init(this.context);
|
|
@@ -27638,47 +28005,6 @@ var KanbanController = class extends DataViewControlController {
|
|
|
27638
28005
|
*/
|
|
27639
28006
|
async onCreated() {
|
|
27640
28007
|
await super.onCreated();
|
|
27641
|
-
await this.initGroupActionStates();
|
|
27642
|
-
}
|
|
27643
|
-
/**
|
|
27644
|
-
* 初始化分组右侧界面行为按钮的状态
|
|
27645
|
-
*
|
|
27646
|
-
* @author chitanda
|
|
27647
|
-
* @date 2023-08-02 17:08:04
|
|
27648
|
-
* @return {*} {Promise<void>}
|
|
27649
|
-
*/
|
|
27650
|
-
async initGroupActionStates() {
|
|
27651
|
-
var _a;
|
|
27652
|
-
const { groupUIActionGroup } = this.model;
|
|
27653
|
-
if (!((_a = groupUIActionGroup == null ? void 0 : groupUIActionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
|
|
27654
|
-
return;
|
|
27655
|
-
}
|
|
27656
|
-
const containerState = new ButtonContainerState();
|
|
27657
|
-
groupUIActionGroup.uiactionGroupDetails.forEach((detail) => {
|
|
27658
|
-
const actionid = detail.uiactionId;
|
|
27659
|
-
if (actionid) {
|
|
27660
|
-
const buttonState = new UIActionButtonState(
|
|
27661
|
-
detail.id,
|
|
27662
|
-
this.context.srfappid,
|
|
27663
|
-
actionid
|
|
27664
|
-
);
|
|
27665
|
-
containerState.addState(detail.id, buttonState);
|
|
27666
|
-
}
|
|
27667
|
-
});
|
|
27668
|
-
await containerState.update();
|
|
27669
|
-
this.state.groupActionGroupState = containerState;
|
|
27670
|
-
this.evt.on("onSelectionChange", (event) => {
|
|
27671
|
-
let data = event.data[0];
|
|
27672
|
-
if (data && data instanceof ControlVO) {
|
|
27673
|
-
data = data.getOrigin();
|
|
27674
|
-
}
|
|
27675
|
-
if (data) {
|
|
27676
|
-
this.state.groupActionGroupState.update(
|
|
27677
|
-
data,
|
|
27678
|
-
this.model.appDataEntityId
|
|
27679
|
-
);
|
|
27680
|
-
}
|
|
27681
|
-
});
|
|
27682
28008
|
}
|
|
27683
28009
|
/**
|
|
27684
28010
|
* 本地排序items
|
|
@@ -27698,12 +28024,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
27698
28024
|
const isAsc = minorSortDir === "ASC";
|
|
27699
28025
|
items.forEach((item) => {
|
|
27700
28026
|
const sortValue = item[sortField];
|
|
27701
|
-
if (
|
|
28027
|
+
if (isNil17(sortValue)) {
|
|
27702
28028
|
item[sortField] = 0;
|
|
27703
28029
|
} else {
|
|
27704
28030
|
const toNum = Number(sortValue);
|
|
27705
28031
|
if (Number.isNaN(toNum)) {
|
|
27706
|
-
throw new
|
|
28032
|
+
throw new RuntimeError46(
|
|
27707
28033
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
27708
28034
|
);
|
|
27709
28035
|
}
|
|
@@ -27719,7 +28045,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
27719
28045
|
}
|
|
27720
28046
|
handleDataGroup() {
|
|
27721
28047
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
27722
|
-
throw new
|
|
28048
|
+
throw new RuntimeError46("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
27723
28049
|
}
|
|
27724
28050
|
return super.handleDataGroup();
|
|
27725
28051
|
}
|
|
@@ -27840,42 +28166,6 @@ var KanbanController = class extends DataViewControlController {
|
|
|
27840
28166
|
await this.afterLoad({}, this.state.items);
|
|
27841
28167
|
}
|
|
27842
28168
|
}
|
|
27843
|
-
/**
|
|
27844
|
-
* 点击新建
|
|
27845
|
-
* @author lxm
|
|
27846
|
-
* @date 2023-09-11 07:22:33
|
|
27847
|
-
* @param {MouseEvent} event
|
|
27848
|
-
* @param {(string | number)} group 分组标识
|
|
27849
|
-
*/
|
|
27850
|
-
onClickNew(event, group) {
|
|
27851
|
-
const params = { ...this.params, srfgroup: group };
|
|
27852
|
-
UIActionUtil.execAndResolved("new", {
|
|
27853
|
-
context: this.context,
|
|
27854
|
-
params,
|
|
27855
|
-
data: [],
|
|
27856
|
-
view: this.view,
|
|
27857
|
-
event
|
|
27858
|
-
});
|
|
27859
|
-
}
|
|
27860
|
-
/**
|
|
27861
|
-
* 分组工具栏点击处理回调
|
|
27862
|
-
* @author lxm
|
|
27863
|
-
* @date 2023-09-11 04:48:06
|
|
27864
|
-
* @param {IUIActionGroupDetail} detail
|
|
27865
|
-
* @param {MouseEvent} event
|
|
27866
|
-
* @return {*} {Promise<void>}
|
|
27867
|
-
*/
|
|
27868
|
-
async onGroupToolbarClick(detail, event, group) {
|
|
27869
|
-
const actionId = detail.uiactionId;
|
|
27870
|
-
const params = { ...this.params, srfgroup: group };
|
|
27871
|
-
await UIActionUtil.execAndResolved(actionId, {
|
|
27872
|
-
context: this.context,
|
|
27873
|
-
params,
|
|
27874
|
-
data: this.state.selectedData,
|
|
27875
|
-
view: this.view,
|
|
27876
|
-
event
|
|
27877
|
-
});
|
|
27878
|
-
}
|
|
27879
28169
|
};
|
|
27880
28170
|
|
|
27881
28171
|
// src/controller/hub.controller.ts
|
|
@@ -28093,7 +28383,7 @@ var AppHub = class {
|
|
|
28093
28383
|
this.registerAppView(appView);
|
|
28094
28384
|
return appView;
|
|
28095
28385
|
}
|
|
28096
|
-
throw new
|
|
28386
|
+
throw new RuntimeError47("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
28097
28387
|
}
|
|
28098
28388
|
/**
|
|
28099
28389
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -28124,7 +28414,7 @@ var AppHub = class {
|
|
|
28124
28414
|
this.registerAppDataEntity(entity, appId);
|
|
28125
28415
|
return entity;
|
|
28126
28416
|
}
|
|
28127
|
-
throw new
|
|
28417
|
+
throw new RuntimeError47("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
28128
28418
|
}
|
|
28129
28419
|
/**
|
|
28130
28420
|
* 新建 hub 应用
|
|
@@ -28145,7 +28435,7 @@ var AppHub = class {
|
|
|
28145
28435
|
appModel = await this.modelLoaderProvider.getApp(id);
|
|
28146
28436
|
this.registerApp(appModel);
|
|
28147
28437
|
} else {
|
|
28148
|
-
throw new
|
|
28438
|
+
throw new RuntimeError47("\u672A\u627E\u5230\u5E94\u7528[".concat(id, "]\u6A21\u578B"));
|
|
28149
28439
|
}
|
|
28150
28440
|
const app = new Application(appModel);
|
|
28151
28441
|
this.appMap.set(id, app);
|
|
@@ -28236,7 +28526,7 @@ var EngineFactory = class {
|
|
|
28236
28526
|
};
|
|
28237
28527
|
|
|
28238
28528
|
// src/engine/view-base.engine.ts
|
|
28239
|
-
import { RuntimeError as
|
|
28529
|
+
import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
28240
28530
|
var ViewEngineBase = class {
|
|
28241
28531
|
/**
|
|
28242
28532
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -28424,7 +28714,7 @@ var ViewEngineBase = class {
|
|
|
28424
28714
|
const { appDataEntityId } = this.view.model;
|
|
28425
28715
|
const { evt, context, params } = this.view;
|
|
28426
28716
|
if (!appDataEntityId) {
|
|
28427
|
-
throw new
|
|
28717
|
+
throw new RuntimeError48("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
28428
28718
|
}
|
|
28429
28719
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
28430
28720
|
const res = await app.deService.exec(
|
|
@@ -28491,6 +28781,12 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
28491
28781
|
await super.onCreated();
|
|
28492
28782
|
const { childNames } = this.view;
|
|
28493
28783
|
childNames.push(this.xdataControlName, "searchform", "searchbar");
|
|
28784
|
+
if (this.xdataControlName) {
|
|
28785
|
+
if (!this.view.slotProps[this.xdataControlName]) {
|
|
28786
|
+
this.view.slotProps[this.xdataControlName] = {};
|
|
28787
|
+
}
|
|
28788
|
+
this.view.slotProps[this.xdataControlName].loadDefault = false;
|
|
28789
|
+
}
|
|
28494
28790
|
}
|
|
28495
28791
|
async onMounted() {
|
|
28496
28792
|
await super.onMounted();
|
|
@@ -28847,7 +29143,7 @@ var GlobalUtil = class {
|
|
|
28847
29143
|
};
|
|
28848
29144
|
|
|
28849
29145
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
28850
|
-
import { RuntimeError as
|
|
29146
|
+
import { RuntimeError as RuntimeError49 } from "@ibiz-template/core";
|
|
28851
29147
|
var LogicExecutor = class {
|
|
28852
29148
|
/**
|
|
28853
29149
|
* @author lxm
|
|
@@ -28868,7 +29164,7 @@ var LogicExecutor = class {
|
|
|
28868
29164
|
*/
|
|
28869
29165
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28870
29166
|
execute(_executeParams) {
|
|
28871
|
-
throw new
|
|
29167
|
+
throw new RuntimeError49("Method not implemented.");
|
|
28872
29168
|
}
|
|
28873
29169
|
/**
|
|
28874
29170
|
* 销毁方法
|
|
@@ -29300,7 +29596,7 @@ var LogicSchedulerCenter = class {
|
|
|
29300
29596
|
};
|
|
29301
29597
|
|
|
29302
29598
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
29303
|
-
import { RuntimeError as
|
|
29599
|
+
import { RuntimeError as RuntimeError50 } from "@ibiz-template/core";
|
|
29304
29600
|
var LogicTrigger = class {
|
|
29305
29601
|
/**
|
|
29306
29602
|
* @author lxm
|
|
@@ -29360,7 +29656,7 @@ var LogicTrigger = class {
|
|
|
29360
29656
|
if (this.executor) {
|
|
29361
29657
|
return this.executor.execute(executeParams);
|
|
29362
29658
|
}
|
|
29363
|
-
throw new
|
|
29659
|
+
throw new RuntimeError50("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
29364
29660
|
}
|
|
29365
29661
|
/**
|
|
29366
29662
|
* 销毁方法
|
|
@@ -29377,12 +29673,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
29377
29673
|
};
|
|
29378
29674
|
|
|
29379
29675
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
29380
|
-
import { RuntimeError as
|
|
29676
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
29381
29677
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
29382
29678
|
bindExecutor(executor) {
|
|
29383
29679
|
super.bindExecutor(executor);
|
|
29384
29680
|
if (this.executor.type !== "SCRIPT") {
|
|
29385
|
-
throw new
|
|
29681
|
+
throw new RuntimeError51(
|
|
29386
29682
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
29387
29683
|
);
|
|
29388
29684
|
}
|
|
@@ -29406,20 +29702,22 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
29406
29702
|
);
|
|
29407
29703
|
}
|
|
29408
29704
|
match(matchParams) {
|
|
29705
|
+
var _a, _b;
|
|
29409
29706
|
const superResult = super.match(matchParams);
|
|
29410
|
-
return superResult &&
|
|
29707
|
+
return superResult && // 忽略大小写匹配
|
|
29708
|
+
((_a = matchParams.itemName) == null ? void 0 : _a.toLowerCase()) === ((_b = this.logic.itemName) == null ? void 0 : _b.toLowerCase());
|
|
29411
29709
|
}
|
|
29412
29710
|
execute(executeParams) {
|
|
29413
29711
|
const result = this.executor.execute(executeParams);
|
|
29414
29712
|
if (typeof result === "boolean") {
|
|
29415
29713
|
return result;
|
|
29416
29714
|
}
|
|
29417
|
-
throw new
|
|
29715
|
+
throw new RuntimeError51("".concat(this.logic.id, "\u903B\u8F91\u8FD4\u56DE\u503C\u4E0D\u662F\u5E03\u5C14\u503C"));
|
|
29418
29716
|
}
|
|
29419
29717
|
};
|
|
29420
29718
|
|
|
29421
29719
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
29422
|
-
import { RuntimeError as
|
|
29720
|
+
import { RuntimeError as RuntimeError52 } from "@ibiz-template/core";
|
|
29423
29721
|
var TimerTrigger = class extends LogicTrigger {
|
|
29424
29722
|
constructor() {
|
|
29425
29723
|
super(...arguments);
|
|
@@ -29428,7 +29726,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
29428
29726
|
start() {
|
|
29429
29727
|
this.timer = setInterval(() => {
|
|
29430
29728
|
if (!this.scheduler.defaultParamsCb) {
|
|
29431
|
-
throw new
|
|
29729
|
+
throw new RuntimeError52("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
29432
29730
|
}
|
|
29433
29731
|
const params = this.scheduler.defaultParamsCb();
|
|
29434
29732
|
this.executor.execute(params);
|
|
@@ -29445,7 +29743,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
29445
29743
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
29446
29744
|
import {
|
|
29447
29745
|
ModelError as ModelError30,
|
|
29448
|
-
RuntimeError as
|
|
29746
|
+
RuntimeError as RuntimeError53,
|
|
29449
29747
|
RuntimeModelError as RuntimeModelError56
|
|
29450
29748
|
} from "@ibiz-template/core";
|
|
29451
29749
|
import { notNilEmpty as notNilEmpty8 } from "qx-util";
|
|
@@ -29481,7 +29779,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
29481
29779
|
const { context, params, ...rest } = parameters;
|
|
29482
29780
|
const { data } = parameters;
|
|
29483
29781
|
if (!(data == null ? void 0 : data[0])) {
|
|
29484
|
-
throw new
|
|
29782
|
+
throw new RuntimeError53("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
29485
29783
|
}
|
|
29486
29784
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
29487
29785
|
let openViewRef;
|
|
@@ -29538,7 +29836,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
29538
29836
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
29539
29837
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
29540
29838
|
if (!findView) {
|
|
29541
|
-
throw new
|
|
29839
|
+
throw new RuntimeError53(
|
|
29542
29840
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
29543
29841
|
);
|
|
29544
29842
|
}
|
|
@@ -29649,12 +29947,12 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
29649
29947
|
}
|
|
29650
29948
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
29651
29949
|
if (!selectData) {
|
|
29652
|
-
throw new
|
|
29950
|
+
throw new RuntimeError53("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
29653
29951
|
}
|
|
29654
29952
|
const indexType = selectData.srfkey;
|
|
29655
29953
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find((item) => item.refMode === indexType);
|
|
29656
29954
|
if (!findView) {
|
|
29657
|
-
throw new
|
|
29955
|
+
throw new RuntimeError53(
|
|
29658
29956
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
29659
29957
|
);
|
|
29660
29958
|
}
|
|
@@ -30131,6 +30429,7 @@ export {
|
|
|
30131
30429
|
getControlProvider,
|
|
30132
30430
|
getControlsByView,
|
|
30133
30431
|
getDeACMode,
|
|
30432
|
+
getDefaultValue,
|
|
30134
30433
|
getEditorProvider,
|
|
30135
30434
|
getFormDetailProvider,
|
|
30136
30435
|
getFormTypeFieldName,
|