@ibiz-template/runtime 0.4.16 → 0.4.17-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 +477 -355
- package/dist/index.system.min.js +2 -2
- package/out/app-hub.d.ts +8 -0
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +13 -0
- package/out/controller/common/base.controller.d.ts +1 -0
- package/out/controller/common/base.controller.d.ts.map +1 -1
- package/out/controller/common/base.controller.js +2 -0
- package/out/controller/common/view/view.controller.d.ts.map +1 -1
- package/out/controller/common/view/view.controller.js +9 -3
- package/out/controller/common/view/wf-step-trace-view.controller.d.ts.map +1 -1
- package/out/controller/common/view/wf-step-trace-view.controller.js +3 -2
- package/out/controller/control/calendar/calendar.service.d.ts +3 -3
- package/out/controller/control/calendar/calendar.service.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.service.js +2 -2
- package/out/controller/control/form/edit-form/edit-form.service.d.ts +18 -18
- package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.service.js +11 -11
- package/out/controller/control/form/form/form.service.d.ts +2 -2
- package/out/controller/control/form/form/form.service.d.ts.map +1 -1
- package/out/controller/control/form/form/form.service.js +1 -1
- package/out/controller/control/form/search-form/search-form.service.d.ts +2 -2
- package/out/controller/control/form/search-form/search-form.service.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.service.js +1 -1
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +1 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +1 -1
- package/out/controller/control/grid/grid/grid.service.d.ts +2 -2
- package/out/controller/control/grid/grid/grid.service.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.service.js +2 -2
- package/out/controller/control/kanban/kanban.service.d.ts +2 -2
- package/out/controller/control/kanban/kanban.service.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.service.js +1 -1
- package/out/controller/control/map/map.service.d.ts +1 -1
- package/out/controller/control/map/map.service.js +1 -1
- package/out/controller/control/report-panel/report-panel.service.d.ts +2 -2
- package/out/controller/control/report-panel/report-panel.service.d.ts.map +1 -1
- package/out/controller/control/report-panel/report-panel.service.js +1 -1
- package/out/controller/control/tree/tree.service.d.ts +2 -2
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +1 -0
- package/out/controller/control/wizard-panel/wizard-panel.service.d.ts +4 -4
- package/out/controller/control/wizard-panel/wizard-panel.service.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.service.js +2 -2
- package/out/controller/utils/value-default/value-default.d.ts +1 -1
- package/out/controller/utils/value-default/value-default.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.d.ts +5 -5
- package/out/de-logic/de-logic-context.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts +2 -2
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.d.ts.map +1 -1
- package/out/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.js +1 -1
- package/out/de-logic/de-logic-link/de-logic-link.d.ts +1 -1
- package/out/de-logic/de-logic-link/de-logic-link.js +1 -1
- package/out/de-logic/de-logic-node/de-logic-node.d.ts +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.d.ts +1 -1
- package/out/de-logic/de-logic-param/de-logic-param.js +1 -1
- package/out/de-logic/de-logic.d.ts +3 -3
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +2 -2
- package/out/de-logic/index.d.ts +8 -8
- package/out/de-logic/index.d.ts.map +1 -1
- package/out/de-logic/index.js +5 -5
- package/out/install.d.ts.map +1 -1
- package/out/install.js +3 -0
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +8 -0
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
- package/out/interface/common/i-data-ability-params/i-data-ability-params.d.ts +1 -1
- package/out/interface/common/i-data-ability-params/i-data-ability-params.d.ts.map +1 -1
- package/out/interface/controller/controller/i.controller.d.ts +8 -0
- package/out/interface/controller/controller/i.controller.d.ts.map +1 -1
- package/out/interface/provider/i-de-method.provider.d.ts +10 -1
- package/out/interface/provider/i-de-method.provider.d.ts.map +1 -1
- package/out/interface/provider/i-grid-column.provider.d.ts +2 -2
- package/out/interface/provider/i-grid-column.provider.d.ts.map +1 -1
- package/out/interface/service/service/i-app-de.service.d.ts +49 -43
- package/out/interface/service/service/i-app-de.service.d.ts.map +1 -1
- package/out/interface/service/service/i-file.service.d.ts +2 -2
- package/out/interface/service/service/i-file.service.d.ts.map +1 -1
- package/out/interface/service/service/i-wf.service.d.ts +12 -12
- package/out/interface/service/service/i-wf.service.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.d.ts +2 -2
- package/out/register/helper/grid-column-register.d.ts.map +1 -1
- package/out/register/helper/grid-column-register.js +0 -14
- package/out/service/de-service-util.d.ts +26 -13
- package/out/service/de-service-util.d.ts.map +1 -1
- package/out/service/de-service-util.js +45 -16
- package/out/service/dto/method.dto.d.ts +20 -8
- package/out/service/dto/method.dto.d.ts.map +1 -1
- package/out/service/dto/method.dto.js +33 -15
- package/out/service/service/authority/authority.service.d.ts +1 -1
- package/out/service/service/authority/authority.service.js +1 -1
- package/out/service/service/code-list/code-list.service.d.ts +3 -3
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +2 -2
- package/out/service/service/control/control.service.d.ts +2 -2
- package/out/service/service/control/control.service.d.ts.map +1 -1
- package/out/service/service/control/control.service.js +1 -1
- package/out/service/service/control/md-control.service.d.ts +13 -13
- package/out/service/service/control/md-control.service.d.ts.map +1 -1
- package/out/service/service/control/md-control.service.js +7 -7
- package/out/service/service/counter/counter.service.d.ts +3 -3
- package/out/service/service/counter/counter.service.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +1 -1
- package/out/service/service/entity/de.service.d.ts +46 -28
- package/out/service/service/entity/de.service.d.ts.map +1 -1
- package/out/service/service/entity/de.service.js +35 -71
- package/out/service/service/entity/method/de-action.d.ts +23 -33
- package/out/service/service/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +18 -35
- package/out/service/service/entity/method/fetch.d.ts +3 -4
- package/out/service/service/entity/method/fetch.d.ts.map +1 -1
- package/out/service/service/entity/method/fetch.js +3 -8
- package/out/service/service/entity/method/method-input.d.ts +10 -5
- package/out/service/service/entity/method/method-input.d.ts.map +1 -1
- package/out/service/service/entity/method/method-input.js +9 -8
- package/out/service/service/entity/method/method-renturn.d.ts +10 -7
- package/out/service/service/entity/method/method-renturn.d.ts.map +1 -1
- package/out/service/service/entity/method/method-renturn.js +9 -9
- package/out/service/service/entity/method/method.d.ts +11 -27
- package/out/service/service/entity/method/method.d.ts.map +1 -1
- package/out/service/service/entity/method/method.js +9 -21
- package/out/service/service/entity/method/provider/de-action-de-method.provider.d.ts +2 -2
- package/out/service/service/entity/method/provider/de-action-de-method.provider.d.ts.map +1 -1
- package/out/service/service/entity/method/provider/de-action-de-method.provider.js +2 -2
- package/out/service/service/entity/method/provider/fetch-de-method.provider.d.ts +2 -2
- package/out/service/service/entity/method/provider/fetch-de-method.provider.d.ts.map +1 -1
- package/out/service/service/entity/method/provider/fetch-de-method.provider.js +3 -3
- package/out/service/service/file/file.service.d.ts +2 -2
- package/out/service/service/file/file.service.d.ts.map +1 -1
- package/out/service/service/file/file.service.js +1 -1
- package/out/service/service/work-flow/work-flow.service.d.ts +28 -28
- package/out/service/service/work-flow/work-flow.service.d.ts.map +1 -1
- package/out/service/service/work-flow/work-flow.service.js +15 -15
- package/out/service/utils/app-counter/app-counter.d.ts +7 -7
- package/out/service/utils/app-counter/app-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-counter.js +3 -3
- package/out/service/utils/app-counter/app-de-counter.d.ts +2 -2
- package/out/service/utils/app-counter/app-de-counter.d.ts.map +1 -1
- package/out/service/utils/app-counter/app-de-counter.js +1 -1
- package/out/service/utils/de-cache/de-cache.d.ts +44 -39
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +115 -75
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts +2 -2
- package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
- package/out/service/utils/dynamic-code-list/dynamic-code-list.js +2 -2
- package/out/service/utils/res-path/res-path.d.ts +4 -4
- package/out/service/utils/res-path/res-path.d.ts.map +1 -1
- package/out/service/utils/res-path/res-path.js +2 -2
- package/out/service/utils/search-filter/search-filter.d.ts +2 -2
- package/out/service/utils/search-filter/search-filter.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.d.ts +2 -2
- package/out/service/utils/service-exist-util/service-exist-util.d.ts.map +1 -1
- package/out/service/utils/service-exist-util/service-exist-util.js +1 -1
- package/out/types.d.ts +9 -0
- package/out/types.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-param/ui-logic-param.js +1 -1
- package/out/utils/index.d.ts +2 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +2 -0
- package/out/utils/nav-params/calc-nav-params.d.ts +2 -2
- package/out/utils/nav-params/calc-nav-params.d.ts.map +1 -1
- package/out/utils/nav-params/calc-nav-params.js +1 -1
- package/out/utils/open-redirect-view/open-redirect-view.js +1 -1
- package/out/utils/ui-domain/ui-domain.d.ts +35 -0
- package/out/utils/ui-domain/ui-domain.d.ts.map +1 -0
- package/out/utils/ui-domain/ui-domain.js +42 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts +47 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.d.ts.map +1 -0
- package/out/utils/ui-domain-manager/ui-domain-manager.js +62 -0
- package/package.json +3 -3
- package/src/app-hub.ts +14 -0
- package/src/controller/common/base.controller.ts +3 -0
- package/src/controller/common/view/view.controller.ts +9 -3
- package/src/controller/common/view/wf-step-trace-view.controller.ts +4 -2
- package/src/controller/control/calendar/calendar.service.ts +4 -4
- package/src/controller/control/form/edit-form/edit-form.service.ts +23 -18
- package/src/controller/control/form/form/form.service.ts +2 -2
- package/src/controller/control/form/search-form/search-form.service.ts +2 -2
- package/src/controller/control/gantt/gantt.controller.ts +2 -1
- package/src/controller/control/grid/grid/grid.controller.ts +1 -0
- package/src/controller/control/grid/grid/grid.service.ts +3 -2
- package/src/controller/control/kanban/kanban.service.ts +2 -2
- package/src/controller/control/map/map.service.ts +1 -1
- package/src/controller/control/report-panel/report-panel.service.ts +2 -2
- package/src/controller/control/tree/tree.service.ts +2 -2
- package/src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts +2 -1
- package/src/controller/control/wizard-panel/wizard-panel.service.ts +4 -4
- package/src/controller/utils/value-default/value-default.ts +1 -1
- package/src/de-logic/de-logic-context.ts +5 -5
- package/src/de-logic/de-logic-link/de-logic-link-group-cond/de-logic-link-group-cond.ts +2 -2
- package/src/de-logic/de-logic-link/de-logic-link-single-cond/de-logic-link-single-cond.ts +2 -2
- package/src/de-logic/de-logic-link/de-logic-link.ts +1 -1
- package/src/de-logic/de-logic-node/de-logic-node.ts +1 -1
- package/src/de-logic/de-logic-param/de-logic-param.ts +1 -1
- package/src/de-logic/de-logic.ts +3 -3
- package/src/de-logic/index.ts +10 -10
- package/src/install.ts +3 -0
- package/src/interface/common/i-app-hub-service/i-app-hub-service.ts +9 -0
- package/src/interface/common/i-data-ability-params/i-data-ability-params.ts +1 -1
- package/src/interface/controller/controller/i.controller.ts +9 -0
- package/src/interface/provider/i-de-method.provider.ts +10 -0
- package/src/interface/provider/i-grid-column.provider.ts +2 -7
- package/src/interface/service/service/i-app-de.service.ts +51 -44
- package/src/interface/service/service/i-file.service.ts +2 -2
- package/src/interface/service/service/i-wf.service.ts +12 -12
- package/src/register/helper/grid-column-register.ts +2 -17
- package/src/service/de-service-util.ts +59 -27
- package/src/service/dto/method.dto.ts +39 -19
- package/src/service/service/authority/authority.service.ts +1 -1
- package/src/service/service/code-list/code-list.service.ts +3 -3
- package/src/service/service/control/control.service.ts +2 -2
- package/src/service/service/control/md-control.service.ts +16 -13
- package/src/service/service/counter/counter.service.ts +3 -3
- package/src/service/service/entity/de.service.ts +57 -89
- package/src/service/service/entity/method/de-action.ts +29 -47
- package/src/service/service/entity/method/fetch.ts +5 -11
- package/src/service/service/entity/method/method-input.ts +10 -9
- package/src/service/service/entity/method/method-renturn.ts +10 -11
- package/src/service/service/entity/method/method.ts +12 -35
- package/src/service/service/entity/method/provider/de-action-de-method.provider.ts +4 -2
- package/src/service/service/entity/method/provider/fetch-de-method.provider.ts +4 -2
- package/src/service/service/file/file.service.ts +2 -2
- package/src/service/service/work-flow/work-flow.service.ts +30 -30
- package/src/service/utils/app-counter/app-counter.ts +7 -7
- package/src/service/utils/app-counter/app-de-counter.ts +2 -2
- package/src/service/utils/de-cache/de-cache.ts +124 -85
- package/src/service/utils/dynamic-code-list/dynamic-code-list.ts +2 -5
- package/src/service/utils/res-path/res-path.ts +4 -4
- package/src/service/utils/search-filter/search-filter.ts +2 -2
- package/src/service/utils/service-exist-util/service-exist-util.ts +2 -2
- package/src/types.ts +10 -0
- package/src/ui-logic/ui-logic-param/ui-logic-param.ts +1 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/nav-params/calc-nav-params.ts +2 -2
- package/src/utils/open-redirect-view/open-redirect-view.ts +1 -1
- package/src/utils/ui-domain/ui-domain.ts +52 -0
- package/src/utils/ui-domain-manager/ui-domain-manager.ts +64 -0
- package/out/service/service/entity/util/util.d.ts +0 -13
- package/out/service/service/entity/util/util.d.ts.map +0 -1
- package/out/service/service/entity/util/util.js +0 -14
- package/src/service/service/entity/util/util.ts +0 -18
|
@@ -24,7 +24,7 @@ export class DEServiceUtil {
|
|
|
24
24
|
* @author chitanda
|
|
25
25
|
* @date 2022-08-17 23:08:36
|
|
26
26
|
* @protected
|
|
27
|
-
* @type {Map<string, IAppDEService
|
|
27
|
+
* @type {Map<string, Map<string, IAppDEService>>} Map<域标识, Map<实体标识, 实体服务>>
|
|
28
28
|
*/
|
|
29
29
|
this.cache = new Map();
|
|
30
30
|
/**
|
|
@@ -40,8 +40,8 @@ export class DEServiceUtil {
|
|
|
40
40
|
*
|
|
41
41
|
* @author chitanda
|
|
42
42
|
* @date 2023-06-14 10:06:31
|
|
43
|
-
* @param {string} id
|
|
44
|
-
* @param {
|
|
43
|
+
* @param {string} id 实体标识
|
|
44
|
+
* @param {DEServiceConstructor} constructor
|
|
45
45
|
*/
|
|
46
46
|
register(id, constructor) {
|
|
47
47
|
this.constructorCache.set(id, constructor);
|
|
@@ -50,13 +50,18 @@ export class DEServiceUtil {
|
|
|
50
50
|
* 根据实体标识获取实体服务
|
|
51
51
|
*
|
|
52
52
|
* @author chitanda
|
|
53
|
-
* @date
|
|
53
|
+
* @date 2023-12-22 10:12:47
|
|
54
|
+
* @param {IContext} context 上下文,用于计算模型所属沙箱环境
|
|
54
55
|
* @param {string} id 实体标识
|
|
55
|
-
* @param {IParams} [context] 上下文,用于计算模型所属沙箱环境
|
|
56
56
|
* @return {*} {Promise<IAppDEService>}
|
|
57
57
|
*/
|
|
58
|
-
async getService(id) {
|
|
59
|
-
|
|
58
|
+
async getService(context, id) {
|
|
59
|
+
const sandboxId = context.srfsessionid;
|
|
60
|
+
if (!this.cache.has(sandboxId)) {
|
|
61
|
+
this.cache.set(sandboxId, new Map());
|
|
62
|
+
}
|
|
63
|
+
const map = this.cache.get(sandboxId);
|
|
64
|
+
if (!map.has(id)) {
|
|
60
65
|
const entityModel = await ibiz.hub.getAppDataEntity(id, this.appModel.appId);
|
|
61
66
|
if (!entityModel) {
|
|
62
67
|
throw new RuntimeError(`未找到应用实体[${id}]`);
|
|
@@ -64,14 +69,33 @@ export class DEServiceUtil {
|
|
|
64
69
|
const constructor = this.constructorCache.get(id);
|
|
65
70
|
let service;
|
|
66
71
|
if (constructor) {
|
|
67
|
-
service = await constructor(entityModel);
|
|
72
|
+
service = await constructor(sandboxId, entityModel);
|
|
68
73
|
}
|
|
69
74
|
else {
|
|
70
|
-
service = new DEService(entityModel);
|
|
75
|
+
service = new DEService(sandboxId, entityModel);
|
|
71
76
|
}
|
|
72
|
-
|
|
77
|
+
map.set(id, service);
|
|
78
|
+
}
|
|
79
|
+
return map.get(id);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 重置服务, 删除指定域下的所有服务缓存
|
|
83
|
+
*
|
|
84
|
+
* @author chitanda
|
|
85
|
+
* @date 2023-12-22 13:12:47
|
|
86
|
+
* @param {IContext} context
|
|
87
|
+
* @return {*} {void}
|
|
88
|
+
*/
|
|
89
|
+
reset(context) {
|
|
90
|
+
const sandboxId = context.srfsessionid;
|
|
91
|
+
if (!this.cache.has(sandboxId)) {
|
|
92
|
+
return;
|
|
73
93
|
}
|
|
74
|
-
|
|
94
|
+
const map = this.cache.get(sandboxId);
|
|
95
|
+
map.forEach(service => {
|
|
96
|
+
service.destroy();
|
|
97
|
+
});
|
|
98
|
+
this.cache.delete(sandboxId);
|
|
75
99
|
}
|
|
76
100
|
/**
|
|
77
101
|
* 清理所有服务, 当前临时域下的所有临时数据缓存
|
|
@@ -79,11 +103,16 @@ export class DEServiceUtil {
|
|
|
79
103
|
* @description 根据 srfsessionid 作为临时数据域
|
|
80
104
|
* @author chitanda
|
|
81
105
|
* @date 2022-08-18 14:08:48
|
|
82
|
-
* @param {
|
|
106
|
+
* @param {IContext} context
|
|
83
107
|
*/
|
|
84
108
|
clearTempCache(context) {
|
|
85
|
-
|
|
86
|
-
|
|
109
|
+
const sandboxId = context.srfsessionid;
|
|
110
|
+
if (!this.cache.has(sandboxId)) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const map = this.cache.get(sandboxId);
|
|
114
|
+
map.forEach(service => {
|
|
115
|
+
service.local.clear();
|
|
87
116
|
});
|
|
88
117
|
}
|
|
89
118
|
/**
|
|
@@ -92,13 +121,13 @@ export class DEServiceUtil {
|
|
|
92
121
|
* @date 2023-04-26 02:02:43
|
|
93
122
|
* @param {string} appDataEntityId 实体名称
|
|
94
123
|
* @param {string} methodName 方法名
|
|
95
|
-
* @param {
|
|
124
|
+
* @param {IContext} context 上下文
|
|
96
125
|
* @param {(IData | undefined)} [params] 数据
|
|
97
126
|
* @param {(IParams | undefined)} [params2] 视图参数
|
|
98
127
|
* @return {*} {Promise<IHttpResponse<IData>>}
|
|
99
128
|
*/
|
|
100
129
|
async exec(appDataEntityId, methodName, context, params, params2) {
|
|
101
|
-
const service = await this.getService(appDataEntityId);
|
|
130
|
+
const service = await this.getService(context, appDataEntityId);
|
|
102
131
|
return service.exec(methodName, context, params, params2);
|
|
103
132
|
}
|
|
104
133
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAppDataEntity, IAppDEMethodDTO, IAppDEMethodDTOField } from '@ibiz/model-core';
|
|
2
2
|
import { AppDataEntity } from '../app-data-entity/app-data-entity';
|
|
3
|
-
import { IAppService } from '../../interface';
|
|
3
|
+
import { IAppDEService, IAppService, IDataEntity } from '../../interface';
|
|
4
4
|
/**
|
|
5
5
|
* 应用实体服务方法转换 DTO
|
|
6
6
|
*
|
|
@@ -10,13 +10,24 @@ import { IAppService } from '../../interface';
|
|
|
10
10
|
* @class MethodDto
|
|
11
11
|
*/
|
|
12
12
|
export declare class MethodDto {
|
|
13
|
+
protected service: IAppDEService;
|
|
13
14
|
protected entity: IAppDataEntity;
|
|
14
15
|
protected isLocalMode?: boolean | undefined;
|
|
15
16
|
protected dto?: IAppDEMethodDTO | undefined;
|
|
16
17
|
protected app?: IAppService;
|
|
17
18
|
protected fields: IAppDEMethodDTOField[];
|
|
18
19
|
protected dtoMap: Map<string, MethodDto>;
|
|
19
|
-
constructor(entity: IAppDataEntity, isLocalMode?: boolean | undefined, dto?: IAppDEMethodDTO | undefined);
|
|
20
|
+
constructor(service: IAppDEService, entity: IAppDataEntity, isLocalMode?: boolean | undefined, dto?: IAppDEMethodDTO | undefined);
|
|
21
|
+
/**
|
|
22
|
+
* 查找本地 DTO 存储数据
|
|
23
|
+
*
|
|
24
|
+
* @author chitanda
|
|
25
|
+
* @date 2023-12-22 14:12:19
|
|
26
|
+
* @param {IContext} context
|
|
27
|
+
* @param {IParams} [params]
|
|
28
|
+
* @return {*} {IDataEntity[]}
|
|
29
|
+
*/
|
|
30
|
+
select(context: IContext, params?: IParams): IDataEntity[];
|
|
20
31
|
/**
|
|
21
32
|
* 转换数组成ListMap
|
|
22
33
|
*
|
|
@@ -36,30 +47,31 @@ export declare class MethodDto {
|
|
|
36
47
|
*
|
|
37
48
|
* @author chitanda
|
|
38
49
|
* @date 2022-10-10 23:10:33
|
|
39
|
-
* @param {
|
|
50
|
+
* @param {IContext} context
|
|
40
51
|
* @param {IData} data
|
|
41
52
|
* @return {*} {Promise<IData>}
|
|
42
53
|
*/
|
|
43
|
-
get(context:
|
|
54
|
+
get(context: IContext, data: IData): Promise<IData>;
|
|
44
55
|
/**
|
|
45
56
|
* 设置本地 DTO 存储
|
|
46
57
|
*
|
|
47
58
|
* @author chitanda
|
|
48
59
|
* @date 2022-10-10 23:10:50
|
|
49
|
-
* @param {
|
|
60
|
+
* @param {IContext} context
|
|
50
61
|
* @param {IData[]} data
|
|
51
62
|
* @return {*} {Promise<AppDataEntity[]>}
|
|
52
63
|
*/
|
|
53
|
-
sets(context:
|
|
64
|
+
sets(context: IContext, data: IData[]): Promise<AppDataEntity[]>;
|
|
54
65
|
/**
|
|
55
66
|
* 获取子属性 DTO
|
|
56
67
|
*
|
|
57
68
|
* @author chitanda
|
|
58
|
-
* @date
|
|
69
|
+
* @date 2023-12-22 13:12:06
|
|
59
70
|
* @protected
|
|
71
|
+
* @param {IContext} context
|
|
60
72
|
* @param {IAppDEMethodDTOField} field
|
|
61
73
|
* @return {*} {Promise<MethodDto>}
|
|
62
74
|
*/
|
|
63
|
-
protected getFieldDto(field: IAppDEMethodDTOField): Promise<MethodDto>;
|
|
75
|
+
protected getFieldDto(context: IContext, field: IAppDEMethodDTOField): Promise<MethodDto>;
|
|
64
76
|
}
|
|
65
77
|
//# sourceMappingURL=method.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.dto.d.ts","sourceRoot":"","sources":["../../../src/service/dto/method.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"method.dto.d.ts","sourceRoot":"","sources":["../../../src/service/dto/method.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAM1E;;;;;;;GAOG;AACH,qBAAa,SAAS;IAQlB,SAAS,CAAC,OAAO,EAAE,aAAa;IAChC,SAAS,CAAC,MAAM,EAAE,cAAc;IAChC,SAAS,CAAC,WAAW,CAAC;IACtB,SAAS,CAAC,GAAG,CAAC;IAVhB,SAAS,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC;IAE5B,SAAS,CAAC,MAAM,EAAG,oBAAoB,EAAE,CAAC;IAE1C,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAa;gBAGzC,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,cAAc,EACtB,WAAW,CAAC,qBAAS,EACrB,GAAG,CAAC,6BAAiB;IAUjC;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,EAAE;IAI1D;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAS7B;;;;;;;;OAQG;IACG,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAwDzD;;;;;;;;OAQG;IACG,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IA4CtE;;;;;;;;;OASG;cACa,WAAW,CACzB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,SAAS,CAAC;CAkBtB"}
|
|
@@ -10,7 +10,8 @@ import { findModelChild } from '../../model';
|
|
|
10
10
|
* @class MethodDto
|
|
11
11
|
*/
|
|
12
12
|
export class MethodDto {
|
|
13
|
-
constructor(entity, isLocalMode, dto) {
|
|
13
|
+
constructor(service, entity, isLocalMode, dto) {
|
|
14
|
+
this.service = service;
|
|
14
15
|
this.entity = entity;
|
|
15
16
|
this.isLocalMode = isLocalMode;
|
|
16
17
|
this.dto = dto;
|
|
@@ -23,6 +24,18 @@ export class MethodDto {
|
|
|
23
24
|
this.fields = [];
|
|
24
25
|
}
|
|
25
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* 查找本地 DTO 存储数据
|
|
29
|
+
*
|
|
30
|
+
* @author chitanda
|
|
31
|
+
* @date 2023-12-22 14:12:19
|
|
32
|
+
* @param {IContext} context
|
|
33
|
+
* @param {IParams} [params]
|
|
34
|
+
* @return {*} {IDataEntity[]}
|
|
35
|
+
*/
|
|
36
|
+
select(context, params) {
|
|
37
|
+
return this.service.local.select(context, params);
|
|
38
|
+
}
|
|
26
39
|
/**
|
|
27
40
|
* 转换数组成ListMap
|
|
28
41
|
*
|
|
@@ -55,7 +68,7 @@ export class MethodDto {
|
|
|
55
68
|
*
|
|
56
69
|
* @author chitanda
|
|
57
70
|
* @date 2022-10-10 23:10:33
|
|
58
|
-
* @param {
|
|
71
|
+
* @param {IContext} context
|
|
59
72
|
* @param {IData} data
|
|
60
73
|
* @return {*} {Promise<IData>}
|
|
61
74
|
*/
|
|
@@ -88,11 +101,13 @@ export class MethodDto {
|
|
|
88
101
|
if (!field.refAppDataEntityId) {
|
|
89
102
|
break;
|
|
90
103
|
}
|
|
91
|
-
const dto = await this.getFieldDto(field);
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
const dto = await this.getFieldDto(context, field);
|
|
105
|
+
// 子数据过滤参数
|
|
106
|
+
const filterParams = {};
|
|
107
|
+
if (field.refPickupAppDEFieldId) {
|
|
108
|
+
filterParams[field.refPickupAppDEFieldId] = data.srfkey;
|
|
109
|
+
}
|
|
110
|
+
const items = await dto.select(context, filterParams);
|
|
96
111
|
if (items) {
|
|
97
112
|
const arr = [];
|
|
98
113
|
for (let j = 0; j < items.length; j++) {
|
|
@@ -115,14 +130,13 @@ export class MethodDto {
|
|
|
115
130
|
*
|
|
116
131
|
* @author chitanda
|
|
117
132
|
* @date 2022-10-10 23:10:50
|
|
118
|
-
* @param {
|
|
133
|
+
* @param {IContext} context
|
|
119
134
|
* @param {IData[]} data
|
|
120
135
|
* @return {*} {Promise<AppDataEntity[]>}
|
|
121
136
|
*/
|
|
122
137
|
async sets(context, data) {
|
|
123
|
-
const service = await this.app.deService.getService(this.entity.id);
|
|
124
138
|
if (this.isLocalMode) {
|
|
125
|
-
service.local.clear(
|
|
139
|
+
this.service.local.clear();
|
|
126
140
|
}
|
|
127
141
|
return Promise.all(data.map(async (datum) => {
|
|
128
142
|
const all = this.fields
|
|
@@ -137,13 +151,14 @@ export class MethodDto {
|
|
|
137
151
|
if (!field.refAppDataEntityId) {
|
|
138
152
|
return;
|
|
139
153
|
}
|
|
140
|
-
const dto = await this.getFieldDto(field);
|
|
154
|
+
const dto = await this.getFieldDto(context, field);
|
|
141
155
|
const items = datum[key];
|
|
142
156
|
if (items) {
|
|
143
157
|
const pKey = datum[this.entity.keyAppDEFieldId];
|
|
144
158
|
// 特殊处理,在子包内设置父对象标识
|
|
145
159
|
items.forEach(item => {
|
|
146
160
|
item.srfpkey = pKey;
|
|
161
|
+
item[field.refPickupAppDEFieldId] = pKey;
|
|
147
162
|
});
|
|
148
163
|
await dto.sets(context, items);
|
|
149
164
|
}
|
|
@@ -157,7 +172,7 @@ export class MethodDto {
|
|
|
157
172
|
}
|
|
158
173
|
const entityData = new AppDataEntity(this.entity, datum);
|
|
159
174
|
if (this.isLocalMode) {
|
|
160
|
-
await service.local.add(context, entityData);
|
|
175
|
+
await this.service.local.add(context, entityData);
|
|
161
176
|
}
|
|
162
177
|
return entityData;
|
|
163
178
|
}));
|
|
@@ -166,18 +181,21 @@ export class MethodDto {
|
|
|
166
181
|
* 获取子属性 DTO
|
|
167
182
|
*
|
|
168
183
|
* @author chitanda
|
|
169
|
-
* @date
|
|
184
|
+
* @date 2023-12-22 13:12:06
|
|
170
185
|
* @protected
|
|
186
|
+
* @param {IContext} context
|
|
171
187
|
* @param {IAppDEMethodDTOField} field
|
|
172
188
|
* @return {*} {Promise<MethodDto>}
|
|
173
189
|
*/
|
|
174
|
-
async getFieldDto(field) {
|
|
190
|
+
async getFieldDto(context, field) {
|
|
175
191
|
if (this.dtoMap.has(field.codeName)) {
|
|
176
192
|
return this.dtoMap.get(field.codeName);
|
|
177
193
|
}
|
|
178
194
|
const entity = await ibiz.hub.getAppDataEntity(field.refAppDataEntityId, this.entity.appId);
|
|
179
195
|
const methodDto = findModelChild(entity.appDEMethodDTOs || [], field.refAppDEMethodDTOId);
|
|
180
|
-
const
|
|
196
|
+
const service = await this.app.deService.getService(context, entity.id);
|
|
197
|
+
service.isLocalMode = true;
|
|
198
|
+
const dto = new MethodDto(service, entity, true, methodDto);
|
|
181
199
|
this.dtoMap.set(field.codeName, dto);
|
|
182
200
|
return dto;
|
|
183
201
|
}
|
|
@@ -63,7 +63,7 @@ export declare class AuthorityService {
|
|
|
63
63
|
* @author chitanda
|
|
64
64
|
* @date 2022-12-23 10:12:24
|
|
65
65
|
* @param {string} id 实体标识
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
|
|
67
67
|
* @return {*} {Promise<IAppDEService>}
|
|
68
68
|
*/
|
|
69
69
|
getService(id: string): Promise<IAppDeAuthorityService>;
|
|
@@ -67,7 +67,7 @@ export class AuthorityService {
|
|
|
67
67
|
* @author chitanda
|
|
68
68
|
* @date 2022-12-23 10:12:24
|
|
69
69
|
* @param {string} id 实体标识
|
|
70
|
-
* @param {
|
|
70
|
+
* @param {IContext} [context] 上下文,用于计算模型所属沙箱环境
|
|
71
71
|
* @return {*} {Promise<IAppDEService>}
|
|
72
72
|
*/
|
|
73
73
|
async getService(id) {
|
|
@@ -77,17 +77,17 @@ export declare class CodeListService {
|
|
|
77
77
|
* @param {IAppCodeList} codeList
|
|
78
78
|
* @returns {*} {IData[]}
|
|
79
79
|
*/
|
|
80
|
-
protected getDynamicCodeList(codeList: IAppCodeList, context
|
|
80
|
+
protected getDynamicCodeList(codeList: IAppCodeList, context: IContext, params?: IParams): Promise<CodeListItem[]>;
|
|
81
81
|
/**
|
|
82
82
|
* 获取代码表
|
|
83
83
|
*
|
|
84
84
|
* @author chitanda
|
|
85
85
|
* @date 2022-08-25 15:08:45
|
|
86
86
|
* @param {string} tag
|
|
87
|
-
* @param {
|
|
87
|
+
* @param {IContext} [context]
|
|
88
88
|
* @param {IParams} [params]
|
|
89
89
|
* @return {*} {Promise<CodeListItem[]>}
|
|
90
90
|
*/
|
|
91
|
-
get(tag: string, context
|
|
91
|
+
get(tag: string, context: IContext, params?: IParams): Promise<readonly CodeListItem[]>;
|
|
92
92
|
}
|
|
93
93
|
//# sourceMappingURL=code-list.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-list.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/code-list/code-list.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAoBd,SAAS,CAAC,QAAQ,EAAE,YAAY;IAnB5C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,4BAAmC;IAEzD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,oBAAoB,CAAC,CAChE;gBAEU,QAAQ,EAAE,YAAY;IAE5C;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE;IAc3D;;;;;;;;OAQG;IACH,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAMzC;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAIlD;;;;;;;;;OASG;IACH,SAAS,CAAC,iBAAiB,CACzB,SAAS,EAAE,SAAS,EAAE,EACtB,aAAa,EAAE,OAAO,GACrB,QAAQ,CAAC,YAAY,CAAC,EAAE;IAsC3B;;;;;;;;OAQG;cACa,kBAAkB,CAChC,QAAQ,EAAE,YAAY,EACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"code-list.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/code-list/code-list.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;;;;GAOG;AACH,qBAAa,eAAe;IAoBd,SAAS,CAAC,QAAQ,EAAE,YAAY;IAnB5C;;;;;OAKG;IACH,SAAS,CAAC,YAAY,4BAAmC;IAEzD;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,oBAAoB,CAAC,CAChE;gBAEU,QAAQ,EAAE,YAAY;IAE5C;;;;;;;OAOG;IACH,SAAS,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,EAAE;IAc3D;;;;;;;;OAQG;IACH,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI;IAMzC;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAIlD;;;;;;;;;OASG;IACH,SAAS,CAAC,iBAAiB,CACzB,SAAS,EAAE,SAAS,EAAE,EACtB,aAAa,EAAE,OAAO,GACrB,QAAQ,CAAC,YAAY,CAAC,EAAE;IAsC3B;;;;;;;;OAQG;cACa,kBAAkB,CAChC,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,YAAY,EAAE,CAAC;IAa1B;;;;;;;;;OASG;IACG,GAAG,CACP,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC;CAcpC"}
|
|
@@ -127,7 +127,7 @@ export class CodeListService {
|
|
|
127
127
|
* @param {IAppCodeList} codeList
|
|
128
128
|
* @returns {*} {IData[]}
|
|
129
129
|
*/
|
|
130
|
-
async getDynamicCodeList(codeList, context
|
|
130
|
+
async getDynamicCodeList(codeList, context, params = {}) {
|
|
131
131
|
let dynamicCache;
|
|
132
132
|
const codeName = codeList.codeName;
|
|
133
133
|
if (this.cache.has(codeName)) {
|
|
@@ -146,7 +146,7 @@ export class CodeListService {
|
|
|
146
146
|
* @author chitanda
|
|
147
147
|
* @date 2022-08-25 15:08:45
|
|
148
148
|
* @param {string} tag
|
|
149
|
-
* @param {
|
|
149
|
+
* @param {IContext} [context]
|
|
150
150
|
* @param {IParams} [params]
|
|
151
151
|
* @return {*} {Promise<CodeListItem[]>}
|
|
152
152
|
*/
|
|
@@ -50,11 +50,11 @@ export declare class ControlService<T extends IControl = IControl> {
|
|
|
50
50
|
* @author lxm
|
|
51
51
|
* @date 2022-08-31 17:08:41
|
|
52
52
|
* @param {string} methodName 方法名
|
|
53
|
-
* @param {
|
|
53
|
+
* @param {IContext} context 上下文
|
|
54
54
|
* @param {IParams} [params={}] 视图参数或数据
|
|
55
55
|
* @returns {*} {Promise<IHttpResponse>}
|
|
56
56
|
*/
|
|
57
|
-
exec(methodName: string, context:
|
|
57
|
+
exec(methodName: string, context: IContext, data?: IData, params?: IParams): Promise<IHttpResponse>;
|
|
58
58
|
/**
|
|
59
59
|
* 处理响应
|
|
60
60
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/control/control.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ;IACvD,GAAG,EAAG,WAAW,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAElB;;;;;;;OAOG;IACH,SAAS,0BAAiC;IAE1C;;;;;OAKG;gBACS,KAAK,EAAE,CAAC;IAIpB;;;;;;OAMG;IACG,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9C;;;;;OAKG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAE/B;;;;;;;;;OASG;IACG,IAAI,CACR,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"control.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/control/control.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAS,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,qBAAa,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ;IACvD,GAAG,EAAG,WAAW,CAAC;IAElB;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAElB;;;;;;;OAOG;IACH,SAAS,0BAAiC;IAE1C;;;;;OAKG;gBACS,KAAK,EAAE,CAAC;IAIpB;;;;;;OAMG;IACG,IAAI,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAK9C;;;;;OAKG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAE/B;;;;;;;;;OASG;IACG,IAAI,CACR,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,QAAQ,EACjB,IAAI,CAAC,EAAE,KAAK,EACZ,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,aAAa,CAAC;IAWzB;;;;;;;OAOG;IACH,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,aAAa;IAKjD;;;;;;;OAOG;IACH,QAAQ,CAAC,UAAU,EAAE,KAAK,GAAG,SAAS;CAGvC"}
|
|
@@ -43,7 +43,7 @@ export class ControlService {
|
|
|
43
43
|
* @author lxm
|
|
44
44
|
* @date 2022-08-31 17:08:41
|
|
45
45
|
* @param {string} methodName 方法名
|
|
46
|
-
* @param {
|
|
46
|
+
* @param {IContext} context 上下文
|
|
47
47
|
* @param {IParams} [params={}] 视图参数或数据
|
|
48
48
|
* @returns {*} {Promise<IHttpResponse>}
|
|
49
49
|
*/
|
|
@@ -8,61 +8,61 @@ export declare class MDControlService<T extends IMDControl = IMDControl> extends
|
|
|
8
8
|
*
|
|
9
9
|
* @author lxm
|
|
10
10
|
* @date 2022-08-31 17:08:41
|
|
11
|
-
* @param {
|
|
11
|
+
* @param {IContext} context 上下文
|
|
12
12
|
* @param {IParams} [params={}] 视图参数
|
|
13
13
|
* @returns {*} {Promise<IHttpResponse>}
|
|
14
14
|
*/
|
|
15
|
-
fetch(context:
|
|
15
|
+
fetch(context: IContext, params?: IParams): Promise<IHttpResponse<ControlVO[]>>;
|
|
16
16
|
/**
|
|
17
17
|
* 执行获取单条数据方法
|
|
18
18
|
*
|
|
19
19
|
* @author lxm
|
|
20
20
|
* @date 2022-08-31 17:08:41
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {IContext} context 上下文
|
|
22
22
|
* @param {IParams} [params={}] 视图参数
|
|
23
23
|
* @returns {*} {Promise<IHttpResponse>}
|
|
24
24
|
*/
|
|
25
|
-
get(context:
|
|
25
|
+
get(context: IContext, params?: IParams): Promise<IHttpResponse<ControlVO>>;
|
|
26
26
|
/**
|
|
27
27
|
* 执行获取草稿方法
|
|
28
28
|
*
|
|
29
29
|
* @author lxm
|
|
30
30
|
* @date 2022-08-31 17:08:41
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {IContext} context 上下文
|
|
32
32
|
* @param {IParams} [params={}] 视图参数
|
|
33
33
|
* @returns {*} {Promise<IHttpResponse>}
|
|
34
34
|
*/
|
|
35
|
-
getDraft(context:
|
|
35
|
+
getDraft(context: IContext, params?: IParams): Promise<IHttpResponse<ControlVO>>;
|
|
36
36
|
/**
|
|
37
37
|
* 删除单条数据
|
|
38
38
|
*
|
|
39
39
|
* @author lxm
|
|
40
40
|
* @date 2022-09-07 19:09:48
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {IContext} context 上下文
|
|
42
42
|
* @param {IParams} [params={}] 视图参数
|
|
43
43
|
* @returns {*}
|
|
44
44
|
*/
|
|
45
|
-
remove(context:
|
|
45
|
+
remove(context: IContext, params?: IParams): Promise<IHttpResponse>;
|
|
46
46
|
/**
|
|
47
47
|
* 新建数据
|
|
48
48
|
*
|
|
49
49
|
* @author lxm
|
|
50
50
|
* @date 2022-09-07 19:09:11
|
|
51
|
-
* @param {
|
|
51
|
+
* @param {IContext} context 上下文
|
|
52
52
|
* @param {ControlVO} data 数据
|
|
53
53
|
* @returns {*}
|
|
54
54
|
*/
|
|
55
|
-
create(context:
|
|
55
|
+
create(context: IContext, data: ControlVO): Promise<IHttpResponse<ControlVO>>;
|
|
56
56
|
/**
|
|
57
57
|
* 更新数据
|
|
58
58
|
*
|
|
59
59
|
* @author lxm
|
|
60
60
|
* @date 2022-09-07 19:09:11
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {IContext} context 上下文
|
|
62
62
|
* @param {ControlVO} data 数据
|
|
63
63
|
* @returns {*}
|
|
64
64
|
*/
|
|
65
|
-
update(context:
|
|
65
|
+
update(context: IContext, data: ControlVO): Promise<IHttpResponse<ControlVO>>;
|
|
66
66
|
/**
|
|
67
67
|
* 批量更新数据
|
|
68
68
|
*
|
|
@@ -79,7 +79,7 @@ export declare class MDControlService<T extends IMDControl = IMDControl> extends
|
|
|
79
79
|
* @author lxm
|
|
80
80
|
* @date 2022-11-25 14:11:09
|
|
81
81
|
* @param {IPSDEDataExport} dataExport 导出模型
|
|
82
|
-
* @param {
|
|
82
|
+
* @param {IContext} context 上下文
|
|
83
83
|
* @param {IParams} [params={}] 请求参数
|
|
84
84
|
* @returns {*} {Promise<IHttpResponse>}
|
|
85
85
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"md-control.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/control/md-control.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,gBAAgB,CAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB;;;;;;;;OAQG;IACG,KAAK,CACT,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"md-control.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/control/md-control.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,gBAAgB,CAC3B,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB;;;;;;;;OAQG;IACG,KAAK,CACT,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC;IAQtC;;;;;;;;OAQG;IACG,GAAG,CACP,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAOpC;;;;;;;;OAQG;IACG,QAAQ,CACZ,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAQpC;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,EAAE,QAAQ,EACjB,MAAM,GAAE,OAAY,GACnB,OAAO,CAAC,aAAa,CAAC;IAOzB;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAQpC;;;;;;;;OAQG;IACG,MAAM,CACV,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAQpC;;;;;;;;OAQG;IACG,WAAW,CACf,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,SAAS,EAAE,GAChB,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC;IAYtC;;;;;;;;;OASG;IACG,UAAU,CACd,WAAW,EAAE,aAAa,EAC1B,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAU/B;;;;;;;OAOG;IACH,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,aAAa;CAwBvD"}
|
|
@@ -7,7 +7,7 @@ export class MDControlService extends ControlService {
|
|
|
7
7
|
*
|
|
8
8
|
* @author lxm
|
|
9
9
|
* @date 2022-08-31 17:08:41
|
|
10
|
-
* @param {
|
|
10
|
+
* @param {IContext} context 上下文
|
|
11
11
|
* @param {IParams} [params={}] 视图参数
|
|
12
12
|
* @returns {*} {Promise<IHttpResponse>}
|
|
13
13
|
*/
|
|
@@ -23,7 +23,7 @@ export class MDControlService extends ControlService {
|
|
|
23
23
|
*
|
|
24
24
|
* @author lxm
|
|
25
25
|
* @date 2022-08-31 17:08:41
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {IContext} context 上下文
|
|
27
27
|
* @param {IParams} [params={}] 视图参数
|
|
28
28
|
* @returns {*} {Promise<IHttpResponse>}
|
|
29
29
|
*/
|
|
@@ -39,7 +39,7 @@ export class MDControlService extends ControlService {
|
|
|
39
39
|
*
|
|
40
40
|
* @author lxm
|
|
41
41
|
* @date 2022-08-31 17:08:41
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {IContext} context 上下文
|
|
43
43
|
* @param {IParams} [params={}] 视图参数
|
|
44
44
|
* @returns {*} {Promise<IHttpResponse>}
|
|
45
45
|
*/
|
|
@@ -55,7 +55,7 @@ export class MDControlService extends ControlService {
|
|
|
55
55
|
*
|
|
56
56
|
* @author lxm
|
|
57
57
|
* @date 2022-09-07 19:09:48
|
|
58
|
-
* @param {
|
|
58
|
+
* @param {IContext} context 上下文
|
|
59
59
|
* @param {IParams} [params={}] 视图参数
|
|
60
60
|
* @returns {*}
|
|
61
61
|
*/
|
|
@@ -70,7 +70,7 @@ export class MDControlService extends ControlService {
|
|
|
70
70
|
*
|
|
71
71
|
* @author lxm
|
|
72
72
|
* @date 2022-09-07 19:09:11
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {IContext} context 上下文
|
|
74
74
|
* @param {ControlVO} data 数据
|
|
75
75
|
* @returns {*}
|
|
76
76
|
*/
|
|
@@ -86,7 +86,7 @@ export class MDControlService extends ControlService {
|
|
|
86
86
|
*
|
|
87
87
|
* @author lxm
|
|
88
88
|
* @date 2022-09-07 19:09:11
|
|
89
|
-
* @param {
|
|
89
|
+
* @param {IContext} context 上下文
|
|
90
90
|
* @param {ControlVO} data 数据
|
|
91
91
|
* @returns {*}
|
|
92
92
|
*/
|
|
@@ -119,7 +119,7 @@ export class MDControlService extends ControlService {
|
|
|
119
119
|
* @author lxm
|
|
120
120
|
* @date 2022-11-25 14:11:09
|
|
121
121
|
* @param {IPSDEDataExport} dataExport 导出模型
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {IContext} context 上下文
|
|
123
123
|
* @param {IParams} [params={}] 请求参数
|
|
124
124
|
* @returns {*} {Promise<IHttpResponse>}
|
|
125
125
|
*/
|
|
@@ -27,7 +27,7 @@ export declare class CounterService {
|
|
|
27
27
|
* @param {IAppCounter} model
|
|
28
28
|
* @return {*} {Promise<AppCounter>}
|
|
29
29
|
*/
|
|
30
|
-
static getCounter(model: IAppCounter, context?:
|
|
30
|
+
static getCounter(model: IAppCounter, context?: IContext, params?: IParams): Promise<AppCounter>;
|
|
31
31
|
/**
|
|
32
32
|
* 根据计数器引用获取计数器实例
|
|
33
33
|
*
|
|
@@ -35,10 +35,10 @@ export declare class CounterService {
|
|
|
35
35
|
* @date 2022-10-26 20:10:20
|
|
36
36
|
* @static
|
|
37
37
|
* @param {IAppCounterRef} model
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {IContext} context
|
|
39
39
|
* @param {IParams} params
|
|
40
40
|
* @return {*} {Promise<AppCounter>}
|
|
41
41
|
*/
|
|
42
|
-
static getCounterByRef(model: IAppCounterRef, context?:
|
|
42
|
+
static getCounterByRef(model: IAppCounterRef, context?: IContext, params?: IParams): Promise<AppCounter>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=counter.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"counter.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/counter/counter.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAa;IAEjE;;;;;;;OAOG;WACU,UAAU,CACrB,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"counter.service.d.ts","sourceRoot":"","sources":["../../../../src/service/service/counter/counter.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,cAAc;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAa;IAEjE;;;;;;;OAOG;WACU,UAAU,CACrB,KAAK,EAAE,WAAW,EAClB,OAAO,CAAC,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;IAgBtB;;;;;;;;;;OAUG;WACU,eAAe,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,QAAQ,EAClB,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,UAAU,CAAC;CAOvB"}
|