@ibiz-template/runtime 0.5.7-alpha.3 → 0.5.7-alpha.5
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 +661 -309
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts +2 -0
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +2 -0
- package/out/application.js +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/exp-bar.controller.js +7 -0
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts +5 -0
- package/out/controller/control/exp-bar/tree-exp-bar.controller.d.ts.map +1 -1
- package/out/controller/control/exp-bar/tree-exp-bar.controller.js +16 -0
- package/out/controller/control/search-bar/entity-schema.d.ts +1 -2
- package/out/controller/control/search-bar/entity-schema.d.ts.map +1 -1
- package/out/controller/control/search-bar/entity-schema.js +2 -2
- package/out/controller/control/search-bar/index.d.ts +2 -0
- package/out/controller/control/search-bar/index.d.ts.map +1 -1
- package/out/controller/control/search-bar/index.js +2 -0
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts +5 -6
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.js +6 -9
- package/out/controller/control/search-bar/search-bar.controller.d.ts +1 -24
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +11 -88
- package/out/controller/control/search-bar/use-searchcond.d.ts +33 -0
- package/out/controller/control/search-bar/use-searchcond.d.ts.map +1 -0
- package/out/controller/control/search-bar/use-searchcond.js +91 -0
- package/out/controller/notification/async-action.controller.d.ts +64 -0
- package/out/controller/notification/async-action.controller.d.ts.map +1 -0
- package/out/controller/notification/async-action.controller.js +141 -0
- package/out/controller/notification/index.d.ts +2 -0
- package/out/controller/notification/index.d.ts.map +1 -0
- package/out/controller/notification/index.js +1 -0
- package/out/controller/notification/internal-message.controller.d.ts +23 -0
- package/out/controller/notification/internal-message.controller.d.ts.map +1 -0
- package/out/controller/notification/internal-message.controller.js +50 -0
- package/out/controller/notification/notice.controller.d.ts +10 -0
- package/out/controller/notification/notice.controller.d.ts.map +1 -0
- package/out/controller/notification/notice.controller.js +13 -0
- package/out/global/global-util/global-util.d.ts +9 -1
- package/out/global/global-util/global-util.d.ts.map +1 -1
- package/out/global/global-util/global-util.js +9 -1
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts +8 -1
- package/out/interface/common/i-app-hub-service/i-app-hub-service.d.ts.map +1 -1
- package/out/interface/common/i-popover-options/i-popover-options.d.ts +9 -1
- package/out/interface/common/i-popover-options/i-popover-options.d.ts.map +1 -1
- package/out/interface/controller/controller/index.d.ts +1 -0
- package/out/interface/controller/controller/index.d.ts.map +1 -1
- package/out/interface/controller/controller/index.js +1 -0
- package/out/interface/controller/controller/notice/i-async-action.controller.d.ts +49 -0
- package/out/interface/controller/controller/notice/i-async-action.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/notice/i-async-action.controller.js +1 -0
- package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts +68 -0
- package/out/interface/controller/controller/notice/i-internal-message.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/notice/i-internal-message.controller.js +1 -0
- package/out/interface/controller/controller/notice/i-notice.controller.d.ts +33 -0
- package/out/interface/controller/controller/notice/i-notice.controller.d.ts.map +1 -0
- package/out/interface/controller/controller/notice/i-notice.controller.js +1 -0
- package/out/interface/controller/controller/notice/index.d.ts +4 -0
- package/out/interface/controller/controller/notice/index.d.ts.map +1 -0
- package/out/interface/controller/controller/notice/index.js +1 -0
- package/out/interface/provider/i-async-action.provider.d.ts +11 -3
- package/out/interface/provider/i-async-action.provider.d.ts.map +1 -1
- package/out/interface/provider/i-internal-message.provider.d.ts +10 -2
- package/out/interface/provider/i-internal-message.provider.d.ts.map +1 -1
- package/out/interface/util/i-notice-util/i-notice-util.d.ts +34 -0
- package/out/interface/util/i-notice-util/i-notice-util.d.ts.map +1 -0
- package/out/interface/util/i-notice-util/i-notice-util.js +1 -0
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +2 -2
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
- package/out/interface/util/index.d.ts +1 -0
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/register/helper/async-action-register.d.ts +2 -1
- package/out/register/helper/async-action-register.d.ts.map +1 -1
- package/out/register/helper/async-action-register.js +3 -3
- package/out/register/helper/internal-message-register.js +2 -2
- package/out/service/service/auth/v7-auth.service.d.ts +8 -0
- package/out/service/service/auth/v7-auth.service.d.ts.map +1 -1
- package/out/service/service/auth/v7-auth.service.js +15 -0
- package/out/service/service/internal-message/internal-message.service.d.ts +1 -1
- package/out/service/service/internal-message/internal-message.service.d.ts.map +1 -1
- package/out/service/service/internal-message/internal-message.service.js +7 -16
- package/out/types.d.ts +8 -1
- package/out/types.d.ts.map +1 -1
- package/out/utils/file-util/file-util.d.ts +57 -0
- package/out/utils/file-util/file-util.d.ts.map +1 -0
- package/out/utils/file-util/file-util.js +113 -0
- package/out/utils/file-util/index.d.ts +2 -0
- package/out/utils/file-util/index.d.ts.map +1 -0
- package/out/utils/file-util/index.js +1 -0
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/package.json +5 -6
- package/src/app-hub.ts +3 -0
- package/src/application.ts +1 -1
- package/src/controller/control/exp-bar/exp-bar.controller.ts +6 -0
- package/src/controller/control/exp-bar/tree-exp-bar.controller.ts +17 -0
- package/src/controller/control/search-bar/entity-schema.ts +4 -4
- package/src/controller/control/search-bar/index.ts +2 -0
- package/src/controller/control/search-bar/search-bar-filter.controller.ts +15 -10
- package/src/controller/control/search-bar/search-bar.controller.ts +24 -98
- package/src/controller/control/search-bar/use-searchcond.ts +100 -0
- package/src/controller/notification/async-action.controller.ts +163 -0
- package/src/controller/notification/index.ts +1 -0
- package/src/controller/notification/internal-message.controller.ts +64 -0
- package/src/controller/notification/notice.controller.ts +16 -0
- package/src/global/global-util/global-util.ts +10 -0
- package/src/interface/common/i-app-hub-service/i-app-hub-service.ts +9 -1
- package/src/interface/common/i-popover-options/i-popover-options.ts +10 -1
- package/src/interface/controller/controller/index.ts +1 -0
- package/src/interface/controller/controller/notice/i-async-action.controller.ts +52 -0
- package/src/interface/controller/controller/notice/i-internal-message.controller.ts +74 -0
- package/src/interface/controller/controller/notice/i-notice.controller.ts +36 -0
- package/src/interface/controller/controller/notice/index.ts +9 -0
- package/src/interface/provider/i-async-action.provider.ts +14 -3
- package/src/interface/provider/i-internal-message.provider.ts +10 -2
- package/src/interface/util/i-notice-util/i-notice-util.ts +34 -0
- package/src/interface/util/i-open-view-util/i-open-view-util.ts +2 -1
- package/src/interface/util/index.ts +1 -0
- package/src/register/helper/async-action-register.ts +4 -4
- package/src/register/helper/internal-message-register.ts +2 -2
- package/src/service/service/auth/v7-auth.service.ts +16 -1
- package/src/service/service/internal-message/internal-message.service.ts +12 -18
- package/src/types.ts +9 -0
- package/src/utils/file-util/file-util.ts +141 -0
- package/src/utils/file-util/index.ts +1 -0
- package/src/utils/index.ts +1 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { QXEvent } from 'qx-util';
|
|
2
|
+
import { IPortalAsyncAction } from '@ibiz-template/core';
|
|
3
|
+
import { AsyncActionService } from '../../service';
|
|
4
|
+
import { IAsyncActionController, IAsyncActionEvent } from '../../interface';
|
|
5
|
+
export declare class AsyncActionController implements IAsyncActionController {
|
|
6
|
+
readonly evt: QXEvent<IAsyncActionEvent>;
|
|
7
|
+
total: number;
|
|
8
|
+
actions: IPortalAsyncAction[];
|
|
9
|
+
/**
|
|
10
|
+
* 正在处理中的数量
|
|
11
|
+
* @author lxm
|
|
12
|
+
* @date 2024-01-25 04:51:18
|
|
13
|
+
* @type {number}
|
|
14
|
+
*/
|
|
15
|
+
doingNum: number;
|
|
16
|
+
/**
|
|
17
|
+
* 结束的状态值集合
|
|
18
|
+
* @author lxm
|
|
19
|
+
* @date 2024-01-25 05:08:26
|
|
20
|
+
* @protected
|
|
21
|
+
*/
|
|
22
|
+
protected finishedStates: number[];
|
|
23
|
+
/**
|
|
24
|
+
* 请求服务
|
|
25
|
+
* @author lxm
|
|
26
|
+
* @date 2024-01-25 04:50:12
|
|
27
|
+
* @protected
|
|
28
|
+
*/
|
|
29
|
+
protected service: AsyncActionService;
|
|
30
|
+
init(): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 监听全局的实时消息
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2024-01-25 04:47:36
|
|
35
|
+
*/
|
|
36
|
+
protected listenMessage(): void;
|
|
37
|
+
/**
|
|
38
|
+
* 格式化数据
|
|
39
|
+
* @author lxm
|
|
40
|
+
* @date 2024-01-25 05:03:47
|
|
41
|
+
* @protected
|
|
42
|
+
* @param {IPortalAsyncAction} data
|
|
43
|
+
* @return {*} {IPortalAsyncAction}
|
|
44
|
+
*/
|
|
45
|
+
protected formatAsyncAction(data: IPortalAsyncAction): IPortalAsyncAction;
|
|
46
|
+
/**
|
|
47
|
+
* 添加一条新消息
|
|
48
|
+
* @author lxm
|
|
49
|
+
* @date 2024-01-25 04:58:37
|
|
50
|
+
* @protected
|
|
51
|
+
* @param {IPortalAsyncAction} action
|
|
52
|
+
*/
|
|
53
|
+
protected add(action: IPortalAsyncAction): void;
|
|
54
|
+
/**
|
|
55
|
+
* 添加一条新消息
|
|
56
|
+
* @author lxm
|
|
57
|
+
* @date 2024-01-25 04:58:37
|
|
58
|
+
* @protected
|
|
59
|
+
* @param {IPortalAsyncAction} action
|
|
60
|
+
*/
|
|
61
|
+
protected update(action: IPortalAsyncAction): void;
|
|
62
|
+
protected noticeResult(action: IPortalAsyncAction): void;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=async-action.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-action.controller.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/async-action.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,qBAAa,qBAAsB,YAAW,sBAAsB;IAClE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAiB;IAEzD,KAAK,EAAE,MAAM,CAAK;IAElB,OAAO,EAAE,kBAAkB,EAAE,CAAM;IAEnC;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAK;IAErB;;;;;OAKG;IACH,SAAS,CAAC,cAAc,WAAY;IAEpC;;;;;OAKG;IACH,SAAS,CAAC,OAAO,qBAA4B;IAEvC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B;;;;OAIG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAsB/B;;;;;;;OAOG;IACH,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB;IAmCzE;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAc/C;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAkBlD,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;CAGzD"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { QXEvent } from 'qx-util';
|
|
2
|
+
import { clone } from 'ramda';
|
|
3
|
+
import { isNil, isNumber } from 'lodash-es';
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
|
+
import { AsyncActionService } from '../../service';
|
|
6
|
+
export class AsyncActionController {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.evt = new QXEvent();
|
|
9
|
+
this.total = 0;
|
|
10
|
+
this.actions = [];
|
|
11
|
+
/**
|
|
12
|
+
* 正在处理中的数量
|
|
13
|
+
* @author lxm
|
|
14
|
+
* @date 2024-01-25 04:51:18
|
|
15
|
+
* @type {number}
|
|
16
|
+
*/
|
|
17
|
+
this.doingNum = 0;
|
|
18
|
+
/**
|
|
19
|
+
* 结束的状态值集合
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2024-01-25 05:08:26
|
|
22
|
+
* @protected
|
|
23
|
+
*/
|
|
24
|
+
this.finishedStates = [30, 40];
|
|
25
|
+
/**
|
|
26
|
+
* 请求服务
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2024-01-25 04:50:12
|
|
29
|
+
* @protected
|
|
30
|
+
*/
|
|
31
|
+
this.service = new AsyncActionService();
|
|
32
|
+
}
|
|
33
|
+
async init() {
|
|
34
|
+
this.listenMessage();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 监听全局的实时消息
|
|
38
|
+
* @author lxm
|
|
39
|
+
* @date 2024-01-25 04:47:36
|
|
40
|
+
*/
|
|
41
|
+
listenMessage() {
|
|
42
|
+
ibiz.mc.command.asyncAction.on(async (msg) => {
|
|
43
|
+
if (!msg.data || msg.subtype !== 'ASYNCACTION') {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const asyncAction = this.formatAsyncAction(msg.data);
|
|
47
|
+
const findIndex = this.actions.findIndex(item => item.asyncacitonid === asyncAction.asyncacitonid);
|
|
48
|
+
if (findIndex === -1) {
|
|
49
|
+
this.add(asyncAction);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this.update(asyncAction);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 格式化数据
|
|
58
|
+
* @author lxm
|
|
59
|
+
* @date 2024-01-25 05:03:47
|
|
60
|
+
* @protected
|
|
61
|
+
* @param {IPortalAsyncAction} data
|
|
62
|
+
* @return {*} {IPortalAsyncAction}
|
|
63
|
+
*/
|
|
64
|
+
formatAsyncAction(data) {
|
|
65
|
+
// 处理时间日期为毫秒值时,转换成字符串。
|
|
66
|
+
const dateFields = [
|
|
67
|
+
'begintime',
|
|
68
|
+
'endtime',
|
|
69
|
+
'createdate',
|
|
70
|
+
'updatedate',
|
|
71
|
+
];
|
|
72
|
+
dateFields.forEach(key => {
|
|
73
|
+
if (isNumber(data[key])) {
|
|
74
|
+
data[key] = dayjs(data[key]).format('YYYY-MM-DD HH:mm:ss');
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
if (!isNil(data.actionresult)) {
|
|
78
|
+
try {
|
|
79
|
+
const json = JSON.parse(data.actionresult);
|
|
80
|
+
data.actionresult = json;
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
// 不是对象类型就是字符串。
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (!isNil(data.completionrate)) {
|
|
87
|
+
const num = Number(data.completionrate);
|
|
88
|
+
if (Number.isNaN(num)) {
|
|
89
|
+
data.completionrate = undefined;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
data.completionrate = num;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return data;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 添加一条新消息
|
|
99
|
+
* @author lxm
|
|
100
|
+
* @date 2024-01-25 04:58:37
|
|
101
|
+
* @protected
|
|
102
|
+
* @param {IPortalAsyncAction} action
|
|
103
|
+
*/
|
|
104
|
+
add(action) {
|
|
105
|
+
this.actions.unshift(action);
|
|
106
|
+
// 非结束状态的消息加一
|
|
107
|
+
if (!this.finishedStates.includes(action.actionstate)) {
|
|
108
|
+
this.doingNum += 1;
|
|
109
|
+
ibiz.notice.showDoingNotice({ num: this.doingNum });
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
this.noticeResult(action);
|
|
113
|
+
}
|
|
114
|
+
this.evt.emit('add', clone(action));
|
|
115
|
+
this.evt.emit('dataChange');
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 添加一条新消息
|
|
119
|
+
* @author lxm
|
|
120
|
+
* @date 2024-01-25 04:58:37
|
|
121
|
+
* @protected
|
|
122
|
+
* @param {IPortalAsyncAction} action
|
|
123
|
+
*/
|
|
124
|
+
update(action) {
|
|
125
|
+
const index = this.actions.findIndex(item => item.asyncacitonid === action.asyncacitonid);
|
|
126
|
+
this.actions.splice(index, 1, action);
|
|
127
|
+
// 执行结束的减一
|
|
128
|
+
if (this.finishedStates.includes(action.actionstate)) {
|
|
129
|
+
this.doingNum -= 1;
|
|
130
|
+
if (this.doingNum <= 0) {
|
|
131
|
+
ibiz.notice.closeDoingNotice();
|
|
132
|
+
}
|
|
133
|
+
this.noticeResult(action);
|
|
134
|
+
}
|
|
135
|
+
this.evt.emit('change', clone(action));
|
|
136
|
+
this.evt.emit('dataChange');
|
|
137
|
+
}
|
|
138
|
+
noticeResult(action) {
|
|
139
|
+
ibiz.notice.showAsyncAction(action);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NoticeController } from './notice.controller';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IInternalMessage } from '@ibiz-template/core';
|
|
2
|
+
import { QXEvent } from 'qx-util';
|
|
3
|
+
import { IInternalMessageController, InternalMessageEvent } from '../../interface';
|
|
4
|
+
import { InternalMessageService } from '../../service';
|
|
5
|
+
export declare class InternalMessageController implements IInternalMessageController {
|
|
6
|
+
readonly evt: QXEvent<InternalMessageEvent>;
|
|
7
|
+
total: number;
|
|
8
|
+
/**
|
|
9
|
+
* 当前分页
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2024-01-26 10:06:28
|
|
12
|
+
* @type {number}
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
size: number;
|
|
16
|
+
messages: IInternalMessage[];
|
|
17
|
+
protected service: InternalMessageService;
|
|
18
|
+
init(): Promise<void>;
|
|
19
|
+
load(): Promise<void>;
|
|
20
|
+
loadMore(): Promise<void>;
|
|
21
|
+
protected fetch(loadMore?: boolean): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=internal-message.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-message.controller.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/internal-message.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,qBAAa,yBAA0B,YAAW,0BAA0B;IAC1E,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAiB;IAE5D,KAAK,EAAE,MAAM,CAAK;IAElB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAK;IAEjB,IAAI,EAAE,MAAM,CAAM;IAElB,QAAQ,EAAE,gBAAgB,EAAE,CAAM;IAElC,SAAS,CAAC,OAAO,yBAAgC;IAE3C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;cAIf,KAAK,CAAC,QAAQ,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;CAwBhE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QXEvent } from 'qx-util';
|
|
2
|
+
import { InternalMessageService } from '../../service';
|
|
3
|
+
export class InternalMessageController {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.evt = new QXEvent();
|
|
6
|
+
this.total = 0;
|
|
7
|
+
/**
|
|
8
|
+
* 当前分页
|
|
9
|
+
* @author lxm
|
|
10
|
+
* @date 2024-01-26 10:06:28
|
|
11
|
+
* @type {number}
|
|
12
|
+
*/
|
|
13
|
+
this.page = 0;
|
|
14
|
+
this.size = 20;
|
|
15
|
+
this.messages = [];
|
|
16
|
+
this.service = new InternalMessageService();
|
|
17
|
+
}
|
|
18
|
+
async init() {
|
|
19
|
+
this.load();
|
|
20
|
+
}
|
|
21
|
+
async load() {
|
|
22
|
+
await this.fetch(false);
|
|
23
|
+
}
|
|
24
|
+
async loadMore() {
|
|
25
|
+
await this.fetch(true);
|
|
26
|
+
}
|
|
27
|
+
async fetch(loadMore = false) {
|
|
28
|
+
// *计算查询参数
|
|
29
|
+
if (loadMore === false) {
|
|
30
|
+
this.page = 0;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.page += 1;
|
|
34
|
+
}
|
|
35
|
+
const fetchParams = {
|
|
36
|
+
page: this.page,
|
|
37
|
+
size: this.size,
|
|
38
|
+
sort: 'update_time,desc',
|
|
39
|
+
};
|
|
40
|
+
const res = await this.service.fetch(fetchParams);
|
|
41
|
+
this.total = res.total;
|
|
42
|
+
if (loadMore) {
|
|
43
|
+
this.messages.push(...res.data);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.messages = res.data;
|
|
47
|
+
}
|
|
48
|
+
this.evt.emit('dataChange');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { INoticeController } from '../../interface';
|
|
2
|
+
import { AsyncActionController } from './async-action.controller';
|
|
3
|
+
import { InternalMessageController } from './internal-message.controller';
|
|
4
|
+
export declare class NoticeController implements INoticeController {
|
|
5
|
+
total: number;
|
|
6
|
+
asyncAction: AsyncActionController;
|
|
7
|
+
internalMessage: InternalMessageController;
|
|
8
|
+
init(): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=notice.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice.controller.d.ts","sourceRoot":"","sources":["../../../src/controller/notification/notice.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,KAAK,SAAK;IAEV,WAAW,wBAA+B;IAE1C,eAAe,4BAAmC;IAE5C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAI5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AsyncActionController } from './async-action.controller';
|
|
2
|
+
import { InternalMessageController } from './internal-message.controller';
|
|
3
|
+
export class NoticeController {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.total = 0;
|
|
6
|
+
this.asyncAction = new AsyncActionController();
|
|
7
|
+
this.internalMessage = new InternalMessageController();
|
|
8
|
+
}
|
|
9
|
+
async init() {
|
|
10
|
+
await this.internalMessage.init();
|
|
11
|
+
await this.asyncAction.init();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IExcelUtil } from '../../interface';
|
|
2
2
|
import { UIActionUtil } from '../../ui-action';
|
|
3
|
-
import { TextUtil, LayoutPanelUtil, HandlebarsUtil, RawValueUtil, ThemeUtil, ErrorHandlerCenter, ViewStack, AnimeUtil } from '../../utils';
|
|
3
|
+
import { TextUtil, LayoutPanelUtil, HandlebarsUtil, RawValueUtil, ThemeUtil, ErrorHandlerCenter, ViewStack, AnimeUtil, FileUtil } from '../../utils';
|
|
4
4
|
/**
|
|
5
5
|
* 全局工具方法或对象
|
|
6
6
|
*
|
|
@@ -73,6 +73,14 @@ export declare class GlobalUtil {
|
|
|
73
73
|
* @memberof GlobalUtil
|
|
74
74
|
*/
|
|
75
75
|
readonly anime: AnimeUtil;
|
|
76
|
+
/**
|
|
77
|
+
* 文件工具类
|
|
78
|
+
*
|
|
79
|
+
* @author zk
|
|
80
|
+
* @date 2024-01-26 04:01:24
|
|
81
|
+
* @memberof GlobalUtil
|
|
82
|
+
*/
|
|
83
|
+
readonly file: FileUtil;
|
|
76
84
|
constructor();
|
|
77
85
|
/**
|
|
78
86
|
* 获取导出Excel工具类对象
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-util.d.ts","sourceRoot":"","sources":["../../../src/global/global-util/global-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,YAAY,EACZ,SAAS,EAET,kBAAkB,EAClB,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"global-util.d.ts","sourceRoot":"","sources":["../../../src/global/global-util/global-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,QAAQ,EACR,eAAe,EACf,cAAc,EACd,YAAY,EACZ,SAAS,EAET,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,QAAQ,EACT,MAAM,aAAa,CAAC;AAErB;;;;;;;GAOG;AACH,qBAAa,UAAU;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,kBAAyB;IAE7C;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,YAAmB;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,WAAkB;IAE/B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,iBAAwB;IAEpC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,eAAsB;IAEvC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,sBAAgB;IAE/B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,qBAA4B;IAE1C;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,YAAmB;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,YAAmB;IAEjC;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,WAAkB;;IAM/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,cAAc,IAAI,IAAI;IAOtB;;;;;OAKG;IACH,gBAAgB,IAAI,IAAI;CAQzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UIActionUtil } from '../../ui-action';
|
|
2
|
-
import { TextUtil, LayoutPanelUtil, HandlebarsUtil, RawValueUtil, ThemeUtil, DefaultErrorHandler, ErrorHandlerCenter, ViewStack, AnimeUtil, } from '../../utils';
|
|
2
|
+
import { TextUtil, LayoutPanelUtil, HandlebarsUtil, RawValueUtil, ThemeUtil, DefaultErrorHandler, ErrorHandlerCenter, ViewStack, AnimeUtil, FileUtil, } from '../../utils';
|
|
3
3
|
/**
|
|
4
4
|
* 全局工具方法或对象
|
|
5
5
|
*
|
|
@@ -73,6 +73,14 @@ export class GlobalUtil {
|
|
|
73
73
|
* @memberof GlobalUtil
|
|
74
74
|
*/
|
|
75
75
|
this.anime = new AnimeUtil();
|
|
76
|
+
/**
|
|
77
|
+
* 文件工具类
|
|
78
|
+
*
|
|
79
|
+
* @author zk
|
|
80
|
+
* @date 2024-01-26 04:01:24
|
|
81
|
+
* @memberof GlobalUtil
|
|
82
|
+
*/
|
|
83
|
+
this.file = new FileUtil();
|
|
76
84
|
this.error.register(new DefaultErrorHandler());
|
|
77
85
|
}
|
|
78
86
|
/**
|
|
@@ -2,7 +2,7 @@ import { IAppDataEntity, IAppView, IApplication } from '@ibiz/model-core';
|
|
|
2
2
|
import { Convert } from '../../../hub';
|
|
3
3
|
import { ModelLoaderProvider } from '../../provider';
|
|
4
4
|
import { IAppConfigService } from '../i-app-config-service/i-app-config-service';
|
|
5
|
-
import { IHubController } from '../../controller';
|
|
5
|
+
import { IHubController, INoticeController } from '../../controller';
|
|
6
6
|
import { IAppDEService, IConfigService } from '../../service';
|
|
7
7
|
import { IAppService } from '../i-app-service/i-app-service';
|
|
8
8
|
/**
|
|
@@ -52,6 +52,13 @@ export interface IAppHubService {
|
|
|
52
52
|
* @date 2023-07-03 07:12:05
|
|
53
53
|
*/
|
|
54
54
|
config: IAppConfigService;
|
|
55
|
+
/**
|
|
56
|
+
* 全局消息总控制器
|
|
57
|
+
* @author lxm
|
|
58
|
+
* @date 2024-01-25 06:49:19
|
|
59
|
+
* @type {INoticeController}
|
|
60
|
+
*/
|
|
61
|
+
notice: INoticeController;
|
|
55
62
|
/**
|
|
56
63
|
* 注册模型加载适配器
|
|
57
64
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-app-hub-service.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-app-hub-service/i-app-hub-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"i-app-hub-service.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-app-hub-service/i-app-hub-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC;;;;;;OAMG;IACH,WAAW,EAAE,cAAc,CAAC;IAE5B;;;;;;OAMG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;;;;OAKG;IACH,MAAM,EAAE,iBAAiB,CAAC;IAE1B;;;;;;OAMG;IACH,2BAA2B,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEjE;;;;;;OAMG;IACH,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IAEvC;;;;;;;OAOG;IACH,qBAAqB,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAElE;;;;;;;;OAQG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjE;;;;;;;OAOG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjC;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEnD;;;;;;;OAOG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE3C;;;;;;;;;OASG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,QAAQ,CAAC,CAAC;IAErB;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEtE;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAElD;;;;;;;OAOG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;IAEjD;;;;;;OAMG;IACH,UAAU,IAAI,WAAW,EAAE,CAAC;IAE5B;;;;;;;;;OASG;IACH,eAAe,CACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,QAAQ,GAChB,OAAO,CAAC,aAAa,CAAC,CAAC;IAE1B;;;;OAIG;IACH,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
@@ -29,7 +29,7 @@ interface AxesOffsets {
|
|
|
29
29
|
* @export
|
|
30
30
|
* @interface IPopoverOptions
|
|
31
31
|
*/
|
|
32
|
-
export interface IPopoverOptions {
|
|
32
|
+
export interface IPopoverOptions<O = unknown> {
|
|
33
33
|
/**
|
|
34
34
|
* 宽度
|
|
35
35
|
*
|
|
@@ -79,6 +79,14 @@ export interface IPopoverOptions {
|
|
|
79
79
|
* @type {boolean}
|
|
80
80
|
*/
|
|
81
81
|
noArrow?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* 原始飘窗参数
|
|
84
|
+
*
|
|
85
|
+
* @author chitanda
|
|
86
|
+
* @date 2024-01-26 09:01:20
|
|
87
|
+
* @type {O}
|
|
88
|
+
*/
|
|
89
|
+
options?: O;
|
|
82
90
|
}
|
|
83
91
|
export {};
|
|
84
92
|
//# sourceMappingURL=i-popover-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-popover-options.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-popover-options/i-popover-options.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,OAAO,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/D,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC;AAC9D,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,IAAI,GAAG,gBAAgB,CAAC;AACxD,UAAU,WAAW;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;
|
|
1
|
+
{"version":3,"file":"i-popover-options.d.ts","sourceRoot":"","sources":["../../../../src/interface/common/i-popover-options/i-popover-options.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAChD,MAAM,CAAC,OAAO,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/D,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC;AAC9D,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,IAAI,GAAG,gBAAgB,CAAC;AACxD,UAAU,WAAW;IACnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAElC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/controller/controller/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/controller/controller/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IPortalAsyncAction } from '@ibiz-template/core';
|
|
2
|
+
import { QXEvent } from 'qx-util';
|
|
3
|
+
/**
|
|
4
|
+
* 站内信事件
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2024-01-26 10:47:41
|
|
7
|
+
* @interface IAsyncActionEvent
|
|
8
|
+
*/
|
|
9
|
+
export interface IAsyncActionEvent {
|
|
10
|
+
/**
|
|
11
|
+
* 所有数据的变更,新增,删除,更新都算
|
|
12
|
+
* @author lxm
|
|
13
|
+
* @date 2024-01-26 10:56:50
|
|
14
|
+
*/
|
|
15
|
+
dataChange: () => void;
|
|
16
|
+
change: (msg: IPortalAsyncAction) => void;
|
|
17
|
+
add: (msg: IPortalAsyncAction) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 异步操作逻辑控制器
|
|
21
|
+
* @author lxm
|
|
22
|
+
* @date 2024-01-26 09:57:13
|
|
23
|
+
* @export
|
|
24
|
+
* @interface IAsyncActionController
|
|
25
|
+
*/
|
|
26
|
+
export interface IAsyncActionController {
|
|
27
|
+
/**
|
|
28
|
+
* 事件
|
|
29
|
+
* @author lxm
|
|
30
|
+
* @date 2024-01-26 10:48:53
|
|
31
|
+
* @type {QXEvent<IAsyncActionEvent>}
|
|
32
|
+
*/
|
|
33
|
+
readonly evt: QXEvent<IAsyncActionEvent>;
|
|
34
|
+
/**
|
|
35
|
+
* 总条数
|
|
36
|
+
* @author lxm
|
|
37
|
+
* @date 2024-01-26 10:00:25
|
|
38
|
+
* @type {number}
|
|
39
|
+
*/
|
|
40
|
+
readonly total: number;
|
|
41
|
+
/**
|
|
42
|
+
* 当前已加载的所有异步操作集合
|
|
43
|
+
* @author lxm
|
|
44
|
+
* @date 2024-01-26 10:06:05
|
|
45
|
+
* @type {IPortalAsyncAction[]}
|
|
46
|
+
*/
|
|
47
|
+
readonly actions: IPortalAsyncAction[];
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=i-async-action.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-async-action.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/notice/i-async-action.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC1C,GAAG,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEzC;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { IInternalMessage } from '@ibiz-template/core';
|
|
2
|
+
import { QXEvent } from 'qx-util';
|
|
3
|
+
/**
|
|
4
|
+
* 站内信事件
|
|
5
|
+
* @author lxm
|
|
6
|
+
* @date 2024-01-26 10:47:41
|
|
7
|
+
* @interface InternalMessageEvent
|
|
8
|
+
*/
|
|
9
|
+
export interface InternalMessageEvent {
|
|
10
|
+
/**
|
|
11
|
+
* 所有数据的变更,新增,删除,更新都算
|
|
12
|
+
* @author lxm
|
|
13
|
+
* @date 2024-01-26 10:56:50
|
|
14
|
+
*/
|
|
15
|
+
dataChange: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 站内信逻辑控制器
|
|
19
|
+
* @author lxm
|
|
20
|
+
* @date 2024-01-26 09:57:13
|
|
21
|
+
* @export
|
|
22
|
+
* @interface IInternalMessageController
|
|
23
|
+
*/
|
|
24
|
+
export interface IInternalMessageController {
|
|
25
|
+
/**
|
|
26
|
+
* 事件
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2024-01-26 10:48:53
|
|
29
|
+
* @type {QXEvent<InternalMessageEvent>}
|
|
30
|
+
*/
|
|
31
|
+
readonly evt: QXEvent<InternalMessageEvent>;
|
|
32
|
+
/**
|
|
33
|
+
* 总条数
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2024-01-26 10:00:25
|
|
36
|
+
* @type {number}
|
|
37
|
+
*/
|
|
38
|
+
readonly total: number;
|
|
39
|
+
/**
|
|
40
|
+
* 每次请求加载的条数
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2024-01-26 10:00:45
|
|
43
|
+
* @type {number}
|
|
44
|
+
*/
|
|
45
|
+
readonly size: number;
|
|
46
|
+
/**
|
|
47
|
+
* 当前已加载的所有消息集合
|
|
48
|
+
* @author lxm
|
|
49
|
+
* @date 2024-01-26 10:06:05
|
|
50
|
+
* @type {IInternalMessage[]}
|
|
51
|
+
*/
|
|
52
|
+
readonly messages: IInternalMessage[];
|
|
53
|
+
/**
|
|
54
|
+
* 加载(会重置数据)
|
|
55
|
+
* @author lxm
|
|
56
|
+
* @date 2024-01-26 10:19:31
|
|
57
|
+
* @return {*} {Promise<void>}
|
|
58
|
+
*/
|
|
59
|
+
load(): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* 加载更多
|
|
62
|
+
* @author lxm
|
|
63
|
+
* @date 2024-01-26 10:19:43
|
|
64
|
+
* @return {*} {Promise<void>}
|
|
65
|
+
*/
|
|
66
|
+
loadMore(): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=i-internal-message.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-internal-message.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/notice/i-internal-message.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAE5C;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAEtC;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB;;;;;OAKG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IAsyncActionController } from './i-async-action.controller';
|
|
2
|
+
import { IInternalMessageController } from './i-internal-message.controller';
|
|
3
|
+
export interface INoticeController {
|
|
4
|
+
/**
|
|
5
|
+
* 需要处理的通知总数
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2024-01-25 04:33:06
|
|
8
|
+
* @type {number}
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* 站内信控制器
|
|
13
|
+
* @author lxm
|
|
14
|
+
* @date 2024-01-26 09:58:36
|
|
15
|
+
* @type {IInternalMessageController}
|
|
16
|
+
*/
|
|
17
|
+
internalMessage: IInternalMessageController;
|
|
18
|
+
/**
|
|
19
|
+
* 异步操作控制器
|
|
20
|
+
* @author lxm
|
|
21
|
+
* @date 2024-01-26 09:58:55
|
|
22
|
+
* @type {IAsyncActionController}
|
|
23
|
+
*/
|
|
24
|
+
asyncAction: IAsyncActionController;
|
|
25
|
+
/**
|
|
26
|
+
* 初始化
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2024-01-25 06:47:09
|
|
29
|
+
* @return {*} {Promise<void>}
|
|
30
|
+
*/
|
|
31
|
+
init(): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=i-notice.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-notice.controller.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/notice/i-notice.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,eAAe,EAAE,0BAA0B,CAAC;IAE5C;;;;;OAKG;IACH,WAAW,EAAE,sBAAsB,CAAC;IAEpC;;;;;OAKG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { INoticeController } from './i-notice.controller';
|
|
2
|
+
export type { IAsyncActionController, IAsyncActionEvent, } from './i-async-action.controller';
|
|
3
|
+
export type { IInternalMessageController, InternalMessageEvent, } from './i-internal-message.controller';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/controller/controller/notice/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,YAAY,EACV,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|