@ibiz-template/runtime 0.7.5 → 0.7.7-dev.0
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 +540 -64
- package/dist/index.system.min.js +1 -1
- package/out/application.d.ts +1 -9
- package/out/application.d.ts.map +1 -1
- package/out/application.js +1 -2
- package/out/controller/common/view/view.controller.d.ts +11 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +26 -2
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts +80 -6
- package/out/controller/control/dashboard/custom-dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/custom-dashboard.controller.js +109 -14
- package/out/controller/control/dashboard/dashboard.controller.d.ts +8 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +17 -0
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.js +11 -0
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.js +11 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts +31 -2
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +62 -15
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts +15 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.state.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/view-portlet/view-portlet.controller.js +12 -0
- package/out/controller/control/form/form/form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form/form.controller.js +2 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +8 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +34 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts +18 -0
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +70 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +4 -1
- package/out/interface/common/i-app-service/i-app-service.d.ts +1 -9
- package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts +14 -0
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/view/i-view.controller.d.ts +8 -0
- package/out/interface/controller/controller/view/i-view.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts +15 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-wizard-panel.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-wizard-panel.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/portlet/i-portlet.state.d.ts +15 -0
- package/out/interface/controller/state/control/portlet/i-portlet.state.d.ts.map +1 -1
- package/out/interface/controller/state/view/i-view.state.d.ts +8 -0
- package/out/interface/controller/state/view/i-view.state.d.ts.map +1 -1
- package/out/service/de-service-util.d.ts.map +1 -1
- package/out/service/de-service-util.js +11 -2
- package/out/service/service/util/util.service.d.ts +55 -5
- package/out/service/service/util/util.service.d.ts.map +1 -1
- package/out/service/service/util/util.service.js +108 -6
- package/out/service/vo/tree-node-data/tree-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-node-data.js +7 -1
- package/out/utils/error-handler/default-error-handler.d.ts.map +1 -1
- package/out/utils/error-handler/default-error-handler.js +3 -0
- package/package.json +4 -4
package/out/application.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Net } from '@ibiz-template/core';
|
|
2
2
|
import { IAppDEUIAction, IAppFunc, IAppUtil, IApplication, IDEOPPriv, IDEUILogic } from '@ibiz/model-core';
|
|
3
|
-
import { AuthorityService, CodeListService, ConfigService, DEServiceUtil, MqttService
|
|
3
|
+
import { AuthorityService, CodeListService, ConfigService, DEServiceUtil, MqttService } from './service';
|
|
4
4
|
import { IAppService } from './interface';
|
|
5
5
|
/**
|
|
6
6
|
* 应用对象
|
|
@@ -69,14 +69,6 @@ export declare class Application implements IAppService {
|
|
|
69
69
|
* @type {AuthorityService}
|
|
70
70
|
*/
|
|
71
71
|
readonly authority: AuthorityService;
|
|
72
|
-
/**
|
|
73
|
-
* 应用功能组件服务
|
|
74
|
-
*
|
|
75
|
-
* @author tony001
|
|
76
|
-
* @date 2024-04-23 11:04:31
|
|
77
|
-
* @type {UtilService}
|
|
78
|
-
*/
|
|
79
|
-
readonly utilservice: UtilService;
|
|
80
72
|
/**
|
|
81
73
|
* mqtt 服务
|
|
82
74
|
*
|
package/out/application.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,aAAa,EACb,WAAW,
|
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AU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAMvC;;;;;;;OAOG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAqBxE;;;;;;;OAOG;IACG,SAAS,CACb,EAAE,EAAE,MAAM,EACV,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAajC;;;;;;;OAOG;IACG,YAAY,CAChB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAUlC;;;;;OAKG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB/B;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAGhB"}
|
package/out/application.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Net, getToken } from '@ibiz-template/core';
|
|
2
|
-
import { AuthorityService, CodeListService, ConfigService, DEServiceUtil, MqttService,
|
|
2
|
+
import { AuthorityService, CodeListService, ConfigService, DEServiceUtil, MqttService, } from './service';
|
|
3
3
|
/**
|
|
4
4
|
* 应用对象
|
|
5
5
|
*
|
|
@@ -45,7 +45,6 @@ export class Application {
|
|
|
45
45
|
this.deService = new DEServiceUtil(model);
|
|
46
46
|
this.codeList = new CodeListService(model);
|
|
47
47
|
this.authority = new AuthorityService(model);
|
|
48
|
-
this.utilservice = new UtilService(model);
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
50
|
* 初始化应用
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IPortalMessage } from '@ibiz-template/core';
|
|
1
2
|
import { IAppView } from '@ibiz/model-core';
|
|
2
3
|
import { LoadingState } from '../../utils/loading/loading.state';
|
|
3
4
|
import { IViewController, IViewEvent, IViewLayoutPanelController, IControlProvider, IModal, IModalData, IUIActionResult, IUILogicParams, IViewEngine, IViewMessage } from '../../../interface';
|
|
@@ -24,6 +25,7 @@ export declare class ViewController<T extends IAppView = IAppView, S extends IVi
|
|
|
24
25
|
[key: string]: IControlProvider;
|
|
25
26
|
};
|
|
26
27
|
engines: IViewEngine[];
|
|
28
|
+
error: IData;
|
|
27
29
|
slotProps: {
|
|
28
30
|
[key: string]: IData;
|
|
29
31
|
};
|
|
@@ -161,5 +163,14 @@ export declare class ViewController<T extends IAppView = IAppView, S extends IVi
|
|
|
161
163
|
* @protected
|
|
162
164
|
*/
|
|
163
165
|
protected convertMultipleLanguages(): void;
|
|
166
|
+
/**
|
|
167
|
+
* 处理视图错误
|
|
168
|
+
*
|
|
169
|
+
* @author tony001
|
|
170
|
+
* @date 2024-04-28 12:04:27
|
|
171
|
+
* @protected
|
|
172
|
+
* @param {IPortalMessage} msg
|
|
173
|
+
*/
|
|
174
|
+
protected handleViewError(msg: IPortalMessage): void;
|
|
164
175
|
}
|
|
165
176
|
//# sourceMappingURL=view.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/view/view.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/common/view/view.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EACL,eAAe,EACf,UAAU,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,MAAM,EACN,UAAU,EACV,eAAe,EACf,cAAc,EACd,WAAW,EACX,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,cAAc,E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;;;OAKG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAS1C;;;;;;;OAOG;IACH,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI;CAOrD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { notNilEmpty } from 'qx-util';
|
|
3
|
-
import { IBizContext, RuntimeError } from '@ibiz-template/core';
|
|
3
|
+
import { HttpError, IBizContext, RuntimeError, } from '@ibiz-template/core';
|
|
4
4
|
import { isEmpty, isNil, isNotNil } from 'ramda';
|
|
5
5
|
import { LoadingState } from '../../utils/loading/loading.state';
|
|
6
6
|
import { SysUIActionTag } from '../../../constant';
|
|
@@ -62,6 +62,7 @@ export class ViewController extends BaseController {
|
|
|
62
62
|
this.modal = new Modal({});
|
|
63
63
|
this.providers = {};
|
|
64
64
|
this.engines = [];
|
|
65
|
+
this.error = {};
|
|
65
66
|
this.slotProps = {};
|
|
66
67
|
this.counters = {};
|
|
67
68
|
/**
|
|
@@ -86,6 +87,7 @@ export class ViewController extends BaseController {
|
|
|
86
87
|
}
|
|
87
88
|
this.ctx.init(this);
|
|
88
89
|
this.initEngines();
|
|
90
|
+
this.handleViewError = this.handleViewError.bind(this);
|
|
89
91
|
}
|
|
90
92
|
/**
|
|
91
93
|
* 视图重新激活
|
|
@@ -150,7 +152,7 @@ export class ViewController extends BaseController {
|
|
|
150
152
|
if (appCounterRefs && appCounterRefs.length > 0) {
|
|
151
153
|
try {
|
|
152
154
|
await Promise.all(appCounterRefs.map(async (counterRef) => {
|
|
153
|
-
const counter = await CounterService.getCounterByRef(counterRef, this.context);
|
|
155
|
+
const counter = await CounterService.getCounterByRef(counterRef, this.context, Object.assign({}, this.params));
|
|
154
156
|
this.counters[counterRef.id] = counter;
|
|
155
157
|
}));
|
|
156
158
|
}
|
|
@@ -167,6 +169,7 @@ export class ViewController extends BaseController {
|
|
|
167
169
|
this.state.srfactiveviewdata = null;
|
|
168
170
|
this.state.viewMessages = {};
|
|
169
171
|
this.state.isClosing = false;
|
|
172
|
+
this.state.hasError = false;
|
|
170
173
|
}
|
|
171
174
|
async onCreated() {
|
|
172
175
|
await super.onCreated();
|
|
@@ -220,6 +223,8 @@ export class ViewController extends BaseController {
|
|
|
220
223
|
if (this.engines.length) {
|
|
221
224
|
await Promise.all(this.engines.map(engine => engine.onCreated()));
|
|
222
225
|
}
|
|
226
|
+
// 监听视图错误信息
|
|
227
|
+
ibiz.mc.error.on(this.handleViewError);
|
|
223
228
|
}
|
|
224
229
|
async onMounted() {
|
|
225
230
|
var _a;
|
|
@@ -251,6 +256,8 @@ export class ViewController extends BaseController {
|
|
|
251
256
|
}
|
|
252
257
|
this.context.destroy();
|
|
253
258
|
ibiz.log.debug(`视图[${this.model.name}](${this.model.id})销毁`);
|
|
259
|
+
// 销毁视图错误监听
|
|
260
|
+
ibiz.mc.error.off(this.handleViewError);
|
|
254
261
|
}
|
|
255
262
|
/**
|
|
256
263
|
* 处理上下文和导航参数相关的,如自定义导航参数的处理
|
|
@@ -268,6 +275,8 @@ export class ViewController extends BaseController {
|
|
|
268
275
|
const domain = ibiz.uiDomainManager.create(this.id);
|
|
269
276
|
this.context.srfsessionid = domain.id;
|
|
270
277
|
}
|
|
278
|
+
// 视图标识添加到上下文中
|
|
279
|
+
this.context.srfviewid = this.id;
|
|
271
280
|
// 处理自定义导航上下文
|
|
272
281
|
const navContexts = this.model.appViewNavContexts;
|
|
273
282
|
let context = {};
|
|
@@ -421,4 +430,19 @@ export class ViewController extends BaseController {
|
|
|
421
430
|
this.model.caption = ibiz.i18n.t(this.model.capLanguageRes.lanResTag, this.model.caption);
|
|
422
431
|
}
|
|
423
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* 处理视图错误
|
|
435
|
+
*
|
|
436
|
+
* @author tony001
|
|
437
|
+
* @date 2024-04-28 12:04:27
|
|
438
|
+
* @protected
|
|
439
|
+
* @param {IPortalMessage} msg
|
|
440
|
+
*/
|
|
441
|
+
handleViewError(msg) {
|
|
442
|
+
const { type, data } = msg;
|
|
443
|
+
if (type === 'ERROR' && data instanceof HttpError && data.tag === this.id) {
|
|
444
|
+
this.error = data;
|
|
445
|
+
this.state.hasError = true;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
424
448
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IDashboard } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
2
|
+
import { IBizParams } from '@ibiz-template/core';
|
|
3
|
+
import { ConfigService, UtilService } from '../../../service';
|
|
4
|
+
import { DashboardController } from './dashboard.controller';
|
|
3
5
|
/**
|
|
4
6
|
* 自定义数据看板部件控制器
|
|
5
7
|
* @author lxm
|
|
@@ -29,13 +31,20 @@ export declare class CustomDashboardController {
|
|
|
29
31
|
* @Date: 2023-09-20 16:43:39
|
|
30
32
|
*/
|
|
31
33
|
layoutRowH: number;
|
|
34
|
+
/**
|
|
35
|
+
* 门户配置
|
|
36
|
+
*
|
|
37
|
+
* @type {IData}
|
|
38
|
+
* @memberof CustomDashboardController
|
|
39
|
+
*/
|
|
40
|
+
portletConfig: IData;
|
|
32
41
|
/**
|
|
33
42
|
* 看板模型
|
|
34
43
|
*
|
|
35
44
|
* @author: zhujiamin
|
|
36
45
|
* @Date: 2023-09-20 16:43:39
|
|
37
46
|
*/
|
|
38
|
-
model: IDashboard
|
|
47
|
+
model: IDashboard;
|
|
39
48
|
/**
|
|
40
49
|
* 应用配置存储服务
|
|
41
50
|
*
|
|
@@ -43,27 +52,92 @@ export declare class CustomDashboardController {
|
|
|
43
52
|
* @author: zhujiamin
|
|
44
53
|
* @Date: 2023-09-22 18:07:42
|
|
45
54
|
*/
|
|
46
|
-
config: ConfigService;
|
|
55
|
+
config: ConfigService | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* 应用功能组件服务
|
|
58
|
+
*
|
|
59
|
+
* @author tony001
|
|
60
|
+
* @date 2024-04-24 14:04:46
|
|
61
|
+
* @type {UtilService}
|
|
62
|
+
*/
|
|
63
|
+
util: UtilService | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* 上下文对象
|
|
66
|
+
*
|
|
67
|
+
* @author tony001
|
|
68
|
+
* @date 2024-04-24 14:04:35
|
|
69
|
+
* @type {IContext}
|
|
70
|
+
*/
|
|
71
|
+
context: IContext;
|
|
72
|
+
/**
|
|
73
|
+
* 视图参数
|
|
74
|
+
*
|
|
75
|
+
* @author tony001
|
|
76
|
+
* @date 2024-04-24 14:04:42
|
|
77
|
+
* @type {IBizParams}
|
|
78
|
+
*/
|
|
79
|
+
params: IBizParams;
|
|
80
|
+
/**
|
|
81
|
+
* 自定义定制范围类型(public:公开,personal:个人,data:数据,默认是按照个人区分,配置了应用功能组件才生效)
|
|
82
|
+
*
|
|
83
|
+
* @author tony001
|
|
84
|
+
* @date 2024-04-24 19:04:47
|
|
85
|
+
* @type {('public' | 'personal' | 'data')}
|
|
86
|
+
*/
|
|
87
|
+
type: 'public' | 'personal' | 'data';
|
|
88
|
+
/**
|
|
89
|
+
* 所属数据类型(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
90
|
+
*
|
|
91
|
+
* @author tony001
|
|
92
|
+
* @date 2024-04-24 19:04:06
|
|
93
|
+
* @type {string}
|
|
94
|
+
*/
|
|
95
|
+
ownerType: string;
|
|
96
|
+
/**
|
|
97
|
+
* 所属数据标识(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
98
|
+
*
|
|
99
|
+
* @author tony001
|
|
100
|
+
* @date 2024-04-24 19:04:18
|
|
101
|
+
* @type {string}
|
|
102
|
+
*/
|
|
103
|
+
ownerId: string;
|
|
47
104
|
/**
|
|
48
105
|
* Creates an instance of BaseController.
|
|
49
106
|
* @author lxm
|
|
50
107
|
* @date 2023-04-26 06:46:21
|
|
51
108
|
* @param {CTX} ctx 跨组件上下文环境,内部机制不暴露
|
|
52
109
|
*/
|
|
53
|
-
constructor(model: IDashboard);
|
|
110
|
+
constructor(model: IDashboard, dashboard: DashboardController);
|
|
111
|
+
/**
|
|
112
|
+
* 初始化
|
|
113
|
+
*
|
|
114
|
+
* @author tony001
|
|
115
|
+
* @date 2024-04-24 20:04:14
|
|
116
|
+
* @private
|
|
117
|
+
*/
|
|
118
|
+
private init;
|
|
119
|
+
/**
|
|
120
|
+
* 获取资源标识
|
|
121
|
+
*
|
|
122
|
+
* @author tony001
|
|
123
|
+
* @date 2024-04-24 14:04:55
|
|
124
|
+
* @private
|
|
125
|
+
* @return {*} {string}
|
|
126
|
+
*/
|
|
127
|
+
private getResourceTag;
|
|
54
128
|
/**
|
|
55
129
|
* 加载自定义布局模型数据
|
|
56
130
|
*
|
|
57
131
|
* @author: zhujiamin
|
|
58
132
|
* @Date: 2023-09-20 16:22:49
|
|
59
133
|
*/
|
|
60
|
-
loadCustomModelData(): Promise<IData
|
|
134
|
+
loadCustomModelData(): Promise<IData>;
|
|
61
135
|
/**
|
|
62
136
|
* 保存自定义布局模型数据
|
|
63
137
|
*
|
|
64
138
|
* @author: zhujiamin
|
|
65
139
|
* @Date: 2023-09-20 16:22:49
|
|
66
140
|
*/
|
|
67
|
-
saveCustomModelData(model: IData[]): Promise<IData
|
|
141
|
+
saveCustomModelData(model: IData[], config?: IData): Promise<IData>;
|
|
68
142
|
}
|
|
69
143
|
//# sourceMappingURL=custom-dashboard.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/custom-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/custom-dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,aAAa,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自定义数据看板部件控制器
|
|
4
5
|
* @author lxm
|
|
@@ -13,8 +14,7 @@ export class CustomDashboardController {
|
|
|
13
14
|
* @date 2023-04-26 06:46:21
|
|
14
15
|
* @param {CTX} ctx 跨组件上下文环境,内部机制不暴露
|
|
15
16
|
*/
|
|
16
|
-
constructor(model) {
|
|
17
|
-
var _a, _b;
|
|
17
|
+
constructor(model, dashboard) {
|
|
18
18
|
/**
|
|
19
19
|
* 自定义布局模型数据
|
|
20
20
|
*
|
|
@@ -37,14 +37,91 @@ export class CustomDashboardController {
|
|
|
37
37
|
*/
|
|
38
38
|
this.layoutRowH = 80;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* 门户配置
|
|
41
41
|
*
|
|
42
|
-
* @
|
|
43
|
-
* @
|
|
42
|
+
* @type {IData}
|
|
43
|
+
* @memberof CustomDashboardController
|
|
44
|
+
*/
|
|
45
|
+
this.portletConfig = {};
|
|
46
|
+
/**
|
|
47
|
+
* 自定义定制范围类型(public:公开,personal:个人,data:数据,默认是按照个人区分,配置了应用功能组件才生效)
|
|
48
|
+
*
|
|
49
|
+
* @author tony001
|
|
50
|
+
* @date 2024-04-24 19:04:47
|
|
51
|
+
* @type {('public' | 'personal' | 'data')}
|
|
52
|
+
*/
|
|
53
|
+
this.type = 'personal';
|
|
54
|
+
/**
|
|
55
|
+
* 所属数据类型(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
56
|
+
*
|
|
57
|
+
* @author tony001
|
|
58
|
+
* @date 2024-04-24 19:04:06
|
|
59
|
+
* @type {string}
|
|
44
60
|
*/
|
|
45
|
-
this.
|
|
61
|
+
this.ownerType = '';
|
|
62
|
+
/**
|
|
63
|
+
* 所属数据标识(仅限自定义定制为data类型时生效,配置了应用功能组件才生效)
|
|
64
|
+
*
|
|
65
|
+
* @author tony001
|
|
66
|
+
* @date 2024-04-24 19:04:18
|
|
67
|
+
* @type {string}
|
|
68
|
+
*/
|
|
69
|
+
this.ownerId = '';
|
|
46
70
|
this.model = model;
|
|
47
|
-
this.
|
|
71
|
+
this.context = dashboard.context;
|
|
72
|
+
this.params = dashboard.params;
|
|
73
|
+
this.init(dashboard.controlParams);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 初始化
|
|
77
|
+
*
|
|
78
|
+
* @author tony001
|
|
79
|
+
* @date 2024-04-24 20:04:14
|
|
80
|
+
* @private
|
|
81
|
+
*/
|
|
82
|
+
init(controlParams) {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
// 默认走个人
|
|
85
|
+
this.type = 'personal';
|
|
86
|
+
this.ownerId = this.context.srfpersonid;
|
|
87
|
+
// 识别动态控件参数
|
|
88
|
+
if (controlParams.type) {
|
|
89
|
+
this.type = controlParams.type;
|
|
90
|
+
}
|
|
91
|
+
if (controlParams.owner_type) {
|
|
92
|
+
this.ownerType = controlParams.owner_type;
|
|
93
|
+
}
|
|
94
|
+
if (controlParams.owner_id) {
|
|
95
|
+
this.ownerId = this.context[controlParams.owner_id];
|
|
96
|
+
}
|
|
97
|
+
// 配置了应用功能组件则走应用功能组件服务存储,否则走rt的config存储
|
|
98
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
99
|
+
const app = ibiz.hub.getApp(this.context.srfappid);
|
|
100
|
+
this.util = new UtilService(app.getAppUtil(this.model.appDynaDashboardUtilId));
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.config = new ConfigService(this.model.appId, 'dynadashboard', `dashboard_${((_a = this.model.appDataEntityId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'app'}_${(_b = this.model.codeName) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* 获取资源标识
|
|
108
|
+
*
|
|
109
|
+
* @author tony001
|
|
110
|
+
* @date 2024-04-24 14:04:55
|
|
111
|
+
* @private
|
|
112
|
+
* @return {*} {string}
|
|
113
|
+
*/
|
|
114
|
+
getResourceTag() {
|
|
115
|
+
var _a, _b;
|
|
116
|
+
const base = `${this.context.srfappid}_dashboard_${((_a = this.model.appDataEntityId) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'app'}_${(_b = this.model.codeName) === null || _b === void 0 ? void 0 : _b.toLowerCase()}`;
|
|
117
|
+
switch (this.type) {
|
|
118
|
+
case 'personal':
|
|
119
|
+
return `${base}_${this.context.srfpersonid}`;
|
|
120
|
+
case 'data':
|
|
121
|
+
return `${base}_${this.ownerType}_${this.ownerId}`;
|
|
122
|
+
default:
|
|
123
|
+
return base;
|
|
124
|
+
}
|
|
48
125
|
}
|
|
49
126
|
/**
|
|
50
127
|
* 加载自定义布局模型数据
|
|
@@ -53,7 +130,13 @@ export class CustomDashboardController {
|
|
|
53
130
|
* @Date: 2023-09-20 16:22:49
|
|
54
131
|
*/
|
|
55
132
|
async loadCustomModelData() {
|
|
56
|
-
|
|
133
|
+
let res;
|
|
134
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
135
|
+
res = await this.util.load(this.getResourceTag(), this.context, this.params);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
res = await this.config.load();
|
|
139
|
+
}
|
|
57
140
|
if (res.model) {
|
|
58
141
|
this.customModelData = res.model;
|
|
59
142
|
}
|
|
@@ -63,7 +146,10 @@ export class CustomDashboardController {
|
|
|
63
146
|
if (res.rowH) {
|
|
64
147
|
this.layoutRowH = res.rowH;
|
|
65
148
|
}
|
|
66
|
-
|
|
149
|
+
if (res.config) {
|
|
150
|
+
this.portletConfig = res.config;
|
|
151
|
+
}
|
|
152
|
+
return { model: this.customModelData, config: this.portletConfig };
|
|
67
153
|
}
|
|
68
154
|
/**
|
|
69
155
|
* 保存自定义布局模型数据
|
|
@@ -71,15 +157,24 @@ export class CustomDashboardController {
|
|
|
71
157
|
* @author: zhujiamin
|
|
72
158
|
* @Date: 2023-09-20 16:22:49
|
|
73
159
|
*/
|
|
74
|
-
async saveCustomModelData(model) {
|
|
75
|
-
|
|
160
|
+
async saveCustomModelData(model, config = {}) {
|
|
161
|
+
merge(this.portletConfig, config);
|
|
162
|
+
let res;
|
|
163
|
+
const data = {
|
|
76
164
|
model,
|
|
77
165
|
colNum: this.layoutColNum,
|
|
78
166
|
rowH: this.layoutRowH,
|
|
79
|
-
|
|
167
|
+
config: this.portletConfig,
|
|
168
|
+
};
|
|
169
|
+
if (this.model.appDynaDashboardUtilId) {
|
|
170
|
+
res = await this.util.save(this.getResourceTag(), this.context, Object.assign(Object.assign({}, this.params), { type: this.type, ownerType: this.ownerType, ownerId: this.ownerId, modelId: this.model.id }), data);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
res = await this.config.save(data);
|
|
174
|
+
}
|
|
80
175
|
if (res) {
|
|
81
176
|
this.customModelData = model;
|
|
82
177
|
}
|
|
83
|
-
return model;
|
|
178
|
+
return { model, config: this.portletConfig };
|
|
84
179
|
}
|
|
85
180
|
}
|
|
@@ -43,6 +43,14 @@ export declare class DashboardController extends ControlController<IDashboard, I
|
|
|
43
43
|
* @returns {*} {Promise<void>}
|
|
44
44
|
*/
|
|
45
45
|
initPortlets(portletModels: IDBPortletPart[], parent?: IPortletContainerController): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* 初始化
|
|
48
|
+
*
|
|
49
|
+
* @param {IData} [config={}]
|
|
50
|
+
* @return {*} {Promise<void>}
|
|
51
|
+
* @memberof DashboardController
|
|
52
|
+
*/
|
|
53
|
+
initPortletsConfig(config?: IData): Promise<void>;
|
|
46
54
|
/**
|
|
47
55
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
48
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,mBACX,SAAQ,iBAAiB,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CACtE,YAAW,oBAAoB;IAE/B;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAM;IAEpD;;;;;;OAMG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAErD,SAAS,CAAC,SAAS,IAAI,IAAI;cAIX,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;;;;;;OAQG;IACG,YAAY,CAChB,aAAa,EAAE,cAAc,EAAE,EAC/B,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC;IAuChB;;;;;;OAMG;IACG,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAQnD"}
|
|
1
|
+
{"version":3,"file":"dashboard.controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/control/dashboard/dashboard.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEV,cAAc,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,mBACX,SAAQ,iBAAiB,CAAC,UAAU,EAAE,eAAe,EAAE,eAAe,CACtE,YAAW,oBAAoB;IAE/B;;;;;;OAMG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAM;IAEpD;;;;;;OAMG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAM;IAErD,SAAS,CAAC,SAAS,IAAI,IAAI;cAIX,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB1C;;;;;;;;OAQG;IACG,YAAY,CAChB,aAAa,EAAE,cAAc,EAAE,EAC/B,MAAM,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,IAAI,CAAC;IAuChB;;;;;;OAMG;IACG,kBAAkB,CAAC,MAAM,GAAE,KAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAW3D;;;;;;OAMG;IACG,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;CAQnD"}
|
|
@@ -86,6 +86,23 @@ export class DashboardController extends ControlController {
|
|
|
86
86
|
}
|
|
87
87
|
}));
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* 初始化
|
|
91
|
+
*
|
|
92
|
+
* @param {IData} [config={}]
|
|
93
|
+
* @return {*} {Promise<void>}
|
|
94
|
+
* @memberof DashboardController
|
|
95
|
+
*/
|
|
96
|
+
async initPortletsConfig(config = {}) {
|
|
97
|
+
Object.keys(config).forEach((key) => {
|
|
98
|
+
const portlet = this.portlets[key];
|
|
99
|
+
if (portlet) {
|
|
100
|
+
portlet.config = config[key];
|
|
101
|
+
portlet.state.title = portlet.config.srftitle;
|
|
102
|
+
Object.assign(portlet.params, portlet.config);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
89
106
|
/**
|
|
90
107
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
91
108
|
*
|
package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IDBChartPortlet } from '@ibiz/model-core';
|
|
2
2
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
3
3
|
export declare class ChartPortletController extends PortletPartController<IDBChartPortlet> {
|
|
4
|
+
/**
|
|
5
|
+
* 刷新门户部件
|
|
6
|
+
*
|
|
7
|
+
* @author zzq
|
|
8
|
+
* @date 2024-04-25 10:03:33
|
|
9
|
+
*/
|
|
10
|
+
refresh(): void;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=chart-portlet.controller.d.ts.map
|
package/out/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"chart-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/chart-portlet/chart-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,qBAAa,sBAAuB,SAAQ,qBAAqB,CAAC,eAAe,CAAC;IAChF;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
2
2
|
export class ChartPortletController extends PortletPartController {
|
|
3
|
+
/**
|
|
4
|
+
* 刷新门户部件
|
|
5
|
+
*
|
|
6
|
+
* @author zzq
|
|
7
|
+
* @date 2024-04-25 10:03:33
|
|
8
|
+
*/
|
|
9
|
+
refresh() {
|
|
10
|
+
if (this.contentController) {
|
|
11
|
+
this.contentController.refresh();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IDBListPortletPart } from '@ibiz/model-core';
|
|
2
2
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
3
3
|
export declare class ListPortletController extends PortletPartController<IDBListPortletPart> {
|
|
4
|
+
/**
|
|
5
|
+
* 刷新门户部件
|
|
6
|
+
*
|
|
7
|
+
* @author zzq
|
|
8
|
+
* @date 2024-04-25 10:03:33
|
|
9
|
+
*/
|
|
10
|
+
refresh(): void;
|
|
4
11
|
}
|
|
5
12
|
//# sourceMappingURL=list-portlet.controller.d.ts.map
|
package/out/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"list-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/controller/control/dashboard/portlet/list-portlet/list-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,qBAAa,qBAAsB,SAAQ,qBAAqB,CAAC,kBAAkB,CAAC;IAClF;;;;;OAKG;IACH,OAAO,IAAI,IAAI;CAKhB"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { PortletPartController } from '../portlet-part/portlet-part.controller';
|
|
2
2
|
export class ListPortletController extends PortletPartController {
|
|
3
|
+
/**
|
|
4
|
+
* 刷新门户部件
|
|
5
|
+
*
|
|
6
|
+
* @author zzq
|
|
7
|
+
* @date 2024-04-25 10:03:33
|
|
8
|
+
*/
|
|
9
|
+
refresh() {
|
|
10
|
+
if (this.contentController) {
|
|
11
|
+
this.contentController.refresh();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDBPortletPart, IUIActionGroupDetail } from '@ibiz/model-core';
|
|
2
|
-
import { IPortletController, IDashboardController, IPortletContainerController, DataChangeEvent } from '../../../../../interface';
|
|
2
|
+
import { IPortletController, IDashboardController, IPortletContainerController, DataChangeEvent, IController } from '../../../../../interface';
|
|
3
3
|
import { PortletPartState } from './portlet-part.state';
|
|
4
4
|
/**
|
|
5
5
|
* 门户部件控制器基类
|
|
@@ -52,7 +52,14 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
52
52
|
* @readonly
|
|
53
53
|
* @type {IParams}
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
readonly params: IParams;
|
|
56
|
+
/**
|
|
57
|
+
* 门户配置
|
|
58
|
+
*
|
|
59
|
+
* @type {IData}
|
|
60
|
+
* @memberof PortletPartController
|
|
61
|
+
*/
|
|
62
|
+
config: IData;
|
|
56
63
|
/**
|
|
57
64
|
* 获取容器类名集合
|
|
58
65
|
* @author lxm
|
|
@@ -61,6 +68,14 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
61
68
|
* @type {string[]}
|
|
62
69
|
*/
|
|
63
70
|
get containerClass(): string[];
|
|
71
|
+
/**
|
|
72
|
+
* 内容控制器
|
|
73
|
+
* @author zzq
|
|
74
|
+
* @readonly
|
|
75
|
+
* @type {IController | undefined}
|
|
76
|
+
* @memberof PortletPartController
|
|
77
|
+
*/
|
|
78
|
+
get contentController(): IController | undefined;
|
|
64
79
|
/**
|
|
65
80
|
* Creates an instance of PortletPartController.
|
|
66
81
|
* @author lxm
|
|
@@ -87,6 +102,20 @@ export declare class PortletPartController<T extends IDBPortletPart = IDBPortlet
|
|
|
87
102
|
* @memberof PortletPartController
|
|
88
103
|
*/
|
|
89
104
|
protected createState(): PortletPartState;
|
|
105
|
+
/**
|
|
106
|
+
* 刷新门户部件
|
|
107
|
+
*
|
|
108
|
+
* @author zzq
|
|
109
|
+
* @date 2024-04-25 10:03:33
|
|
110
|
+
*/
|
|
111
|
+
refresh(): void;
|
|
112
|
+
/**
|
|
113
|
+
* 设置配置数据
|
|
114
|
+
*
|
|
115
|
+
* @param {IData} config
|
|
116
|
+
* @memberof PortletPartController
|
|
117
|
+
*/
|
|
118
|
+
setConfig(config: IData): Promise<void>;
|
|
90
119
|
/**
|
|
91
120
|
* 数据改变方法
|
|
92
121
|
* @param {DataChangeEvent} event
|