@ibiz-template/runtime 0.7.4 → 0.7.6
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 +704 -78
- package/dist/index.system.min.js +1 -1
- package/out/application.d.ts +10 -1
- package/out/application.d.ts.map +1 -1
- package/out/application.js +13 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +12 -8
- 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 +37 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +135 -1
- 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/controller/utils/view-msg/view-msg-controller.d.ts +10 -1
- package/out/controller/utils/view-msg/view-msg-controller.d.ts.map +1 -1
- package/out/controller/utils/view-msg/view-msg-controller.js +17 -3
- package/out/interface/common/i-app-service/i-app-service.d.ts +10 -1
- package/out/interface/common/i-app-service/i-app-service.d.ts.map +1 -1
- package/out/interface/controller/common/view-message/i-view-message.d.ts +8 -0
- package/out/interface/controller/common/view-message/i-view-message.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/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-drtab.state.d.ts +7 -0
- package/out/interface/controller/state/control/i-drtab.state.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/service/service/control/control.service.js +1 -1
- package/out/service/service/index.d.ts +1 -0
- package/out/service/service/index.d.ts.map +1 -1
- package/out/service/service/index.js +1 -0
- package/out/service/service/util/util.service.d.ts +93 -0
- package/out/service/service/util/util.service.d.ts.map +1 -0
- package/out/service/service/util/util.service.js +148 -0
- package/out/ui-logic/ui-logic-param/ui-logic-param.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +21 -9
- package/out/utils/nav-params/nav-params.d.ts +2 -0
- package/out/utils/nav-params/nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/nav-params.js +25 -1
- package/package.json +3 -3
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { RuntimeError } from '@ibiz-template/core';
|
|
2
2
|
import { calcDeCodeNameById } from '../../../model';
|
|
3
3
|
import { getControlProvider } from '../../../register';
|
|
4
|
+
import { ControlVO } from '../../../service';
|
|
5
|
+
import { ScriptFactory } from '../../../utils';
|
|
4
6
|
import { ControlController } from '../../common';
|
|
7
|
+
import { ButtonContainerState, UIActionButtonState } from '../../utils';
|
|
5
8
|
import { WizardPanelService } from './wizard-panel.service';
|
|
6
9
|
/**
|
|
7
10
|
* 向导面板控制器
|
|
@@ -68,14 +71,22 @@ export class WizardPanelController extends ControlController {
|
|
|
68
71
|
*/
|
|
69
72
|
this.formData = {};
|
|
70
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* 获取向导面板数据
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
getData() {
|
|
79
|
+
return [this.formData];
|
|
80
|
+
}
|
|
71
81
|
initState() {
|
|
72
82
|
super.initState();
|
|
83
|
+
this.state.buttonsState = new ButtonContainerState();
|
|
73
84
|
}
|
|
74
85
|
async onCreated() {
|
|
75
86
|
var _a, _b;
|
|
76
87
|
await super.onCreated();
|
|
77
88
|
this.model.dewizard.dewizardForms.forEach((wizardForm) => {
|
|
78
|
-
var _a, _b, _c;
|
|
89
|
+
var _a, _b, _c, _d;
|
|
79
90
|
// 首表单
|
|
80
91
|
if (wizardForm.firstForm) {
|
|
81
92
|
this.firstForm = wizardForm;
|
|
@@ -87,7 +98,16 @@ export class WizardPanelController extends ControlController {
|
|
|
87
98
|
});
|
|
88
99
|
const stepTag = wizardStep === null || wizardStep === void 0 ? void 0 : wizardStep.stepTag;
|
|
89
100
|
this.stepTags[formName] = stepTag;
|
|
101
|
+
// 按钮状态如果有脚本代码则默认隐藏
|
|
102
|
+
(_d = wizardForm.stepActions) === null || _d === void 0 ? void 0 : _d.forEach(step => {
|
|
103
|
+
const name = `${wizardForm.formTag}@${step}`;
|
|
104
|
+
const buttonState = new UIActionButtonState(name, this.context.srfappid);
|
|
105
|
+
buttonState.visible = !this.getStepScriptCode(wizardForm, step);
|
|
106
|
+
this.state.buttonsState.addState(name, buttonState);
|
|
107
|
+
});
|
|
90
108
|
});
|
|
109
|
+
// 按钮初始化
|
|
110
|
+
this.state.buttonsState.init();
|
|
91
111
|
// 步骤集合
|
|
92
112
|
(_b = (_a = this.model.dewizard) === null || _a === void 0 ? void 0 : _a.dewizardSteps) === null || _b === void 0 ? void 0 : _b.forEach(step => {
|
|
93
113
|
this.steps.push(step.stepTag);
|
|
@@ -153,8 +173,12 @@ export class WizardPanelController extends ControlController {
|
|
|
153
173
|
async onFormMounted(activeFormTag, event) {
|
|
154
174
|
const formController = event.ctrl;
|
|
155
175
|
this.formControllers.set(activeFormTag, formController);
|
|
176
|
+
formController.evt.on('onFormDataChange', evt => {
|
|
177
|
+
this.calcButtonState(evt.data[0]);
|
|
178
|
+
});
|
|
156
179
|
// 调用表单的load加载一次数据
|
|
157
180
|
const data = await formController.load();
|
|
181
|
+
this.calcButtonState(formController.data);
|
|
158
182
|
Object.assign(this.formData, data);
|
|
159
183
|
}
|
|
160
184
|
/**
|
|
@@ -332,4 +356,49 @@ export class WizardPanelController extends ControlController {
|
|
|
332
356
|
await this.activeFormController.save();
|
|
333
357
|
await this.finish();
|
|
334
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* 获取向导表单步骤脚本代码
|
|
361
|
+
* @param wizardForm
|
|
362
|
+
* @param step
|
|
363
|
+
*/
|
|
364
|
+
getStepScriptCode(wizardForm, step) {
|
|
365
|
+
switch (step) {
|
|
366
|
+
case 'PREV':
|
|
367
|
+
return wizardForm.goPrevEnableScriptCode;
|
|
368
|
+
case 'NEXT':
|
|
369
|
+
return wizardForm.goNextEnableScriptCode;
|
|
370
|
+
case 'FINISH':
|
|
371
|
+
return wizardForm.goFinishEnableScriptCode;
|
|
372
|
+
default:
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* 计算按钮状态
|
|
377
|
+
*
|
|
378
|
+
* @param item 数据
|
|
379
|
+
* @memberof WizardPanelController
|
|
380
|
+
*/
|
|
381
|
+
async calcButtonState(item) {
|
|
382
|
+
var _a;
|
|
383
|
+
const { activeWizardForm } = this;
|
|
384
|
+
if (activeWizardForm) {
|
|
385
|
+
let data = item;
|
|
386
|
+
if (data && data instanceof ControlVO) {
|
|
387
|
+
data = data.getOrigin();
|
|
388
|
+
}
|
|
389
|
+
(_a = activeWizardForm.stepActions) === null || _a === void 0 ? void 0 : _a.forEach(step => {
|
|
390
|
+
const buttonState = this.state.buttonsState[`${activeWizardForm.formTag}@${step}`];
|
|
391
|
+
const scriptCode = this.getStepScriptCode(activeWizardForm, step);
|
|
392
|
+
if (buttonState && scriptCode) {
|
|
393
|
+
buttonState.visible = !!ScriptFactory.execScriptFn({
|
|
394
|
+
view: this.view,
|
|
395
|
+
context: this.context,
|
|
396
|
+
params: this.params,
|
|
397
|
+
data,
|
|
398
|
+
env: ibiz.env,
|
|
399
|
+
}, scriptCode, { isAsync: false, singleRowReturn: true });
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
}
|
|
335
404
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IAppDataEntity, IAppDEDataSetViewMsg, IAppViewMsg, IAppViewMsgGroup, IAppViewMsgGroupDetail } from '@ibiz/model-core';
|
|
2
2
|
import { IViewMessage } from '../../../interface';
|
|
3
|
+
/** 视图消息前缀 */
|
|
4
|
+
export declare const VIEW_MSG_PREFIX = "VIEW_MSG";
|
|
3
5
|
export declare class ViewMsgController {
|
|
4
6
|
protected msgGroupId: string;
|
|
5
7
|
/**
|
|
@@ -15,7 +17,14 @@ export declare class ViewMsgController {
|
|
|
15
17
|
* @date 2023-09-22 05:38:03
|
|
16
18
|
*/
|
|
17
19
|
viewMsgMap: Map<string, IAppViewMsg>;
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* 视图消息tag
|
|
22
|
+
*
|
|
23
|
+
* @author zhanghengfeng
|
|
24
|
+
* @date 2024-04-23 19:04:58
|
|
25
|
+
*/
|
|
26
|
+
protected tag: string;
|
|
27
|
+
constructor(msgGroupId: string, tag?: string);
|
|
19
28
|
/**
|
|
20
29
|
* 初始化方法,从全局获取视图消息组和视图消息的模型
|
|
21
30
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-msg-controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/utils/view-msg/view-msg-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,qBAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"view-msg-controller.d.ts","sourceRoot":"","sources":["../../../../src/controller/utils/view-msg/view-msg-controller.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,aAAa;AACb,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,qBAAa,iBAAiB;IAyB1B,SAAS,CAAC,UAAU,EAAE,MAAM;IAxB9B;;;;;OAKG;IACH,QAAQ,EAAG,gBAAgB,CAAC;IAE5B;;;;OAIG;IACH,UAAU,2BAAkC;IAE5C;;;;;OAKG;IACH,SAAS,CAAC,GAAG,SAAM;gBAGP,UAAU,EAAE,MAAM,EAC5B,GAAG,GAAE,MAAW;IAKlB;;;;;;OAMG;IACG,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B5C,cAAc,CACZ,aAAa,EAAE,cAAc,EAC7B,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,GAAG,SAAS;IAOrB;;;;;;;;;OASG;WACU,YAAY,CACvB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,KAAK,EAAE,CAAC;IAiBnB;;;;;;;OAOG;IACG,gBAAgB,CACpB,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,EAAE,CAAC;IAwB1B;;;;;;;OAOG;IACH,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,sBAAsB,GAAG,YAAY;IAgCrE;;;;;;;;;OASG;cACa,YAAY,CAC1B,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,EAAE,CAAC;CAwE3B"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { RuntimeError, RuntimeModelError } from '@ibiz-template/core';
|
|
2
2
|
import { isNil, mergeRight } from 'ramda';
|
|
3
3
|
import { findFieldById } from '../../../model';
|
|
4
|
+
/** 视图消息前缀 */
|
|
5
|
+
export const VIEW_MSG_PREFIX = 'VIEW_MSG';
|
|
4
6
|
export class ViewMsgController {
|
|
5
|
-
constructor(msgGroupId) {
|
|
7
|
+
constructor(msgGroupId, tag = '') {
|
|
6
8
|
this.msgGroupId = msgGroupId;
|
|
7
9
|
/**
|
|
8
10
|
* 视图消息map
|
|
@@ -10,6 +12,14 @@ export class ViewMsgController {
|
|
|
10
12
|
* @date 2023-09-22 05:38:03
|
|
11
13
|
*/
|
|
12
14
|
this.viewMsgMap = new Map();
|
|
15
|
+
/**
|
|
16
|
+
* 视图消息tag
|
|
17
|
+
*
|
|
18
|
+
* @author zhanghengfeng
|
|
19
|
+
* @date 2024-04-23 19:04:58
|
|
20
|
+
*/
|
|
21
|
+
this.tag = '';
|
|
22
|
+
this.tag = `${VIEW_MSG_PREFIX}_${tag}`;
|
|
13
23
|
}
|
|
14
24
|
/**
|
|
15
25
|
* 初始化方法,从全局获取视图消息组和视图消息的模型
|
|
@@ -95,7 +105,7 @@ export class ViewMsgController {
|
|
|
95
105
|
}
|
|
96
106
|
}));
|
|
97
107
|
}
|
|
98
|
-
return result;
|
|
108
|
+
return result.filter(item => !(item.removeMode === 1 && localStorage.getItem(item.key)));
|
|
99
109
|
}
|
|
100
110
|
/**
|
|
101
111
|
* 计算静态消息数据(或者动态的里面静态的配置)
|
|
@@ -108,11 +118,12 @@ export class ViewMsgController {
|
|
|
108
118
|
calcStaticMsg(detail) {
|
|
109
119
|
const { position: position1 } = detail;
|
|
110
120
|
const viewMsg = this.viewMsgMap.get(detail.appViewMsgId);
|
|
111
|
-
const { title, message, removeMode, position: position2, messageType, } = viewMsg;
|
|
121
|
+
const { codeName, title, message, removeMode, position: position2, messageType, } = viewMsg;
|
|
112
122
|
const { userTag, userTag2, userTag3, userTag4 } = viewMsg;
|
|
113
123
|
// detail里的位置优先
|
|
114
124
|
const position = position1 || position2;
|
|
115
125
|
return {
|
|
126
|
+
key: `${this.tag}_${codeName}`,
|
|
116
127
|
title,
|
|
117
128
|
message,
|
|
118
129
|
position,
|
|
@@ -177,6 +188,9 @@ export class ViewMsgController {
|
|
|
177
188
|
if (removeModeField && !isNil(item[removeModeField])) {
|
|
178
189
|
message.removeMode = item[removeModeField];
|
|
179
190
|
}
|
|
191
|
+
if (!isNil(item.srfkey)) {
|
|
192
|
+
message.key = `${this.tag}_${item.srfkey}`;
|
|
193
|
+
}
|
|
180
194
|
// 合并基础配置,如果后台没有值的用基础配置的默认值。
|
|
181
195
|
return mergeRight(basicMsg, message);
|
|
182
196
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Net } from '@ibiz-template/core';
|
|
2
|
-
import { IAppDEUIAction, IAppFunc, IApplication, IDEOPPriv, IDEUILogic } from '@ibiz/model-core';
|
|
2
|
+
import { IAppDEUIAction, IAppFunc, IAppUtil, IApplication, IDEOPPriv, IDEUILogic } from '@ibiz/model-core';
|
|
3
3
|
import { AuthorityService, CodeListService, DEServiceUtil, MqttService } from '../../../service';
|
|
4
4
|
import { IConfigService } from '../../service';
|
|
5
5
|
/**
|
|
@@ -92,6 +92,15 @@ export interface IAppService {
|
|
|
92
92
|
* @return {*} {(IAppFunc | null)}
|
|
93
93
|
*/
|
|
94
94
|
getAppFunc(id: string): IAppFunc | null;
|
|
95
|
+
/**
|
|
96
|
+
* 根据id获取应用功能组件
|
|
97
|
+
*
|
|
98
|
+
* @author tony001
|
|
99
|
+
* @date 2024-04-23 11:04:18
|
|
100
|
+
* @param {string} id
|
|
101
|
+
* @return {*} {(IAppUtil | null)}
|
|
102
|
+
*/
|
|
103
|
+
getAppUtil(id: string): IAppUtil | null;
|
|
95
104
|
/**
|
|
96
105
|
* 获取界面行为模型
|
|
97
106
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-app-service.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-app-service/i-app-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAE7B;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAElC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;IAExC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAEnE;;;;;;;OAOG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAEnC;;;;;OAKG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;;;OAKG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
|
1
|
+
{"version":3,"file":"i-app-service.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-app-service/i-app-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,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,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAE7B;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAElC;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;IAExC;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;IAExC;;;;;;;OAOG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAEnE;;;;;;;OAOG;IACH,SAAS,CACP,EAAE,EAAE,MAAM,EACV,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,YAAY,CACV,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;IAEnC;;;;;OAKG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;;;OAKG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-view-message.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/view-message/i-view-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;OAOG;IACH,WAAW,EAAE,KAAK,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"i-view-message.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/common/view-message/i-view-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAElC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;OAOG;IACH,WAAW,EAAE,KAAK,CAAC;CACpB"}
|
|
@@ -30,6 +30,20 @@ export interface IPortletController {
|
|
|
30
30
|
* @type {IPortletState}
|
|
31
31
|
*/
|
|
32
32
|
state: IPortletState;
|
|
33
|
+
/**
|
|
34
|
+
* 视图参数
|
|
35
|
+
*
|
|
36
|
+
* @type {IParams}
|
|
37
|
+
* @memberof IPortletController
|
|
38
|
+
*/
|
|
39
|
+
params: IParams;
|
|
40
|
+
/**
|
|
41
|
+
* 门户配置
|
|
42
|
+
*
|
|
43
|
+
* @type {IData}
|
|
44
|
+
* @memberof IPortletController
|
|
45
|
+
*/
|
|
46
|
+
config: IData;
|
|
33
47
|
/**
|
|
34
48
|
* 数据变更通知
|
|
35
49
|
* @author lxm
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/controller/control/portlet/i-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,SAAS,EAAE,oBAAoB,CAAC;IAEhC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,2BAA2B,CAAC;IAErC;;;;;OAKG;IACH,KAAK,EAAE,aAAa,CAAC;IAErB;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B"}
|
|
1
|
+
{"version":3,"file":"i-portlet.controller.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/controller/control/portlet/i-portlet.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,SAAS,EAAE,oBAAoB,CAAC;IAEhC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,2BAA2B,CAAC;IAErC;;;;;OAKG;IACH,KAAK,EAAE,aAAa,CAAC;IAErB;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,MAAM,EAAE,KAAK,CAAC;IAEd;;;;;;OAMG;IACH,gBAAgB,CAAC,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7C;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventBase } from '../argument';
|
|
1
2
|
import { IControlEvent } from './i-control.event';
|
|
2
3
|
/**
|
|
3
4
|
* 数据看板部件事件
|
|
@@ -8,5 +9,18 @@ import { IControlEvent } from './i-control.event';
|
|
|
8
9
|
* @interface IDashboardEvent
|
|
9
10
|
* @extends {IControlEvent}
|
|
10
11
|
*/
|
|
11
|
-
export
|
|
12
|
+
export interface IDashboardEvent extends IControlEvent {
|
|
13
|
+
/**
|
|
14
|
+
* 配置信息改变
|
|
15
|
+
*
|
|
16
|
+
* @author zzq
|
|
17
|
+
*/
|
|
18
|
+
onConfigChange: {
|
|
19
|
+
event: EventBase;
|
|
20
|
+
emitArgs: {
|
|
21
|
+
name: string;
|
|
22
|
+
config: IData;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
12
26
|
//# sourceMappingURL=i-dashboard.event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-dashboard.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-dashboard.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,
|
|
1
|
+
{"version":3,"file":"i-dashboard.event.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/event/control/i-dashboard.event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD;;;;OAIG;IACH,cAAc,EAAE;QACd,KAAK,EAAE,SAAS,CAAC;QACjB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC;YACb,MAAM,EAAE,KAAK,CAAC;SACf,CAAC;KACH,CAAC;CACH"}
|
|
@@ -22,6 +22,13 @@ export interface IDRTabState extends IControlState {
|
|
|
22
22
|
* @memberof IDRTabState
|
|
23
23
|
*/
|
|
24
24
|
activeName: string;
|
|
25
|
+
/**
|
|
26
|
+
* 默认分页标识(如果有表单的话默认是空字符串)
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2024-04-22 01:35:28
|
|
29
|
+
* @type {string}
|
|
30
|
+
*/
|
|
31
|
+
defaultName: string;
|
|
25
32
|
}
|
|
26
33
|
/**
|
|
27
34
|
* 关系分页状态
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-drtab.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-drtab.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD;;;;;OAKG;IACH,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAE/B;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-drtab.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-drtab.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD;;;;;OAKG;IACH,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAE/B;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IButtonContainerState } from '../../common';
|
|
1
2
|
import { IControlState } from './i-control.state';
|
|
2
3
|
/**
|
|
3
4
|
* 向导面板状态
|
|
@@ -15,5 +16,11 @@ export interface IWizardPanelState extends IControlState {
|
|
|
15
16
|
* @memberof WizardPanelState
|
|
16
17
|
*/
|
|
17
18
|
activeFormTag: string;
|
|
19
|
+
/**
|
|
20
|
+
* 向导面板按钮状态
|
|
21
|
+
* @type {(IButtonContainerState | null)}
|
|
22
|
+
* @memberof WizardPanelState
|
|
23
|
+
*/
|
|
24
|
+
buttonsState: IButtonContainerState;
|
|
18
25
|
}
|
|
19
26
|
//# sourceMappingURL=i-wizard-panel.state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-wizard-panel.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-wizard-panel.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;;;;;;OAOG;IACH,aAAa,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"i-wizard-panel.state.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/state/control/i-wizard-panel.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;;;;;;OAOG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,EAAE,qBAAqB,CAAC;CACrC"}
|
|
@@ -15,6 +15,21 @@ export interface IPortletState extends IColState {
|
|
|
15
15
|
* @type {IPortletClass}
|
|
16
16
|
*/
|
|
17
17
|
class: IPortletClass;
|
|
18
|
+
/**
|
|
19
|
+
* 上下文
|
|
20
|
+
*
|
|
21
|
+
* @author zzq
|
|
22
|
+
* @date 2024-04-25 16:04:24
|
|
23
|
+
* @type {IContext}
|
|
24
|
+
*/
|
|
25
|
+
context: IContext;
|
|
26
|
+
/**
|
|
27
|
+
* 门户标题
|
|
28
|
+
*
|
|
29
|
+
* @type {string | undefined}
|
|
30
|
+
* @memberof PortletPartState
|
|
31
|
+
*/
|
|
32
|
+
title: string | undefined;
|
|
18
33
|
}
|
|
19
34
|
export interface IPortletClass {
|
|
20
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-portlet.state.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/portlet/i-portlet.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;;;OAKG;IACH,gBAAgB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAE/C;;;;;OAKG;IACH,KAAK,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"i-portlet.state.d.ts","sourceRoot":"","sources":["../../../../../../src/interface/controller/state/control/portlet/i-portlet.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C;;;;;OAKG;IACH,gBAAgB,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAE/C;;;;;OAKG;IACH,KAAK,EAAE,aAAa,CAAC;IAErB;;;;;;OAMG;IACH,OAAO,EAAE,QAAQ,CAAC;IAElB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB"}
|
|
@@ -63,7 +63,7 @@ export class ControlService {
|
|
|
63
63
|
*/
|
|
64
64
|
async handleItemPrivilege(data, context) {
|
|
65
65
|
const { enableItemPrivilege, appDataEntityId } = this.model;
|
|
66
|
-
if (enableItemPrivilege && appDataEntityId) {
|
|
66
|
+
if (data && enableItemPrivilege && appDataEntityId) {
|
|
67
67
|
const deAuthority = await this.app.authority.getService(appDataEntityId);
|
|
68
68
|
const items = Array.isArray(data) ? data : [data];
|
|
69
69
|
items.forEach(item => {
|
|
@@ -10,4 +10,5 @@ export { AsyncActionService } from './async-action/async-action.service';
|
|
|
10
10
|
export * from './entity/method';
|
|
11
11
|
export { InternalMessageService } from './internal-message/internal-message.service';
|
|
12
12
|
export { MarkOpenDataService } from './mark-open-data/mark-open-data.service';
|
|
13
|
+
export { UtilService } from './util/util.service';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/service/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -10,3 +10,4 @@ export { AsyncActionService } from './async-action/async-action.service';
|
|
|
10
10
|
export * from './entity/method';
|
|
11
11
|
export { InternalMessageService } from './internal-message/internal-message.service';
|
|
12
12
|
export { MarkOpenDataService } from './mark-open-data/mark-open-data.service';
|
|
13
|
+
export { UtilService } from './util/util.service';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IAppDataEntity, IAppUtil } from '@ibiz/model-core';
|
|
2
|
+
import { IAppDEService } from '../../../interface';
|
|
3
|
+
/**
|
|
4
|
+
* 应用功能组件服务
|
|
5
|
+
*
|
|
6
|
+
* @author tony001
|
|
7
|
+
* @date 2024-04-23 11:04:58
|
|
8
|
+
* @export
|
|
9
|
+
* @class UtilService
|
|
10
|
+
*/
|
|
11
|
+
export declare class UtilService {
|
|
12
|
+
protected appUtil: IAppUtil;
|
|
13
|
+
/**
|
|
14
|
+
* 存储实体模型
|
|
15
|
+
*
|
|
16
|
+
* @author tony001
|
|
17
|
+
* @date 2024-04-24 15:04:36
|
|
18
|
+
* @type {(IAppDataEntity | null)}
|
|
19
|
+
*/
|
|
20
|
+
protected stoageAppDataEntity: IAppDataEntity | null;
|
|
21
|
+
/**
|
|
22
|
+
* 存储服务
|
|
23
|
+
*
|
|
24
|
+
* @author tony001
|
|
25
|
+
* @date 2024-04-24 14:04:36
|
|
26
|
+
* @type {(IAppDEService | null)}
|
|
27
|
+
*/
|
|
28
|
+
protected appDEService: IAppDEService | null;
|
|
29
|
+
/**
|
|
30
|
+
* Creates an instance of UtilService.
|
|
31
|
+
* @author tony001
|
|
32
|
+
* @date 2024-04-24 14:04:41
|
|
33
|
+
* @param {IAppUtil} appUtil
|
|
34
|
+
*/
|
|
35
|
+
constructor(appUtil: IAppUtil);
|
|
36
|
+
/**
|
|
37
|
+
* 获取存储服务
|
|
38
|
+
*
|
|
39
|
+
* @author tony001
|
|
40
|
+
* @date 2024-04-24 14:04:21
|
|
41
|
+
* @private
|
|
42
|
+
* @param {IContext} context
|
|
43
|
+
* @param {IParams} params
|
|
44
|
+
* @return {*} {Promise<IAppDEService>}
|
|
45
|
+
*/
|
|
46
|
+
private getAppDEService;
|
|
47
|
+
/**
|
|
48
|
+
* 加载指定数据
|
|
49
|
+
*
|
|
50
|
+
* @author tony001
|
|
51
|
+
* @date 2024-04-23 11:04:22
|
|
52
|
+
* @param {string} tag
|
|
53
|
+
* @param {IContext} context
|
|
54
|
+
* @param {IParams} params
|
|
55
|
+
* @return {*} {Promise<IData>}
|
|
56
|
+
*/
|
|
57
|
+
load(tag: string, context: IContext, params: IParams): Promise<IData>;
|
|
58
|
+
/**
|
|
59
|
+
* 保存指定数据
|
|
60
|
+
*
|
|
61
|
+
* @author tony001
|
|
62
|
+
* @date 2024-04-23 12:04:36
|
|
63
|
+
* @param {string} tag
|
|
64
|
+
* @param {IContext} context
|
|
65
|
+
* @param {IParams} params
|
|
66
|
+
* @param {IData} data
|
|
67
|
+
* @return {*} {Promise<IData>}
|
|
68
|
+
*/
|
|
69
|
+
save(tag: string, context: IContext, params: IParams, data: IData): Promise<IData>;
|
|
70
|
+
/**
|
|
71
|
+
* 处理请求数据
|
|
72
|
+
*
|
|
73
|
+
* @author tony001
|
|
74
|
+
* @date 2024-04-24 15:04:02
|
|
75
|
+
* @private
|
|
76
|
+
* @param {IContext} context
|
|
77
|
+
* @param {IParams} params
|
|
78
|
+
* @param {IData} data
|
|
79
|
+
* @return {*} {{ context: IContext; params: IParams; data: IData }}
|
|
80
|
+
*/
|
|
81
|
+
private handleRequestData;
|
|
82
|
+
/**
|
|
83
|
+
* 处理响应数据
|
|
84
|
+
*
|
|
85
|
+
* @author tony001
|
|
86
|
+
* @date 2024-04-24 16:04:45
|
|
87
|
+
* @private
|
|
88
|
+
* @param {IData} response
|
|
89
|
+
* @return {*} {IData}
|
|
90
|
+
*/
|
|
91
|
+
private handleResponse;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=util.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/util/util.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,WAAW;IAyBV,SAAS,CAAC,OAAO,EAAE,QAAQ;IAxBvC;;;;;;OAMG;IACH,SAAS,CAAC,mBAAmB,EAAE,cAAc,GAAG,IAAI,CAAQ;IAE5D;;;;;;OAMG;IACH,SAAS,CAAC,YAAY,EAAE,aAAa,GAAG,IAAI,CAAQ;IAEpD;;;;;OAKG;gBACmB,OAAO,EAAE,QAAQ;IAEvC;;;;;;;;;OASG;YACW,eAAe;IA6B7B;;;;;;;;;OASG;IACG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC;IAkB3E;;;;;;;;;;OAUG;IACG,IAAI,CACR,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,KAAK,GACV,OAAO,CAAC,KAAK,CAAC;IAUjB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,iBAAiB;IAiCzB;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;CAKvB"}
|