@zgfe/modules-event 1.0.29-zhongyuanE.0 → 1.0.29-zhongyuanE.17
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/es/components/renderContent/styles/index.less +0 -19
- package/package.json +3 -3
- package/es/components/eventFilter/index.d.ts +0 -5
- package/es/components/eventFilter/index.js +0 -312
- package/es/components/eventFilter/setCascade.d.ts +0 -3
- package/es/components/eventFilter/setCascade.js +0 -286
- package/es/components/eventFilter/types.d.ts +0 -21
- package/es/components/eventFilter/types.js +0 -1
- package/es/components/index.d.ts +0 -4
- package/es/components/index.js +0 -4
- package/es/components/renderContent/index.d.ts +0 -5
- package/es/components/renderContent/index.js +0 -46
- package/es/components/renderContent/types.d.ts +0 -8
- package/es/components/renderContent/types.js +0 -1
- package/es/components/searchPanel/index.d.ts +0 -5
- package/es/components/searchPanel/index.js +0 -131
- package/es/components/searchPanel/styles/index.less +0 -22
- package/es/components/searchPanel/types.d.ts +0 -28
- package/es/components/searchPanel/types.js +0 -1
- package/es/components/table/index.d.ts +0 -6
- package/es/components/table/index.js +0 -319
- package/es/components/table/styles/index.css +0 -236
- package/es/components/table/styles/index.less +0 -249
- package/es/components/table/types.d.ts +0 -10
- package/es/components/table/types.js +0 -1
- package/es/components/topBar/index.d.ts +0 -10
- package/es/components/topBar/index.js +0 -174
- package/es/components/topBar/styles/index.less +0 -58
- package/es/components/topBar/types.d.ts +0 -8
- package/es/components/topBar/types.js +0 -1
- package/es/constants/apis.d.ts +0 -10
- package/es/constants/apis.js +0 -10
- package/es/constants/chart.d.ts +0 -2
- package/es/constants/chart.js +0 -31
- package/es/constants/color.d.ts +0 -1
- package/es/constants/color.js +0 -1
- package/es/constants/fields.d.ts +0 -251
- package/es/constants/fields.js +0 -177
- package/es/constants/index.d.ts +0 -6
- package/es/constants/index.js +0 -6
- package/es/constants/initData.d.ts +0 -2
- package/es/constants/initData.js +0 -9
- package/es/index.d.ts +0 -6
- package/es/index.js +0 -5
- package/es/modules/chart/demo/data.d.ts +0 -73
- package/es/modules/chart/demo/data.js +0 -484
- package/es/modules/chart/demo/index.d.ts +0 -3
- package/es/modules/chart/demo/index.js +0 -51
- package/es/modules/chart/demo/panel.d.ts +0 -3
- package/es/modules/chart/demo/panel.js +0 -16
- package/es/modules/chart/index.d.ts +0 -4
- package/es/modules/chart/index.js +0 -253
- package/es/modules/chart/types.d.ts +0 -19
- package/es/modules/chart/types.js +0 -1
- package/es/modules/content/index.d.ts +0 -5
- package/es/modules/content/index.js +0 -300
- package/es/modules/content/styles/index.less +0 -19
- package/es/modules/content/types.d.ts +0 -11
- package/es/modules/content/types.js +0 -1
- package/es/modules/content/utils.d.ts +0 -17
- package/es/modules/content/utils.js +0 -107
- package/es/modules/home/demo/create.d.ts +0 -3
- package/es/modules/home/demo/create.js +0 -58
- package/es/modules/home/demo/edit.d.ts +0 -3
- package/es/modules/home/demo/edit.js +0 -73
- package/es/modules/home/demo/index.d.ts +0 -4
- package/es/modules/home/demo/index.js +0 -55
- package/es/modules/home/demo/scene.d.ts +0 -3
- package/es/modules/home/demo/scene.js +0 -89
- package/es/modules/home/demo/styles/index.less +0 -33
- package/es/modules/home/index.d.ts +0 -5
- package/es/modules/home/index.js +0 -184
- package/es/modules/home/styles/index.less +0 -49
- package/es/modules/home/types.d.ts +0 -34
- package/es/modules/home/types.js +0 -1
- package/es/modules/topPanel/index.d.ts +0 -5
- package/es/modules/topPanel/index.js +0 -246
- package/es/modules/topPanel/styles/index.less +0 -50
- package/es/modules/topPanel/types.d.ts +0 -46
- package/es/modules/topPanel/types.js +0 -1
- package/es/style/theme.d.ts +0 -15
- package/es/style/theme.js +0 -14
- package/es/types.d.ts +0 -86
- package/es/types.js +0 -6
- package/es/utils/ajaxConfig.d.ts +0 -8
- package/es/utils/ajaxConfig.js +0 -40
- package/es/utils/base64.d.ts +0 -23
- package/es/utils/base64.js +0 -125
- package/es/utils/formData.d.ts +0 -20
- package/es/utils/formData.js +0 -406
- package/es/utils/util.d.ts +0 -32
- package/es/utils/util.js +0 -139
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.modules-event-topbar {
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: space-between;
|
|
6
|
-
margin: 8px 0;
|
|
7
|
-
padding: 0 16px;
|
|
8
|
-
&-title {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
.fanhuiicon {
|
|
12
|
-
margin-right: 8px;
|
|
13
|
-
color: #5f6085;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
> span {
|
|
17
|
-
color: var(--io-N-, #021429);
|
|
18
|
-
font-weight: 500;
|
|
19
|
-
font-size: 16px;
|
|
20
|
-
font-family: 'PingFang SC';
|
|
21
|
-
font-style: normal;
|
|
22
|
-
line-height: 20px; /* 125% */
|
|
23
|
-
letter-spacing: 0.016px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
&-right {
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: flex-end;
|
|
29
|
-
}
|
|
30
|
-
&-panel {
|
|
31
|
-
margin-right: 16px;
|
|
32
|
-
.ant-btn {
|
|
33
|
-
background: #fff;
|
|
34
|
-
border-color: #f2f3f4;
|
|
35
|
-
}
|
|
36
|
-
.ant-btn:hover {
|
|
37
|
-
border-color: #165dff;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
&-scene {
|
|
41
|
-
margin-right: 16px;
|
|
42
|
-
.ant-btn {
|
|
43
|
-
background: #fff;
|
|
44
|
-
border-color: #f2f3f4;
|
|
45
|
-
}
|
|
46
|
-
.ant-btn:hover {
|
|
47
|
-
border-color: #165dff;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
&-earlywarning {
|
|
51
|
-
margin-right: 16px;
|
|
52
|
-
}
|
|
53
|
-
&-platform {
|
|
54
|
-
display: flex;
|
|
55
|
-
height: 32px;
|
|
56
|
-
line-height: 32px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SearchValue, ResponseDataProps } from '../../types';
|
|
2
|
-
export interface TopBarProps {
|
|
3
|
-
searchData?: SearchValue;
|
|
4
|
-
platformChange: (data: number) => void;
|
|
5
|
-
eventData?: ResponseDataProps;
|
|
6
|
-
onClickGenerateReport?: (value: any) => void;
|
|
7
|
-
enableSelectChart: boolean;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/es/constants/apis.d.ts
DELETED
package/es/constants/apis.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var Apis = {
|
|
2
|
-
dataList: '/zg/web/v2/data/eventDataList',
|
|
3
|
-
getEventDataSql: '/zg/web/v2/dataSql/getEventDataSql',
|
|
4
|
-
eventDownloadReport: '/zg/web/v2/data/eventDownloadReport',
|
|
5
|
-
querySubDisplayApi: '/zg/web/v2/analysisSubject/querySubDisplay',
|
|
6
|
-
relationSaveConfig: '/zg/web/v2/event/relation/saveConfig',
|
|
7
|
-
queryRelationConfig: '/zg/web/v2/event/queryRelationConfig',
|
|
8
|
-
getEventSwitch: '/zg/web/v2/event/getEventSwitch'
|
|
9
|
-
};
|
|
10
|
-
export default Apis;
|
package/es/constants/chart.d.ts
DELETED
package/es/constants/chart.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IconFont } from '@zgfe/business-lib';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export var chartTypeOptions = [{
|
|
4
|
-
label: '趋势图',
|
|
5
|
-
value: 'line',
|
|
6
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
7
|
-
type: "qushitu1",
|
|
8
|
-
size: 16
|
|
9
|
-
})
|
|
10
|
-
}, {
|
|
11
|
-
label: '汇总图',
|
|
12
|
-
value: 'bar',
|
|
13
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
14
|
-
type: "huizongtu",
|
|
15
|
-
size: 16
|
|
16
|
-
})
|
|
17
|
-
}, {
|
|
18
|
-
label: '占比图',
|
|
19
|
-
value: 'pie',
|
|
20
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
21
|
-
type: "bingtu",
|
|
22
|
-
size: 16
|
|
23
|
-
})
|
|
24
|
-
}, {
|
|
25
|
-
label: '地图',
|
|
26
|
-
value: 'map',
|
|
27
|
-
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
28
|
-
type: "ditu",
|
|
29
|
-
size: 16
|
|
30
|
-
})
|
|
31
|
-
}];
|
package/es/constants/color.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const chartColors: string[];
|
package/es/constants/color.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var chartColors = ['#457DFF', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED', '#9661BC', '#FF7557', '#4DB273', '#F08BB4', '#CDDBFD', '#CDF3F0', '#CED4DE', '#FCE7B9', '#D1CEFD', '#D3E7F9', '#DFCFEA', '#FFD1C7', '#BBDEC8', '#FFE0ED'];
|
package/es/constants/fields.d.ts
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
export declare const platformOption: {
|
|
2
|
-
key: number;
|
|
3
|
-
value: string;
|
|
4
|
-
}[];
|
|
5
|
-
export declare const chartTypes: ({
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
icon: string;
|
|
9
|
-
children?: undefined;
|
|
10
|
-
disabled?: undefined;
|
|
11
|
-
optionList?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
label: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
value: string;
|
|
16
|
-
children: ({
|
|
17
|
-
label: string;
|
|
18
|
-
value: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
disabled?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
label: string;
|
|
23
|
-
value: string;
|
|
24
|
-
icon: string;
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
})[];
|
|
27
|
-
disabled?: undefined;
|
|
28
|
-
optionList?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
icon: string;
|
|
33
|
-
disabled: boolean;
|
|
34
|
-
children?: undefined;
|
|
35
|
-
optionList?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
label: string;
|
|
38
|
-
value: string;
|
|
39
|
-
icon: string;
|
|
40
|
-
disabled: boolean;
|
|
41
|
-
optionList: {
|
|
42
|
-
label: string;
|
|
43
|
-
value: string;
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
select: boolean;
|
|
46
|
-
}[];
|
|
47
|
-
children?: undefined;
|
|
48
|
-
})[];
|
|
49
|
-
export declare const addPanelFields: ({
|
|
50
|
-
label: string;
|
|
51
|
-
name: string;
|
|
52
|
-
extendName: string;
|
|
53
|
-
type: string;
|
|
54
|
-
options: never[];
|
|
55
|
-
children: string[];
|
|
56
|
-
fieldNames: {
|
|
57
|
-
label: string;
|
|
58
|
-
value: string;
|
|
59
|
-
};
|
|
60
|
-
rules: {
|
|
61
|
-
required: boolean;
|
|
62
|
-
message: string;
|
|
63
|
-
}[];
|
|
64
|
-
direction?: undefined;
|
|
65
|
-
dependenceFields?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
label: string;
|
|
68
|
-
name: string;
|
|
69
|
-
type: string;
|
|
70
|
-
rules: {
|
|
71
|
-
required: boolean;
|
|
72
|
-
message: string;
|
|
73
|
-
}[];
|
|
74
|
-
extendName?: undefined;
|
|
75
|
-
options?: undefined;
|
|
76
|
-
children?: undefined;
|
|
77
|
-
fieldNames?: undefined;
|
|
78
|
-
direction?: undefined;
|
|
79
|
-
dependenceFields?: undefined;
|
|
80
|
-
} | {
|
|
81
|
-
label: string;
|
|
82
|
-
name: string;
|
|
83
|
-
type: string;
|
|
84
|
-
options: ({
|
|
85
|
-
label: string;
|
|
86
|
-
value: string;
|
|
87
|
-
icon: string;
|
|
88
|
-
children?: undefined;
|
|
89
|
-
disabled?: undefined;
|
|
90
|
-
optionList?: undefined;
|
|
91
|
-
} | {
|
|
92
|
-
label: string;
|
|
93
|
-
icon: string;
|
|
94
|
-
value: string;
|
|
95
|
-
children: ({
|
|
96
|
-
label: string;
|
|
97
|
-
value: string;
|
|
98
|
-
icon: string;
|
|
99
|
-
disabled?: undefined;
|
|
100
|
-
} | {
|
|
101
|
-
label: string;
|
|
102
|
-
value: string;
|
|
103
|
-
icon: string;
|
|
104
|
-
disabled: boolean;
|
|
105
|
-
})[];
|
|
106
|
-
disabled?: undefined;
|
|
107
|
-
optionList?: undefined;
|
|
108
|
-
} | {
|
|
109
|
-
label: string;
|
|
110
|
-
value: string;
|
|
111
|
-
icon: string;
|
|
112
|
-
disabled: boolean;
|
|
113
|
-
children?: undefined;
|
|
114
|
-
optionList?: undefined;
|
|
115
|
-
} | {
|
|
116
|
-
label: string;
|
|
117
|
-
value: string;
|
|
118
|
-
icon: string;
|
|
119
|
-
disabled: boolean;
|
|
120
|
-
optionList: {
|
|
121
|
-
label: string;
|
|
122
|
-
value: string;
|
|
123
|
-
disabled: boolean;
|
|
124
|
-
select: boolean;
|
|
125
|
-
}[];
|
|
126
|
-
children?: undefined;
|
|
127
|
-
})[];
|
|
128
|
-
rules: {
|
|
129
|
-
required: boolean;
|
|
130
|
-
message: string;
|
|
131
|
-
}[];
|
|
132
|
-
extendName?: undefined;
|
|
133
|
-
children?: undefined;
|
|
134
|
-
fieldNames?: undefined;
|
|
135
|
-
direction?: undefined;
|
|
136
|
-
dependenceFields?: undefined;
|
|
137
|
-
} | {
|
|
138
|
-
label: string;
|
|
139
|
-
name: string;
|
|
140
|
-
type: string;
|
|
141
|
-
direction: string;
|
|
142
|
-
dependenceFields: {
|
|
143
|
-
chart: string;
|
|
144
|
-
};
|
|
145
|
-
options: {
|
|
146
|
-
label: string;
|
|
147
|
-
value: string;
|
|
148
|
-
}[];
|
|
149
|
-
rules: {
|
|
150
|
-
required: boolean;
|
|
151
|
-
message: string;
|
|
152
|
-
}[];
|
|
153
|
-
extendName?: undefined;
|
|
154
|
-
children?: undefined;
|
|
155
|
-
fieldNames?: undefined;
|
|
156
|
-
})[];
|
|
157
|
-
export declare const editPanelFields: ({
|
|
158
|
-
label: string;
|
|
159
|
-
name: string;
|
|
160
|
-
type: string;
|
|
161
|
-
options: ({
|
|
162
|
-
label: string;
|
|
163
|
-
value: string;
|
|
164
|
-
icon: string;
|
|
165
|
-
children?: undefined;
|
|
166
|
-
disabled?: undefined;
|
|
167
|
-
optionList?: undefined;
|
|
168
|
-
} | {
|
|
169
|
-
label: string;
|
|
170
|
-
icon: string;
|
|
171
|
-
value: string;
|
|
172
|
-
children: ({
|
|
173
|
-
label: string;
|
|
174
|
-
value: string;
|
|
175
|
-
icon: string;
|
|
176
|
-
disabled?: undefined;
|
|
177
|
-
} | {
|
|
178
|
-
label: string;
|
|
179
|
-
value: string;
|
|
180
|
-
icon: string;
|
|
181
|
-
disabled: boolean;
|
|
182
|
-
})[];
|
|
183
|
-
disabled?: undefined;
|
|
184
|
-
optionList?: undefined;
|
|
185
|
-
} | {
|
|
186
|
-
label: string;
|
|
187
|
-
value: string;
|
|
188
|
-
icon: string;
|
|
189
|
-
disabled: boolean;
|
|
190
|
-
children?: undefined;
|
|
191
|
-
optionList?: undefined;
|
|
192
|
-
} | {
|
|
193
|
-
label: string;
|
|
194
|
-
value: string;
|
|
195
|
-
icon: string;
|
|
196
|
-
disabled: boolean;
|
|
197
|
-
optionList: {
|
|
198
|
-
label: string;
|
|
199
|
-
value: string;
|
|
200
|
-
disabled: boolean;
|
|
201
|
-
select: boolean;
|
|
202
|
-
}[];
|
|
203
|
-
children?: undefined;
|
|
204
|
-
})[];
|
|
205
|
-
rules: {
|
|
206
|
-
required: boolean;
|
|
207
|
-
message: string;
|
|
208
|
-
}[];
|
|
209
|
-
direction?: undefined;
|
|
210
|
-
dependenceFields?: undefined;
|
|
211
|
-
} | {
|
|
212
|
-
label: string;
|
|
213
|
-
name: string;
|
|
214
|
-
type: string;
|
|
215
|
-
direction: string;
|
|
216
|
-
dependenceFields: {
|
|
217
|
-
chart: string;
|
|
218
|
-
};
|
|
219
|
-
options: {
|
|
220
|
-
label: string;
|
|
221
|
-
value: string;
|
|
222
|
-
}[];
|
|
223
|
-
rules: {
|
|
224
|
-
required: boolean;
|
|
225
|
-
message: string;
|
|
226
|
-
}[];
|
|
227
|
-
})[];
|
|
228
|
-
export declare const addSceneFields: ({
|
|
229
|
-
label: string;
|
|
230
|
-
name: string;
|
|
231
|
-
type: string;
|
|
232
|
-
options: never[];
|
|
233
|
-
fieldNames: {
|
|
234
|
-
label: string;
|
|
235
|
-
value: string;
|
|
236
|
-
};
|
|
237
|
-
rules: {
|
|
238
|
-
required: boolean;
|
|
239
|
-
message: string;
|
|
240
|
-
}[];
|
|
241
|
-
} | {
|
|
242
|
-
label: string;
|
|
243
|
-
name: string;
|
|
244
|
-
type: string;
|
|
245
|
-
rules: {
|
|
246
|
-
required: boolean;
|
|
247
|
-
message: string;
|
|
248
|
-
}[];
|
|
249
|
-
options?: undefined;
|
|
250
|
-
fieldNames?: undefined;
|
|
251
|
-
})[];
|
package/es/constants/fields.js
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
export var platformOption = [{
|
|
2
|
-
key: 0,
|
|
3
|
-
value: '全部'
|
|
4
|
-
}, {
|
|
5
|
-
key: 3,
|
|
6
|
-
value: 'JS'
|
|
7
|
-
}, {
|
|
8
|
-
key: 2,
|
|
9
|
-
value: 'IOS'
|
|
10
|
-
}, {
|
|
11
|
-
key: 1,
|
|
12
|
-
value: 'Android'
|
|
13
|
-
}];
|
|
14
|
-
export var chartTypes = [{
|
|
15
|
-
label: '趋势图',
|
|
16
|
-
value: 'line',
|
|
17
|
-
icon: 'qushitu1'
|
|
18
|
-
}, {
|
|
19
|
-
label: '汇总图',
|
|
20
|
-
value: 'bar',
|
|
21
|
-
icon: 'huizongtu'
|
|
22
|
-
}, {
|
|
23
|
-
label: '占比图',
|
|
24
|
-
value: 'pie',
|
|
25
|
-
icon: 'bingtu'
|
|
26
|
-
}, {
|
|
27
|
-
label: '表格',
|
|
28
|
-
icon: 'biaoge',
|
|
29
|
-
value: 'grid',
|
|
30
|
-
children: [{
|
|
31
|
-
label: '',
|
|
32
|
-
value: 'line',
|
|
33
|
-
icon: 'qushitu1'
|
|
34
|
-
}, {
|
|
35
|
-
label: '',
|
|
36
|
-
value: 'bar',
|
|
37
|
-
icon: 'huizongtu'
|
|
38
|
-
}, {
|
|
39
|
-
label: '',
|
|
40
|
-
value: 'pie',
|
|
41
|
-
icon: 'bingtu'
|
|
42
|
-
}, {
|
|
43
|
-
label: '',
|
|
44
|
-
value: 'map',
|
|
45
|
-
icon: 'ditu',
|
|
46
|
-
disabled: true
|
|
47
|
-
}]
|
|
48
|
-
}, {
|
|
49
|
-
label: '地图',
|
|
50
|
-
value: 'map',
|
|
51
|
-
icon: 'ditu',
|
|
52
|
-
disabled: true
|
|
53
|
-
}, {
|
|
54
|
-
label: '数值',
|
|
55
|
-
value: 'number',
|
|
56
|
-
icon: 'fenshu',
|
|
57
|
-
disabled: false,
|
|
58
|
-
optionList: [{
|
|
59
|
-
label: '合计',
|
|
60
|
-
value: 'total',
|
|
61
|
-
disabled: true,
|
|
62
|
-
select: true
|
|
63
|
-
}, {
|
|
64
|
-
label: '环比',
|
|
65
|
-
value: 'huanbi',
|
|
66
|
-
disabled: false,
|
|
67
|
-
select: true
|
|
68
|
-
}, {
|
|
69
|
-
label: '同比',
|
|
70
|
-
value: 'tongbi',
|
|
71
|
-
disabled: false,
|
|
72
|
-
select: true
|
|
73
|
-
}]
|
|
74
|
-
}];
|
|
75
|
-
export var addPanelFields = [{
|
|
76
|
-
label: '看板',
|
|
77
|
-
name: 'panel',
|
|
78
|
-
extendName: 'range',
|
|
79
|
-
type: 'selectToInput',
|
|
80
|
-
options: [],
|
|
81
|
-
children: ['range'],
|
|
82
|
-
fieldNames: {
|
|
83
|
-
label: 'name',
|
|
84
|
-
value: 'id'
|
|
85
|
-
},
|
|
86
|
-
rules: [{
|
|
87
|
-
required: true,
|
|
88
|
-
message: '请选择看板'
|
|
89
|
-
}]
|
|
90
|
-
}, {
|
|
91
|
-
label: '名称',
|
|
92
|
-
name: 'name',
|
|
93
|
-
type: 'input',
|
|
94
|
-
rules: [{
|
|
95
|
-
required: true,
|
|
96
|
-
message: '请输入名称'
|
|
97
|
-
}]
|
|
98
|
-
}, {
|
|
99
|
-
label: '样式',
|
|
100
|
-
name: 'chart',
|
|
101
|
-
type: 'tab',
|
|
102
|
-
options: chartTypes,
|
|
103
|
-
rules: [{
|
|
104
|
-
required: true,
|
|
105
|
-
message: '请选择图表'
|
|
106
|
-
}]
|
|
107
|
-
}, {
|
|
108
|
-
label: '显示',
|
|
109
|
-
name: 'show',
|
|
110
|
-
type: 'radio',
|
|
111
|
-
direction: 'vertical',
|
|
112
|
-
dependenceFields: {
|
|
113
|
-
chart: 'line'
|
|
114
|
-
},
|
|
115
|
-
options: [{
|
|
116
|
-
label: '动态显示数据最多的10个分组',
|
|
117
|
-
value: 'dynamic'
|
|
118
|
-
}, {
|
|
119
|
-
label: '固定显示当前选择的分组',
|
|
120
|
-
value: 'fix'
|
|
121
|
-
}],
|
|
122
|
-
rules: [{
|
|
123
|
-
required: true,
|
|
124
|
-
message: '请选择'
|
|
125
|
-
}]
|
|
126
|
-
}];
|
|
127
|
-
export var editPanelFields = [{
|
|
128
|
-
label: '样式',
|
|
129
|
-
name: 'chart',
|
|
130
|
-
type: 'tab',
|
|
131
|
-
options: chartTypes,
|
|
132
|
-
rules: [{
|
|
133
|
-
required: true,
|
|
134
|
-
message: '请选择图表'
|
|
135
|
-
}]
|
|
136
|
-
}, {
|
|
137
|
-
label: '显示',
|
|
138
|
-
name: 'show',
|
|
139
|
-
type: 'radio',
|
|
140
|
-
direction: 'vertical',
|
|
141
|
-
dependenceFields: {
|
|
142
|
-
chart: 'line'
|
|
143
|
-
},
|
|
144
|
-
options: [{
|
|
145
|
-
label: '动态显示数据最多的10个分组',
|
|
146
|
-
value: 'dynamic'
|
|
147
|
-
}, {
|
|
148
|
-
label: '固定显示当前选择的分组',
|
|
149
|
-
value: 'fix'
|
|
150
|
-
}],
|
|
151
|
-
rules: [{
|
|
152
|
-
required: true,
|
|
153
|
-
message: '请选择'
|
|
154
|
-
}]
|
|
155
|
-
}];
|
|
156
|
-
export var addSceneFields = [{
|
|
157
|
-
label: '场景分类',
|
|
158
|
-
name: 'class',
|
|
159
|
-
type: 'selectToInput',
|
|
160
|
-
options: [],
|
|
161
|
-
fieldNames: {
|
|
162
|
-
label: 'groupName',
|
|
163
|
-
value: 'groupId'
|
|
164
|
-
},
|
|
165
|
-
rules: [{
|
|
166
|
-
required: true,
|
|
167
|
-
message: '请选择场景分类'
|
|
168
|
-
}]
|
|
169
|
-
}, {
|
|
170
|
-
label: '场景名称',
|
|
171
|
-
name: 'name',
|
|
172
|
-
type: 'input',
|
|
173
|
-
rules: [{
|
|
174
|
-
required: true,
|
|
175
|
-
message: '请输入场景名称'
|
|
176
|
-
}]
|
|
177
|
-
}];
|
package/es/constants/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import Apis from './apis';
|
|
2
|
-
import { chartTypeOptions } from './chart';
|
|
3
|
-
import { chartColors } from './color';
|
|
4
|
-
import { chartTypes, addPanelFields, editPanelFields, addSceneFields } from './fields';
|
|
5
|
-
import { getInitDate } from './initData';
|
|
6
|
-
export { Apis, chartTypeOptions, chartColors, chartTypes, addPanelFields, editPanelFields, addSceneFields, getInitDate, };
|
package/es/constants/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import Apis from './apis';
|
|
2
|
-
import { chartTypeOptions } from './chart';
|
|
3
|
-
import { chartColors } from './color';
|
|
4
|
-
import { chartTypes, addPanelFields, editPanelFields, addSceneFields } from './fields';
|
|
5
|
-
import { getInitDate } from './initData';
|
|
6
|
-
export { Apis, chartTypeOptions, chartColors, chartTypes, addPanelFields, editPanelFields, addSceneFields, getInitDate };
|
package/es/constants/initData.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
export function getInitDate(includeToday) {
|
|
3
|
-
return {
|
|
4
|
-
unit: 'day',
|
|
5
|
-
relative: [7, 0],
|
|
6
|
-
begin: moment().subtract(7, 'days').format('YYYY-MM-DD'),
|
|
7
|
-
end: moment().subtract(includeToday ? 0 : 1, 'days').format('YYYY-MM-DD')
|
|
8
|
-
};
|
|
9
|
-
}
|
package/es/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference path="../typings.d.ts" />
|
|
2
|
-
import EventChart from './modules/chart';
|
|
3
|
-
import ModuleEvent from './modules/home';
|
|
4
|
-
import { getNumberPanelData } from './modules/content/utils';
|
|
5
|
-
import EventFilter from './components/eventFilter';
|
|
6
|
-
export { ModuleEvent, EventChart, getNumberPanelData, EventFilter };
|
package/es/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import EventChart from './modules/chart';
|
|
2
|
-
import ModuleEvent from './modules/home';
|
|
3
|
-
import { getNumberPanelData } from './modules/content/utils';
|
|
4
|
-
import EventFilter from './components/eventFilter';
|
|
5
|
-
export { ModuleEvent, EventChart, getNumberPanelData, EventFilter };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare const result: {
|
|
2
|
-
xAxis: string[];
|
|
3
|
-
series: ({
|
|
4
|
-
duration: never[];
|
|
5
|
-
index: string;
|
|
6
|
-
names: string[];
|
|
7
|
-
values: number[];
|
|
8
|
-
} | {
|
|
9
|
-
duration: {
|
|
10
|
-
name: string;
|
|
11
|
-
values: number[];
|
|
12
|
-
}[];
|
|
13
|
-
index: null;
|
|
14
|
-
names: string[];
|
|
15
|
-
values: number[];
|
|
16
|
-
})[];
|
|
17
|
-
};
|
|
18
|
-
export declare const totalResult: {
|
|
19
|
-
xAxis: string[];
|
|
20
|
-
series: ({
|
|
21
|
-
duration: never[];
|
|
22
|
-
index: string;
|
|
23
|
-
names: string[];
|
|
24
|
-
original_names: never[];
|
|
25
|
-
p_total: never[];
|
|
26
|
-
total: never[];
|
|
27
|
-
values: number[];
|
|
28
|
-
} | {
|
|
29
|
-
duration: never[];
|
|
30
|
-
index: null;
|
|
31
|
-
names: string[];
|
|
32
|
-
original_names: never[];
|
|
33
|
-
p_total: never[];
|
|
34
|
-
total: never[];
|
|
35
|
-
values: number[];
|
|
36
|
-
})[];
|
|
37
|
-
};
|
|
38
|
-
export declare const searchData: {
|
|
39
|
-
appId: number;
|
|
40
|
-
platform: number;
|
|
41
|
-
module: string;
|
|
42
|
-
time: {
|
|
43
|
-
begin: string;
|
|
44
|
-
end: string;
|
|
45
|
-
relative: number[];
|
|
46
|
-
unit: string;
|
|
47
|
-
};
|
|
48
|
-
analysisIndex: string;
|
|
49
|
-
chartType: string;
|
|
50
|
-
userGroup: number[];
|
|
51
|
-
};
|
|
52
|
-
export declare const totalSearchData: {
|
|
53
|
-
appId: number;
|
|
54
|
-
platform: number;
|
|
55
|
-
targets: {
|
|
56
|
-
type: string;
|
|
57
|
-
alias: string;
|
|
58
|
-
eventId: number;
|
|
59
|
-
eventName: string;
|
|
60
|
-
eventGroupId: number;
|
|
61
|
-
analysisDimension: {
|
|
62
|
-
analysisIndex: string;
|
|
63
|
-
};
|
|
64
|
-
}[];
|
|
65
|
-
userGroup: number[];
|
|
66
|
-
time: {
|
|
67
|
-
unit: string;
|
|
68
|
-
relative: number[];
|
|
69
|
-
begin: string;
|
|
70
|
-
end: string;
|
|
71
|
-
};
|
|
72
|
-
chartType: string;
|
|
73
|
-
};
|