@ibiz-template/runtime 0.2.12 → 0.2.13
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 +183 -53
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +6 -0
- package/out/controller/control/calendar/calendar.controller.js +5 -5
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +2 -2
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.d.ts +1 -1
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/calendar-exp-bar.controller.js +2 -2
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts +3 -3
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +22 -11
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts +13 -1
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +29 -12
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +3 -3
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts +11 -1
- 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 +27 -14
- package/out/controller/control/tree/tree.controller.d.ts +1 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +25 -0
- 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/route/route.d.ts +10 -0
- package/out/controller/utils/route/route.d.ts.map +1 -0
- package/out/controller/utils/route/route.js +11 -0
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +10 -1
- package/out/interface/controller/common/i-nav-view-msg/i-nav-view-msg.d.ts +9 -0
- package/out/interface/controller/common/i-nav-view-msg/i-nav-view-msg.d.ts.map +1 -1
- package/out/interface/controller/common/view-message/i-view-message.d.ts +9 -0
- package/out/interface/controller/common/view-message/i-view-message.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-exp-bar-control.controller.d.ts +1 -1
- package/out/interface/controller/controller/control/i-exp-bar-control.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-tree.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-tree.state.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-action-executor.d.ts.map +1 -1
- package/out/logic-scheduler/executor/app-ui-action-executor.js +4 -0
- package/out/service/service/entity/util/util.d.ts +1 -0
- package/out/service/service/entity/util/util.d.ts.map +1 -1
- package/out/service/service/entity/util/util.js +1 -0
- package/out/service/service/work-flow/work-flow.service.d.ts +11 -0
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +15 -2
- package/out/service/vo/control.vo.d.ts.map +1 -1
- package/out/service/vo/control.vo.js +11 -0
- package/out/service/vo/tree-node-data/tree-code-list-node-data.d.ts +0 -1
- package/out/service/vo/tree-node-data/tree-code-list-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-code-list-node-data.js +0 -1
- package/out/ui-action/provider/backend-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/backend-ui-action-provider.js +3 -1
- package/package.json +3 -4
- package/src/controller/common/view/view.controller.ts +6 -0
- package/src/controller/control/calendar/calendar.controller.ts +5 -5
- package/src/controller/control/chart/generator/base-series-generator.ts +5 -2
- package/src/controller/control/exp-bar/calendar-exp-bar.controller.ts +2 -2
- package/src/controller/control/exp-bar/exp-bar.controller.ts +23 -14
- package/src/controller/control/exp-bar/tree-exp-bar.controller.ts +30 -11
- package/src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts +3 -3
- package/src/controller/control/tab-exp-panel/tab-exp-panel.controller.ts +31 -11
- package/src/controller/control/tree/tree.controller.ts +36 -0
- package/src/controller/utils/index.ts +1 -0
- package/src/controller/utils/route/route.ts +11 -0
- package/src/controller/utils/view-msg/view-msg-controller.ts +11 -1
- package/src/interface/controller/common/i-nav-view-msg/i-nav-view-msg.ts +10 -0
- package/src/interface/controller/common/view-message/i-view-message.ts +10 -0
- package/src/interface/controller/controller/control/i-exp-bar-control.controller.ts +1 -1
- package/src/interface/controller/controller/control/i-tree.controller.ts +9 -0
- package/src/interface/controller/state/control/i-tree.state.ts +8 -0
- package/src/logic-scheduler/executor/app-ui-action-executor.ts +8 -1
- package/src/service/service/entity/util/util.ts +1 -0
- package/src/service/service/work-flow/work-flow.service.ts +20 -2
- package/src/service/vo/control.vo.ts +12 -0
- package/src/service/vo/tree-node-data/tree-code-list-node-data.ts +0 -3
- package/src/ui-action/provider/backend-ui-action-provider.ts +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-nav-view-msg.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/i-nav-view-msg/i-nav-view-msg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-nav-view-msg.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/i-nav-view-msg/i-nav-view-msg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC;IAEnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -35,5 +35,14 @@ export interface IViewMessage {
|
|
|
35
35
|
* @type {string}
|
|
36
36
|
*/
|
|
37
37
|
message?: string;
|
|
38
|
+
/**
|
|
39
|
+
* 额外参数
|
|
40
|
+
*
|
|
41
|
+
* @author zk
|
|
42
|
+
* @date 2023-11-06 11:11:50
|
|
43
|
+
* @type {IData}
|
|
44
|
+
* @memberof IViewMessage
|
|
45
|
+
*/
|
|
46
|
+
extraParams: IData;
|
|
38
47
|
}
|
|
39
48
|
//# sourceMappingURL=i-view-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-view-message.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/view-message/i-view-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-view-message.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/view-message/i-view-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;OAOG;IACH,WAAW,EAAE,KAAK,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-exp-bar-control.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-exp-bar-control.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB,CACvC,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,EACnD,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,CACnD,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnC;;;;;;;OAOG;IACH,eAAe,EAAE,oBAAoB,CAAC;IACtC;;;;;;;OAOG;IACH,iBAAiB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAClD;;;;;;;OAOG;IACH,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzB;;;;;;;;OAQG;IACH,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,CAAC;IAE5E;;;;;OAKG;IACH,cAAc,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"i-exp-bar-control.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-exp-bar-control.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB,CACvC,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,EACnD,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,CACnD,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnC;;;;;;;OAOG;IACH,eAAe,EAAE,oBAAoB,CAAC;IACtC;;;;;;;OAOG;IACH,iBAAiB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAClD;;;;;;;OAOG;IACH,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzB;;;;;;;;OAQG;IACH,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,CAAC;IAE5E;;;;;OAKG;IACH,cAAc,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE"}
|
|
@@ -45,5 +45,13 @@ export interface ITreeController extends IMDControlController<IDETree, ITreeStat
|
|
|
45
45
|
* @return {*} {Promise<void>}
|
|
46
46
|
*/
|
|
47
47
|
refreshNodeChildren(nodeData: ITreeNodeData | IData, refreshParent?: boolean): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* 展开并加载节点
|
|
50
|
+
* @author lxm
|
|
51
|
+
* @date 2023-11-07 03:00:54
|
|
52
|
+
* @param {string[]} expandedKeys 要展开的节点标识集合
|
|
53
|
+
* @return {*} {Promise<void>}
|
|
54
|
+
*/
|
|
55
|
+
expandNodeByKey(expandedKeys: string[]): Promise<void>;
|
|
48
56
|
}
|
|
49
57
|
//# sourceMappingURL=i-tree.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;;;;OAQG;IACH,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;OAOG;IACH,mBAAmB,CACjB,QAAQ,EAAE,aAAa,GAAG,KAAK,EAC/B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"i-tree.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-tree.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;GAOG;AACH,MAAM,WAAW,eACf,SAAQ,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;IAC7D;;;;;;OAMG;IACH,eAAe,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;OAKG;IACH,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D;;;;;;;;OAQG;IACH,UAAU,CACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;OAOG;IACH,mBAAmB,CACjB,QAAQ,EAAE,aAAa,GAAG,KAAK,EAC/B,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD"}
|
|
@@ -33,6 +33,13 @@ export interface ITreeState extends IMDControlState {
|
|
|
33
33
|
* @type {string[]}
|
|
34
34
|
*/
|
|
35
35
|
expandedKeys: string[];
|
|
36
|
+
/**
|
|
37
|
+
* 是否是导航的(即树导航里的树)
|
|
38
|
+
* @author lxm
|
|
39
|
+
* @date 2023-11-08 03:25:21
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
*/
|
|
42
|
+
navigational: boolean;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* 树节点数据格式
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,KAAK,EAAE,aAAa,EAAE,CAAC;IAEvB;;;;;OAKG;IACH,SAAS,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"i-tree.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-tree.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,eAAe;IACjD,KAAK,EAAE,aAAa,EAAE,CAAC;IAEvB;;;;;OAKG;IACH,SAAS,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;OAKG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;;OAKG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAGnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-ui-action-executor.d.ts","sourceRoot":"","sources":["../../../src/logic-scheduler/executor/app-ui-action-executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-ui-action-executor.d.ts","sourceRoot":"","sources":["../../../src/logic-scheduler/executor/app-ui-action-executor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,aAAa;IAC9C,IAAI,EAAE,eAAe,CAAC;IAG9B,OAAO,CAAC,aAAa,EAAE,cAAc,GAAG,GAAG;CAS5C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RuntimeModelError } from '@ibiz-template/core';
|
|
1
2
|
import { UIActionUtil } from '../../ui-action';
|
|
2
3
|
import { LogicExecutor } from './logic-executor';
|
|
3
4
|
/**
|
|
@@ -11,6 +12,9 @@ import { LogicExecutor } from './logic-executor';
|
|
|
11
12
|
export class AppDEUIActionExecutor extends LogicExecutor {
|
|
12
13
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
14
|
execute(executeParams) {
|
|
15
|
+
if (!this.logic.appDEUIActionId) {
|
|
16
|
+
throw new RuntimeModelError(this.logic, `逻辑中缺少触发应用实体界面行为id`);
|
|
17
|
+
}
|
|
14
18
|
UIActionUtil.execAndResolved(this.logic.appDEUIActionId, executeParams);
|
|
15
19
|
}
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/service/service/entity/util/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/service/service/entity/util/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE7E;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAKzD"}
|
|
@@ -47,6 +47,17 @@ export declare class WorkFlowService implements IWorkFlowService {
|
|
|
47
47
|
* @memberof WorkFlowService
|
|
48
48
|
*/
|
|
49
49
|
private getActiveData;
|
|
50
|
+
/**
|
|
51
|
+
* 获取工作流实例标记
|
|
52
|
+
*
|
|
53
|
+
* @author zk
|
|
54
|
+
* @date 2023-11-06 06:11:07
|
|
55
|
+
* @private
|
|
56
|
+
* @param {IParams} context
|
|
57
|
+
* @return {*} {string}
|
|
58
|
+
* @memberof WorkFlowService
|
|
59
|
+
*/
|
|
60
|
+
private getWFInstanceTag;
|
|
50
61
|
/**
|
|
51
62
|
* 根据当前步骤和任务获取工作流步骤数据(如:流程表单等)
|
|
52
63
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-flow.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/work-flow/work-flow.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;GAOG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IAmB1C,SAAS,CAAC,KAAK,EAAE,cAAc;IAlB3C,OAAO,CAAC,GAAG,CAAe;IAE1B;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa,CAAc;IAEnC;;;;;OAKG;gBACmB,KAAK,EAAE,cAAc;IAQ3C;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IAIlB;;;;;;;;OAQG;IACH,OAAO,CAAC,aAAa;IAOrB;;;;;;;OAOG;IACG,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAOhE;;;;;;;;OAQG;IACG,SAAS,CACb,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IASlC;;;;;;;OAOG;IACG,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"work-flow.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/work-flow/work-flow.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -55,6 +55,19 @@ export class WorkFlowService {
|
|
|
55
55
|
}
|
|
56
56
|
return data;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* 获取工作流实例标记
|
|
60
|
+
*
|
|
61
|
+
* @author zk
|
|
62
|
+
* @date 2023-11-06 06:11:07
|
|
63
|
+
* @private
|
|
64
|
+
* @param {IParams} context
|
|
65
|
+
* @return {*} {string}
|
|
66
|
+
* @memberof WorkFlowService
|
|
67
|
+
*/
|
|
68
|
+
getWFInstanceTag(context) {
|
|
69
|
+
return context.srfprocessinstanceid || 'alls';
|
|
70
|
+
}
|
|
58
71
|
/**
|
|
59
72
|
* 根据当前步骤和任务获取工作流步骤数据(如:流程表单等)
|
|
60
73
|
*
|
|
@@ -91,7 +104,7 @@ export class WorkFlowService {
|
|
|
91
104
|
*/
|
|
92
105
|
async getWFHistory(context) {
|
|
93
106
|
const deKeyValue = context[this.model.codeName.toLowerCase()];
|
|
94
|
-
return this.app.net.get(`${this.getBaseUrl()}/${deKeyValue}/process-instances/
|
|
107
|
+
return this.app.net.get(`${this.getBaseUrl()}/${deKeyValue}/process-instances/${this.getWFInstanceTag(context)}/history`);
|
|
95
108
|
}
|
|
96
109
|
/**
|
|
97
110
|
* 根据业务主键获取工作流流程图片
|
|
@@ -103,7 +116,7 @@ export class WorkFlowService {
|
|
|
103
116
|
*/
|
|
104
117
|
async getWFProcessDiagram(context) {
|
|
105
118
|
const deKeyValue = context[this.model.codeName.toLowerCase()];
|
|
106
|
-
return this.app.net.request(`${this.getBaseUrl()}/${deKeyValue}/process-instances/
|
|
119
|
+
return this.app.net.request(`${this.getBaseUrl()}/${deKeyValue}/process-instances/${this.getWFInstanceTag(context)}/processdiagram`, {
|
|
107
120
|
method: 'post',
|
|
108
121
|
data: {},
|
|
109
122
|
responseType: 'blob',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACK,KAAK,EAAE,KAAK,CAAC;IAErB;;;;;;OAMG;IACK,MAAM,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACK,UAAU,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACK,YAAY,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;IACK,OAAO,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACK,aAAa,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;IACK,WAAW,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACK,aAAa,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;gBAED,OAAO,GAAE,KAAU,EACnB,UAAU,GAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAa;
|
|
1
|
+
{"version":3,"file":"control.vo.d.ts","sourceRoot":"","sources":["../../../src/service/vo/control.vo.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAa5C;;;;;;;GAOG;AACH,qBAAa,SAAS;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAE5B;;;;;;;OAOG;IACK,OAAO,EAAE,KAAK,CAAC;IAEvB;;;;;;;OAOG;IACK,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE5C;;;;;;OAMG;IACK,KAAK,EAAE,KAAK,CAAC;IAErB;;;;;;OAMG;IACK,MAAM,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACK,UAAU,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACK,YAAY,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;IACK,OAAO,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACK,aAAa,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;IACK,WAAW,EAAE,MAAM,CAAC;IAE5B;;;;;;OAMG;IACK,aAAa,EAAE,MAAM,CAAC;IAE9B;;;;;;OAMG;gBAED,OAAO,GAAE,KAAU,EACnB,UAAU,GAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAa;IA8HjD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,YAAY;IAqCpB;;;;;;OAMG;IACH,SAAS,IAAI,KAAK;IAIlB;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI;IAIxC;;;;;;OAMG;IACH,KAAK,IAAI,SAAS;CAQnB"}
|
|
@@ -39,6 +39,17 @@ export class ControlVO {
|
|
|
39
39
|
configurable: true,
|
|
40
40
|
value: $dataUIMap || new Map(),
|
|
41
41
|
});
|
|
42
|
+
// srfactionparam属性改到源对象上去
|
|
43
|
+
Object.defineProperty(this, 'srfactionparam', {
|
|
44
|
+
get() {
|
|
45
|
+
return this.$origin.srfactionparam;
|
|
46
|
+
},
|
|
47
|
+
set(val) {
|
|
48
|
+
this.$origin.srfactionparam = val;
|
|
49
|
+
},
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
});
|
|
42
53
|
// 可读写的预置属性,主键属性和主文本属性
|
|
43
54
|
['srfkey', 'srfmajortext'].forEach(key => {
|
|
44
55
|
if (Object.prototype.hasOwnProperty.call(this.$origin, key)) {
|
|
@@ -13,7 +13,6 @@ export declare class TreeCodeListNodeData extends TreeNodeData implements ITreeN
|
|
|
13
13
|
text: string;
|
|
14
14
|
id: string;
|
|
15
15
|
value: string;
|
|
16
|
-
deData: CodeListItem;
|
|
17
16
|
constructor(model: IDETreeDataSetNode, parentNodeData: ITreeNodeData | undefined, opts: {
|
|
18
17
|
data: CodeListItem;
|
|
19
18
|
leaf: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-code-list-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-code-list-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,oBACX,SAAQ,YACR,YAAW,aAAa;IAExB,IAAI,EAAE,MAAM,CAAC;IAEb,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"tree-code-list-node-data.d.ts","sourceRoot":"","sources":["../../../../src/service/vo/tree-node-data/tree-code-list-node-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,oBACX,SAAQ,YACR,YAAW,aAAa;IAExB,IAAI,EAAE,MAAM,CAAC;IAEb,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;gBAGZ,KAAK,EAAE,kBAAkB,EACzB,cAAc,EAAE,aAAa,GAAG,SAAS,EACzC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY,CAAC;QACnB,IAAI,EAAE,OAAO,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;CAyBJ"}
|
|
@@ -12,7 +12,6 @@ export class TreeCodeListNodeData extends TreeNodeData {
|
|
|
12
12
|
constructor(model, parentNodeData, opts) {
|
|
13
13
|
super(model, parentNodeData, opts);
|
|
14
14
|
const { data } = opts;
|
|
15
|
-
this.deData = data;
|
|
16
15
|
this.text = data.text;
|
|
17
16
|
this.value = data.value;
|
|
18
17
|
this.id = parentNodeData
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"backend-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/backend-ui-action-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAc,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;GAQG;AACH,qBAAa,uBAAwB,SAAQ,oBAAoB;IACzD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CA6E5B"}
|
|
@@ -36,8 +36,10 @@ export class BackendUIActionProvider extends UIActionProviderBase {
|
|
|
36
36
|
if (resultData.length === 0) {
|
|
37
37
|
resultData.push({});
|
|
38
38
|
}
|
|
39
|
+
// srfactionparam只传选中数据的后台属性
|
|
40
|
+
const actionData = res.data.map(item => { var _a; return ((_a = item.getOrigin) === null || _a === void 0 ? void 0 : _a.call(item)) || item || {}; });
|
|
39
41
|
resultData.forEach(item => {
|
|
40
|
-
item.srfactionparam =
|
|
42
|
+
item.srfactionparam = actionData;
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "控制器包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "chitanda",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@ibiz-template/core": "^0.2.
|
|
32
|
+
"@ibiz-template/core": "^0.2.13",
|
|
33
33
|
"@ibiz/model-core": "^0.0.20",
|
|
34
34
|
"@types/path-browserify": "^1.0.0",
|
|
35
35
|
"@types/qs": "^6.9.8",
|
|
@@ -58,6 +58,5 @@
|
|
|
58
58
|
"qs": "^6.11.0",
|
|
59
59
|
"qx-util": "^0.4.8",
|
|
60
60
|
"ramda": "^0.29.0"
|
|
61
|
-
}
|
|
62
|
-
"gitHead": "ec31792dd33f5df963d1dbaadcae589182da96c0"
|
|
61
|
+
}
|
|
63
62
|
}
|
|
@@ -464,6 +464,12 @@ export class ViewController<
|
|
|
464
464
|
title: message.title!,
|
|
465
465
|
desc: message.message,
|
|
466
466
|
};
|
|
467
|
+
// userTag为确认按钮文本
|
|
468
|
+
if (message.extraParams.userTag) {
|
|
469
|
+
Object.assign(modalParams, {
|
|
470
|
+
confirmButtonText: message.extraParams.userTag,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
467
473
|
if (message.messageType === 'WARN') {
|
|
468
474
|
await ibiz.modal.warning(modalParams);
|
|
469
475
|
} else if (message.messageType === 'ERROR') {
|
|
@@ -106,8 +106,8 @@ export class CalendarController
|
|
|
106
106
|
*/
|
|
107
107
|
protected getCurSelectDate(param: IParams): IData {
|
|
108
108
|
const { selectedDate } = this.state;
|
|
109
|
-
const {
|
|
110
|
-
if (!
|
|
109
|
+
const { srfstartdate, srfenddate } = param;
|
|
110
|
+
if (!srfstartdate || !srfenddate) {
|
|
111
111
|
// 获取当前月份的第一天
|
|
112
112
|
const firstDayOfMonth = new Date(
|
|
113
113
|
selectedDate.getFullYear(),
|
|
@@ -121,11 +121,11 @@ export class CalendarController
|
|
|
121
121
|
1,
|
|
122
122
|
);
|
|
123
123
|
return {
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
srfstartdate: dayjs(firstDayOfMonth).format('YYYY-MM-DD HH:mm:ss'),
|
|
125
|
+
srfenddate: dayjs(lastDayOfMonth).format('YYYY-MM-DD HH:mm:ss'),
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
return {
|
|
128
|
+
return { srfstartdate, srfenddate };
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimeModelError, toNumberOrNil } from '@ibiz-template/core';
|
|
1
|
+
import { plus, RuntimeModelError, toNumberOrNil } from '@ibiz-template/core';
|
|
2
2
|
import {
|
|
3
3
|
IChartSeriesCSCartesian2DEncode,
|
|
4
4
|
IDEChartSeries,
|
|
@@ -282,7 +282,10 @@ export class BaseSeriesGenerator<T extends IDEChartSeries = IDEChartSeries> {
|
|
|
282
282
|
groupData[group].set(catalog, { value: 0 });
|
|
283
283
|
}
|
|
284
284
|
// 相同分类属性的值属性数据累加
|
|
285
|
-
groupData[group].get(catalog)!.value
|
|
285
|
+
groupData[group].get(catalog)!.value = plus(
|
|
286
|
+
groupData[group].get(catalog)!.value,
|
|
287
|
+
item[this.valueField],
|
|
288
|
+
);
|
|
286
289
|
groupData[group].get(catalog)!.deData = item;
|
|
287
290
|
});
|
|
288
291
|
|
|
@@ -60,12 +60,12 @@ export class CalendarExpBarController
|
|
|
60
60
|
return controller as ICalendarController;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
public
|
|
63
|
+
public navBySrfnav(): void {
|
|
64
64
|
const selectItem: ICalendarItemData | undefined =
|
|
65
65
|
this.xDataController?.state.items.find(
|
|
66
66
|
item => item.navId === this.state.srfnav,
|
|
67
67
|
);
|
|
68
|
-
super.
|
|
68
|
+
super.navBySrfnav();
|
|
69
69
|
if (!selectItem) {
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { calcDeCodeNameById } from '../../../model';
|
|
23
23
|
import { calcNavParams } from '../../../utils';
|
|
24
24
|
import { ControlController } from '../../common';
|
|
25
|
-
import { ControllerEvent } from '../../utils';
|
|
25
|
+
import { ControllerEvent, hasSubRoute } from '../../utils';
|
|
26
26
|
|
|
27
27
|
type XDataControlModel = IDEGrid | IDEList | IDEDataView;
|
|
28
28
|
|
|
@@ -229,7 +229,7 @@ export class ExpBarControlController<
|
|
|
229
229
|
this.xDataLoadSuccess(event);
|
|
230
230
|
});
|
|
231
231
|
this.xDataController.evt.on('onRemoveSuccess', () => {
|
|
232
|
-
this.
|
|
232
|
+
this.navByFirstItem();
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -261,10 +261,10 @@ export class ExpBarControlController<
|
|
|
261
261
|
// 只处理默认第一次加载
|
|
262
262
|
if (this.state.srfnav && this.routeDepth) {
|
|
263
263
|
// 路由srfnav回显
|
|
264
|
-
this.
|
|
264
|
+
this.navBySrfnav();
|
|
265
265
|
} else {
|
|
266
266
|
// 默认选中第一条并导航
|
|
267
|
-
this.
|
|
267
|
+
this.navByFirstItem();
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}
|
|
@@ -275,17 +275,14 @@ export class ExpBarControlController<
|
|
|
275
275
|
* @date 2023-08-10 04:04:08
|
|
276
276
|
* @protected
|
|
277
277
|
*/
|
|
278
|
-
protected
|
|
278
|
+
protected navBySrfnav(): void {
|
|
279
279
|
// 找到选中项,如果没有就模拟选中数据
|
|
280
280
|
const selectItem = this.xDataController?.state.items.find(
|
|
281
281
|
item => item[this.navKeyName] === this.state.srfnav,
|
|
282
282
|
);
|
|
283
283
|
|
|
284
284
|
// 是否是路由模式且有子路由
|
|
285
|
-
const routeAndHasSub =
|
|
286
|
-
this.routeDepth &&
|
|
287
|
-
window.location.hash.split('/').length > this.routeDepth * 2 + 2;
|
|
288
|
-
|
|
285
|
+
const routeAndHasSub = this.routeDepth && hasSubRoute(this.routeDepth);
|
|
289
286
|
if (routeAndHasSub) {
|
|
290
287
|
if (selectItem) {
|
|
291
288
|
// 在多数据部件里面选项设置回显。
|
|
@@ -300,10 +297,23 @@ export class ExpBarControlController<
|
|
|
300
297
|
},
|
|
301
298
|
context: this.context,
|
|
302
299
|
});
|
|
303
|
-
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (selectItem) {
|
|
304
304
|
// 非路由模式,或者有路由模式下有srfnav没有子路由时,需要在多数据部件里面选项设置回显。
|
|
305
305
|
this.xDataController.setActive(selectItem);
|
|
306
306
|
this.xDataController.setSelection([selectItem]);
|
|
307
|
+
} else {
|
|
308
|
+
// 找不到匹配的选中项的情况,告诉导航占位显示404
|
|
309
|
+
this._evt.emit('onNavViewChange', {
|
|
310
|
+
navViewMsg: {
|
|
311
|
+
key: this.state.srfnav,
|
|
312
|
+
is404: true,
|
|
313
|
+
isCache: this.isCache,
|
|
314
|
+
},
|
|
315
|
+
context: this.context,
|
|
316
|
+
});
|
|
307
317
|
}
|
|
308
318
|
}
|
|
309
319
|
|
|
@@ -315,7 +325,7 @@ export class ExpBarControlController<
|
|
|
315
325
|
* @date 2023-08-10 03:58:15
|
|
316
326
|
* @protected
|
|
317
327
|
*/
|
|
318
|
-
protected
|
|
328
|
+
protected navByFirstItem(): void {
|
|
319
329
|
const data = this.xDataController.state.items[0];
|
|
320
330
|
if (!data) {
|
|
321
331
|
// 导航视图传空让他导航占位绘制空界面
|
|
@@ -323,7 +333,6 @@ export class ExpBarControlController<
|
|
|
323
333
|
this._evt.emit('onNavViewChange', {
|
|
324
334
|
navViewMsg: {
|
|
325
335
|
key: '',
|
|
326
|
-
isRoutePushed: true,
|
|
327
336
|
isCache: this.isCache,
|
|
328
337
|
},
|
|
329
338
|
});
|
|
@@ -476,10 +485,10 @@ export class ExpBarControlController<
|
|
|
476
485
|
* @date 2023-09-14 07:03:39
|
|
477
486
|
* @param {{ srfnav?: string; path: string }} info 当前系统的路由的从一级到最后一级的所有路径。
|
|
478
487
|
*/
|
|
479
|
-
onRouterChange(info: { srfnav: string; path: string }): void {
|
|
488
|
+
async onRouterChange(info: { srfnav: string; path: string }): Promise<void> {
|
|
480
489
|
if (this.state.srfnav !== info.srfnav) {
|
|
481
490
|
this.state.srfnav = info.srfnav;
|
|
482
|
-
this.
|
|
491
|
+
this.navBySrfnav();
|
|
483
492
|
}
|
|
484
493
|
}
|
|
485
494
|
}
|
|
@@ -128,7 +128,7 @@ export class TreeExpBarController
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
protected
|
|
131
|
+
protected navByFirstItem(): void {
|
|
132
132
|
const data = this.xDataController.state.items.find(node => {
|
|
133
133
|
// 根节点不显示的时候排除根节点
|
|
134
134
|
if (
|
|
@@ -165,16 +165,35 @@ export class TreeExpBarController
|
|
|
165
165
|
|
|
166
166
|
// 计算树的默认展开集合
|
|
167
167
|
if (this.state.srfnav) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
168
|
+
this.defaultExpandedKeys = this.calcExpandKeys(this.state.srfnav);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* 根据srfnav计算需要展开的节点标识
|
|
174
|
+
* @author lxm
|
|
175
|
+
* @date 2023-11-07 02:42:45
|
|
176
|
+
* @param {string} srfnav
|
|
177
|
+
* @return {*} {string[]}
|
|
178
|
+
*/
|
|
179
|
+
calcExpandKeys(srfnav: string): string[] {
|
|
180
|
+
const expandedKeys: string[] = [];
|
|
181
|
+
srfnav.split(':').forEach((item, index) => {
|
|
182
|
+
if (index === 0) {
|
|
183
|
+
expandedKeys.push(item);
|
|
184
|
+
} else {
|
|
185
|
+
expandedKeys.push(`${expandedKeys[index - 1]}:${item}`);
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
expandedKeys.pop(); // 删除最后一个
|
|
189
|
+
return expandedKeys;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
async onRouterChange(info: { srfnav: string; path: string }): Promise<void> {
|
|
193
|
+
if (this.state.srfnav !== info.srfnav) {
|
|
194
|
+
const expandKeys = this.calcExpandKeys(info.srfnav);
|
|
195
|
+
await this.xDataController.expandNodeByKey(expandKeys);
|
|
178
196
|
}
|
|
197
|
+
await super.onRouterChange(info);
|
|
179
198
|
}
|
|
180
199
|
}
|
package/src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import { DataTypes, ModelError } from '@ibiz-template/core';
|
|
2
|
+
import { DataTypes, ModelError, plus } from '@ibiz-template/core';
|
|
3
3
|
import { IAppCodeList, IDEGridFieldColumn } from '@ibiz/model-core';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import { debounce } from 'lodash-es';
|
|
@@ -236,13 +236,13 @@ export class GridFieldColumnController extends GridColumnController<IDEGridField
|
|
|
236
236
|
case 'SUM':
|
|
237
237
|
aggValue = items
|
|
238
238
|
.map(item => item[fieldName] as number)
|
|
239
|
-
.reduce((a, b) => a
|
|
239
|
+
.reduce((a, b) => plus(a, b), 0);
|
|
240
240
|
break;
|
|
241
241
|
case 'AVG':
|
|
242
242
|
aggValue =
|
|
243
243
|
items
|
|
244
244
|
.map(item => item[fieldName] as number)
|
|
245
|
-
.reduce((a, b) => a
|
|
245
|
+
.reduce((a, b) => plus(a, b), 0) / items.length;
|
|
246
246
|
break;
|
|
247
247
|
case 'MAX':
|
|
248
248
|
aggValue = Math.max(...items.map(item => item[fieldName] as number));
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import { calcDeCodeNameById } from '../../../model';
|
|
10
10
|
import { calcNavParams } from '../../../utils';
|
|
11
11
|
import { ControlController } from '../../common';
|
|
12
|
+
import { hasSubRoute } from '../../utils';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* 分页导航面板
|
|
@@ -57,6 +58,19 @@ export class TabExpPanelController
|
|
|
57
58
|
return ibiz.config.view.expCacheMode.includes(this.model.controlType!);
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
/**
|
|
62
|
+
* 当前路由视图的层级
|
|
63
|
+
*
|
|
64
|
+
* @author zk
|
|
65
|
+
* @date 2023-07-11 10:07:20
|
|
66
|
+
* @readonly
|
|
67
|
+
* @type {(number | undefined)}
|
|
68
|
+
* @memberof ExpBarControlController
|
|
69
|
+
*/
|
|
70
|
+
get routeDepth(): number | undefined {
|
|
71
|
+
return this.view.modal.routeDepth;
|
|
72
|
+
}
|
|
73
|
+
|
|
60
74
|
/**
|
|
61
75
|
* 初始化state的属性
|
|
62
76
|
*
|
|
@@ -141,23 +155,25 @@ export class TabExpPanelController
|
|
|
141
155
|
* @memberof TabExpPanelController
|
|
142
156
|
*/
|
|
143
157
|
initDefaultPage(): void {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
this.handleTabChange();
|
|
147
|
-
};
|
|
148
|
-
if (!this.state.defaultTabName) {
|
|
149
|
-
initFirstPage();
|
|
150
|
-
} else {
|
|
158
|
+
// 跳转指定的默认分页
|
|
159
|
+
if (this.state.defaultTabName) {
|
|
151
160
|
const activeTab = this.state.tabPages.find(
|
|
152
161
|
item => item.tabTag === this.state.defaultTabName,
|
|
153
162
|
);
|
|
154
|
-
if (
|
|
155
|
-
initFirstPage();
|
|
156
|
-
} else {
|
|
163
|
+
if (activeTab) {
|
|
157
164
|
this.state.activeName = activeTab.tabTag;
|
|
158
|
-
this.changeToTab(
|
|
165
|
+
this.changeToTab(
|
|
166
|
+
this.activeTabViewPanelModel,
|
|
167
|
+
// 路由模式下并且有子路由
|
|
168
|
+
this.routeDepth !== undefined && hasSubRoute(this.routeDepth),
|
|
169
|
+
);
|
|
170
|
+
return;
|
|
159
171
|
}
|
|
160
172
|
}
|
|
173
|
+
|
|
174
|
+
// 没有默认分页或者匹配不到时,跳转第一个分页
|
|
175
|
+
this.state.activeName = this.state.tabPages[0].tabTag;
|
|
176
|
+
this.handleTabChange();
|
|
161
177
|
}
|
|
162
178
|
|
|
163
179
|
/**
|
|
@@ -169,8 +185,12 @@ export class TabExpPanelController
|
|
|
169
185
|
*/
|
|
170
186
|
protected changeToTab(
|
|
171
187
|
tab: IDETabViewPanel = this.activeTabViewPanelModel!,
|
|
188
|
+
isRoutePushed = false,
|
|
172
189
|
): void {
|
|
173
190
|
const navViewMsg = this.getNavViewMsg(tab);
|
|
191
|
+
if (isRoutePushed === true) {
|
|
192
|
+
navViewMsg.isRoutePushed = true;
|
|
193
|
+
}
|
|
174
194
|
this.evt.emit('onNavViewChange', { navViewMsg });
|
|
175
195
|
}
|
|
176
196
|
|