@zgfe/modules-dm 1.0.57-zhongyuan.17 → 1.0.57-zhongyuan.19
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/constants/api.d.ts +6 -0
- package/es/constants/api.js +6 -0
- package/es/modules/CutsModal.d.ts +8 -0
- package/es/modules/clearRule/addRule.js +53 -0
- package/es/modules/clearRule/css/index.css +256 -256
- package/es/modules/clearRule/css/index.less +271 -270
- package/es/modules/clearRule/index.js +49 -48
- package/es/modules/dataManage/components/createMetaDrawer.js +64 -2
- package/es/modules/dataManage/components/tablePlus.d.ts +1 -0
- package/es/modules/dataManage/components/tablePlus.js +161 -18
- package/es/modules/dataManage/types.d.ts +4 -0
- package/es/modules/formulateRule/index.js +6 -5
- package/package.json +2 -2
|
@@ -1,270 +1,271 @@
|
|
|
1
|
-
.clearRule {
|
|
2
|
-
height: 100%;
|
|
3
|
-
padding: 24px;
|
|
4
|
-
background: #fff;
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
border-radius: 8px;
|
|
7
|
-
&-searchTop {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: 320px 1fr;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-items: self-end;
|
|
12
|
-
margin-bottom: 20px;
|
|
13
|
-
}
|
|
14
|
-
&-modal {
|
|
15
|
-
.ant-modal-body {
|
|
16
|
-
height: 350px;
|
|
17
|
-
}
|
|
18
|
-
.ant-picker-dropdown {
|
|
19
|
-
top: 133px !important;
|
|
20
|
-
left: 13px !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-content {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
}
|
|
28
|
-
&-importModal {
|
|
29
|
-
&-content {
|
|
30
|
-
}
|
|
31
|
-
&-tip {
|
|
32
|
-
margin: 0px 0px 10px;
|
|
33
|
-
padding: 5px 0px 5px 15px;
|
|
34
|
-
background-color: #e7f3fe;
|
|
35
|
-
border: 1px solid #b8e4ff;
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
.icon {
|
|
38
|
-
margin: 0px 10px;
|
|
39
|
-
color: #165dff;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&-list {
|
|
43
|
-
height: 160px;
|
|
44
|
-
padding: 10px;
|
|
45
|
-
overflow-y: scroll;
|
|
46
|
-
border: 1px solid #e5e5e5;
|
|
47
|
-
border-radius: 4px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
&-openRuleModal {
|
|
51
|
-
&-list {
|
|
52
|
-
height: 160px;
|
|
53
|
-
padding: 10px;
|
|
54
|
-
overflow-y: scroll;
|
|
55
|
-
border: 1px solid #e5e5e5;
|
|
56
|
-
border-radius: 4px;
|
|
57
|
-
}
|
|
58
|
-
&-closeTip {
|
|
59
|
-
margin: 10px 0px;
|
|
60
|
-
color: red;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.openRuleModal-icon {
|
|
65
|
-
margin: 0px 10px 0px 0px;
|
|
66
|
-
color: #faad14;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.addRuleForm {
|
|
70
|
-
.selectVent {
|
|
71
|
-
display: grid;
|
|
72
|
-
grid-gap: 20px;
|
|
73
|
-
grid-template-columns: 1fr 1fr;
|
|
74
|
-
align-items: center;
|
|
75
|
-
width: 100%;
|
|
76
|
-
margin: 20px 0px;
|
|
77
|
-
}
|
|
78
|
-
.ant-checkbox-wrapper {
|
|
79
|
-
position: relative;
|
|
80
|
-
margin-right: 8px;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
border
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
.ant-checkbox
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
grid-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
grid-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
border
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
grid-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
grid-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
border
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
1
|
+
.clearRule {
|
|
2
|
+
height: 100%;
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background: #fff;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
border-radius: 8px;
|
|
7
|
+
&-searchTop {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 320px 1fr;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-items: self-end;
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
}
|
|
14
|
+
&-modal {
|
|
15
|
+
.ant-modal-body {
|
|
16
|
+
height: 350px;
|
|
17
|
+
}
|
|
18
|
+
.ant-picker-dropdown {
|
|
19
|
+
top: 133px !important;
|
|
20
|
+
left: 13px !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
&-importModal {
|
|
29
|
+
&-content {
|
|
30
|
+
}
|
|
31
|
+
&-tip {
|
|
32
|
+
margin: 0px 0px 10px;
|
|
33
|
+
padding: 5px 0px 5px 15px;
|
|
34
|
+
background-color: #e7f3fe;
|
|
35
|
+
border: 1px solid #b8e4ff;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
.icon {
|
|
38
|
+
margin: 0px 10px;
|
|
39
|
+
color: #165dff;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
&-list {
|
|
43
|
+
height: 160px;
|
|
44
|
+
padding: 10px;
|
|
45
|
+
overflow-y: scroll;
|
|
46
|
+
border: 1px solid #e5e5e5;
|
|
47
|
+
border-radius: 4px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
&-openRuleModal {
|
|
51
|
+
&-list {
|
|
52
|
+
height: 160px;
|
|
53
|
+
padding: 10px;
|
|
54
|
+
overflow-y: scroll;
|
|
55
|
+
border: 1px solid #e5e5e5;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
}
|
|
58
|
+
&-closeTip {
|
|
59
|
+
margin: 10px 0px;
|
|
60
|
+
color: red;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.openRuleModal-icon {
|
|
65
|
+
margin: 0px 10px 0px 0px;
|
|
66
|
+
color: #faad14;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.addRuleForm {
|
|
70
|
+
.selectVent {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-gap: 20px;
|
|
73
|
+
grid-template-columns: 1fr 1fr;
|
|
74
|
+
align-items: center;
|
|
75
|
+
width: 100%;
|
|
76
|
+
margin: 20px 0px;
|
|
77
|
+
}
|
|
78
|
+
.ant-checkbox-wrapper {
|
|
79
|
+
position: relative;
|
|
80
|
+
margin-right: 8px;
|
|
81
|
+
margin-bottom: 8px;
|
|
82
|
+
padding: 4px 15px;
|
|
83
|
+
color: #333;
|
|
84
|
+
vertical-align: middle;
|
|
85
|
+
background-color: #efefef;
|
|
86
|
+
border: 1px solid #e5e5e5;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
transition: all 0.2s ease;
|
|
90
|
+
&::after {
|
|
91
|
+
position: absolute;
|
|
92
|
+
bottom: -1px;
|
|
93
|
+
left: 6px;
|
|
94
|
+
z-index: 10;
|
|
95
|
+
width: 17px;
|
|
96
|
+
font-size: 23px;
|
|
97
|
+
content: '+';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.ant-checkbox-wrapper-checked {
|
|
101
|
+
position: relative;
|
|
102
|
+
color: #165dff;
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
border: 1px solid #165dff;
|
|
105
|
+
&::after {
|
|
106
|
+
position: absolute;
|
|
107
|
+
bottom: -1px;
|
|
108
|
+
left: 6px;
|
|
109
|
+
z-index: 10;
|
|
110
|
+
width: 17px;
|
|
111
|
+
font-size: 23px;
|
|
112
|
+
content: '+';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.ant-checkbox-wrapper::after {
|
|
116
|
+
display: inline;
|
|
117
|
+
}
|
|
118
|
+
.ant-checkbox,
|
|
119
|
+
.ant-checkbox-inner {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
.drawerCloseIcon {
|
|
123
|
+
float: right;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
.ant-drawer-close {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
.ant-drawer-footer {
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: end;
|
|
132
|
+
}
|
|
133
|
+
.attrValue {
|
|
134
|
+
&-list {
|
|
135
|
+
display: grid;
|
|
136
|
+
grid-gap: 20px;
|
|
137
|
+
grid-template-columns: 120px 1fr;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
margin: 20px 0px;
|
|
141
|
+
}
|
|
142
|
+
position: relative;
|
|
143
|
+
padding-left: 30px;
|
|
144
|
+
&-styleLine {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 50%;
|
|
147
|
+
left: -1px;
|
|
148
|
+
z-index: 10;
|
|
149
|
+
width: 20px;
|
|
150
|
+
color: white;
|
|
151
|
+
text-align: center;
|
|
152
|
+
background: #165dff;
|
|
153
|
+
border-radius: 4px 4px 0px 0px;
|
|
154
|
+
transform: translate(0, -50%);
|
|
155
|
+
}
|
|
156
|
+
&::after {
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 0;
|
|
159
|
+
left: 8px;
|
|
160
|
+
z-index: 1;
|
|
161
|
+
width: 1px;
|
|
162
|
+
height: 100%;
|
|
163
|
+
background: #e8efff;
|
|
164
|
+
content: '';
|
|
165
|
+
}
|
|
166
|
+
.attrValue-list-right {
|
|
167
|
+
display: grid;
|
|
168
|
+
grid-gap: 20px;
|
|
169
|
+
grid-template-columns: 3px 80px 10px 80px 3px;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: start;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.columnsActionClass {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
.formulateDetail {
|
|
179
|
+
&-title {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
.addRule-formulate-tip {
|
|
186
|
+
margin: 10px 0px 0px;
|
|
187
|
+
color: red;
|
|
188
|
+
}
|
|
189
|
+
.formulateDetailClass {
|
|
190
|
+
margin: 10px 0px 0px;
|
|
191
|
+
border: 1px solid #ecedf0;
|
|
192
|
+
border-radius: 5px;
|
|
193
|
+
&-time {
|
|
194
|
+
color: #5f6085;
|
|
195
|
+
}
|
|
196
|
+
&-title {
|
|
197
|
+
display: grid;
|
|
198
|
+
grid-gap: 16px;
|
|
199
|
+
grid-template-columns: 200px 1fr;
|
|
200
|
+
align-items: center;
|
|
201
|
+
justify-content: space-between;
|
|
202
|
+
background-color: #f2f3f4;
|
|
203
|
+
border-bottom: 1px solid #ecedf0;
|
|
204
|
+
&-left {
|
|
205
|
+
padding: 10px 0px 10px 10px;
|
|
206
|
+
border-right: 1px solid #ecedf0;
|
|
207
|
+
}
|
|
208
|
+
&-right {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: space-between;
|
|
212
|
+
padding: 10px 10px 10px 10px;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
&-content {
|
|
216
|
+
display: grid;
|
|
217
|
+
grid-gap: 16px;
|
|
218
|
+
grid-template-columns: 200px 1fr;
|
|
219
|
+
align-items: flex-start;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
height: 300px;
|
|
222
|
+
&-left {
|
|
223
|
+
height: 100%;
|
|
224
|
+
overflow: auto;
|
|
225
|
+
border-right: 1px solid #ecedf0;
|
|
226
|
+
&-tip {
|
|
227
|
+
margin: 0px 5px 0px 0px;
|
|
228
|
+
color: red;
|
|
229
|
+
}
|
|
230
|
+
&-item {
|
|
231
|
+
padding: 10px;
|
|
232
|
+
cursor: pointer;
|
|
233
|
+
}
|
|
234
|
+
&-itemContent {
|
|
235
|
+
margin: 0px 0px 0px 5px;
|
|
236
|
+
padding: 5px;
|
|
237
|
+
border: 1px solid #5f6085;
|
|
238
|
+
border-radius: 4px;
|
|
239
|
+
}
|
|
240
|
+
.active {
|
|
241
|
+
position: relative;
|
|
242
|
+
background-color: #e8efff;
|
|
243
|
+
&::after {
|
|
244
|
+
position: absolute;
|
|
245
|
+
top: 0;
|
|
246
|
+
left: 0;
|
|
247
|
+
width: 2px;
|
|
248
|
+
height: 100%;
|
|
249
|
+
background-color: #6b8ffd;
|
|
250
|
+
content: '';
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
.activeTime {
|
|
254
|
+
color: #2467fc;
|
|
255
|
+
.formulateDetailClass-content-left-tip {
|
|
256
|
+
color: #2467fc;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
&-right {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
margin: 15px;
|
|
265
|
+
line-height: 2;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
.addRule-errorTip {
|
|
270
|
+
color: red;
|
|
271
|
+
}
|
|
@@ -227,17 +227,53 @@ var ClearRule = function ClearRule() {
|
|
|
227
227
|
fileName: "\u89C4\u5219\u5217\u8868_".concat(moment().format('YYYYMMDD'))
|
|
228
228
|
}).then(function (res) {});
|
|
229
229
|
};
|
|
230
|
+
// 总状态
|
|
231
|
+
var antIcon = /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
232
|
+
style: {
|
|
233
|
+
fontSize: 24
|
|
234
|
+
},
|
|
235
|
+
spin: true,
|
|
236
|
+
onPointerEnterCapture: undefined,
|
|
237
|
+
onPointerLeaveCapture: undefined
|
|
238
|
+
});
|
|
239
|
+
var _useState21 = useState(false),
|
|
240
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
241
|
+
allOpenRule = _useState22[0],
|
|
242
|
+
setAllOpenRule = _useState22[1];
|
|
243
|
+
var _useState23 = useState(false),
|
|
244
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
245
|
+
statusLoading = _useState24[0],
|
|
246
|
+
setStatusLoading = _useState24[1];
|
|
247
|
+
var handleAllOpenStatus = function handleAllOpenStatus(value) {
|
|
248
|
+
setStatusLoading(true);
|
|
249
|
+
request(apis.rule.allOpenStatus, {
|
|
250
|
+
method: 'post',
|
|
251
|
+
data: {
|
|
252
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
253
|
+
status: value ? 1 : 0
|
|
254
|
+
}
|
|
255
|
+
}).then(function (res) {
|
|
256
|
+
if (!res) return;
|
|
257
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
258
|
+
message.success("".concat(value ? '开启' : '关闭', "\u6210\u529F\uFF01"));
|
|
259
|
+
setAllOpenRule(value);
|
|
260
|
+
_getList(ruleSearchName);
|
|
261
|
+
}
|
|
262
|
+
}).finally(function () {
|
|
263
|
+
setStatusLoading(false);
|
|
264
|
+
});
|
|
265
|
+
};
|
|
230
266
|
/**
|
|
231
267
|
* 规则列表, 搜索名称, 规则列表状态开启/关闭, 删除规则
|
|
232
268
|
*/
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
ruleList =
|
|
236
|
-
setRuleList =
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
ruleSearchName =
|
|
240
|
-
setRuleSearchName =
|
|
269
|
+
var _useState25 = useState([]),
|
|
270
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
271
|
+
ruleList = _useState26[0],
|
|
272
|
+
setRuleList = _useState26[1];
|
|
273
|
+
var _useState27 = useState(''),
|
|
274
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
275
|
+
ruleSearchName = _useState28[0],
|
|
276
|
+
setRuleSearchName = _useState28[1];
|
|
241
277
|
var searchChange = function searchChange(e) {
|
|
242
278
|
var _value = e.currentTarget.value;
|
|
243
279
|
setRuleSearchName(_value);
|
|
@@ -250,14 +286,14 @@ var ClearRule = function ClearRule() {
|
|
|
250
286
|
setTableParams(pagination);
|
|
251
287
|
_getList(ruleSearchName, pagination);
|
|
252
288
|
};
|
|
253
|
-
var
|
|
289
|
+
var _useState29 = useState({
|
|
254
290
|
current: 1,
|
|
255
291
|
pageSize: 10,
|
|
256
292
|
total: 0
|
|
257
293
|
}),
|
|
258
|
-
|
|
259
|
-
tableParams =
|
|
260
|
-
setTableParams =
|
|
294
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
295
|
+
tableParams = _useState30[0],
|
|
296
|
+
setTableParams = _useState30[1];
|
|
261
297
|
useEffect(function () {
|
|
262
298
|
_getList();
|
|
263
299
|
}, []);
|
|
@@ -282,6 +318,7 @@ var ClearRule = function ClearRule() {
|
|
|
282
318
|
total: res.data.total
|
|
283
319
|
});
|
|
284
320
|
});
|
|
321
|
+
setAllOpenRule(res.data.status == 1 ? true : false);
|
|
285
322
|
} else {
|
|
286
323
|
message.error('查询列表失败!');
|
|
287
324
|
}
|
|
@@ -374,42 +411,6 @@ var ClearRule = function ClearRule() {
|
|
|
374
411
|
}
|
|
375
412
|
});
|
|
376
413
|
};
|
|
377
|
-
// 总状态
|
|
378
|
-
var antIcon = /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
379
|
-
style: {
|
|
380
|
-
fontSize: 24
|
|
381
|
-
},
|
|
382
|
-
spin: true,
|
|
383
|
-
onPointerEnterCapture: undefined,
|
|
384
|
-
onPointerLeaveCapture: undefined
|
|
385
|
-
});
|
|
386
|
-
var _useState27 = useState(false),
|
|
387
|
-
_useState28 = _slicedToArray(_useState27, 2),
|
|
388
|
-
allOpenRule = _useState28[0],
|
|
389
|
-
setAllOpenRule = _useState28[1];
|
|
390
|
-
var _useState29 = useState(false),
|
|
391
|
-
_useState30 = _slicedToArray(_useState29, 2),
|
|
392
|
-
statusLoading = _useState30[0],
|
|
393
|
-
setStatusLoading = _useState30[1];
|
|
394
|
-
var handleAllOpenStatus = function handleAllOpenStatus(value) {
|
|
395
|
-
setStatusLoading(true);
|
|
396
|
-
request(apis.rule.allOpenStatus, {
|
|
397
|
-
method: 'post',
|
|
398
|
-
data: {
|
|
399
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
400
|
-
status: value ? 1 : 0
|
|
401
|
-
}
|
|
402
|
-
}).then(function (res) {
|
|
403
|
-
if (!res) return;
|
|
404
|
-
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
405
|
-
message.success("".concat(value ? '开启' : '关闭', "\u6210\u529F\uFF01"));
|
|
406
|
-
setAllOpenRule(value);
|
|
407
|
-
_getList(ruleSearchName);
|
|
408
|
-
}
|
|
409
|
-
}).finally(function () {
|
|
410
|
-
setStatusLoading(false);
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
414
|
return /*#__PURE__*/React.createElement("div", {
|
|
414
415
|
className: "".concat(className)
|
|
415
416
|
}, /*#__PURE__*/React.createElement("div", {
|