@zgfe/modules-event 1.0.29-zhongyuan1.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 -310
- 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,236 +0,0 @@
|
|
|
1
|
-
.event-mi-table {
|
|
2
|
-
margin-top: 16px;
|
|
3
|
-
}
|
|
4
|
-
.event-mi-table-loading {
|
|
5
|
-
min-height: 300px;
|
|
6
|
-
}
|
|
7
|
-
.event-mi-table-table-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
height: 50px;
|
|
12
|
-
margin-bottom: -1px;
|
|
13
|
-
padding: 0 12px;
|
|
14
|
-
line-height: 50px;
|
|
15
|
-
background: #fafafb;
|
|
16
|
-
border: 1px solid #e6e7ea;
|
|
17
|
-
border-radius: 8px 8px 0 0;
|
|
18
|
-
}
|
|
19
|
-
.event-mi-table-table-header > :nth-child(2) {
|
|
20
|
-
display: flex;
|
|
21
|
-
}
|
|
22
|
-
.event-mi-table-table-header > :nth-child(2) > :nth-child(1) {
|
|
23
|
-
margin-right: 16px;
|
|
24
|
-
}
|
|
25
|
-
.event-mi-table-table-header > :nth-child(2) div {
|
|
26
|
-
height: 32px;
|
|
27
|
-
padding: 0 16px;
|
|
28
|
-
line-height: 32px;
|
|
29
|
-
background: #fff;
|
|
30
|
-
border: 1px solid #f2f3f4;
|
|
31
|
-
border-radius: 4px;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
}
|
|
34
|
-
.event-mi-table-table-header > :nth-child(2) div .xiazai1 {
|
|
35
|
-
margin-right: 4px;
|
|
36
|
-
font-size: 18px !important;
|
|
37
|
-
vertical-align: -2px;
|
|
38
|
-
}
|
|
39
|
-
.event-mi-table-table-header > :nth-child(2) div:hover {
|
|
40
|
-
color: #165dff;
|
|
41
|
-
background: #e8efff;
|
|
42
|
-
border: 1px solid #165dff;
|
|
43
|
-
}
|
|
44
|
-
.event-mi-table-table-header > :nth-child(2) div:active {
|
|
45
|
-
color: #1454e5;
|
|
46
|
-
background: #e8efff;
|
|
47
|
-
border: 1px solid #1454e5;
|
|
48
|
-
}
|
|
49
|
-
.event-mi-table-table-header-left {
|
|
50
|
-
display: flex;
|
|
51
|
-
flex: 1;
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
overflow: hidden;
|
|
54
|
-
}
|
|
55
|
-
.event-mi-table-table-header-left-box {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex: 1;
|
|
58
|
-
flex-direction: row;
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
color: #67727f;
|
|
61
|
-
}
|
|
62
|
-
.event-mi-table-table-header-left-content {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex: 1;
|
|
65
|
-
flex-direction: row;
|
|
66
|
-
overflow: hidden;
|
|
67
|
-
color: #67727f;
|
|
68
|
-
}
|
|
69
|
-
.event-mi-table-table-header-left-content > span {
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
max-width: 33.33%;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
}
|
|
75
|
-
.event-mi-table-table-header-left-content > span :first-child {
|
|
76
|
-
overflow: hidden;
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
text-overflow: ellipsis;
|
|
79
|
-
}
|
|
80
|
-
.event-mi-table-table-header-left-content > span :nth-child(2) {
|
|
81
|
-
flex: 1;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
}
|
|
84
|
-
.event-mi-table .ant-table {
|
|
85
|
-
border-radius: 0 0 8px 8px;
|
|
86
|
-
}
|
|
87
|
-
.event-mi-table .sourcepanel-table-header {
|
|
88
|
-
overflow: hidden;
|
|
89
|
-
border-radius: 8px 8px 0 0;
|
|
90
|
-
}
|
|
91
|
-
.event-mi-table .sourcepanel-table-header .ant-table {
|
|
92
|
-
max-height: none;
|
|
93
|
-
}
|
|
94
|
-
.event-mi-table .ant-pagination {
|
|
95
|
-
margin-top: 24px !important;
|
|
96
|
-
}
|
|
97
|
-
.event-mi-table .ant-table .ant-table-thead .ant-table-cell.ant-table-column-has-sorters .ant-table-column-sorters {
|
|
98
|
-
justify-content: flex-end !important;
|
|
99
|
-
}
|
|
100
|
-
.event-mi-table .ant-table-cell-with-append {
|
|
101
|
-
padding-left: 20px;
|
|
102
|
-
}
|
|
103
|
-
.event-mi-table .ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
104
|
-
position: absolute;
|
|
105
|
-
left: 0;
|
|
106
|
-
margin-top: 0;
|
|
107
|
-
}
|
|
108
|
-
.event-mi-table .tooltip-userGroup-box {
|
|
109
|
-
display: flex;
|
|
110
|
-
max-width: 330px;
|
|
111
|
-
overflow: hidden;
|
|
112
|
-
white-space: nowrap;
|
|
113
|
-
text-overflow: ellipsis;
|
|
114
|
-
}
|
|
115
|
-
.event-mi-table .tooltip-userGroup-box div {
|
|
116
|
-
max-width: 330px;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
white-space: nowrap;
|
|
119
|
-
text-overflow: ellipsis;
|
|
120
|
-
}
|
|
121
|
-
.event-mi-table .tooltip-name-box {
|
|
122
|
-
display: flex;
|
|
123
|
-
}
|
|
124
|
-
.event-mi-table .tooltip-name-box-market {
|
|
125
|
-
width: 180px;
|
|
126
|
-
margin-right: 8px;
|
|
127
|
-
overflow: hidden;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
text-overflow: ellipsis;
|
|
130
|
-
cursor: pointer;
|
|
131
|
-
-webkit-line-clamp: 1;
|
|
132
|
-
-webkit-box-orient: vertical;
|
|
133
|
-
}
|
|
134
|
-
.event-mi-table .tooltip-name-box-market .shoucang {
|
|
135
|
-
color: #fd9f41;
|
|
136
|
-
font-size: 16px !important;
|
|
137
|
-
}
|
|
138
|
-
.event-mi-table .tooltip-name-box-market .notshoucang {
|
|
139
|
-
opacity: 0;
|
|
140
|
-
}
|
|
141
|
-
.event-mi-table .tooltip-name-box .fuzhi1 {
|
|
142
|
-
display: none;
|
|
143
|
-
font-size: 16px !important;
|
|
144
|
-
}
|
|
145
|
-
.event-mi-table .tooltip-name-box .fuzhi1:hover {
|
|
146
|
-
color: #165dff;
|
|
147
|
-
}
|
|
148
|
-
.event-mi-table .tooltip-name-box:hover .fuzhi1 {
|
|
149
|
-
display: block;
|
|
150
|
-
}
|
|
151
|
-
.event-mi-table-table-empty img {
|
|
152
|
-
width: 50px !important;
|
|
153
|
-
height: auto;
|
|
154
|
-
margin-top: 30px;
|
|
155
|
-
margin-bottom: 10px;
|
|
156
|
-
}
|
|
157
|
-
.event-mi-table-table-empty p {
|
|
158
|
-
color: rgba(0, 0, 0, 0.25);
|
|
159
|
-
}
|
|
160
|
-
.event-mi-table-chart-box {
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
width: 100%;
|
|
164
|
-
}
|
|
165
|
-
.event-mi-table-chart-box-tooltip {
|
|
166
|
-
width: 200px;
|
|
167
|
-
margin-bottom: 24px;
|
|
168
|
-
color: #67727f;
|
|
169
|
-
font-size: 12px;
|
|
170
|
-
}
|
|
171
|
-
.event-table-sql-modal .ant-modal {
|
|
172
|
-
width: 720px !important;
|
|
173
|
-
}
|
|
174
|
-
.event-table-sql-modal .ant-modal-header {
|
|
175
|
-
position: relative;
|
|
176
|
-
z-index: 1;
|
|
177
|
-
height: 82px;
|
|
178
|
-
background: transparent;
|
|
179
|
-
}
|
|
180
|
-
.event-table-sql-modal .ant-modal-body {
|
|
181
|
-
padding: 0 24px 24px 24px;
|
|
182
|
-
}
|
|
183
|
-
.event-table-sql-modal .ant-modal-close-x {
|
|
184
|
-
margin-top: 13px;
|
|
185
|
-
margin-right: 8px;
|
|
186
|
-
}
|
|
187
|
-
.event-table-sql-modal img {
|
|
188
|
-
width: 100%;
|
|
189
|
-
}
|
|
190
|
-
.event-table-sql-modal .qingchu {
|
|
191
|
-
font-weight: 500;
|
|
192
|
-
font-size: 22px !important;
|
|
193
|
-
}
|
|
194
|
-
.event-table-sql-modal .modal-bg {
|
|
195
|
-
position: absolute;
|
|
196
|
-
top: 0;
|
|
197
|
-
left: 0;
|
|
198
|
-
width: 100%;
|
|
199
|
-
height: auto;
|
|
200
|
-
}
|
|
201
|
-
.event-table-sql-modal pre {
|
|
202
|
-
margin-bottom: 0;
|
|
203
|
-
}
|
|
204
|
-
.event-table-sql-modal .hljs {
|
|
205
|
-
height: 400px;
|
|
206
|
-
padding: 16px;
|
|
207
|
-
padding-bottom: 0;
|
|
208
|
-
background: #fafafb;
|
|
209
|
-
border-radius: 8px;
|
|
210
|
-
}
|
|
211
|
-
.event-table-sql-modal .copy-box {
|
|
212
|
-
position: absolute;
|
|
213
|
-
top: 98px;
|
|
214
|
-
right: 40px;
|
|
215
|
-
padding: 0 8px;
|
|
216
|
-
background: #f2f3f4;
|
|
217
|
-
border-radius: 4px;
|
|
218
|
-
}
|
|
219
|
-
.event-table-sql-modal .copy-box .fuzhi1 {
|
|
220
|
-
margin-right: 8px;
|
|
221
|
-
}
|
|
222
|
-
.event-table-sql-modal .copy-box:hover {
|
|
223
|
-
color: #165dff;
|
|
224
|
-
background: #e8efff;
|
|
225
|
-
}
|
|
226
|
-
.event-table-sql-modal .copy-box:active {
|
|
227
|
-
color: #1454e5;
|
|
228
|
-
background: #e8efff;
|
|
229
|
-
}
|
|
230
|
-
.ant-modal-content {
|
|
231
|
-
position: relative;
|
|
232
|
-
}
|
|
233
|
-
.ant-modal-content .sql-tip {
|
|
234
|
-
position: absolute;
|
|
235
|
-
bottom: 30px;
|
|
236
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
.event-mi-table {
|
|
2
|
-
margin-top: 16px;
|
|
3
|
-
&-loading {
|
|
4
|
-
min-height: 300px;
|
|
5
|
-
}
|
|
6
|
-
&-table-header {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
height: 50px;
|
|
11
|
-
margin-bottom: -1px;
|
|
12
|
-
padding: 0 12px;
|
|
13
|
-
line-height: 50px;
|
|
14
|
-
background: #fafafb;
|
|
15
|
-
border: 1px solid #e6e7ea;
|
|
16
|
-
border-radius: 8px 8px 0 0;
|
|
17
|
-
> :nth-child(2) {
|
|
18
|
-
display: flex;
|
|
19
|
-
> :nth-child(1) {
|
|
20
|
-
margin-right: 16px;
|
|
21
|
-
}
|
|
22
|
-
div {
|
|
23
|
-
height: 32px;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
line-height: 32px;
|
|
26
|
-
background: #fff;
|
|
27
|
-
border: 1px solid #f2f3f4;
|
|
28
|
-
border-radius: 4px;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
.xiazai1 {
|
|
31
|
-
margin-right: 4px;
|
|
32
|
-
font-size: 18px !important;
|
|
33
|
-
vertical-align: -2px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
div:hover {
|
|
37
|
-
color: #165dff;
|
|
38
|
-
background: #e8efff;
|
|
39
|
-
border: 1px solid #165dff;
|
|
40
|
-
}
|
|
41
|
-
div:active {
|
|
42
|
-
color: #1454e5;
|
|
43
|
-
background: #e8efff;
|
|
44
|
-
border: 1px solid #1454e5;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
&-left {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex: 1;
|
|
50
|
-
flex-direction: row;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
&-box {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex: 1;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
color: #67727f;
|
|
58
|
-
}
|
|
59
|
-
&-content {
|
|
60
|
-
display: flex;
|
|
61
|
-
flex: 1;
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
color: #67727f;
|
|
65
|
-
> span {
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: row;
|
|
68
|
-
max-width: 33.33%;
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
:first-child {
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
}
|
|
75
|
-
:nth-child(2) {
|
|
76
|
-
flex: 1;
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.ant-table {
|
|
84
|
-
border-radius: 0 0 8px 8px;
|
|
85
|
-
}
|
|
86
|
-
.sourcepanel-table-header {
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
border-radius: 8px 8px 0 0;
|
|
89
|
-
.ant-table {
|
|
90
|
-
max-height: none;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.ant-pagination {
|
|
94
|
-
margin-top: 24px !important;
|
|
95
|
-
}
|
|
96
|
-
.ant-table
|
|
97
|
-
.ant-table-thead
|
|
98
|
-
.ant-table-cell.ant-table-column-has-sorters
|
|
99
|
-
.ant-table-column-sorters {
|
|
100
|
-
justify-content: flex-end !important;
|
|
101
|
-
}
|
|
102
|
-
.ant-table-cell-with-append {
|
|
103
|
-
padding-left: 20px;
|
|
104
|
-
.ant-table-row-expand-icon {
|
|
105
|
-
position: absolute;
|
|
106
|
-
left: 0;
|
|
107
|
-
margin-top: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.tooltip-userGroup-box {
|
|
111
|
-
display: flex;
|
|
112
|
-
max-width: 330px;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
text-overflow: ellipsis;
|
|
116
|
-
div {
|
|
117
|
-
max-width: 330px;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
white-space: nowrap;
|
|
120
|
-
text-overflow: ellipsis;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
.tooltip-name-box {
|
|
124
|
-
display: flex;
|
|
125
|
-
&-market {
|
|
126
|
-
// max-width: calc(100% - 20px);
|
|
127
|
-
width: 180px;
|
|
128
|
-
margin-right: 8px;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
text-overflow: ellipsis;
|
|
132
|
-
cursor: pointer;
|
|
133
|
-
-webkit-line-clamp: 1;
|
|
134
|
-
-webkit-box-orient: vertical;
|
|
135
|
-
.shoucang {
|
|
136
|
-
color: #fd9f41;
|
|
137
|
-
font-size: 16px !important;
|
|
138
|
-
}
|
|
139
|
-
.notshoucang {
|
|
140
|
-
opacity: 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.fuzhi1 {
|
|
145
|
-
display: none;
|
|
146
|
-
font-size: 16px !important;
|
|
147
|
-
}
|
|
148
|
-
.fuzhi1:hover {
|
|
149
|
-
color: #165dff;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
.tooltip-name-box:hover {
|
|
153
|
-
.fuzhi1 {
|
|
154
|
-
display: block;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&-table-empty {
|
|
159
|
-
img {
|
|
160
|
-
width: 50px !important;
|
|
161
|
-
height: auto;
|
|
162
|
-
margin-top: 30px;
|
|
163
|
-
margin-bottom: 10px;
|
|
164
|
-
}
|
|
165
|
-
p {
|
|
166
|
-
color: rgba(0, 0, 0, 0.25);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&-chart-box {
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
width: 100%;
|
|
174
|
-
&-tooltip {
|
|
175
|
-
width: 200px;
|
|
176
|
-
margin-bottom: 24px;
|
|
177
|
-
color: #67727f;
|
|
178
|
-
font-size: 12px;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
.event-table-sql-modal {
|
|
183
|
-
.ant-modal {
|
|
184
|
-
width: 720px !important;
|
|
185
|
-
}
|
|
186
|
-
.ant-modal-header {
|
|
187
|
-
position: relative;
|
|
188
|
-
z-index: 1;
|
|
189
|
-
height: 82px;
|
|
190
|
-
background: transparent;
|
|
191
|
-
}
|
|
192
|
-
.ant-modal-body {
|
|
193
|
-
padding: 0 24px 24px 24px;
|
|
194
|
-
}
|
|
195
|
-
.ant-modal-close-x {
|
|
196
|
-
margin-top: 13px;
|
|
197
|
-
margin-right: 8px;
|
|
198
|
-
}
|
|
199
|
-
img {
|
|
200
|
-
width: 100%;
|
|
201
|
-
}
|
|
202
|
-
.qingchu {
|
|
203
|
-
font-weight: 500;
|
|
204
|
-
font-size: 22px !important;
|
|
205
|
-
}
|
|
206
|
-
.modal-bg {
|
|
207
|
-
position: absolute;
|
|
208
|
-
top: 0;
|
|
209
|
-
left: 0;
|
|
210
|
-
width: 100%;
|
|
211
|
-
height: auto;
|
|
212
|
-
}
|
|
213
|
-
pre {
|
|
214
|
-
margin-bottom: 0;
|
|
215
|
-
}
|
|
216
|
-
.hljs {
|
|
217
|
-
height: 400px;
|
|
218
|
-
padding: 16px;
|
|
219
|
-
padding-bottom: 0;
|
|
220
|
-
background: #fafafb;
|
|
221
|
-
border-radius: 8px;
|
|
222
|
-
}
|
|
223
|
-
.copy-box {
|
|
224
|
-
position: absolute;
|
|
225
|
-
top: 98px;
|
|
226
|
-
right: 40px;
|
|
227
|
-
padding: 0 8px;
|
|
228
|
-
background: #f2f3f4;
|
|
229
|
-
border-radius: 4px;
|
|
230
|
-
.fuzhi1 {
|
|
231
|
-
margin-right: 8px;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
.copy-box:hover {
|
|
235
|
-
color: #165dff;
|
|
236
|
-
background: #e8efff;
|
|
237
|
-
}
|
|
238
|
-
.copy-box:active {
|
|
239
|
-
color: #1454e5;
|
|
240
|
-
background: #e8efff;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
.ant-modal-content {
|
|
244
|
-
position: relative;
|
|
245
|
-
.sql-tip {
|
|
246
|
-
position: absolute;
|
|
247
|
-
bottom: 30px;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ResponseDataProps, SearchValue } from '../../types';
|
|
2
|
-
export interface EventTableProps {
|
|
3
|
-
dataSource: ResponseDataProps;
|
|
4
|
-
sourcePanel: boolean;
|
|
5
|
-
searchData: SearchValue;
|
|
6
|
-
showList: string[];
|
|
7
|
-
isOverview?: boolean;
|
|
8
|
-
changeShowByName: (name: string) => void;
|
|
9
|
-
onSelectEvent?: (id: number, name: string) => void;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import './styles/index.less';
|
|
3
|
-
import { TopBarProps } from './types';
|
|
4
|
-
export interface platItemProp {
|
|
5
|
-
key: number;
|
|
6
|
-
value: string;
|
|
7
|
-
icon?: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const TopBar: React.FC<TopBarProps>;
|
|
10
|
-
export default TopBar;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import { Button } from 'antd';
|
|
14
|
-
import React, { useContext, useState, useEffect } from 'react';
|
|
15
|
-
import { BizAddToPanel, BizAddToScene, BizGlobalDataContext, BizPlatformSelector, IconFont } from '@zgfe/business-lib';
|
|
16
|
-
import './styles/index.less';
|
|
17
|
-
import { EventContext } from '../../types';
|
|
18
|
-
import { chartTypes } from '../../constants/fields';
|
|
19
|
-
import { getWarningId } from '../../utils/formData';
|
|
20
|
-
var classPrefix = 'modules-event-topbar';
|
|
21
|
-
var TopBar = function TopBar(props) {
|
|
22
|
-
var _useContext = useContext(EventContext),
|
|
23
|
-
currentApp = _useContext.currentApp,
|
|
24
|
-
showListHome = _useContext.showListHome,
|
|
25
|
-
panelId = _useContext.panelId,
|
|
26
|
-
afterEditTarget = _useContext.afterEditTarget,
|
|
27
|
-
loading = _useContext.loading,
|
|
28
|
-
onLossWarning = _useContext.onLossWarning,
|
|
29
|
-
showWarning = _useContext.showWarning,
|
|
30
|
-
enableGenerateReport = _useContext.enableGenerateReport;
|
|
31
|
-
var _useState = useState(false),
|
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
showPanel = _useState2[0],
|
|
34
|
-
setShowPanel = _useState2[1];
|
|
35
|
-
var _useState3 = useState(false),
|
|
36
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
-
showScene = _useState4[0],
|
|
38
|
-
setShowScene = _useState4[1];
|
|
39
|
-
var _useContext2 = useContext(BizGlobalDataContext),
|
|
40
|
-
eventGroupList = _useContext2.eventGroupList,
|
|
41
|
-
authority = _useContext2.authority,
|
|
42
|
-
router = _useContext2.router,
|
|
43
|
-
routes = _useContext2.routes;
|
|
44
|
-
var searchData = props.searchData,
|
|
45
|
-
platformChange = props.platformChange,
|
|
46
|
-
eventData = props.eventData,
|
|
47
|
-
onClickGenerateReport = props.onClickGenerateReport,
|
|
48
|
-
enableSelectChart = props.enableSelectChart;
|
|
49
|
-
var _useState5 = useState(chartTypes),
|
|
50
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
51
|
-
options = _useState6[0],
|
|
52
|
-
setOptions = _useState6[1];
|
|
53
|
-
var _useState7 = useState(-1),
|
|
54
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
55
|
-
warningId = _useState8[0],
|
|
56
|
-
setWarningId = _useState8[1];
|
|
57
|
-
var _useState9 = useState((searchData === null || searchData === void 0 ? void 0 : searchData.platform) === undefined ? 0 : searchData.platform),
|
|
58
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
59
|
-
selectPlatform = _useState10[0],
|
|
60
|
-
setselectPlatform = _useState10[1];
|
|
61
|
-
useEffect(function () {
|
|
62
|
-
setWarningId(getWarningId(searchData, eventData, eventGroupList));
|
|
63
|
-
}, [searchData, eventData, eventGroupList]);
|
|
64
|
-
useEffect(function () {
|
|
65
|
-
options.map(function (item) {
|
|
66
|
-
if (item.value.indexOf('number') !== -1) {
|
|
67
|
-
item.value = "".concat(searchData === null || searchData === void 0 ? void 0 : searchData.chartType, ",number");
|
|
68
|
-
item.disabled = (searchData === null || searchData === void 0 ? void 0 : searchData.id) ? false : true;
|
|
69
|
-
}
|
|
70
|
-
if (item.value.indexOf('map') !== -1) {
|
|
71
|
-
item.disabled = enableSelectChart ? false : true;
|
|
72
|
-
}
|
|
73
|
-
return item;
|
|
74
|
-
}), setOptions(options);
|
|
75
|
-
}, [searchData, enableSelectChart]);
|
|
76
|
-
var _useState11 = useState(),
|
|
77
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
78
|
-
panelType = _useState12[0],
|
|
79
|
-
setPanelType = _useState12[1];
|
|
80
|
-
var closeHandle = function closeHandle(type) {
|
|
81
|
-
if (type === 'panel') {
|
|
82
|
-
setPanelType(undefined);
|
|
83
|
-
setShowPanel(false);
|
|
84
|
-
} else {
|
|
85
|
-
setShowScene(false);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var _onOk = function onOk(type, val) {
|
|
89
|
-
closeHandle(type);
|
|
90
|
-
if (afterEditTarget) afterEditTarget(type, val);
|
|
91
|
-
};
|
|
92
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: classPrefix
|
|
94
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
className: "".concat(classPrefix, "-title")
|
|
96
|
-
}, !panelId && enableGenerateReport && /*#__PURE__*/React.createElement(IconFont, {
|
|
97
|
-
type: "fanhuiicon",
|
|
98
|
-
onClick: function onClick() {
|
|
99
|
-
if (!router) return;
|
|
100
|
-
var params = new URLSearchParams(window.location.search);
|
|
101
|
-
var _reportId = params.get('reportId');
|
|
102
|
-
router.push({
|
|
103
|
-
name: routes.report,
|
|
104
|
-
query: {
|
|
105
|
-
reportId: _reportId,
|
|
106
|
-
isEdit: 1
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}, "\u8FD4\u56DE"), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u6790")), /*#__PURE__*/React.createElement("div", {
|
|
111
|
-
className: "".concat(classPrefix, "-right")
|
|
112
|
-
}, !panelId && /*#__PURE__*/React.createElement("div", {
|
|
113
|
-
className: "".concat(classPrefix, "-panel")
|
|
114
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
115
|
-
disabled: !authority[100049],
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
setShowPanel(true);
|
|
118
|
-
}
|
|
119
|
-
}, "\u6DFB\u52A0\u5230\u770B\u677F"), showPanel && /*#__PURE__*/React.createElement(BizAddToPanel, {
|
|
120
|
-
type: panelType,
|
|
121
|
-
params: _objectSpread({
|
|
122
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
123
|
-
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
|
|
124
|
-
module: 'event'
|
|
125
|
-
}, searchData),
|
|
126
|
-
styleOptions: options,
|
|
127
|
-
showList: (searchData === null || searchData === void 0 ? void 0 : searchData.chartType) !== 'map' ? showListHome : [],
|
|
128
|
-
onCancel: function onCancel() {
|
|
129
|
-
return closeHandle('panel');
|
|
130
|
-
},
|
|
131
|
-
onOk: function onOk(data) {
|
|
132
|
-
return _onOk('panel', data);
|
|
133
|
-
}
|
|
134
|
-
})), !panelId && /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
className: "".concat(classPrefix, "-scene")
|
|
136
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
137
|
-
disabled: !authority[100048],
|
|
138
|
-
onClick: function onClick() {
|
|
139
|
-
setShowScene(true);
|
|
140
|
-
}
|
|
141
|
-
}, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && /*#__PURE__*/React.createElement(BizAddToScene, {
|
|
142
|
-
params: _objectSpread({
|
|
143
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
144
|
-
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
|
|
145
|
-
module: 'event'
|
|
146
|
-
}, searchData),
|
|
147
|
-
onOk: function onOk(data) {
|
|
148
|
-
return _onOk('scene', data);
|
|
149
|
-
},
|
|
150
|
-
onCancel: function onCancel() {
|
|
151
|
-
return closeHandle('scene');
|
|
152
|
-
}
|
|
153
|
-
})), !panelId && enableGenerateReport && /*#__PURE__*/React.createElement("div", {
|
|
154
|
-
className: "".concat(classPrefix, "-panel")
|
|
155
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
156
|
-
onClick: onClickGenerateReport
|
|
157
|
-
}, "\u6DFB\u52A0\u5230\u6570\u636E\u62A5\u544A")), showWarning && /*#__PURE__*/React.createElement(Button, {
|
|
158
|
-
className: "".concat(classPrefix, "-earlywarning"),
|
|
159
|
-
type: "primary",
|
|
160
|
-
disabled: loading || !authority[100141],
|
|
161
|
-
onClick: function onClick() {
|
|
162
|
-
return onLossWarning(warningId);
|
|
163
|
-
}
|
|
164
|
-
}, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"), /*#__PURE__*/React.createElement("div", {
|
|
165
|
-
className: "".concat(classPrefix, "-platform")
|
|
166
|
-
}, /*#__PURE__*/React.createElement(BizPlatformSelector, {
|
|
167
|
-
value: selectPlatform,
|
|
168
|
-
onChange: function onChange(val) {
|
|
169
|
-
setselectPlatform(val.key);
|
|
170
|
-
platformChange(val.key);
|
|
171
|
-
}
|
|
172
|
-
}))));
|
|
173
|
-
};
|
|
174
|
-
export default TopBar;
|