@ibiz-template/runtime 0.7.41-alpha.117 → 0.7.41-alpha.119
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 +108 -45
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +2 -0
- package/out/controller/common/control/md-control.controller.d.ts +4 -3
- package/out/controller/common/control/md-control.controller.d.ts.map +1 -1
- package/out/controller/common/control/md-control.controller.js +1 -1
- package/out/controller/control/form/search-form/search-form.controller.d.ts +7 -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 +14 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +22 -5
- package/out/controller/control/md-ctrl/md-ctrl.controller.d.ts.map +1 -1
- package/out/controller/control/md-ctrl/md-ctrl.controller.js +22 -5
- package/out/controller/control/toolbar/toolbar.controller.js +22 -22
- package/out/controller/utils/data-file-util/data-file-util.d.ts +7 -6
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +13 -7
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +8 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts +9 -0
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/common/i-api-export-params.d.ts +24 -0
- package/out/interface/api/common/i-api-export-params.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +1 -0
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts +3 -3
- package/out/interface/api/controller/control/i-api-tree-grid.controller.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +20 -0
- package/out/interface/api/state/control/i-api-drtab.state.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-grid.controller.d.ts +3 -3
- package/out/interface/controller/controller/control/i-grid.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-md-control.controller.d.ts +4 -3
- package/out/interface/controller/controller/control/i-md-control.controller.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +22 -6
- package/package.json +3 -3
- package/src/config/global-config.ts +2 -0
- package/src/controller/common/control/md-control.controller.ts +6 -2
- package/src/controller/control/form/search-form/search-form.controller.ts +14 -0
- package/src/controller/control/grid/grid/grid.controller.ts +26 -5
- package/src/controller/control/md-ctrl/md-ctrl.controller.ts +24 -4
- package/src/controller/control/toolbar/toolbar.controller.ts +27 -27
- package/src/controller/utils/data-file-util/data-file-util.ts +13 -6
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +9 -0
- package/src/interface/api/common/global-config/i-api-global-search-form-config.ts +10 -0
- package/src/interface/api/common/i-api-export-params.ts +28 -0
- package/src/interface/api/controller/control/i-api-search-form.controller.ts +1 -0
- package/src/interface/api/controller/control/i-api-tree-grid.controller.ts +2 -2
- package/src/interface/api/state/control/i-api-drtab.state.ts +23 -0
- package/src/interface/controller/controller/control/i-grid.controller.ts +3 -3
- package/src/interface/controller/controller/control/i-md-control.controller.ts +6 -2
- package/src/ui-action/provider/front-ui-action-provider.ts +21 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ISysImage } from '@ibiz/model-core';
|
|
2
|
+
import { IApiContext, IApiParams } from '@ibiz-template/core';
|
|
2
3
|
import { IApiControlState } from './i-api-control.state';
|
|
3
4
|
/**
|
|
4
5
|
* @description 关系分页项状态接口
|
|
@@ -78,6 +79,18 @@ export interface IApiDRTabPagesState {
|
|
|
78
79
|
* @memberof IApiDRTabPagesState
|
|
79
80
|
*/
|
|
80
81
|
counterMode?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @description 项上下文
|
|
84
|
+
* @type {IApiContext}
|
|
85
|
+
* @memberof IApiDRTabPagesState
|
|
86
|
+
*/
|
|
87
|
+
context?: IApiContext;
|
|
88
|
+
/**
|
|
89
|
+
* @description 项视图参数
|
|
90
|
+
* @type {IApiParams}
|
|
91
|
+
* @memberof IApiDRTabPagesState
|
|
92
|
+
*/
|
|
93
|
+
params?: IApiParams;
|
|
81
94
|
}
|
|
82
95
|
/**
|
|
83
96
|
* @description 数据关系分页UI状态接口
|
|
@@ -129,5 +142,12 @@ export interface IApiDRTabState extends IApiControlState {
|
|
|
129
142
|
* @memberof IApiDRTabState
|
|
130
143
|
*/
|
|
131
144
|
hideEditItem?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* @description 给导航的视图附加的视图参数
|
|
147
|
+
* @type {IApiParams}
|
|
148
|
+
* @default {}
|
|
149
|
+
* @memberof IApiDRTabState
|
|
150
|
+
*/
|
|
151
|
+
expViewParams: IApiParams;
|
|
132
152
|
}
|
|
133
153
|
//# sourceMappingURL=i-api-drtab.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-drtab.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/state/control/i-api-drtab.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-drtab.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/api/state/control/i-api-drtab.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD;;;;;OAKG;IACH,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAElC;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;OAKG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;OAKG;IACH,aAAa,EAAE,UAAU,CAAC;CAC3B"}
|
|
@@ -44,13 +44,13 @@ export interface IGridController<T extends IDEGrid = IDEGrid, S extends IGridSta
|
|
|
44
44
|
setGroupParams(data: IData): void;
|
|
45
45
|
/**
|
|
46
46
|
* @description 导出数据
|
|
47
|
-
* @param {{ event
|
|
47
|
+
* @param {{ event?: MouseEvent; params: IApiExportParams }} args
|
|
48
48
|
* @returns {*} {Promise<void>}
|
|
49
49
|
* @memberof IGridController
|
|
50
50
|
*/
|
|
51
51
|
exportData(args: {
|
|
52
|
-
event
|
|
53
|
-
params
|
|
52
|
+
event?: MouseEvent;
|
|
53
|
+
params?: IApiExportParams;
|
|
54
54
|
}): Promise<void>;
|
|
55
55
|
}
|
|
56
56
|
interface AdditionalProperties {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-grid.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-grid.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,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;AACjE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACnC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAElC;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE;QACf,KAAK,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"i-grid.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-grid.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,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;AACjE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACnC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAElC;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE;QACf,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnB;AAED,UAAU,oBAAoB;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CACzC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aACf,SAAQ,iBAAiB,EACvB,oBAAoB;CAAG"}
|
|
@@ -3,7 +3,7 @@ import { IDataAbilityParams } from '../../../common';
|
|
|
3
3
|
import { IMDControlEvent } from '../../event';
|
|
4
4
|
import { IMDControlState } from '../../state';
|
|
5
5
|
import { IControlController } from './i-control.controller';
|
|
6
|
-
import { IApiMDControlController, IApiMDCtrlLoadParams, IApiMDCtrlRemoveParams } from '../../../api';
|
|
6
|
+
import { IApiMDControlController, IApiMDCtrlLoadParams, IApiMDCtrlRemoveParams, IApiExportParams } from '../../../api';
|
|
7
7
|
import { IViewController } from '../view';
|
|
8
8
|
/**
|
|
9
9
|
* @description 多数据部件控制器加载参数
|
|
@@ -53,12 +53,13 @@ export interface IMDControlController<T extends IMDControl = IMDControl, S exten
|
|
|
53
53
|
openNavView(data?: IData): void;
|
|
54
54
|
/**
|
|
55
55
|
* @description 导出数据
|
|
56
|
-
* @param {{ event
|
|
56
|
+
* @param {{ event?: MouseEvent; params?: IApiExportParams }} _args
|
|
57
57
|
* @returns {*} {Promise<void>}
|
|
58
58
|
* @memberof IMDControlController
|
|
59
59
|
*/
|
|
60
60
|
exportData(_args: {
|
|
61
|
-
event
|
|
61
|
+
event?: MouseEvent;
|
|
62
|
+
params?: IApiExportParams;
|
|
62
63
|
}): Promise<void>;
|
|
63
64
|
}
|
|
64
65
|
//# sourceMappingURL=i-md-control.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-md-control.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-md-control.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"i-md-control.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/control/i-md-control.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C;;;;;;GAMG;AACH,MAAM,WAAW,gBACf,SAAQ,kBAAkB,EACxB,oBAAoB;CAAG;AAE3B;;;;;;GAMG;AACH,MAAM,WAAW,kBACf,SAAQ,kBAAkB,EACxB,sBAAsB;CAAG;AAE7B;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB,CACnC,CAAC,SAAS,UAAU,GAAG,UAAU,EACjC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3C,CAAC,SAAS,eAAe,GAAG,eAAe,CAC3C,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EACjC,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;;OAGG;IACH,mBAAmB,IAAI,IAAI,CAAC;IAE5B;;;;OAIG;IACH,WAAW,CAAC,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAEhC;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE;QAChB,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,MAAM,CAAC,EAAE,gBAAgB,CAAC;KAC3B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,WAAW,EAEX,aAAa,EACb,cAAc,EACf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAIL,cAAc,EACd,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;IACvD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAgG3B;;;;;;;;OAQG;cACa,OAAO,CACrB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAkC3B;;;;;;OAMG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAkEhB;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA6B3B;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"front-ui-action-provider.d.ts","sourceRoot":"","sources":["../../../src/ui-action/provider/front-ui-action-provider.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,WAAW,EAEX,aAAa,EACb,cAAc,EACf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAIL,cAAc,EACd,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,oBAAoB;IACvD,UAAU,CACd,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAgG3B;;;;;;;;OAQG;cACa,OAAO,CACrB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAkC3B;;;;;;OAMG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAkEhB;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA6B3B;;;;;;OAMG;cACa,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC;IAiHhB;;;;;;;;OAQG;cACa,YAAY,CAC1B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IA+D3B;;;;;;;;OAQG;cACa,aAAa,CAC3B,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;IAuD3B;;;;;;;;OAQG;IACH,SAAS,CAAC,kBAAkB,CAC1B,SAAS,EAAE,WAAW,GAAG,SAAS,EAClC,WAAW,CAAC,EAAE,aAAa,GAC1B,WAAW,GAAG,SAAS;IAc1B;;;;;;;;OAQG;cACa,UAAU,CACxB,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,eAAe,CAAC;CA0B5B"}
|
|
@@ -246,15 +246,31 @@ export class FrontUIActionProvider extends UIActionProviderBase {
|
|
|
246
246
|
// 多项数据和多项数据主键如果没有选择全部界面参数则认为导出选中行
|
|
247
247
|
const { actionTarget } = action;
|
|
248
248
|
if ((actionTarget === 'MULTIDATA' || actionTarget === 'MULTIKEY') &&
|
|
249
|
-
|
|
249
|
+
args.view) {
|
|
250
250
|
const srfexportdatakey = presetParams.srfexportdatakey || 'srfkey';
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
if (!args.params.srfallselected) {
|
|
252
|
+
await args.view.call(SysUIActionTag.EXPORT_EXCEL, {
|
|
253
|
+
params: {
|
|
254
|
+
type: 'selectedRows',
|
|
255
|
+
srfexportdatakey,
|
|
256
|
+
srfexportdataset: exportDatasetCodeName,
|
|
257
|
+
srfdataexport: appDEDataExport,
|
|
258
|
+
srfdatatype: resultContext.srfdatatype,
|
|
259
|
+
},
|
|
255
260
|
});
|
|
256
261
|
}
|
|
257
|
-
|
|
262
|
+
else {
|
|
263
|
+
await args.view.call(SysUIActionTag.EXPORT_EXCEL, {
|
|
264
|
+
params: {
|
|
265
|
+
type: 'maxRowCount',
|
|
266
|
+
srfexportdatakey,
|
|
267
|
+
srfexportdataset: exportDatasetCodeName,
|
|
268
|
+
srfdataexport: appDEDataExport,
|
|
269
|
+
srfdatatype: resultContext.srfdatatype,
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
return;
|
|
258
274
|
}
|
|
259
275
|
// 如果srfallselected存在需要删除,规范化参数
|
|
260
276
|
if (params &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.119",
|
|
4
4
|
"description": "运行时逻辑库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"jsencrypt": "^3.3.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@ibiz-template/core": "^0.7.41-alpha.
|
|
42
|
+
"@ibiz-template/core": "^0.7.41-alpha.119",
|
|
43
43
|
"@ibiz/model-core": "^0.1.89",
|
|
44
44
|
"@types/animejs": "^3.1.12",
|
|
45
45
|
"@types/path-browserify": "^1.0.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"qx-util": "^0.4.8",
|
|
71
71
|
"ramda": "^0.29.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "7d3a048b166b9dc02cd0381da7d7edbcd1e0c346"
|
|
74
74
|
}
|
|
@@ -96,6 +96,7 @@ export class GlobalConfig implements IGlobalConfig {
|
|
|
96
96
|
searchform: IGlobalSearchFormConfig = {
|
|
97
97
|
enableStoredFilters: true,
|
|
98
98
|
convertParamMode: 'default',
|
|
99
|
+
resetSearchMode: 'default',
|
|
99
100
|
};
|
|
100
101
|
|
|
101
102
|
// 全局树配置
|
|
@@ -132,6 +133,7 @@ export class GlobalConfig implements IGlobalConfig {
|
|
|
132
133
|
enhancedUI: false,
|
|
133
134
|
maxExportRowsDefault: 1000,
|
|
134
135
|
uiActionPermissionMode: 'default',
|
|
136
|
+
importTemplNameMode: 'default',
|
|
135
137
|
};
|
|
136
138
|
|
|
137
139
|
// 全局分页流布局配置
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
MDCtrlRemoveParams,
|
|
25
25
|
IToolbarController,
|
|
26
26
|
IMDControlController,
|
|
27
|
+
IApiExportParams,
|
|
27
28
|
} from '../../../interface';
|
|
28
29
|
import { calcDeCodeNameById } from '../../../model';
|
|
29
30
|
import { MDControlService, Srfuf } from '../../../service';
|
|
@@ -874,11 +875,14 @@ export class MDControlController<
|
|
|
874
875
|
/**
|
|
875
876
|
* 数据导出
|
|
876
877
|
*
|
|
877
|
-
* @param {MouseEvent}
|
|
878
|
+
* @param {{ event?: MouseEvent; params?: IApiExportParams }} _args 导出参数
|
|
878
879
|
* @returns {*} {Promise<void>}
|
|
879
880
|
* @memberof MDControlController
|
|
880
881
|
*/
|
|
881
|
-
async exportData(_args: {
|
|
882
|
+
async exportData(_args: {
|
|
883
|
+
event?: MouseEvent;
|
|
884
|
+
params?: IApiExportParams;
|
|
885
|
+
}): Promise<void> {
|
|
882
886
|
// const { dataExport, appEntity } = this.model;
|
|
883
887
|
// if (!dataExport) {
|
|
884
888
|
// throw new DefectModelError(this.model.source, '没有配置实体导出模型!');
|
|
@@ -66,6 +66,19 @@ export class SearchFormController
|
|
|
66
66
|
return ibiz.config.searchform.convertParamMode;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @description 重置搜索模式,default:默认模式,清空搜索参数并搜索;clearonly:仅清空搜索参数
|
|
71
|
+
* @readonly
|
|
72
|
+
* @type {('default' | 'clearonly')}
|
|
73
|
+
* @memberof SearchFormController
|
|
74
|
+
*/
|
|
75
|
+
get resetSearchMode(): 'default' | 'clearonly' {
|
|
76
|
+
if (this.controlParams.resetsearchmode) {
|
|
77
|
+
return this.controlParams.resetsearchmode;
|
|
78
|
+
}
|
|
79
|
+
return ibiz.config.searchform.resetSearchMode;
|
|
80
|
+
}
|
|
81
|
+
|
|
69
82
|
protected initState(): void {
|
|
70
83
|
super.initState();
|
|
71
84
|
this.state.storedFilters = [];
|
|
@@ -238,6 +251,7 @@ export class SearchFormController
|
|
|
238
251
|
*/
|
|
239
252
|
async reset(): Promise<void> {
|
|
240
253
|
await this.load();
|
|
254
|
+
if (this.resetSearchMode === 'clearonly') return;
|
|
241
255
|
await this.search();
|
|
242
256
|
}
|
|
243
257
|
|
|
@@ -1793,7 +1793,10 @@ export class GridController<
|
|
|
1793
1793
|
// 识别用户定义的视图参数导出数据集合
|
|
1794
1794
|
data = await this.loadData(
|
|
1795
1795
|
{ viewParam },
|
|
1796
|
-
{
|
|
1796
|
+
{
|
|
1797
|
+
srfexportdataset:
|
|
1798
|
+
params.srfexportdataset || this.params.srfexportdataset,
|
|
1799
|
+
},
|
|
1797
1800
|
);
|
|
1798
1801
|
} else if (type === 'selectedRows') {
|
|
1799
1802
|
data = this.getData();
|
|
@@ -1811,6 +1814,11 @@ export class GridController<
|
|
|
1811
1814
|
* @param params 额外参数
|
|
1812
1815
|
*/
|
|
1813
1816
|
async excuteBackendExport(params: IApiExportParams): Promise<void> {
|
|
1817
|
+
// 构建导出模型
|
|
1818
|
+
let tempDataExport = this.dataExport;
|
|
1819
|
+
if (params.srfdataexport) {
|
|
1820
|
+
tempDataExport = params.srfdataexport as IAppDEDataExport;
|
|
1821
|
+
}
|
|
1814
1822
|
// 准备参数
|
|
1815
1823
|
const fetchParams = await this.getFetchParams({ ...this.params });
|
|
1816
1824
|
let tempParams: IParams = {};
|
|
@@ -1829,7 +1837,8 @@ export class GridController<
|
|
|
1829
1837
|
);
|
|
1830
1838
|
}
|
|
1831
1839
|
// 用户通过视图参数srfexportdatakey指定导出选中数据的数据主键属性
|
|
1832
|
-
const srfexportdatakey =
|
|
1840
|
+
const srfexportdatakey =
|
|
1841
|
+
params.srfexportdatakey || this.params.srfexportdatakey || 'srfkey';
|
|
1833
1842
|
tempParams = {
|
|
1834
1843
|
page: 0,
|
|
1835
1844
|
srfkeys: selectedData.map(data => data[srfexportdatakey]).join(','),
|
|
@@ -1846,14 +1855,26 @@ export class GridController<
|
|
|
1846
1855
|
}
|
|
1847
1856
|
: {
|
|
1848
1857
|
size:
|
|
1849
|
-
|
|
1858
|
+
tempDataExport?.maxRowCount ||
|
|
1850
1859
|
ibiz.config.common.maxExportRowsDefault,
|
|
1851
1860
|
page: 0,
|
|
1852
1861
|
};
|
|
1853
1862
|
}
|
|
1863
|
+
// 自定义导出数据集,优先使用外部传入,避免被上面分支的整体赋值覆盖
|
|
1864
|
+
if (params.srfexportdataset) {
|
|
1865
|
+
tempParams.srfexportdataset = params.srfexportdataset;
|
|
1866
|
+
}
|
|
1854
1867
|
Object.assign(fetchParams, tempParams);
|
|
1868
|
+
|
|
1869
|
+
// 构建上下文
|
|
1870
|
+
const tempContext = clone(this.context);
|
|
1871
|
+
if (params.srfdatatype) {
|
|
1872
|
+
Object.assign(tempContext, {
|
|
1873
|
+
srfdatatype: params.srfdatatype,
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1855
1876
|
// 执行导出
|
|
1856
|
-
await this.service.exportData(
|
|
1877
|
+
await this.service.exportData(tempDataExport!, tempContext, fetchParams);
|
|
1857
1878
|
}
|
|
1858
1879
|
|
|
1859
1880
|
/**
|
|
@@ -1864,7 +1885,7 @@ export class GridController<
|
|
|
1864
1885
|
*/
|
|
1865
1886
|
async exportData(args: {
|
|
1866
1887
|
params: IApiExportParams;
|
|
1867
|
-
event
|
|
1888
|
+
event?: MouseEvent;
|
|
1868
1889
|
}): Promise<void> {
|
|
1869
1890
|
if (this.dataExport?.enableBackend) {
|
|
1870
1891
|
await this.excuteBackendExport(args.params);
|
|
@@ -698,7 +698,10 @@ export class MDCtrlController
|
|
|
698
698
|
// 识别用户定义的视图参数导出数据集合
|
|
699
699
|
data = await this.loadData(
|
|
700
700
|
{ viewParam },
|
|
701
|
-
{
|
|
701
|
+
{
|
|
702
|
+
srfexportdataset:
|
|
703
|
+
params.srfexportdataset || this.params.srfexportdataset,
|
|
704
|
+
},
|
|
702
705
|
);
|
|
703
706
|
} else if (type === 'selectedRows') {
|
|
704
707
|
data = this.getData();
|
|
@@ -768,6 +771,11 @@ export class MDCtrlController
|
|
|
768
771
|
* @memberof MDCtrlController
|
|
769
772
|
*/
|
|
770
773
|
async excuteBackendExport(params: IApiExportParams): Promise<void> {
|
|
774
|
+
// 构建导出模型
|
|
775
|
+
let tempDataExport = this.dataExport;
|
|
776
|
+
if (params.srfdataexport) {
|
|
777
|
+
tempDataExport = params.srfdataexport as IAppDEDataExport;
|
|
778
|
+
}
|
|
771
779
|
// 准备参数
|
|
772
780
|
const fetchParams = await this.getFetchParams({ ...this.params });
|
|
773
781
|
let tempParams: IParams = {};
|
|
@@ -786,7 +794,8 @@ export class MDCtrlController
|
|
|
786
794
|
);
|
|
787
795
|
}
|
|
788
796
|
// 用户通过视图参数srfexportdatakey指定导出选中数据的数据主键属性
|
|
789
|
-
const srfexportdatakey =
|
|
797
|
+
const srfexportdatakey =
|
|
798
|
+
params.srfexportdatakey || this.params.srfexportdatakey || 'srfkey';
|
|
790
799
|
tempParams = {
|
|
791
800
|
page: 0,
|
|
792
801
|
srfkeys: selectedData.map(data => data[srfexportdatakey]).join(','),
|
|
@@ -803,14 +812,25 @@ export class MDCtrlController
|
|
|
803
812
|
}
|
|
804
813
|
: {
|
|
805
814
|
size:
|
|
806
|
-
|
|
815
|
+
tempDataExport?.maxRowCount ||
|
|
807
816
|
ibiz.config.common.maxExportRowsDefault,
|
|
808
817
|
page: 0,
|
|
809
818
|
};
|
|
810
819
|
}
|
|
820
|
+
// 自定义导出数据集,优先使用外部传入,避免被上面分支的整体赋值覆盖
|
|
821
|
+
if (params.srfexportdataset) {
|
|
822
|
+
tempParams.srfexportdataset = params.srfexportdataset;
|
|
823
|
+
}
|
|
811
824
|
Object.assign(fetchParams, tempParams);
|
|
825
|
+
// 构建上下文
|
|
826
|
+
const tempContext = clone(this.context);
|
|
827
|
+
if (params.srfdatatype) {
|
|
828
|
+
Object.assign(tempContext, {
|
|
829
|
+
srfdatatype: params.srfdatatype,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
812
832
|
// 执行导出
|
|
813
|
-
await this.service.exportData(
|
|
833
|
+
await this.service.exportData(tempDataExport!, tempContext, fetchParams);
|
|
814
834
|
}
|
|
815
835
|
|
|
816
836
|
/**
|
|
@@ -489,23 +489,23 @@ export class ToolbarController<
|
|
|
489
489
|
itemState.visible = false;
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
|
-
|
|
493
|
-
if (
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
this.
|
|
504
|
-
(
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
492
|
+
const logicParams: IData = {};
|
|
493
|
+
if (_params) {
|
|
494
|
+
Object.assign(logicParams, { ..._params });
|
|
495
|
+
}
|
|
496
|
+
if (_data) {
|
|
497
|
+
logicParams.data = [_data];
|
|
498
|
+
}
|
|
499
|
+
// 遍历所有的项
|
|
500
|
+
recursiveIterate(
|
|
501
|
+
this.model,
|
|
502
|
+
(item: IDEToolbarItem) => {
|
|
503
|
+
const itemState = this.state.buttonsState[item.id!] as IButtonState;
|
|
504
|
+
if (!itemState) {
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
// 计算菜单项逻辑的预置逻辑
|
|
508
|
+
if (this.scheduler) {
|
|
509
509
|
// 计算项显示逻辑
|
|
510
510
|
if (itemState.visible) {
|
|
511
511
|
const dynaVisible = this.scheduler!.triggerItemVisible(
|
|
@@ -527,18 +527,18 @@ export class ToolbarController<
|
|
|
527
527
|
itemState.disabled = !dynaEnable;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
+
}
|
|
530
531
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}
|
|
532
|
+
// 如果有统一资源且当前项显示,无权限则隐藏
|
|
533
|
+
if (item.accessKey && itemState.visible) {
|
|
534
|
+
const permitted = app.authority.calcByResCode(item.accessKey);
|
|
535
|
+
if (!permitted) {
|
|
536
|
+
itemState.visible = false;
|
|
537
537
|
}
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{ childrenFields: ['detoolbarItems'] },
|
|
541
|
+
);
|
|
542
542
|
this.state.hideSeparator = formatSeparator(
|
|
543
543
|
'TOOLBAR',
|
|
544
544
|
this.model.detoolbarItems,
|
|
@@ -400,19 +400,21 @@ export async function openDataImport(opts: {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* 下载导入模版文件
|
|
404
|
-
* @author lxm
|
|
405
|
-
* @date 2024-04-15 05:49:53
|
|
403
|
+
* @description 下载导入模版文件
|
|
406
404
|
* @export
|
|
407
405
|
* @param {IAppDataEntity} appDataEntity
|
|
408
|
-
* @param {IAppDEDataImport} dataImport
|
|
409
|
-
* @
|
|
406
|
+
* @param {IAppDEDataImport} [dataImport]
|
|
407
|
+
* @param {IContext} [context]
|
|
408
|
+
* @param {IParams} [params]
|
|
409
|
+
* @param {string} [importTemplName]
|
|
410
|
+
* @returns {*} {Promise<void>}
|
|
410
411
|
*/
|
|
411
412
|
export async function downloadImportTemplate(
|
|
412
413
|
appDataEntity: IAppDataEntity,
|
|
413
414
|
dataImport?: IAppDEDataImport,
|
|
414
415
|
context?: IContext,
|
|
415
416
|
params?: IParams,
|
|
417
|
+
importTemplName?: string,
|
|
416
418
|
): Promise<void> {
|
|
417
419
|
let templateUrl = `/${appDataEntity.codeName2!.toLowerCase()}/importtemplate`;
|
|
418
420
|
const queryParam: IParams = { ...(params || {}) };
|
|
@@ -432,7 +434,12 @@ export async function downloadImportTemplate(
|
|
|
432
434
|
params: queryParam,
|
|
433
435
|
});
|
|
434
436
|
if (res.status === 200) {
|
|
435
|
-
|
|
437
|
+
let fileName = ibiz.util.file.getFileName(res);
|
|
438
|
+
// 如果有指定的导入模板名称则使用指定的名称作为文件名称
|
|
439
|
+
if (importTemplName) {
|
|
440
|
+
const bookType = fileName.split('.').pop();
|
|
441
|
+
fileName = `${importTemplName}.${bookType}`;
|
|
442
|
+
}
|
|
436
443
|
const blob = new Blob([res.data as Blob], {
|
|
437
444
|
type: 'application/vnd.ms-excel',
|
|
438
445
|
});
|
|
@@ -77,6 +77,15 @@ export interface IApiGlobalCommonConfig {
|
|
|
77
77
|
*/
|
|
78
78
|
mergeAppMenu: 'default' | 'disable';
|
|
79
79
|
|
|
80
|
+
/**
|
|
81
|
+
* @description 导入模板名称模式,值为 'default' 时表示使用实体逻辑名称作为导入模板名称,值为 'custom' 时表示使用实体导入模型名称作为导入模板名称
|
|
82
|
+
* @default default
|
|
83
|
+
* @platform web
|
|
84
|
+
* @type {('default' | 'custom')}
|
|
85
|
+
* @memberof IApiGlobalCommonConfig
|
|
86
|
+
*/
|
|
87
|
+
importTemplNameMode: 'default' | 'custom';
|
|
88
|
+
|
|
80
89
|
/**
|
|
81
90
|
* @description 界面行为权限校验模式,值为 'default' 时表示默认模式(单数据目标行为在多选时不禁用),值为 'strict' 时表示严格模式(单数据目标行为在多选时禁用)
|
|
82
91
|
* @type {('default' | 'strict')}
|
|
@@ -22,4 +22,14 @@ export interface IApiGlobalSearchFormConfig {
|
|
|
22
22
|
* @memberof IApiGlobalFormConfig
|
|
23
23
|
*/
|
|
24
24
|
convertParamMode: 'default' | 'searchconds';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description 重置搜索模式(default:默认模式,清空搜索参数并搜索;clearonly:仅清空搜索参数,不执行搜索)
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @default default
|
|
30
|
+
* @platform web
|
|
31
|
+
* @platform mob
|
|
32
|
+
* @memberof IApiGlobalFormConfig
|
|
33
|
+
*/
|
|
34
|
+
resetSearchMode: 'default' | 'clearonly';
|
|
25
35
|
}
|
|
@@ -24,4 +24,32 @@ export interface IApiExportParams {
|
|
|
24
24
|
* @memberof IApiExportParams
|
|
25
25
|
*/
|
|
26
26
|
endPage?: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @description 自定义导出数据主键属性
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IApiExportParams
|
|
32
|
+
*/
|
|
33
|
+
srfexportdatakey?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @description 自定义导出数据集
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof IApiExportParams
|
|
39
|
+
*/
|
|
40
|
+
srfexportdataset?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @description 自定义导出模型对象
|
|
44
|
+
* @type {IData}
|
|
45
|
+
* @memberof IApiExportParams
|
|
46
|
+
*/
|
|
47
|
+
srfdataexport?: IData;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @description 自定义导出数据类型
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof IApiExportParams
|
|
53
|
+
*/
|
|
54
|
+
srfdatatype?: string;
|
|
27
55
|
}
|
|
@@ -17,6 +17,7 @@ import { IApiSearchFormState } from '../../state';
|
|
|
17
17
|
* @ctrlparams {"name":"enablejsonschema","title":"是否启用jsonschema","parameterType":"boolean","defaultvalue":"false","description":"是否启用jsonschema。参数为true时,会请求服务获取jsonschema对象,并根据该对象的enumOptions属性值计算生成表单项编辑器的代码表数据集合"}
|
|
18
18
|
* @ctrlparams {"name":"jsonschemaparams","title":"请求jsonschema查询参数","parameterType":"string","defaultvalue":"","description":"启用jsonschema才生效,查询实体jsonschema附加额外业务查询参数"}
|
|
19
19
|
* @ctrlparams {"name":"showtipsicon","title":"是否显示属性标签提示图标","parameterType":"boolean","defaultvalue":"","description":"用于设置当前表单所有表单项标签是否显示提示图标,优先级大于全局显示属性提示图标配置","effectPlatform":"web"}
|
|
20
|
+
* @ctrlparams {"name":"resetsearchmode","title":"重置搜索模式","parameterType":"string","defaultvalue":"default","description":"default:默认模式,清空搜索参数并搜索;clearonly:仅清空搜索参数,不执行搜索"}
|
|
20
21
|
* @template T
|
|
21
22
|
* @template S
|
|
22
23
|
*/
|
|
@@ -37,9 +37,9 @@ export interface IApiTreeGridController<
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @description 数据导出
|
|
40
|
-
* @param {{ event
|
|
40
|
+
* @param {{ event?: MouseEvent; params?: IApiExportParams }} _args 导出参数
|
|
41
41
|
* @returns {*} {Promise<void>}
|
|
42
42
|
* @memberof IApiTreeGridController
|
|
43
43
|
*/
|
|
44
|
-
exportData(_args: {event
|
|
44
|
+
exportData(_args: {event?: MouseEvent;params?: IApiExportParams}): Promise<void>;
|
|
45
45
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ISysImage } from '@ibiz/model-core';
|
|
2
|
+
import { IApiContext, IApiParams } from '@ibiz-template/core';
|
|
2
3
|
import { IApiControlState } from './i-api-control.state';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -90,6 +91,20 @@ export interface IApiDRTabPagesState {
|
|
|
90
91
|
* @memberof IApiDRTabPagesState
|
|
91
92
|
*/
|
|
92
93
|
counterMode?: number;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @description 项上下文
|
|
97
|
+
* @type {IApiContext}
|
|
98
|
+
* @memberof IApiDRTabPagesState
|
|
99
|
+
*/
|
|
100
|
+
context?: IApiContext;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @description 项视图参数
|
|
104
|
+
* @type {IApiParams}
|
|
105
|
+
* @memberof IApiDRTabPagesState
|
|
106
|
+
*/
|
|
107
|
+
params?: IApiParams;
|
|
93
108
|
}
|
|
94
109
|
|
|
95
110
|
/**
|
|
@@ -147,4 +162,12 @@ export interface IApiDRTabState extends IApiControlState {
|
|
|
147
162
|
* @memberof IApiDRTabState
|
|
148
163
|
*/
|
|
149
164
|
hideEditItem?: boolean;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @description 给导航的视图附加的视图参数
|
|
168
|
+
* @type {IApiParams}
|
|
169
|
+
* @default {}
|
|
170
|
+
* @memberof IApiDRTabState
|
|
171
|
+
*/
|
|
172
|
+
expViewParams: IApiParams;
|
|
150
173
|
}
|
|
@@ -58,13 +58,13 @@ export interface IGridController<
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @description 导出数据
|
|
61
|
-
* @param {{ event
|
|
61
|
+
* @param {{ event?: MouseEvent; params: IApiExportParams }} args
|
|
62
62
|
* @returns {*} {Promise<void>}
|
|
63
63
|
* @memberof IGridController
|
|
64
64
|
*/
|
|
65
65
|
exportData(args: {
|
|
66
|
-
event
|
|
67
|
-
params
|
|
66
|
+
event?: MouseEvent;
|
|
67
|
+
params?: IApiExportParams;
|
|
68
68
|
}): Promise<void>;
|
|
69
69
|
}
|
|
70
70
|
|