win-chart 2.3.2 → 2.4.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/bundle.esm.js +5 -281
- package/dist/bundle.esm.js.map +1 -0
- package/dist/index.d.ts +1 -183
- package/dist/types/components/WinChart.d.ts +3 -0
- package/dist/types/index.d.ts +2 -4
- package/dist/types/types/index.d.ts +90 -8
- package/dist/types/utils/const.d.ts +4 -10
- package/dist/types/{components/win-chart/utils → utils}/tool.d.ts +6 -0
- package/package.json +8 -10
- package/dist/types/api/request.d.ts +0 -25
- package/dist/types/components/NoContent.d.ts +0 -11
- package/dist/types/components/VisionUserConfigContext.d.ts +0 -3
- package/dist/types/components/hover-view.d.ts +0 -11
- package/dist/types/components/icon.d.ts +0 -11
- package/dist/types/components/panel-title-tab.d.ts +0 -12
- package/dist/types/components/win-card/components/ChartContent.d.ts +0 -7
- package/dist/types/components/win-card/components/Indicator.d.ts +0 -2
- package/dist/types/components/win-card/components/IndicatorArea.d.ts +0 -2
- package/dist/types/components/win-card/components/IndicatorInfo.d.ts +0 -11
- package/dist/types/components/win-card/components/MatterContent.d.ts +0 -5
- package/dist/types/components/win-card/components/MatterList.d.ts +0 -7
- package/dist/types/components/win-card/components/SelectDecoration.d.ts +0 -4
- package/dist/types/components/win-card/components/WinRankContent.d.ts +0 -1
- package/dist/types/components/win-card/index.d.ts +0 -14
- package/dist/types/components/win-chart/index.d.ts +0 -3
- package/dist/types/components/win-chart/utils/const.d.ts +0 -8
- package/dist/types/components/win-icon/index.d.ts +0 -8
- package/dist/types/components/win-wrappers/card-wrapper.d.ts +0 -17
- package/dist/types/components/win-wrappers/dot-wrapper.d.ts +0 -4
- package/dist/types/components/win-wrappers/iframe-wrapper.d.ts +0 -2
- package/dist/types/components/win-wrappers/request-wrapper.d.ts +0 -41
- package/dist/types/hooks/useCardOptionList.d.ts +0 -2
- package/dist/types/hooks/useHasIntersected.d.ts +0 -8
- package/dist/types/services/CardService.d.ts +0 -33
- package/dist/types/services/IndicatorService.d.ts +0 -19
- package/dist/types/services/WorkbenchService.d.ts +0 -17
- package/dist/types/types/chart.d.ts +0 -90
- package/dist/types/types/enum.d.ts +0 -128
- package/dist/types/types/indicator.d.ts +0 -252
- package/dist/types/types/interface.d.ts +0 -271
- package/dist/types/types/portal.d.ts +0 -180
- package/dist/types/types/report.d.ts +0 -25
- package/dist/types/types/type.d.ts +0 -9
- package/dist/types/types/user.d.ts +0 -26
- package/dist/types/utils/arr.d.ts +0 -41
- package/dist/types/utils/index.d.ts +0 -10
- package/dist/types/utils/init.d.ts +0 -5
- package/dist/types/utils/map.d.ts +0 -84
- package/dist/types/utils/str.d.ts +0 -12
- package/dist/types/utils/url.d.ts +0 -15
- package/dist/types/utils/util.d.ts +0 -14
- /package/dist/types/components/{win-chart/components/chart-wrapper.d.ts → ChartWrapper.d.ts} +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getAreaSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getBarSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getChartOptions.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getColumnSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getDualSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getFunnelSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getLineSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getPieSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getRadarSpec.d.ts +0 -0
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { OperateType } from './enum';
|
|
3
|
-
import { IIndicatorCardConfig } from './indicator';
|
|
4
|
-
import { ICardGroupInfo, IMatterPendingInfo, INoticeInfo } from './portal';
|
|
5
|
-
export interface IStyleProps {
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IListItemDataSourceMap {
|
|
11
|
-
[p: string]: IListItem[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 列表选项
|
|
15
|
-
*/
|
|
16
|
-
export interface IListItem<T = string> {
|
|
17
|
-
label: string;
|
|
18
|
-
value: T;
|
|
19
|
-
children?: IListItem<T>[];
|
|
20
|
-
}
|
|
21
|
-
export interface IResponse<T = any> {
|
|
22
|
-
data: T;
|
|
23
|
-
errorCode: string;
|
|
24
|
-
errorMsg: string;
|
|
25
|
-
msg?: string;
|
|
26
|
-
success: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 图表选项
|
|
30
|
-
*/
|
|
31
|
-
export interface IChartListItem {
|
|
32
|
-
label: string;
|
|
33
|
-
fullLabel?: string;
|
|
34
|
-
value: number;
|
|
35
|
-
type: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 记录项
|
|
39
|
-
*/
|
|
40
|
-
export interface IParkRecordItem {
|
|
41
|
-
/**
|
|
42
|
-
* 记录ID
|
|
43
|
-
*/
|
|
44
|
-
id: number;
|
|
45
|
-
/**
|
|
46
|
-
* 园区编码
|
|
47
|
-
*/
|
|
48
|
-
parkCode: string;
|
|
49
|
-
/**
|
|
50
|
-
* 园区名称
|
|
51
|
-
*/
|
|
52
|
-
parkName: string;
|
|
53
|
-
/**
|
|
54
|
-
* 创建时间
|
|
55
|
-
*/
|
|
56
|
-
gmtCreate: number;
|
|
57
|
-
/**
|
|
58
|
-
* 修改时间
|
|
59
|
-
*/
|
|
60
|
-
gmtModified: number;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* 操作记录项
|
|
64
|
-
*/
|
|
65
|
-
export interface IOperateRecordInfo {
|
|
66
|
-
/**
|
|
67
|
-
* 时间
|
|
68
|
-
*/
|
|
69
|
-
gmtCreate: number;
|
|
70
|
-
/**
|
|
71
|
-
* 操作
|
|
72
|
-
*/
|
|
73
|
-
operation: string;
|
|
74
|
-
/**
|
|
75
|
-
* 备注
|
|
76
|
-
*/
|
|
77
|
-
remark: string;
|
|
78
|
-
/**
|
|
79
|
-
* 操作人
|
|
80
|
-
*/
|
|
81
|
-
operatorName: string;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* 文件信息项
|
|
85
|
-
*/
|
|
86
|
-
export interface IFileInfoListItem {
|
|
87
|
-
/**
|
|
88
|
-
* 附件类型(1-图片,2-视频,3-其他)
|
|
89
|
-
*/
|
|
90
|
-
fileType: 1 | 2 | 3;
|
|
91
|
-
ossKey: string;
|
|
92
|
-
ossUrl: string;
|
|
93
|
-
name: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* 本地文件信息
|
|
97
|
-
*/
|
|
98
|
-
export interface IFileInfoListLocalItem {
|
|
99
|
-
/**
|
|
100
|
-
* 附件类型(1-图片,2-视频,3-其他)
|
|
101
|
-
*/
|
|
102
|
-
fileType: 1 | 2 | 3;
|
|
103
|
-
ossKey: string;
|
|
104
|
-
ossUrl: string;
|
|
105
|
-
name: string;
|
|
106
|
-
imgURL: string;
|
|
107
|
-
response: {
|
|
108
|
-
ossKey: string;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* 键值对
|
|
113
|
-
*/
|
|
114
|
-
export type IKeyValueItem = Record<string, any>;
|
|
115
|
-
export interface ICnQuery {
|
|
116
|
-
currentPage?: number;
|
|
117
|
-
pageSize?: number;
|
|
118
|
-
}
|
|
119
|
-
export interface ICnPaging {
|
|
120
|
-
currentPage: number;
|
|
121
|
-
pageSize: number;
|
|
122
|
-
totalCount: number;
|
|
123
|
-
}
|
|
124
|
-
export interface ICnTableData<T = any> {
|
|
125
|
-
paging: ICnPaging;
|
|
126
|
-
tableData: T[];
|
|
127
|
-
}
|
|
128
|
-
export interface IBizQuery {
|
|
129
|
-
bizType: string;
|
|
130
|
-
bizIds: string[];
|
|
131
|
-
}
|
|
132
|
-
interface IFileData {
|
|
133
|
-
key: string;
|
|
134
|
-
name?: string;
|
|
135
|
-
url?: string;
|
|
136
|
-
}
|
|
137
|
-
export interface IUploadFileInfo {
|
|
138
|
-
status: string | 'done';
|
|
139
|
-
name: string;
|
|
140
|
-
size: number;
|
|
141
|
-
type: string;
|
|
142
|
-
key: string;
|
|
143
|
-
response?: {
|
|
144
|
-
data: IFileData;
|
|
145
|
-
};
|
|
146
|
-
url?: string;
|
|
147
|
-
}
|
|
148
|
-
export interface IOperateState {
|
|
149
|
-
type: OperateType;
|
|
150
|
-
id?: number;
|
|
151
|
-
}
|
|
152
|
-
export interface INextPageMenuInfo {
|
|
153
|
-
menuTitle: string;
|
|
154
|
-
menuUrl: string;
|
|
155
|
-
path: string;
|
|
156
|
-
}
|
|
157
|
-
export interface IShowInfo {
|
|
158
|
-
title: string;
|
|
159
|
-
content?: string | number;
|
|
160
|
-
img?: string;
|
|
161
|
-
time?: string | number;
|
|
162
|
-
url?: string;
|
|
163
|
-
buttonName?: string;
|
|
164
|
-
}
|
|
165
|
-
export interface IMatterInfo {
|
|
166
|
-
applyTime: string;
|
|
167
|
-
title: string;
|
|
168
|
-
url: string;
|
|
169
|
-
applicantName: string;
|
|
170
|
-
handlerName: string;
|
|
171
|
-
status: string;
|
|
172
|
-
}
|
|
173
|
-
export interface ISearchCondition {
|
|
174
|
-
dataAccVal: string;
|
|
175
|
-
}
|
|
176
|
-
export interface IRecommendInfo {
|
|
177
|
-
word: string;
|
|
178
|
-
}
|
|
179
|
-
export interface ISearchResListInfo {
|
|
180
|
-
bizId: string;
|
|
181
|
-
title: string;
|
|
182
|
-
content: string;
|
|
183
|
-
url: string;
|
|
184
|
-
ext?: {
|
|
185
|
-
code: string;
|
|
186
|
-
dataAccVal: string;
|
|
187
|
-
type: string;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
export interface ISearchResInfo {
|
|
191
|
-
count: number;
|
|
192
|
-
type: string;
|
|
193
|
-
list: ISearchResListInfo[];
|
|
194
|
-
}
|
|
195
|
-
export interface IHazardInfo {
|
|
196
|
-
parkName: string;
|
|
197
|
-
parkCode: string;
|
|
198
|
-
riskDescribe: string;
|
|
199
|
-
riskNumber: number;
|
|
200
|
-
progress: number;
|
|
201
|
-
}
|
|
202
|
-
export interface ISearchByTypeCondition {
|
|
203
|
-
keyWord?: string;
|
|
204
|
-
type: string;
|
|
205
|
-
page: number;
|
|
206
|
-
pageSize: number;
|
|
207
|
-
}
|
|
208
|
-
export interface ICardInfo {
|
|
209
|
-
size: 'medium' | 'min' | 'max';
|
|
210
|
-
id: number;
|
|
211
|
-
x?: number;
|
|
212
|
-
y?: number;
|
|
213
|
-
}
|
|
214
|
-
export interface IPortalPageInfo {
|
|
215
|
-
id: number;
|
|
216
|
-
name: string;
|
|
217
|
-
code: string;
|
|
218
|
-
pageType: string;
|
|
219
|
-
status: string;
|
|
220
|
-
digitalSpaceUrl: string;
|
|
221
|
-
comment: null;
|
|
222
|
-
cardList: ICardInfo[];
|
|
223
|
-
content: string;
|
|
224
|
-
configMap: {
|
|
225
|
-
[p: string]: IIndicatorCardConfig;
|
|
226
|
-
};
|
|
227
|
-
groupDTOList: ICardGroupInfo[];
|
|
228
|
-
}
|
|
229
|
-
export interface IVisionUserConfig {
|
|
230
|
-
[p: string]: string;
|
|
231
|
-
}
|
|
232
|
-
export interface IZNoticeInfo {
|
|
233
|
-
title: string;
|
|
234
|
-
bizId: string;
|
|
235
|
-
releaseDate: number;
|
|
236
|
-
}
|
|
237
|
-
export interface IOssSign {
|
|
238
|
-
accessId: string;
|
|
239
|
-
ossAccessKeyId: string;
|
|
240
|
-
policy: string;
|
|
241
|
-
host: string;
|
|
242
|
-
expire: string;
|
|
243
|
-
key: string;
|
|
244
|
-
signature: string;
|
|
245
|
-
securityToken: string;
|
|
246
|
-
}
|
|
247
|
-
export interface IOssUploadData extends Pick<IOssSign, 'signature' | 'policy' | 'ossAccessKeyId' | 'host' | 'securityToken'> {
|
|
248
|
-
file: File;
|
|
249
|
-
key: string;
|
|
250
|
-
}
|
|
251
|
-
export interface IWorkbenchOptions {
|
|
252
|
-
roleList: IListItem[];
|
|
253
|
-
pendingList: IMatterPendingInfo[];
|
|
254
|
-
noticeList: INoticeInfo[];
|
|
255
|
-
LEVEL_2?: IListItem[];
|
|
256
|
-
LEVEL_3?: IListItem[];
|
|
257
|
-
LEVEL_4?: IListItem[];
|
|
258
|
-
LEVEL_5?: IListItem[];
|
|
259
|
-
}
|
|
260
|
-
export interface IContentProps {
|
|
261
|
-
color?: string[];
|
|
262
|
-
configData: IIndicatorCardConfig;
|
|
263
|
-
theme?: string;
|
|
264
|
-
orgLevelVal?: string;
|
|
265
|
-
unit?: string;
|
|
266
|
-
extraCondition?: {
|
|
267
|
-
[p: string]: string;
|
|
268
|
-
};
|
|
269
|
-
visionUserConfig: IVisionUserConfig;
|
|
270
|
-
}
|
|
271
|
-
export {};
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { IIndicatorCardConfig } from './indicator';
|
|
2
|
-
import { ICardInfo, IListItem } from './interface';
|
|
3
|
-
import { WinCardStatus } from './type';
|
|
4
|
-
/**
|
|
5
|
-
* portal 页未读消息
|
|
6
|
-
*/
|
|
7
|
-
export interface IUnreadMsg {
|
|
8
|
-
id: number;
|
|
9
|
-
/**
|
|
10
|
-
* 标题
|
|
11
|
-
*/
|
|
12
|
-
title: string;
|
|
13
|
-
/**
|
|
14
|
-
* 消息
|
|
15
|
-
*/
|
|
16
|
-
content: string;
|
|
17
|
-
/**
|
|
18
|
-
* 跳转链接
|
|
19
|
-
*/
|
|
20
|
-
url: string;
|
|
21
|
-
/**
|
|
22
|
-
* 消息中包含的指标实例ID
|
|
23
|
-
*/
|
|
24
|
-
instanceIds: string;
|
|
25
|
-
/**
|
|
26
|
-
* 消息状态:0 未读 / 1 已读,此处都是0
|
|
27
|
-
*/
|
|
28
|
-
messageStatus: number;
|
|
29
|
-
bizType1: string;
|
|
30
|
-
bizType2: string;
|
|
31
|
-
bizTypeDesc1: string;
|
|
32
|
-
bizTypeDesc2: string;
|
|
33
|
-
sendTime: string;
|
|
34
|
-
}
|
|
35
|
-
export interface IApprovalInfo {
|
|
36
|
-
title: string;
|
|
37
|
-
name: string;
|
|
38
|
-
time: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IWidgetSearch {
|
|
41
|
-
needSubscribeInfo: boolean;
|
|
42
|
-
subscribePageCode: string;
|
|
43
|
-
subscribePageType?: string;
|
|
44
|
-
status?: WinCardStatus;
|
|
45
|
-
bizCode?: string;
|
|
46
|
-
typeGroup?: string;
|
|
47
|
-
fuzzyLike?: string;
|
|
48
|
-
filterMySubscription?: boolean;
|
|
49
|
-
colWidthList?: number[];
|
|
50
|
-
}
|
|
51
|
-
export interface IMatterPendingInfo {
|
|
52
|
-
desc: string;
|
|
53
|
-
count: string;
|
|
54
|
-
url: string;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 公告、头条详情
|
|
58
|
-
*/
|
|
59
|
-
export interface INoticeInfo {
|
|
60
|
-
id: number;
|
|
61
|
-
gmtCreate: string;
|
|
62
|
-
gmtModified: string;
|
|
63
|
-
noticeTitle: string;
|
|
64
|
-
noticeContent: string;
|
|
65
|
-
noticeImage: string;
|
|
66
|
-
noticeImageUrl: string;
|
|
67
|
-
noticeStatus: number;
|
|
68
|
-
pv: number;
|
|
69
|
-
startTime: string;
|
|
70
|
-
endTime: string;
|
|
71
|
-
releaseTime: string;
|
|
72
|
-
remark: string;
|
|
73
|
-
creator: number;
|
|
74
|
-
creatorName: string;
|
|
75
|
-
operator: number;
|
|
76
|
-
operatorName: string;
|
|
77
|
-
seen: boolean;
|
|
78
|
-
noticeBannerUrl: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* 排行榜
|
|
82
|
-
*/
|
|
83
|
-
export interface IRankInfo {
|
|
84
|
-
title: string;
|
|
85
|
-
list?: IListItem[];
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* 小 V 简报信息
|
|
89
|
-
*/
|
|
90
|
-
export interface IVReportInfo {
|
|
91
|
-
date: string;
|
|
92
|
-
year: number;
|
|
93
|
-
week: number;
|
|
94
|
-
/**
|
|
95
|
-
* 访问量
|
|
96
|
-
*/
|
|
97
|
-
pvCount: string;
|
|
98
|
-
/**
|
|
99
|
-
* 访问变化率
|
|
100
|
-
*/
|
|
101
|
-
pvRate: string;
|
|
102
|
-
/**
|
|
103
|
-
* 审批流程数
|
|
104
|
-
*/
|
|
105
|
-
processCount: string;
|
|
106
|
-
/**
|
|
107
|
-
* 审批平均耗时
|
|
108
|
-
*/
|
|
109
|
-
processAvgSpent: string;
|
|
110
|
-
/**
|
|
111
|
-
* 指标数量
|
|
112
|
-
*/
|
|
113
|
-
authCount: string;
|
|
114
|
-
/**
|
|
115
|
-
* 指标订阅率
|
|
116
|
-
*/
|
|
117
|
-
subRate: string;
|
|
118
|
-
}
|
|
119
|
-
export interface IDialogMsgInfo {
|
|
120
|
-
id: number;
|
|
121
|
-
avatar?: string;
|
|
122
|
-
gmtCreate?: string;
|
|
123
|
-
gmtModified?: string;
|
|
124
|
-
/**
|
|
125
|
-
* 消息类型,text-文本消息、text_retry-文本消息带重试按钮、text_general-文本消息带通用按钮 text_multiply-指标变动提醒消息
|
|
126
|
-
*/
|
|
127
|
-
type?: 'text' | 'text_retry' | 'text_general' | 'text_multiply';
|
|
128
|
-
title?: string;
|
|
129
|
-
content?: string;
|
|
130
|
-
url?: string;
|
|
131
|
-
/**
|
|
132
|
-
* 状态,0-未读/1-已读/2-已点赞
|
|
133
|
-
*/
|
|
134
|
-
status?: number;
|
|
135
|
-
/**
|
|
136
|
-
* 发送人,0-小V
|
|
137
|
-
*/
|
|
138
|
-
sender?: string;
|
|
139
|
-
/**
|
|
140
|
-
* 接收人,0-小V
|
|
141
|
-
*/
|
|
142
|
-
recipient?: string;
|
|
143
|
-
sendTime?: string;
|
|
144
|
-
readTime?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface IMsgCountInfo {
|
|
147
|
-
messageCount?: number;
|
|
148
|
-
unreadCount?: number;
|
|
149
|
-
}
|
|
150
|
-
export interface IRelationPropertyInfo {
|
|
151
|
-
cardId: string;
|
|
152
|
-
cardName: string;
|
|
153
|
-
propertyName: string;
|
|
154
|
-
}
|
|
155
|
-
export interface ISelectionInfo {
|
|
156
|
-
name: string;
|
|
157
|
-
type: 'STRUCTURED_DROPDOWN' | 'TIME_SELECTION';
|
|
158
|
-
typeDesc: string;
|
|
159
|
-
structuredAttribute: string;
|
|
160
|
-
defaultValue: string;
|
|
161
|
-
values: IListItem[];
|
|
162
|
-
}
|
|
163
|
-
export type SelectionInfo = Partial<ISelectionInfo>;
|
|
164
|
-
export interface IConfigMap {
|
|
165
|
-
[p: string]: IIndicatorCardConfig;
|
|
166
|
-
}
|
|
167
|
-
export interface ICardGroupInfo {
|
|
168
|
-
code?: string;
|
|
169
|
-
pageType?: string;
|
|
170
|
-
groupCode?: string;
|
|
171
|
-
groupName?: string;
|
|
172
|
-
selections?: SelectionInfo[];
|
|
173
|
-
cardList?: ICardInfo[];
|
|
174
|
-
configMap?: IConfigMap;
|
|
175
|
-
}
|
|
176
|
-
export interface IStructedPropertyInfo {
|
|
177
|
-
structedPropertyCode?: string;
|
|
178
|
-
structedPropertyName?: string;
|
|
179
|
-
downValues?: IListItem[];
|
|
180
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IIndicatorInfo } from './indicator';
|
|
2
|
-
export type ReportTemplateType = 'WEEKLY' | 'DAILY' | 'OTHER';
|
|
3
|
-
export interface IReportTplInfo {
|
|
4
|
-
templateId: number;
|
|
5
|
-
templateName: string;
|
|
6
|
-
description: string;
|
|
7
|
-
templateType: ReportTemplateType;
|
|
8
|
-
viewRange: 'PUBLIC' | 'PERSONAL';
|
|
9
|
-
templateTypeDesc: string;
|
|
10
|
-
version: number;
|
|
11
|
-
view: boolean;
|
|
12
|
-
content: string;
|
|
13
|
-
personList: {
|
|
14
|
-
workNo: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
indicatorList: IIndicatorInfo[];
|
|
18
|
-
}
|
|
19
|
-
export interface IReportContentInfo {
|
|
20
|
-
templateId: number;
|
|
21
|
-
title: string;
|
|
22
|
-
content: string;
|
|
23
|
-
indicatorResult: IIndicatorInfo[];
|
|
24
|
-
version: number;
|
|
25
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface User {
|
|
2
|
-
userName?: string;
|
|
3
|
-
}
|
|
4
|
-
type MenuInfo = {
|
|
5
|
-
menuCode: string;
|
|
6
|
-
menuTitle: string;
|
|
7
|
-
funcAccessCode?: string;
|
|
8
|
-
menuType?: string;
|
|
9
|
-
menuUrl?: string;
|
|
10
|
-
parentMenuCode?: string;
|
|
11
|
-
parentMenuTitle?: string;
|
|
12
|
-
hasChild?: boolean;
|
|
13
|
-
nodeSequence?: number;
|
|
14
|
-
menuIcon?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
children?: IMenuInfo[];
|
|
17
|
-
};
|
|
18
|
-
export type IMenuInfo = {
|
|
19
|
-
[p in keyof MenuInfo]: MenuInfo[p] | null;
|
|
20
|
-
};
|
|
21
|
-
export interface IUserAvatarInfo {
|
|
22
|
-
href?: string;
|
|
23
|
-
url?: string;
|
|
24
|
-
nickName?: string;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IDialogMsgInfo } from '@/types';
|
|
2
|
-
/**
|
|
3
|
-
* 判断是否为一个非空数组
|
|
4
|
-
* @param data 任意类型的数据
|
|
5
|
-
* @returns 如果是非空数组则为真
|
|
6
|
-
*/
|
|
7
|
-
export declare function isNonEmptyArray<T>(data: unknown): data is T[];
|
|
8
|
-
/**
|
|
9
|
-
* 判断值是否是一个有效的ID(数字或字符串)
|
|
10
|
-
* @param value 要检查的值
|
|
11
|
-
* @returns 布尔值,如果值是有效的ID,则为 true
|
|
12
|
-
*/
|
|
13
|
-
export declare function isValidId(value: unknown): value is number | string;
|
|
14
|
-
/**
|
|
15
|
-
* 数组求和
|
|
16
|
-
* @param list
|
|
17
|
-
*/
|
|
18
|
-
export declare const arraySum: (list?: number[]) => number;
|
|
19
|
-
/**
|
|
20
|
-
* 数组去重
|
|
21
|
-
* @param list
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare const arrayDeduplication: (list: any) => any[];
|
|
25
|
-
interface WithId {
|
|
26
|
-
id: number;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 合并数组
|
|
30
|
-
* @param array1
|
|
31
|
-
* @param array2
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
export declare function mergeAndDeduplicateArrays<T extends WithId>(array1: T[], array2: T[]): T[];
|
|
35
|
-
export interface ITimeMarker {
|
|
36
|
-
id: string;
|
|
37
|
-
type: 'time-marker';
|
|
38
|
-
content: string;
|
|
39
|
-
}
|
|
40
|
-
export declare function insertTimeMarkers(dialogs: IDialogMsgInfo[]): (IDialogMsgInfo | ITimeMarker)[];
|
|
41
|
-
export {};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { IListItem, MatterType, WinCardChartType, WinCardType } from '@/types';
|
|
2
|
-
import { WinChartType } from '..';
|
|
3
|
-
/**
|
|
4
|
-
* 时间范围列表
|
|
5
|
-
*/
|
|
6
|
-
export declare const timeRangeList: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
/**
|
|
11
|
-
* 结构化属性
|
|
12
|
-
*/
|
|
13
|
-
export declare const orgLevelList: {
|
|
14
|
-
label: string;
|
|
15
|
-
value: string;
|
|
16
|
-
}[];
|
|
17
|
-
/**
|
|
18
|
-
* 结构化属性
|
|
19
|
-
*/
|
|
20
|
-
export declare const labelFieldList: {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
/**
|
|
25
|
-
* 卡片状态列表
|
|
26
|
-
*/
|
|
27
|
-
export declare const cardStatusList: {
|
|
28
|
-
label: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}[];
|
|
31
|
-
/**
|
|
32
|
-
* 单位列表
|
|
33
|
-
*/
|
|
34
|
-
export declare const unitList: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
|
-
/**
|
|
39
|
-
* 卡片模版列表
|
|
40
|
-
*/
|
|
41
|
-
export declare const chartTypeList: {
|
|
42
|
-
label: string;
|
|
43
|
-
value: WinCardChartType;
|
|
44
|
-
}[];
|
|
45
|
-
export declare const searchResTypeMap: Map<string, {
|
|
46
|
-
label: string;
|
|
47
|
-
logo?: string;
|
|
48
|
-
}>;
|
|
49
|
-
export declare const matterTitleList: {
|
|
50
|
-
label: string;
|
|
51
|
-
value: MatterType;
|
|
52
|
-
}[];
|
|
53
|
-
export declare const showTypeList: {
|
|
54
|
-
label: string;
|
|
55
|
-
value: string;
|
|
56
|
-
}[];
|
|
57
|
-
export declare const rentTypeList: {
|
|
58
|
-
label: string;
|
|
59
|
-
value: string;
|
|
60
|
-
}[];
|
|
61
|
-
/**
|
|
62
|
-
* 卡片类型
|
|
63
|
-
*/
|
|
64
|
-
export declare const indicatorChartTypeList: {
|
|
65
|
-
label: string;
|
|
66
|
-
value: WinCardChartType;
|
|
67
|
-
}[];
|
|
68
|
-
/**
|
|
69
|
-
* 卡片类别信息映射
|
|
70
|
-
*/
|
|
71
|
-
export declare const winCardChartTypeMap: Map<WinCardChartType, {
|
|
72
|
-
templateUrl: string;
|
|
73
|
-
type: WinCardType;
|
|
74
|
-
sizeList: IListItem[];
|
|
75
|
-
winChartType?: WinChartType;
|
|
76
|
-
}>;
|
|
77
|
-
export declare const sortList: {
|
|
78
|
-
label: string;
|
|
79
|
-
value: string;
|
|
80
|
-
}[];
|
|
81
|
-
export declare const msgBizTypeMap: Map<string, {
|
|
82
|
-
iconType: string;
|
|
83
|
-
color: string;
|
|
84
|
-
}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 拼接 Query
|
|
3
|
-
* @param url
|
|
4
|
-
* @param searchObj
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const handleAddQuery: (url: string, searchObj: {
|
|
8
|
-
[p: string]: any;
|
|
9
|
-
}) => string;
|
|
10
|
-
/**
|
|
11
|
-
* 获取外部链接跳转处理
|
|
12
|
-
* @param url
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare const getHandleOpenLink: (url?: string | null) => () => Window;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IListItem, IResponse } from '@/types';
|
|
2
|
-
/**
|
|
3
|
-
* 过滤接口返回内容
|
|
4
|
-
* @param {*} res
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function handleResult<T>({ success, data, errorMsg }: IResponse<T>): T;
|
|
8
|
-
/**
|
|
9
|
-
* 获取值列表值
|
|
10
|
-
* @param list
|
|
11
|
-
* @param value
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare function getListLabel<T>(list: IListItem<T>[], value?: T): string;
|
/package/dist/types/components/{win-chart/components/chart-wrapper.d.ts → ChartWrapper.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|