@ibiz-template/runtime 0.7.29 → 0.7.30
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 +799 -243
- package/dist/index.system.min.js +1 -1
- package/out/constant/control-type.d.ts +6 -0
- package/out/constant/control-type.d.ts.map +1 -1
- package/out/constant/control-type.js +20 -0
- package/out/constant/index.d.ts +1 -1
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +1 -1
- package/out/controller/common/control/control.controller.d.ts +1 -0
- package/out/controller/common/control/control.controller.d.ts.map +1 -1
- package/out/controller/common/control/control.controller.js +4 -0
- package/out/controller/common/control/md-control.controller.d.ts +32 -0
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +85 -0
- package/out/controller/control/chart/chart.controller.d.ts +28 -0
- package/out/controller/control/chart/chart.controller.d.ts.map +1 -1
- package/out/controller/control/chart/chart.controller.js +102 -0
- package/out/controller/control/chart/generator/base-series-generator.d.ts +8 -1
- package/out/controller/control/chart/generator/base-series-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/base-series-generator.js +30 -7
- package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
- package/out/controller/control/chart/generator/chart-options-generator.js +22 -6
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +1 -0
- package/out/controller/control/dashboard/portlet/report-portlet/report-portlet.controller.d.ts +2 -2
- package/out/controller/control/dashboard/portlet/report-portlet/report-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.d.ts +1 -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 +11 -4
- package/out/controller/control/grid/grid/grid-column.controller.d.ts +1 -1
- package/out/controller/control/grid/grid/grid-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid-column.controller.js +15 -3
- package/out/controller/control/grid/grid/grid.controller.d.ts +3 -3
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +6 -7
- package/out/controller/control/list/list.controller.d.ts +1 -1
- package/out/controller/control/list/list.controller.d.ts.map +1 -1
- package/out/controller/control/list/list.controller.js +11 -4
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +11 -4
- package/out/controller/control/search-bar/interface-util.d.ts.map +1 -1
- package/out/controller/control/search-bar/interface-util.js +29 -0
- package/out/engine/md-view.engine.js +2 -2
- package/out/global/global-util/global-util.d.ts +8 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +8 -1
- package/out/interface/controller/controller/control/i-control.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-control.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-md-control.controller.d.ts +32 -0
- package/out/interface/controller/controller/control/i-md-control.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/search-bar/i-filter-node.d.ts +43 -1
- package/out/interface/controller/state/control/search-bar/i-filter-node.d.ts.map +1 -1
- package/out/interface/controller/state/control/search-bar/i-search-cond-ex.d.ts +21 -2
- package/out/interface/controller/state/control/search-bar/i-search-cond-ex.d.ts.map +1 -1
- package/out/interface/controller/state/control/search-bar/i-search-cond.d.ts +14 -1
- package/out/interface/controller/state/control/search-bar/i-search-cond.d.ts.map +1 -1
- package/out/interface/controller/state/control/search-bar/index.d.ts +3 -3
- package/out/interface/controller/state/control/search-bar/index.d.ts.map +1 -1
- package/out/interface/util/i-fullscreen-util/i-fullscreen-util.d.ts +8 -2
- package/out/interface/util/i-fullscreen-util/i-fullscreen-util.d.ts.map +1 -1
- package/out/interface/util/i-record-nav-util/i-record-nav-util.d.ts +78 -0
- package/out/interface/util/i-record-nav-util/i-record-nav-util.d.ts.map +1 -0
- package/out/interface/util/i-record-nav-util/i-record-nav-util.js +1 -0
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +5 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +5 -0
- package/out/locale/zh-CN/index.d.ts +5 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +5 -0
- package/out/utils/bi-report-util/bi-report-util.d.ts +1 -0
- package/out/utils/bi-report-util/bi-report-util.d.ts.map +1 -1
- package/out/utils/bi-report-util/bi-report-util.js +33 -5
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/record-nav-util/record-nav-util.d.ts +89 -0
- package/out/utils/record-nav-util/record-nav-util.d.ts.map +1 -0
- package/out/utils/record-nav-util/record-nav-util.js +192 -0
- package/out/utils/verify/form-dynamic-logic.js +1 -1
- package/package.json +6 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-search-cond.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/search-bar/i-search-cond.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;AAEhE,MAAM,MAAM,WAAW,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"i-search-cond.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/search-bar/i-search-cond.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;AAEhE,MAAM,MAAM,WAAW,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { ISearchBarState } from './i-search-bar.state';
|
|
2
2
|
export type { IBackendSearchBarGroup, ISearchGroupData, } from './i-search-bar-group';
|
|
3
|
-
export type { IFilterNodeGroup, IFilterNodeField, IFilterNodeItems, IFilterNode, } from './i-filter-node';
|
|
4
|
-
export type { ISearchCond, ISearchCondField, ISearchCondGroup, ISearchCondItems, ITEMS_COND_OP, } from './i-search-cond';
|
|
5
|
-
export type { ISearchCondEx, ISearchCondExField, ISearchCondExGroup, ISearchCondExItems, } from './i-search-cond-ex';
|
|
3
|
+
export type { IFilterNodeGroup, IFilterNodeField, IFilterNodeItems, IFilterNodeCustom, IFilterNode, } from './i-filter-node';
|
|
4
|
+
export type { ISearchCond, ISearchCondField, ISearchCondGroup, ISearchCondItems, ISearchCondCustom, ITEMS_COND_OP, } from './i-search-cond';
|
|
5
|
+
export type { ISearchCondEx, ISearchCondExField, ISearchCondExGroup, ISearchCondExItems, ISearchCondExCustom, } from './i-search-cond-ex';
|
|
6
6
|
export type { IQuickSearchItem } from './i-quick-search';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/search-bar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/search-bar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export interface IFullscreenUtil {
|
|
2
|
+
/**
|
|
3
|
+
* 全屏样式名称
|
|
4
|
+
* @author fzh
|
|
5
|
+
* @date 2024-07-15 19:39:40
|
|
6
|
+
*/
|
|
7
|
+
FullscreenClass: string;
|
|
2
8
|
/**
|
|
3
9
|
* 指定元素全屏
|
|
4
10
|
* @author fzh
|
|
5
11
|
* @date 2024-07-09 19:39:40
|
|
6
12
|
*/
|
|
7
|
-
openElementFullscreen(div: HTMLDivElement): void;
|
|
13
|
+
openElementFullscreen(div: HTMLDivElement, data?: IData): void;
|
|
8
14
|
/**
|
|
9
15
|
* 页面退出全屏
|
|
10
16
|
* @author fzh
|
|
11
17
|
* @date 2024-07-09 19:39:40
|
|
12
18
|
*/
|
|
13
|
-
|
|
19
|
+
closeElementFullscreen(): void;
|
|
14
20
|
}
|
|
15
21
|
//# sourceMappingURL=i-fullscreen-util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-fullscreen-util/i-fullscreen-util.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"i-fullscreen-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-fullscreen-util/i-fullscreen-util.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,qBAAqB,CAAC,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAE/D;;;;OAIG;IACH,sBAAsB,IAAI,IAAI,CAAC;CAChC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IMDControlController } from '../../controller';
|
|
2
|
+
/**
|
|
3
|
+
* 记录导航工具类
|
|
4
|
+
*
|
|
5
|
+
* @author tony001
|
|
6
|
+
* @date 2024-07-15 11:07:50
|
|
7
|
+
* @export
|
|
8
|
+
* @interface IRecordNavUtil
|
|
9
|
+
*/
|
|
10
|
+
export interface IRecordNavUtil {
|
|
11
|
+
/**
|
|
12
|
+
* 添加部件数据
|
|
13
|
+
*
|
|
14
|
+
* @author tony001
|
|
15
|
+
* @date 2024-07-15 11:07:44
|
|
16
|
+
* @param {string} id 部件标识,部件的ctrlId
|
|
17
|
+
* @param {IMDControlController} ctrl
|
|
18
|
+
*/
|
|
19
|
+
add(id: string, ctrl: IMDControlController): void;
|
|
20
|
+
/**
|
|
21
|
+
* 删除部件数据
|
|
22
|
+
*
|
|
23
|
+
* @author tony001
|
|
24
|
+
* @date 2024-07-15 11:07:06
|
|
25
|
+
* @param {string} id 部件标识,部件的ctrlId
|
|
26
|
+
*/
|
|
27
|
+
remove(id: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* 获取部件数据
|
|
30
|
+
*
|
|
31
|
+
* @author tony001
|
|
32
|
+
* @date 2024-07-15 14:07:12
|
|
33
|
+
* @param {string} id
|
|
34
|
+
* @return {*} {(IMDControlController | undefined)}
|
|
35
|
+
*/
|
|
36
|
+
getCtrl(id: string): IMDControlController | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 获取第一条记录
|
|
39
|
+
*
|
|
40
|
+
* @author tony001
|
|
41
|
+
* @date 2024-07-15 15:07:25
|
|
42
|
+
* @param {string} ctrlId
|
|
43
|
+
* @param {string} dataId
|
|
44
|
+
* @return {*} {Promise<IData | undefined>}
|
|
45
|
+
*/
|
|
46
|
+
getFirstRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* 获取前一条记录
|
|
49
|
+
*
|
|
50
|
+
* @author tony001
|
|
51
|
+
* @date 2024-07-15 15:07:59
|
|
52
|
+
* @param {string} ctrlId
|
|
53
|
+
* @param {string} dataId
|
|
54
|
+
* @return {*} {Promise<IData | undefined>}
|
|
55
|
+
*/
|
|
56
|
+
getPreviousRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* 获取下一条记录
|
|
59
|
+
*
|
|
60
|
+
* @author tony001
|
|
61
|
+
* @date 2024-07-15 15:07:09
|
|
62
|
+
* @param {string} ctrlId
|
|
63
|
+
* @param {string} dataId
|
|
64
|
+
* @return {*} {Promise<IData | undefined>}
|
|
65
|
+
*/
|
|
66
|
+
getNextRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* 获取最后一条记录
|
|
69
|
+
*
|
|
70
|
+
* @author tony001
|
|
71
|
+
* @date 2024-07-15 15:07:18
|
|
72
|
+
* @param {string} ctrlId
|
|
73
|
+
* @param {string} dataId
|
|
74
|
+
* @return {*} {Promise<IData | undefined>}
|
|
75
|
+
*/
|
|
76
|
+
getLastRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=i-record-nav-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-record-nav-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/util/i-record-nav-util/i-record-nav-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAElD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;IAEtD;;;;;;;;OAQG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAE3E;;;;;;;;OAQG;IACH,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAE9E;;;;;;;;OAQG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAE1E;;;;;;;;OAQG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -16,4 +16,5 @@ export type { IRenderUtil } from './i-render-util/i-render-util';
|
|
|
16
16
|
export type { IShortCut, IShortCutData } from './i-short-cut/i-short-cut';
|
|
17
17
|
export type { IAppUtil } from './i-app-util/i-app-util';
|
|
18
18
|
export type { IFullscreenUtil } from './i-fullscreen-util/i-fullscreen-util';
|
|
19
|
+
export type { IRecordNavUtil } from './i-record-nav-util/i-record-nav-util';
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/util/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,YAAY,EACV,YAAY,EACZ,cAAc,GACf,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC3E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E,MAAM,qCAAqC,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AACnF,YAAY,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACtF,YAAY,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AAC1G,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAChF,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1E,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,YAAY,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC"}
|
package/out/locale/en/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/en/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/en/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyxBd,CAAC"}
|
package/out/locale/en/index.js
CHANGED
|
@@ -575,6 +575,11 @@ export const en = {
|
|
|
575
575
|
conditionalValues: 'Conditional values for range comparisons do not exist or are not strings',
|
|
576
576
|
},
|
|
577
577
|
firstregister: 'Please register the model loading adapter first',
|
|
578
|
+
recordNav: {
|
|
579
|
+
noFoundCtrl: 'The specified identifier [{ctrlId}] component was not found',
|
|
580
|
+
firstRecord: 'The current data is already the first record of data',
|
|
581
|
+
lastRecord: 'The current data is already the last record of data',
|
|
582
|
+
},
|
|
578
583
|
},
|
|
579
584
|
deAction: {
|
|
580
585
|
responseDataError: 'Response data exception [data]: {error}',
|
|
@@ -572,6 +572,11 @@ export declare const zhCn: {
|
|
|
572
572
|
conditionalValues: string;
|
|
573
573
|
};
|
|
574
574
|
firstregister: string;
|
|
575
|
+
recordNav: {
|
|
576
|
+
noFoundCtrl: string;
|
|
577
|
+
firstRecord: string;
|
|
578
|
+
lastRecord: string;
|
|
579
|
+
};
|
|
575
580
|
};
|
|
576
581
|
deAction: {
|
|
577
582
|
responseDataError: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locale/zh-CN/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgoBhB,CAAC"}
|
|
@@ -573,6 +573,11 @@ export const zhCn = {
|
|
|
573
573
|
conditionalValues: '范围比较的条件值不存或者不是字符串',
|
|
574
574
|
},
|
|
575
575
|
firstregister: '请先注册模型加载适配器',
|
|
576
|
+
recordNav: {
|
|
577
|
+
noFoundCtrl: '未找到指定标识[{ctrlId}]部件',
|
|
578
|
+
firstRecord: '当前数据已经是第一条数据了',
|
|
579
|
+
lastRecord: '当前数据已经是最后一条数据了',
|
|
580
|
+
},
|
|
576
581
|
},
|
|
577
582
|
deAction: {
|
|
578
583
|
responseDataError: '响应数据异常 [data]: {error}',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bi-report-util.d.ts","sourceRoot":"","sources":["../../../src/utils/bi-report-util/bi-report-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IAErC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,YAAY;IACvB;;;;;;;;;OASG;IACG,cAAc,CAClB,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,UAAU,CAAC;IAkDtB;;;;;;;;OAQG;IACG,yBAAyB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"bi-report-util.d.ts","sourceRoot":"","sources":["../../../src/utils/bi-report-util/bi-report-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IAErC;;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
|
-
|
|
85
|
+
const tempMeasure = {
|
|
86
86
|
pssysbischemeid: item.pssysbischemeid,
|
|
87
87
|
pssysbicubemeasureid: item.pssysbicubemeasureid,
|
|
88
88
|
pssysbicubeid: item.pssysbicubeid,
|
|
89
89
|
codename: (_a = item.pssysbicubemeasureid) === null || _a === void 0 ? void 0 : _a.split('.').pop(),
|
|
90
90
|
pssysbicubemeasurename: item.pssysbicubemeasurename,
|
|
91
91
|
birepitemparams: item.birepitemparams,
|
|
92
|
-
}
|
|
92
|
+
};
|
|
93
|
+
if (biReportUIModel.extend) {
|
|
94
|
+
const { extend } = biReportUIModel;
|
|
95
|
+
if (extend[`aggmode@${tempMeasure.codename}`]) {
|
|
96
|
+
tempMeasure.aggtype = extend[`aggmode@${tempMeasure.codename}`];
|
|
97
|
+
tempMeasure.bimeasuretype = 'COMMON';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
biReportItems.measure.push(tempMeasure);
|
|
93
101
|
}
|
|
94
102
|
if (item.birepitemtype === 'DIMENSION') {
|
|
95
103
|
const tempDimension = {
|
|
@@ -144,6 +152,10 @@ export class BIReportUtil {
|
|
|
144
152
|
if (biReportUIModel.period) {
|
|
145
153
|
propertyData.data.period = biReportUIModel.period;
|
|
146
154
|
}
|
|
155
|
+
// 识别扩展字段
|
|
156
|
+
if (biReportUIModel.extend) {
|
|
157
|
+
propertyData.extend = biReportUIModel.extend;
|
|
158
|
+
}
|
|
147
159
|
config.propertyData = propertyData;
|
|
148
160
|
return config;
|
|
149
161
|
}
|
|
@@ -180,6 +192,10 @@ export class BIReportUtil {
|
|
|
180
192
|
if (reportUIModelObj.period) {
|
|
181
193
|
propertyData.data.period = reportUIModelObj.period;
|
|
182
194
|
}
|
|
195
|
+
// 识别扩展字段
|
|
196
|
+
if (reportUIModelObj.extend) {
|
|
197
|
+
propertyData.extend = reportUIModelObj.extend;
|
|
198
|
+
}
|
|
183
199
|
}
|
|
184
200
|
else {
|
|
185
201
|
config.selectChartType = 'NUMBER';
|
|
@@ -189,14 +205,22 @@ export class BIReportUtil {
|
|
|
189
205
|
if (!biReportDatas.measure) {
|
|
190
206
|
biReportDatas.measure = [];
|
|
191
207
|
}
|
|
192
|
-
|
|
208
|
+
const tempMeasure = {
|
|
193
209
|
pssysbischemeid: tempAppBISchemeId,
|
|
194
210
|
pssysbicubemeasureid: `${tempAppBISchemeId}.${appBICubeId}.${measure.measureTag}`,
|
|
195
211
|
pssysbicubemeasurename: measure.measureName,
|
|
196
212
|
pssysbicubeid: `${tempAppBISchemeId}.${appBICubeId}`,
|
|
197
213
|
codename: measure.measureTag,
|
|
198
214
|
birepitemparams: measure.birepitemparams,
|
|
199
|
-
}
|
|
215
|
+
};
|
|
216
|
+
if (reportUIModelObj.extend) {
|
|
217
|
+
const { extend } = reportUIModelObj;
|
|
218
|
+
if (extend[`aggmode@${tempMeasure.codename}`]) {
|
|
219
|
+
tempMeasure.aggtype = extend[`aggmode@${tempMeasure.codename}`];
|
|
220
|
+
tempMeasure.bimeasuretype = 'COMMON';
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
biReportDatas.measure.push(tempMeasure);
|
|
200
224
|
});
|
|
201
225
|
}
|
|
202
226
|
if (appBIReportDimensions && appBIReportDimensions.length > 0) {
|
|
@@ -258,7 +282,7 @@ export class BIReportUtil {
|
|
|
258
282
|
* @memberof BIReportUtil
|
|
259
283
|
*/
|
|
260
284
|
async translateDataToAppBIReport(arg) {
|
|
261
|
-
const { reportTag, selectChartType, selectCubeId, caption, data, style } = arg;
|
|
285
|
+
const { reportTag, selectChartType, selectCubeId, caption, data, style, extend, } = arg;
|
|
262
286
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
263
287
|
const tempUIReportModel = {
|
|
264
288
|
selectChartType,
|
|
@@ -272,6 +296,10 @@ export class BIReportUtil {
|
|
|
272
296
|
if (data.period) {
|
|
273
297
|
Object.assign(tempUIReportModel, { period: data.period });
|
|
274
298
|
}
|
|
299
|
+
// 识别扩展字段
|
|
300
|
+
if (extend && Object.keys(extend).length > 0) {
|
|
301
|
+
Object.assign(tempUIReportModel, { extend });
|
|
302
|
+
}
|
|
275
303
|
const targetData = {
|
|
276
304
|
pssysbireportitems: [],
|
|
277
305
|
pssysbischemeid: selectCubeId.split('.')[0],
|
package/out/utils/index.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export { AnimeUtil } from './anime';
|
|
|
20
20
|
export { FileUtil } from './file-util';
|
|
21
21
|
export { ShortCutUtil } from './short-cut/short-cut-util';
|
|
22
22
|
export { BIReportUtil } from './bi-report-util/bi-report-util';
|
|
23
|
+
export { RecordNavUtil } from './record-nav-util/record-nav-util';
|
|
23
24
|
export * from './dr-ctrl-util';
|
|
24
25
|
//# sourceMappingURL=index.d.ts.map
|
package/out/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,yCAAyC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,C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AAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,cAAc,gBAAgB,CAAC"}
|
package/out/utils/index.js
CHANGED
|
@@ -20,4 +20,5 @@ export { AnimeUtil } from './anime';
|
|
|
20
20
|
export { FileUtil } from './file-util';
|
|
21
21
|
export { ShortCutUtil } from './short-cut/short-cut-util';
|
|
22
22
|
export { BIReportUtil } from './bi-report-util/bi-report-util';
|
|
23
|
+
export { RecordNavUtil } from './record-nav-util/record-nav-util';
|
|
23
24
|
export * from './dr-ctrl-util';
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { IMDControlController, IRecordNavUtil } from '../../interface';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* 记录导航工具类
|
|
5
|
+
*
|
|
6
|
+
* @author tony001
|
|
7
|
+
* @date 2024-07-15 13:07:12
|
|
8
|
+
* @export
|
|
9
|
+
* @class RecordNavUtil
|
|
10
|
+
* @implements {IRecordNavUtil}
|
|
11
|
+
*/
|
|
12
|
+
export declare class RecordNavUtil implements IRecordNavUtil {
|
|
13
|
+
/**
|
|
14
|
+
* 部件Map
|
|
15
|
+
*
|
|
16
|
+
* @author tony001
|
|
17
|
+
* @date 2024-07-15 13:07:58
|
|
18
|
+
* @private
|
|
19
|
+
* @type {Map<string, IMDControlController>}
|
|
20
|
+
*/
|
|
21
|
+
private controlMap;
|
|
22
|
+
/**
|
|
23
|
+
* 添加部件数据
|
|
24
|
+
*
|
|
25
|
+
* @author tony001
|
|
26
|
+
* @date 2024-07-15 13:07:10
|
|
27
|
+
* @param {string} id
|
|
28
|
+
* @param {IMDControlController} ctrl
|
|
29
|
+
*/
|
|
30
|
+
add(id: string, ctrl: IMDControlController): void;
|
|
31
|
+
/**
|
|
32
|
+
* 删除部件数据
|
|
33
|
+
*
|
|
34
|
+
* @author tony001
|
|
35
|
+
* @date 2024-07-15 13:07:23
|
|
36
|
+
* @param {string} id
|
|
37
|
+
*/
|
|
38
|
+
remove(id: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* 获取部件数据
|
|
41
|
+
*
|
|
42
|
+
* @author tony001
|
|
43
|
+
* @date 2024-07-15 14:07:32
|
|
44
|
+
* @param {string} id
|
|
45
|
+
* @return {*} {(IMDControlController | undefined)}
|
|
46
|
+
*/
|
|
47
|
+
getCtrl(id: string): IMDControlController | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 获取第一条记录
|
|
50
|
+
*
|
|
51
|
+
* @author tony001
|
|
52
|
+
* @date 2024-07-15 15:07:26
|
|
53
|
+
* @param {string} ctrlId
|
|
54
|
+
* @param {string} dataId
|
|
55
|
+
* @return {*} {Promise<IData | undefined>}
|
|
56
|
+
*/
|
|
57
|
+
getFirstRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* 获取上一条记录
|
|
60
|
+
*
|
|
61
|
+
* @author tony001
|
|
62
|
+
* @date 2024-07-15 15:07:01
|
|
63
|
+
* @param {string} ctrlId
|
|
64
|
+
* @param {string} dataId
|
|
65
|
+
* @return {*} {Promise<IData | undefined>}
|
|
66
|
+
*/
|
|
67
|
+
getPreviousRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* 获取下一条记录
|
|
70
|
+
*
|
|
71
|
+
* @author tony001
|
|
72
|
+
* @date 2024-07-15 15:07:17
|
|
73
|
+
* @param {string} ctrlId
|
|
74
|
+
* @param {string} dataId
|
|
75
|
+
* @return {*} {Promise<IData | undefined>}
|
|
76
|
+
*/
|
|
77
|
+
getNextRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* 获取最后一条记录
|
|
80
|
+
*
|
|
81
|
+
* @author tony001
|
|
82
|
+
* @date 2024-07-15 15:07:31
|
|
83
|
+
* @param {string} ctrlId
|
|
84
|
+
* @param {string} dataId
|
|
85
|
+
* @return {*} {Promise<IData | undefined>}
|
|
86
|
+
*/
|
|
87
|
+
getLastRecord(ctrlId: string, dataId: string): Promise<IData | undefined>;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=record-nav-util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-nav-util.d.ts","sourceRoot":"","sources":["../../../src/utils/record-nav-util/record-nav-util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEvE;;;;;;;;;GASG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU,CAAgD;IAElE;;;;;;;OAOG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,IAAI;IAIjD;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAIxB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS;IAIrD;;;;;;;;OAQG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;IAqB7B;;;;;;;;OAQG;IACG,iBAAiB,CACrB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;IA6B7B;;;;;;;;OAQG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;IA2C7B;;;;;;;;OAQG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC;CAoB9B"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* eslint-disable prefer-destructuring */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
+
import { RuntimeError } from '@ibiz-template/core';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* 记录导航工具类
|
|
7
|
+
*
|
|
8
|
+
* @author tony001
|
|
9
|
+
* @date 2024-07-15 13:07:12
|
|
10
|
+
* @export
|
|
11
|
+
* @class RecordNavUtil
|
|
12
|
+
* @implements {IRecordNavUtil}
|
|
13
|
+
*/
|
|
14
|
+
export class RecordNavUtil {
|
|
15
|
+
constructor() {
|
|
16
|
+
/**
|
|
17
|
+
* 部件Map
|
|
18
|
+
*
|
|
19
|
+
* @author tony001
|
|
20
|
+
* @date 2024-07-15 13:07:58
|
|
21
|
+
* @private
|
|
22
|
+
* @type {Map<string, IMDControlController>}
|
|
23
|
+
*/
|
|
24
|
+
this.controlMap = new Map();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 添加部件数据
|
|
28
|
+
*
|
|
29
|
+
* @author tony001
|
|
30
|
+
* @date 2024-07-15 13:07:10
|
|
31
|
+
* @param {string} id
|
|
32
|
+
* @param {IMDControlController} ctrl
|
|
33
|
+
*/
|
|
34
|
+
add(id, ctrl) {
|
|
35
|
+
this.controlMap.set(id, ctrl);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 删除部件数据
|
|
39
|
+
*
|
|
40
|
+
* @author tony001
|
|
41
|
+
* @date 2024-07-15 13:07:23
|
|
42
|
+
* @param {string} id
|
|
43
|
+
*/
|
|
44
|
+
remove(id) {
|
|
45
|
+
this.controlMap.delete(id);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 获取部件数据
|
|
49
|
+
*
|
|
50
|
+
* @author tony001
|
|
51
|
+
* @date 2024-07-15 14:07:32
|
|
52
|
+
* @param {string} id
|
|
53
|
+
* @return {*} {(IMDControlController | undefined)}
|
|
54
|
+
*/
|
|
55
|
+
getCtrl(id) {
|
|
56
|
+
return this.controlMap.get(id);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 获取第一条记录
|
|
60
|
+
*
|
|
61
|
+
* @author tony001
|
|
62
|
+
* @date 2024-07-15 15:07:26
|
|
63
|
+
* @param {string} ctrlId
|
|
64
|
+
* @param {string} dataId
|
|
65
|
+
* @return {*} {Promise<IData | undefined>}
|
|
66
|
+
*/
|
|
67
|
+
async getFirstRecord(ctrlId, dataId) {
|
|
68
|
+
const targrtCtrl = this.getCtrl(ctrlId);
|
|
69
|
+
if (!targrtCtrl) {
|
|
70
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.noFoundCtrl', {
|
|
71
|
+
ctrlId,
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
const items = await targrtCtrl.goToFirstPage();
|
|
75
|
+
if (items && items.length > 0) {
|
|
76
|
+
const firstItem = items[0];
|
|
77
|
+
if (firstItem.srfkey === dataId) {
|
|
78
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.firstRecord'));
|
|
79
|
+
}
|
|
80
|
+
return firstItem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 获取上一条记录
|
|
85
|
+
*
|
|
86
|
+
* @author tony001
|
|
87
|
+
* @date 2024-07-15 15:07:01
|
|
88
|
+
* @param {string} ctrlId
|
|
89
|
+
* @param {string} dataId
|
|
90
|
+
* @return {*} {Promise<IData | undefined>}
|
|
91
|
+
*/
|
|
92
|
+
async getPreviousRecord(ctrlId, dataId) {
|
|
93
|
+
const targrtCtrl = this.getCtrl(ctrlId);
|
|
94
|
+
if (!targrtCtrl) {
|
|
95
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.noFoundCtrl', {
|
|
96
|
+
ctrlId,
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
let targetData;
|
|
100
|
+
const { items } = targrtCtrl.state;
|
|
101
|
+
const findIndex = items.findIndex((item) => {
|
|
102
|
+
return item.srfkey === dataId;
|
|
103
|
+
});
|
|
104
|
+
if (findIndex === 0) {
|
|
105
|
+
const preItems = await targrtCtrl.goToPreviousPage();
|
|
106
|
+
if (preItems && preItems.length > 0) {
|
|
107
|
+
targetData = preItems[preItems.length - 1];
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.firstRecord'));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
targetData = items[findIndex - 1];
|
|
115
|
+
}
|
|
116
|
+
return targetData;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 获取下一条记录
|
|
120
|
+
*
|
|
121
|
+
* @author tony001
|
|
122
|
+
* @date 2024-07-15 15:07:17
|
|
123
|
+
* @param {string} ctrlId
|
|
124
|
+
* @param {string} dataId
|
|
125
|
+
* @return {*} {Promise<IData | undefined>}
|
|
126
|
+
*/
|
|
127
|
+
async getNextRecord(ctrlId, dataId) {
|
|
128
|
+
const targrtCtrl = this.getCtrl(ctrlId);
|
|
129
|
+
if (!targrtCtrl) {
|
|
130
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.noFoundCtrl', {
|
|
131
|
+
ctrlId,
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
let targetData;
|
|
135
|
+
const { items } = targrtCtrl.state;
|
|
136
|
+
const { pagingMode } = targrtCtrl.model;
|
|
137
|
+
const findIndex = items.findIndex((item) => {
|
|
138
|
+
return item.srfkey === dataId;
|
|
139
|
+
});
|
|
140
|
+
if (findIndex === items.length - 1) {
|
|
141
|
+
const nextItems = await targrtCtrl.goToNextPage();
|
|
142
|
+
if (nextItems && nextItems.length > 0) {
|
|
143
|
+
if (pagingMode === 1) {
|
|
144
|
+
targetData = nextItems[0];
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const targetIndex = nextItems.findIndex((item) => {
|
|
148
|
+
return item.srfkey === dataId;
|
|
149
|
+
});
|
|
150
|
+
if (nextItems[targetIndex + 1]) {
|
|
151
|
+
targetData = nextItems[targetIndex + 1];
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.lastRecord'));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.lastRecord'));
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
targetData = items[findIndex + 1];
|
|
164
|
+
}
|
|
165
|
+
return targetData;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 获取最后一条记录
|
|
169
|
+
*
|
|
170
|
+
* @author tony001
|
|
171
|
+
* @date 2024-07-15 15:07:31
|
|
172
|
+
* @param {string} ctrlId
|
|
173
|
+
* @param {string} dataId
|
|
174
|
+
* @return {*} {Promise<IData | undefined>}
|
|
175
|
+
*/
|
|
176
|
+
async getLastRecord(ctrlId, dataId) {
|
|
177
|
+
const targrtCtrl = this.getCtrl(ctrlId);
|
|
178
|
+
if (!targrtCtrl) {
|
|
179
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.noFoundCtrl', {
|
|
180
|
+
ctrlId,
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
const items = await targrtCtrl.goToLastPage();
|
|
184
|
+
if (items && items.length > 0) {
|
|
185
|
+
const lastItem = items[items.length - 1];
|
|
186
|
+
if (lastItem.srfkey === dataId) {
|
|
187
|
+
throw new RuntimeError(ibiz.i18n.t('runtime.utils.recordNav.lastRecord'));
|
|
188
|
+
}
|
|
189
|
+
return lastItem;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -42,7 +42,7 @@ export function verifyFormGroupLogic(data, logic) {
|
|
|
42
42
|
return logic.notMode ? !result : result;
|
|
43
43
|
}
|
|
44
44
|
// 计算单个逻辑
|
|
45
|
-
if (isSingleLogic(logic)) {
|
|
45
|
+
if (isSingleLogic(logic) && logic.defdname) {
|
|
46
46
|
return testCond(data[logic.defdname.toLowerCase()], logic.condOP, logic.value);
|
|
47
47
|
}
|
|
48
48
|
throw new ModelError(logic, ibiz.i18n.t('runtime.utils.verify.unsupportedLogicTypes', {
|