win-chart 1.0.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/.eslintrc.json +3 -0
- package/.prettierrc.json +5 -0
- package/README.md +0 -0
- package/localhost-key.pem +28 -0
- package/localhost.pem +25 -0
- package/package.json +65 -0
- package/rsbuild.config.ts +48 -0
- package/src/api/README.md +15 -0
- package/src/api/index.js +5 -0
- package/src/api/layout/index.js +32 -0
- package/src/api/request.ts +87 -0
- package/src/api/url-map/index.js +10 -0
- package/src/api/user/index.js +12 -0
- package/src/components/FilterContext.tsx +6 -0
- package/src/components/GlobalStyle.tsx +25 -0
- package/src/components/HalfScreenBrowser.tsx +95 -0
- package/src/components/ImgBox.tsx +19 -0
- package/src/components/JumpBtn.tsx +38 -0
- package/src/components/MCardWrapper.tsx +33 -0
- package/src/components/NoContent/index.tsx +85 -0
- package/src/components/ResponsiveReactGridLayout.tsx +218 -0
- package/src/components/SliderDecoration.tsx +27 -0
- package/src/components/VisionUserConfigContext.ts +6 -0
- package/src/components/WinMenu/README.md +11 -0
- package/src/components/WinMenu/WinHeader.tsx +5 -0
- package/src/components/WinMenu/components/ExtraBox.tsx +61 -0
- package/src/components/WinMenu/components/FullMenuBox.tsx +80 -0
- package/src/components/WinMenu/components/FullMenuContainer.tsx +50 -0
- package/src/components/WinMenu/components/FullMenuItem.tsx +128 -0
- package/src/components/WinMenu/components/LangSwitch.tsx +84 -0
- package/src/components/WinMenu/components/LogoBox.tsx +29 -0
- package/src/components/WinMenu/components/PinDialog.tsx +72 -0
- package/src/components/WinMenu/components/PinnedMenuBox.tsx +183 -0
- package/src/components/WinMenu/components/UserBox.tsx +83 -0
- package/src/components/WinMenu/hooks/useUserInfo.ts +21 -0
- package/src/components/WinMenu/hooks/useUserMenu.ts +35 -0
- package/src/components/WinMenu/index.tsx +100 -0
- package/src/components/WinMenu/services/WinService.ts +79 -0
- package/src/components/WinMenu/services/request.ts +53 -0
- package/src/components/WinMenu/utils/const.ts +80 -0
- package/src/components/WinMenu/utils/enum.ts +19 -0
- package/src/components/WinMenu/utils/interface.ts +61 -0
- package/src/components/WinMenu/utils/map.ts +39 -0
- package/src/components/WinMenu/utils/tool.ts +142 -0
- package/src/components/WinMenu/utils/type.ts +1 -0
- package/src/components/hover-view.tsx +48 -0
- package/src/components/icon.tsx +44 -0
- package/src/components/indicator-remark.tsx +25 -0
- package/src/components/none-content.tsx +93 -0
- package/src/components/panel-tab.tsx +150 -0
- package/src/components/panel-title-tab.tsx +60 -0
- package/src/components/win-card/components/ChartContent.tsx +47 -0
- package/src/components/win-card/components/Indicator.tsx +42 -0
- package/src/components/win-card/components/IndicatorArea.tsx +63 -0
- package/src/components/win-card/components/IndicatorInfo.tsx +78 -0
- package/src/components/win-card/components/MatterContent.tsx +121 -0
- package/src/components/win-card/components/MatterList.tsx +141 -0
- package/src/components/win-card/components/NoticeContent.tsx +73 -0
- package/src/components/win-card/components/NoticeList.tsx +68 -0
- package/src/components/win-card/components/SelectDecoration.tsx +34 -0
- package/src/components/win-card/components/WinRankContent.tsx +102 -0
- package/src/components/win-card/index.tsx +298 -0
- package/src/components/win-card/utils/interface.ts +12 -0
- package/src/components/win-card/utils/tool.ts +11 -0
- package/src/components/win-card-mobile/components/ChartContent.tsx +47 -0
- package/src/components/win-card-mobile/components/DualLineBar.tsx +61 -0
- package/src/components/win-card-mobile/components/Indicator.tsx +42 -0
- package/src/components/win-card-mobile/components/IndicatorArea.tsx +65 -0
- package/src/components/win-card-mobile/components/IndicatorInfo.tsx +83 -0
- package/src/components/win-card-mobile/components/SelectDecoration.tsx +28 -0
- package/src/components/win-card-mobile/index.tsx +235 -0
- package/src/components/win-card-mobile/utils/interface.ts +12 -0
- package/src/components/win-card-mobile/utils/tool.ts +9 -0
- package/src/components/win-chart/components/chart-wrapper.tsx +5 -0
- package/src/components/win-chart/index.tsx +59 -0
- package/src/components/win-chart/theme/win-dark.json +372 -0
- package/src/components/win-chart/theme/win-light.json +372 -0
- package/src/components/win-chart/utils/const.ts +37 -0
- package/src/components/win-chart/utils/getAreaSpec.ts +150 -0
- package/src/components/win-chart/utils/getBarSpec.ts +60 -0
- package/src/components/win-chart/utils/getChartOptions.ts +59 -0
- package/src/components/win-chart/utils/getColumnSpec.ts +112 -0
- package/src/components/win-chart/utils/getDualSpec.ts +79 -0
- package/src/components/win-chart/utils/getFunnelSpec.ts +70 -0
- package/src/components/win-chart/utils/getLineSpec.ts +53 -0
- package/src/components/win-chart/utils/getPieSpec.ts +124 -0
- package/src/components/win-chart/utils/getRadarSpec.ts +87 -0
- package/src/components/win-chart/utils/tool.ts +163 -0
- package/src/components/win-chart/utils/type.ts +96 -0
- package/src/components/win-icon/index.tsx +97 -0
- package/src/components/win-v/components/EmptyBox.tsx +9 -0
- package/src/components/win-v/components/VDialog.tsx +173 -0
- package/src/components/win-v/components/VDialogBtn.tsx +119 -0
- package/src/components/win-v/components/VDialogMsg.tsx +325 -0
- package/src/components/win-v/components/VInput.tsx +15 -0
- package/src/components/win-v/components/VRemindMsgList.tsx +303 -0
- package/src/components/win-v/components/VRobot.tsx +97 -0
- package/src/components/win-v/hooks/useVDialogCore.ts +102 -0
- package/src/components/win-v/hooks/useVDialogOperate.ts +132 -0
- package/src/components/win-v/hooks/useVDialogState.ts +52 -0
- package/src/components/win-v/hooks/useVRemindMsgShow.ts +15 -0
- package/src/components/win-v/index.tsx +205 -0
- package/src/components/win-wrappers/card-wrapper.tsx +103 -0
- package/src/components/win-wrappers/dot-wrapper.tsx +18 -0
- package/src/components/win-wrappers/iframe-wrapper.tsx +7 -0
- package/src/components/win-wrappers/request-wrapper.tsx +190 -0
- package/src/global.d.ts +53 -0
- package/src/hooks/useCardOptionList.ts +23 -0
- package/src/hooks/useCostFiltersDicList.ts +22 -0
- package/src/hooks/useFbiUrl.ts +22 -0
- package/src/hooks/useHalfScreenState.ts +50 -0
- package/src/hooks/useHasIntersected.ts +36 -0
- package/src/hooks/useIndicatorCardInfo.ts +26 -0
- package/src/hooks/useIndicatorCardQueryList.ts +22 -0
- package/src/hooks/useIndicatorClassifyList.ts +25 -0
- package/src/hooks/useIndicatorDetailsDateList.ts +22 -0
- package/src/hooks/useIndicatorDetailsInfo.ts +49 -0
- package/src/hooks/useIndicatorDetailsTrend.ts +25 -0
- package/src/hooks/useIndicatorDicList.ts +22 -0
- package/src/hooks/useIndicatorLabelList.ts +20 -0
- package/src/hooks/useIndicatorList.ts +24 -0
- package/src/hooks/useIndicatorRangeList.ts +20 -0
- package/src/hooks/useIndicatorTypeList.ts +20 -0
- package/src/hooks/useIndicatorUnitList.ts +21 -0
- package/src/hooks/useListenQuery.ts +29 -0
- package/src/hooks/useMobile.ts +58 -0
- package/src/hooks/useNotice.ts +42 -0
- package/src/hooks/useOrgLevelList.ts +23 -0
- package/src/hooks/usePageSelection.ts +121 -0
- package/src/hooks/usePageState.ts +22 -0
- package/src/hooks/usePendingList.ts +27 -0
- package/src/hooks/usePortalPageInfo.ts +43 -0
- package/src/hooks/useRefreshByLocationChange.ts +16 -0
- package/src/hooks/useReportIndicatorList.ts +21 -0
- package/src/hooks/useReportInfo.ts +45 -0
- package/src/hooks/useReportPersonList.ts +21 -0
- package/src/hooks/useScriptLoader.ts +22 -0
- package/src/hooks/useUnreadMsgList.ts +26 -0
- package/src/hooks/useUserAvatar.ts +23 -0
- package/src/hooks/useVReportInfo.ts +50 -0
- package/src/hooks/useVisionUserConfig.ts +25 -0
- package/src/hooks/useWorkbenchOptions.ts +63 -0
- package/src/index.tsx +20 -0
- package/src/services/CardService.ts +91 -0
- package/src/services/CommonService.ts +23 -0
- package/src/services/CostService.ts +56 -0
- package/src/services/DialogService.ts +74 -0
- package/src/services/IndicatorService.ts +406 -0
- package/src/services/PageService.ts +204 -0
- package/src/services/ReportService.ts +335 -0
- package/src/services/WorkbenchService.ts +411 -0
- package/src/styles/README.md +12 -0
- package/src/styles/index.scss +9 -0
- package/src/styles/mixins/index.scss +25 -0
- package/src/styles/next-cover.scss +4 -0
- package/src/styles/normalize.scss +27 -0
- package/src/styles/utilities/index.scss +5 -0
- package/src/styles/vars/index.scss +17 -0
- package/src/types/enum-workbench.ts +29 -0
- package/src/types/enum.ts +156 -0
- package/src/types/index.ts +19 -0
- package/src/types/indicator.ts +299 -0
- package/src/types/interface.ts +303 -0
- package/src/types/portal.ts +211 -0
- package/src/types/report.ts +28 -0
- package/src/types/type.ts +11 -0
- package/src/types/user.ts +28 -0
- package/src/utils/README.md +4 -0
- package/src/utils/arms.ts +59 -0
- package/src/utils/arr.ts +123 -0
- package/src/utils/const-workbench.ts +9 -0
- package/src/utils/const.ts +18 -0
- package/src/utils/index.ts +18 -0
- package/src/utils/init.ts +5 -0
- package/src/utils/map-workbench.ts +66 -0
- package/src/utils/map.ts +377 -0
- package/src/utils/number.ts +101 -0
- package/src/utils/page.ts +81 -0
- package/src/utils/str.ts +26 -0
- package/src/utils/tools.ts +44 -0
- package/src/utils/tree.ts +145 -0
- package/src/utils/url.ts +40 -0
- package/src/utils/util.ts +99 -0
- package/src/utils/workbench.ts +25 -0
- package/tsconfig.json +33 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { ICharInfo } from 'src/components/win-chart';
|
|
2
|
+
import { WinCardChartType } from './enum';
|
|
3
|
+
import { IListItem } from './interface';
|
|
4
|
+
import { WinCardStatus } from './type';
|
|
5
|
+
|
|
6
|
+
export type IndicatorLabel = 'OKR' | 'CORE' | 'ORDINARY';
|
|
7
|
+
|
|
8
|
+
interface IIndicatorConfig {
|
|
9
|
+
id: number;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 单位
|
|
13
|
+
*/
|
|
14
|
+
unit: string;
|
|
15
|
+
/**
|
|
16
|
+
* 指标所在侧 0 左 1 右
|
|
17
|
+
*/
|
|
18
|
+
yAxis: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 指标别名
|
|
22
|
+
*/
|
|
23
|
+
alias?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 是否堆叠
|
|
27
|
+
*/
|
|
28
|
+
isStack?: boolean;
|
|
29
|
+
|
|
30
|
+
extra?: {
|
|
31
|
+
/**
|
|
32
|
+
* 默认 0 日期 0 目标 1
|
|
33
|
+
*/
|
|
34
|
+
subTitle: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type IndicatorCardSize = 'min' | 'medium' | 'max';
|
|
39
|
+
|
|
40
|
+
export interface IIndicatorCardConfig {
|
|
41
|
+
subscribed?: boolean;
|
|
42
|
+
name: string;
|
|
43
|
+
id: number;
|
|
44
|
+
type: string;
|
|
45
|
+
dataAccCode: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 业务分类
|
|
49
|
+
*/
|
|
50
|
+
bizCode: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 卡片类型
|
|
54
|
+
*/
|
|
55
|
+
chartType: WinCardChartType;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 占多少个网格
|
|
59
|
+
*/
|
|
60
|
+
colWidth: number;
|
|
61
|
+
colHeight: number;
|
|
62
|
+
description: string;
|
|
63
|
+
detailUrl: string;
|
|
64
|
+
status: WinCardStatus;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* 排序
|
|
68
|
+
*/
|
|
69
|
+
rankOrder: number;
|
|
70
|
+
commonConfig: {
|
|
71
|
+
orgLevel: string;
|
|
72
|
+
labelField: string;
|
|
73
|
+
limit: number;
|
|
74
|
+
color?: string[];
|
|
75
|
+
yStart?: number[];
|
|
76
|
+
xAxisLabelRotate?: number;
|
|
77
|
+
xAxisLabelLength?: number;
|
|
78
|
+
sort?: 'asc' | 'desc';
|
|
79
|
+
};
|
|
80
|
+
indicatorConfig: IIndicatorConfig[];
|
|
81
|
+
sizeMap: {
|
|
82
|
+
min: [1, 2];
|
|
83
|
+
medium: [1, 4];
|
|
84
|
+
max: [2, 4];
|
|
85
|
+
};
|
|
86
|
+
size: IndicatorCardSize;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface IIndicatorListInfo extends ICharInfo {
|
|
90
|
+
indicatorId: number;
|
|
91
|
+
}
|
|
92
|
+
export interface IIndicatorDataInfo {
|
|
93
|
+
indicator?: {
|
|
94
|
+
instanceId: number;
|
|
95
|
+
date: string;
|
|
96
|
+
value: string;
|
|
97
|
+
expected: string;
|
|
98
|
+
};
|
|
99
|
+
list0?: IIndicatorListInfo[];
|
|
100
|
+
list1?: IIndicatorListInfo[];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface IIndicatorInfo {
|
|
104
|
+
/**
|
|
105
|
+
* 指标 ID
|
|
106
|
+
*/
|
|
107
|
+
indicatorId: number;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 指标 Code
|
|
111
|
+
*/
|
|
112
|
+
indicatorCode: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 指标名称
|
|
116
|
+
*/
|
|
117
|
+
indicatorName: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* 指标标签
|
|
121
|
+
*/
|
|
122
|
+
indicatorLabel: 'OKR' | 'CORE' | 'ORDINARY';
|
|
123
|
+
|
|
124
|
+
indicatorType: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 指标内部筛选默认名称
|
|
128
|
+
*/
|
|
129
|
+
selectLabel: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 内部下拉选项值
|
|
133
|
+
*/
|
|
134
|
+
valueCode: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* 值
|
|
138
|
+
*/
|
|
139
|
+
value: number;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 统计时间
|
|
143
|
+
*/
|
|
144
|
+
date: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 目标值
|
|
148
|
+
*/
|
|
149
|
+
expectValue: number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 目标达成率
|
|
153
|
+
*/
|
|
154
|
+
ratio: number;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* 是否订阅
|
|
158
|
+
*/
|
|
159
|
+
followed: boolean;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* 模版 有目标值 1 无目标值 2
|
|
163
|
+
*/
|
|
164
|
+
cardTemplate: '1' | '2';
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 指标实例说明
|
|
168
|
+
*/
|
|
169
|
+
desc: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* 单位
|
|
173
|
+
*/
|
|
174
|
+
unit?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 数据字典名称
|
|
178
|
+
*/
|
|
179
|
+
name: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 展示名称(分层)
|
|
183
|
+
*/
|
|
184
|
+
label: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 偏差值
|
|
188
|
+
*/
|
|
189
|
+
diffValue: number;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* 同比
|
|
193
|
+
*/
|
|
194
|
+
yearCompare: number;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* 周期环比
|
|
198
|
+
*/
|
|
199
|
+
chain: number;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* 日环比
|
|
203
|
+
*/
|
|
204
|
+
dod: number;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* 是否可以下钻
|
|
208
|
+
*/
|
|
209
|
+
downShow: boolean;
|
|
210
|
+
|
|
211
|
+
downId: number;
|
|
212
|
+
|
|
213
|
+
downName: string;
|
|
214
|
+
|
|
215
|
+
downType: string;
|
|
216
|
+
|
|
217
|
+
uniqueCode: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface IBizTotal {
|
|
221
|
+
label: string;
|
|
222
|
+
area?: number;
|
|
223
|
+
income: number;
|
|
224
|
+
cost: number;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface IShowData {
|
|
228
|
+
code: string;
|
|
229
|
+
type: string;
|
|
230
|
+
value1: IIndicatorInfo[];
|
|
231
|
+
value2: IIndicatorInfo[];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface IRiskInfo {
|
|
235
|
+
riskId: string;
|
|
236
|
+
riskLevel: string;
|
|
237
|
+
riskLevelDesc: string;
|
|
238
|
+
riskDescription: string;
|
|
239
|
+
statusDesc: string;
|
|
240
|
+
parkName: string;
|
|
241
|
+
name: string;
|
|
242
|
+
time: string;
|
|
243
|
+
statusCode: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface IRegionInfo {
|
|
247
|
+
region: string;
|
|
248
|
+
operatingProjectArea: string;
|
|
249
|
+
operatingProjectCnt: string;
|
|
250
|
+
progressProjectArea: string;
|
|
251
|
+
progressProjectCnt: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface IIndicatorTableDataQuery {
|
|
255
|
+
level?: string;
|
|
256
|
+
name?: string;
|
|
257
|
+
subId?: number;
|
|
258
|
+
type?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* 指标中心详情而信息
|
|
263
|
+
*/
|
|
264
|
+
export interface IIndicatorDetailsInfo {
|
|
265
|
+
style: 1 | 2;
|
|
266
|
+
name: string;
|
|
267
|
+
desc: string;
|
|
268
|
+
listValue: IIndicatorInfo[];
|
|
269
|
+
timeValue: IListItem<number>[];
|
|
270
|
+
dimension: string;
|
|
271
|
+
targetShow: boolean;
|
|
272
|
+
downId?: number;
|
|
273
|
+
unit: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface IIndicatorInfoQuery {
|
|
277
|
+
subId?: number | string;
|
|
278
|
+
name?: string;
|
|
279
|
+
type?: string;
|
|
280
|
+
indicatorDate?: string;
|
|
281
|
+
originId?: number | string;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface IIndicatorChangeInfo {
|
|
285
|
+
code: string;
|
|
286
|
+
name: string;
|
|
287
|
+
value: string;
|
|
288
|
+
unit: string;
|
|
289
|
+
diff: string;
|
|
290
|
+
children: IIndicatorChangeInfo[];
|
|
291
|
+
key: string;
|
|
292
|
+
url?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface IIndicatorMsgChangeInfo {
|
|
296
|
+
lastVisitDay: string;
|
|
297
|
+
msg: string;
|
|
298
|
+
indicators: IIndicatorChangeInfo[];
|
|
299
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { OperateType } from './enum';
|
|
3
|
+
import { IIndicatorCardConfig } from './indicator';
|
|
4
|
+
import { ICardGroupInfo, IMatterPendingInfo, INoticeInfo } from './portal';
|
|
5
|
+
|
|
6
|
+
export interface IStyleProps {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IListItemDataSourceMap {
|
|
13
|
+
[p: string]: IListItem[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 列表选项
|
|
18
|
+
*/
|
|
19
|
+
export interface IListItem<T = string> {
|
|
20
|
+
label: string;
|
|
21
|
+
value: T;
|
|
22
|
+
children?: IListItem<T>[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IResponse<T = any> {
|
|
26
|
+
data: T;
|
|
27
|
+
errorCode: string;
|
|
28
|
+
errorMsg: string;
|
|
29
|
+
msg?: string;
|
|
30
|
+
success: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 图表选项
|
|
35
|
+
*/
|
|
36
|
+
export interface IChartListItem {
|
|
37
|
+
label: string;
|
|
38
|
+
fullLabel?: string;
|
|
39
|
+
value: number;
|
|
40
|
+
type: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 记录项
|
|
45
|
+
*/
|
|
46
|
+
export interface IParkRecordItem {
|
|
47
|
+
/**
|
|
48
|
+
* 记录ID
|
|
49
|
+
*/
|
|
50
|
+
id: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 园区编码
|
|
54
|
+
*/
|
|
55
|
+
parkCode: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 园区名称
|
|
59
|
+
*/
|
|
60
|
+
parkName: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 创建时间
|
|
64
|
+
*/
|
|
65
|
+
gmtCreate: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 修改时间
|
|
69
|
+
*/
|
|
70
|
+
gmtModified: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 操作记录项
|
|
75
|
+
*/
|
|
76
|
+
export interface IOperateRecordInfo {
|
|
77
|
+
/**
|
|
78
|
+
* 时间
|
|
79
|
+
*/
|
|
80
|
+
gmtCreate: number;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 操作
|
|
84
|
+
*/
|
|
85
|
+
operation: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* 备注
|
|
89
|
+
*/
|
|
90
|
+
remark: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* 操作人
|
|
94
|
+
*/
|
|
95
|
+
operatorName: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 文件信息项
|
|
100
|
+
*/
|
|
101
|
+
export interface IFileInfoListItem {
|
|
102
|
+
/**
|
|
103
|
+
* 附件类型(1-图片,2-视频,3-其他)
|
|
104
|
+
*/
|
|
105
|
+
fileType: 1 | 2 | 3;
|
|
106
|
+
ossKey: string;
|
|
107
|
+
ossUrl: string;
|
|
108
|
+
name: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* 本地文件信息
|
|
113
|
+
*/
|
|
114
|
+
export interface IFileInfoListLocalItem {
|
|
115
|
+
/**
|
|
116
|
+
* 附件类型(1-图片,2-视频,3-其他)
|
|
117
|
+
*/
|
|
118
|
+
fileType: 1 | 2 | 3;
|
|
119
|
+
ossKey: string;
|
|
120
|
+
ossUrl: string;
|
|
121
|
+
name: string;
|
|
122
|
+
imgURL: string;
|
|
123
|
+
response: {
|
|
124
|
+
ossKey: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 键值对
|
|
130
|
+
*/
|
|
131
|
+
export type IKeyValueItem = Record<string, any>;
|
|
132
|
+
|
|
133
|
+
export interface ICnQuery {
|
|
134
|
+
currentPage?: number;
|
|
135
|
+
pageSize?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface ICnPaging {
|
|
139
|
+
currentPage: number;
|
|
140
|
+
pageSize: number;
|
|
141
|
+
totalCount: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface ICnTableData<T = any> {
|
|
145
|
+
paging: ICnPaging;
|
|
146
|
+
tableData: T[];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface IBizQuery {
|
|
150
|
+
bizType: string;
|
|
151
|
+
bizIds: string[];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
interface IFileData {
|
|
155
|
+
key: string;
|
|
156
|
+
name?: string;
|
|
157
|
+
url?: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface IUploadFileInfo {
|
|
161
|
+
status: string | 'done';
|
|
162
|
+
name: string;
|
|
163
|
+
size: number;
|
|
164
|
+
type: string;
|
|
165
|
+
key: string;
|
|
166
|
+
response?: {
|
|
167
|
+
data: IFileData;
|
|
168
|
+
};
|
|
169
|
+
url?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface IOperateState {
|
|
173
|
+
type: OperateType;
|
|
174
|
+
id?: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface INextPageMenuInfo {
|
|
178
|
+
menuTitle: string;
|
|
179
|
+
menuUrl: string;
|
|
180
|
+
path: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface IShowInfo {
|
|
184
|
+
title: string;
|
|
185
|
+
content?: string | number;
|
|
186
|
+
img?: string;
|
|
187
|
+
time?: string | number;
|
|
188
|
+
url?: string;
|
|
189
|
+
buttonName?: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface IMatterInfo {
|
|
193
|
+
applyTime: string;
|
|
194
|
+
title: string;
|
|
195
|
+
url: string;
|
|
196
|
+
applicantName: string;
|
|
197
|
+
handlerName: string;
|
|
198
|
+
status: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface ISearchCondition {
|
|
202
|
+
dataAccVal: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface IRecommendInfo {
|
|
206
|
+
word: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface ISearchResListInfo {
|
|
210
|
+
bizId: string;
|
|
211
|
+
title: string;
|
|
212
|
+
content: string;
|
|
213
|
+
url: string;
|
|
214
|
+
ext?: {
|
|
215
|
+
code: string;
|
|
216
|
+
dataAccVal: string;
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface ISearchResInfo {
|
|
222
|
+
count: number;
|
|
223
|
+
type: string;
|
|
224
|
+
list: ISearchResListInfo[];
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface IHazardInfo {
|
|
228
|
+
parkName: string;
|
|
229
|
+
parkCode: string;
|
|
230
|
+
riskDescribe: string;
|
|
231
|
+
riskNumber: number;
|
|
232
|
+
progress: number;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface ISearchByTypeCondition {
|
|
236
|
+
keyWord?: string;
|
|
237
|
+
type: string;
|
|
238
|
+
page: number;
|
|
239
|
+
pageSize: number;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface ICardInfo {
|
|
243
|
+
size: 'medium' | 'min' | 'max';
|
|
244
|
+
id: number;
|
|
245
|
+
x?: number;
|
|
246
|
+
y?: number;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export interface IPortalPageInfo {
|
|
250
|
+
id: number;
|
|
251
|
+
name: string;
|
|
252
|
+
code: string;
|
|
253
|
+
pageType: string;
|
|
254
|
+
status: string;
|
|
255
|
+
digitalSpaceUrl: string;
|
|
256
|
+
comment: null;
|
|
257
|
+
cardList: ICardInfo[];
|
|
258
|
+
content: string;
|
|
259
|
+
configMap: {
|
|
260
|
+
[p: string]: IIndicatorCardConfig;
|
|
261
|
+
};
|
|
262
|
+
groupDTOList: ICardGroupInfo[];
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface IVisionUserConfig {
|
|
266
|
+
[p: string]: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface IZNoticeInfo {
|
|
270
|
+
title: string;
|
|
271
|
+
bizId: string;
|
|
272
|
+
releaseDate: number;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface IOssSign {
|
|
276
|
+
accessId: string;
|
|
277
|
+
ossAccessKeyId: string;
|
|
278
|
+
policy: string;
|
|
279
|
+
host: string;
|
|
280
|
+
expire: string;
|
|
281
|
+
key: string;
|
|
282
|
+
signature: string;
|
|
283
|
+
securityToken: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface IOssUploadData
|
|
287
|
+
extends Pick<
|
|
288
|
+
IOssSign,
|
|
289
|
+
'signature' | 'policy' | 'ossAccessKeyId' | 'host' | 'securityToken'
|
|
290
|
+
> {
|
|
291
|
+
file: File;
|
|
292
|
+
key: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface IWorkbenchOptions {
|
|
296
|
+
roleList: IListItem[];
|
|
297
|
+
pendingList: IMatterPendingInfo[];
|
|
298
|
+
noticeList: INoticeInfo[];
|
|
299
|
+
LEVEL_2?: IListItem[];
|
|
300
|
+
LEVEL_3?: IListItem[];
|
|
301
|
+
LEVEL_4?: IListItem[];
|
|
302
|
+
LEVEL_5?: IListItem[];
|
|
303
|
+
}
|