@zgfe/modules-dm 1.0.57-zhongyuan.7 → 1.0.57-zhongyuan.9
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 +2 -1
- package/es/constants/api.js +3 -2
- package/es/modules/clearRule/addRule.js +12 -12
- package/es/modules/clearRule/css/index.less +270 -270
- package/es/modules/clearRule/importMetaDialog/styles/index.less +91 -91
- package/es/modules/clearRule/index.js +32 -8
- package/es/modules/dataManage/components/panelList.js +1 -1
- package/es/modules/formulateRule/addFormulate.js +6 -4
- package/es/modules/formulateRule/index.js +5 -3
- package/package.json +2 -2
package/es/constants/api.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ declare let apis: {
|
|
|
88
88
|
exportFile: string;
|
|
89
89
|
downloadTemple: string;
|
|
90
90
|
allOpenStatus: string;
|
|
91
|
+
checkStatus: string;
|
|
91
92
|
};
|
|
92
93
|
clearRule: {
|
|
93
94
|
getList: string;
|
|
@@ -95,7 +96,7 @@ declare let apis: {
|
|
|
95
96
|
checkRule: string;
|
|
96
97
|
getDetail: string;
|
|
97
98
|
modifyRule: string;
|
|
98
|
-
|
|
99
|
+
checkStatus: string;
|
|
99
100
|
selectStatus: string;
|
|
100
101
|
deleteRule: string;
|
|
101
102
|
exportFile: string;
|
package/es/constants/api.js
CHANGED
|
@@ -151,7 +151,8 @@ var apis = {
|
|
|
151
151
|
downloadRule: '/zg/web/v2/verify/exportVerify',
|
|
152
152
|
exportFile: '/zg/web/v2/verify/report/export',
|
|
153
153
|
downloadTemple: '/zg/web/v2/verify/downloadMould',
|
|
154
|
-
allOpenStatus: '/zg/web/v2/verify/statusMain'
|
|
154
|
+
allOpenStatus: '/zg/web/v2/verify/statusMain',
|
|
155
|
+
checkStatus: '/zg/web/v2/verify/statusBefore'
|
|
155
156
|
},
|
|
156
157
|
clearRule: {
|
|
157
158
|
getList: '/zg/web/v2/rinseShiftRule/queryRinseShiftRuleList',
|
|
@@ -159,7 +160,7 @@ var apis = {
|
|
|
159
160
|
checkRule: '/zg/web/v2/rinseShiftRule/updateRinseShiftRuleCheck',
|
|
160
161
|
getDetail: '/zg/web/v2/rinseShiftRule/detail',
|
|
161
162
|
modifyRule: '/zg/web/v2/rinseShiftRule/updateRinseShiftRule',
|
|
162
|
-
|
|
163
|
+
checkStatus: '/zg/web/v2/rinseShiftRule/statusBefore',
|
|
163
164
|
selectStatus: '/zg/web/v2/rinseShiftRule/status',
|
|
164
165
|
deleteRule: '/zg/web/v2/rinseShiftRule/deleteRule',
|
|
165
166
|
exportFile: '/zg/web/v2/rinseShiftRule/exportReport',
|
|
@@ -265,15 +265,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
265
265
|
setBizAttributeSelectorValue(undefined);
|
|
266
266
|
} else {
|
|
267
267
|
var _value = attr.propCategory === 'eventProp' ? attr.id : attr.name;
|
|
268
|
-
setBizAttributeSelectorValue({
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
value: _value,
|
|
272
|
-
id: attr.id,
|
|
273
|
-
label: attr === null || attr === void 0 ? void 0 : attr.label,
|
|
274
|
-
name: attr === null || attr === void 0 ? void 0 : attr.name,
|
|
275
|
-
type: attr.type
|
|
276
|
-
});
|
|
268
|
+
setBizAttributeSelectorValue(_objectSpread(_objectSpread({}, attr), {}, {
|
|
269
|
+
value: _value
|
|
270
|
+
}));
|
|
277
271
|
// 初始化属性基础类型
|
|
278
272
|
if (currentRule.includes(1)) {
|
|
279
273
|
var newArr = optionsRule;
|
|
@@ -499,7 +493,7 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
499
493
|
setMinNum(val.firstNumber);
|
|
500
494
|
setMaxNum(val.secondNumber);
|
|
501
495
|
setIncludedMinState(val.leftSymbol == '(' ? false : true);
|
|
502
|
-
setIncludedMaxState(val.rightSymbol == '
|
|
496
|
+
setIncludedMaxState(val.rightSymbol == ')' ? false : true);
|
|
503
497
|
}
|
|
504
498
|
}
|
|
505
499
|
}, []);
|
|
@@ -544,8 +538,11 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
544
538
|
Component = /*#__PURE__*/React.createElement("div", {
|
|
545
539
|
className: "attrValue-list-right"
|
|
546
540
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
547
|
-
title: "\u70B9\u51FB\u5207\u6362[\u5F00
|
|
541
|
+
title: "\u70B9\u51FB\u5207\u6362[\u5F00/\u95ED]\u533A\u95F4"
|
|
548
542
|
}, /*#__PURE__*/React.createElement("div", {
|
|
543
|
+
style: {
|
|
544
|
+
cursor: 'pointer'
|
|
545
|
+
},
|
|
549
546
|
onClick: function onClick() {
|
|
550
547
|
setIncludedMinState(function (pre) {
|
|
551
548
|
optionsValue.filter(function (r) {
|
|
@@ -575,8 +572,11 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
575
572
|
})[0].content = "".concat(includedMinState ? '[' : '(').concat(minNum, ",").concat(value).concat(includedMaxState ? ']' : ')');
|
|
576
573
|
}
|
|
577
574
|
}), /*#__PURE__*/React.createElement(Tooltip, {
|
|
578
|
-
title: "\u70B9\u51FB\u5207\u6362[\u5F00
|
|
575
|
+
title: "\u70B9\u51FB\u5207\u6362[\u5F00/\u95ED]\u533A\u95F4"
|
|
579
576
|
}, /*#__PURE__*/React.createElement("div", {
|
|
577
|
+
style: {
|
|
578
|
+
cursor: 'pointer'
|
|
579
|
+
},
|
|
580
580
|
onClick: function onClick() {
|
|
581
581
|
setIncludedMaxState(function (pre) {
|
|
582
582
|
optionsValue.filter(function (r) {
|
|
@@ -1,270 +1,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
|
-
padding: 4px 15px;
|
|
82
|
-
color: #333;
|
|
83
|
-
vertical-align: middle;
|
|
84
|
-
background-color: #efefef;
|
|
85
|
-
border: 1px solid #e5e5e5;
|
|
86
|
-
border-radius: 4px;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
transition: all 0.2s ease;
|
|
89
|
-
&::after {
|
|
90
|
-
position: absolute;
|
|
91
|
-
bottom: -1px;
|
|
92
|
-
left: 6px;
|
|
93
|
-
z-index: 10;
|
|
94
|
-
width: 17px;
|
|
95
|
-
font-size: 23px;
|
|
96
|
-
content: '+';
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.ant-checkbox-wrapper-checked {
|
|
100
|
-
position: relative;
|
|
101
|
-
color: #165dff;
|
|
102
|
-
background-color: transparent;
|
|
103
|
-
border: 1px solid #165dff;
|
|
104
|
-
&::after {
|
|
105
|
-
position: absolute;
|
|
106
|
-
bottom: -1px;
|
|
107
|
-
left: 6px;
|
|
108
|
-
z-index: 10;
|
|
109
|
-
width: 17px;
|
|
110
|
-
font-size: 23px;
|
|
111
|
-
content: '+';
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.ant-checkbox-wrapper::after {
|
|
115
|
-
display: inline;
|
|
116
|
-
}
|
|
117
|
-
.ant-checkbox,
|
|
118
|
-
.ant-checkbox-inner {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
.drawerCloseIcon {
|
|
122
|
-
float: right;
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
}
|
|
125
|
-
.ant-drawer-close {
|
|
126
|
-
display: none;
|
|
127
|
-
}
|
|
128
|
-
.ant-drawer-footer {
|
|
129
|
-
display: flex;
|
|
130
|
-
justify-content: end;
|
|
131
|
-
}
|
|
132
|
-
.attrValue {
|
|
133
|
-
&-list {
|
|
134
|
-
display: grid;
|
|
135
|
-
grid-gap: 20px;
|
|
136
|
-
grid-template-columns: 80px 1fr;
|
|
137
|
-
align-items: center;
|
|
138
|
-
justify-content: space-between;
|
|
139
|
-
margin: 20px 0px;
|
|
140
|
-
}
|
|
141
|
-
position: relative;
|
|
142
|
-
padding-left: 30px;
|
|
143
|
-
&-styleLine {
|
|
144
|
-
position: absolute;
|
|
145
|
-
top: 50%;
|
|
146
|
-
left: -1px;
|
|
147
|
-
z-index: 10;
|
|
148
|
-
width: 20px;
|
|
149
|
-
color: white;
|
|
150
|
-
text-align: center;
|
|
151
|
-
background: #165dff;
|
|
152
|
-
border-radius: 4px 4px 0px 0px;
|
|
153
|
-
transform: translate(0, -50%);
|
|
154
|
-
}
|
|
155
|
-
&::after {
|
|
156
|
-
position: absolute;
|
|
157
|
-
top: 0;
|
|
158
|
-
left: 8px;
|
|
159
|
-
z-index: 1;
|
|
160
|
-
width: 1px;
|
|
161
|
-
height: 100%;
|
|
162
|
-
background: #e8efff;
|
|
163
|
-
content: '';
|
|
164
|
-
}
|
|
165
|
-
.attrValue-list-right {
|
|
166
|
-
display: grid;
|
|
167
|
-
grid-gap: 20px;
|
|
168
|
-
grid-template-columns: 3px 80px 10px 80px 3px;
|
|
169
|
-
align-items: center;
|
|
170
|
-
justify-content: start;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
.columnsActionClass {
|
|
175
|
-
cursor: pointer;
|
|
176
|
-
}
|
|
177
|
-
.formulateDetail {
|
|
178
|
-
&-title {
|
|
179
|
-
display: flex;
|
|
180
|
-
align-items: center;
|
|
181
|
-
justify-content: space-between;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
.addRule-formulate-tip {
|
|
185
|
-
margin: 10px 0px 0px;
|
|
186
|
-
color: red;
|
|
187
|
-
}
|
|
188
|
-
.formulateDetailClass {
|
|
189
|
-
margin: 10px 0px 0px;
|
|
190
|
-
border: 1px solid #ecedf0;
|
|
191
|
-
border-radius: 5px;
|
|
192
|
-
&-time {
|
|
193
|
-
color: #5f6085;
|
|
194
|
-
}
|
|
195
|
-
&-title {
|
|
196
|
-
display: grid;
|
|
197
|
-
grid-gap: 16px;
|
|
198
|
-
grid-template-columns: 200px 1fr;
|
|
199
|
-
align-items: center;
|
|
200
|
-
justify-content: space-between;
|
|
201
|
-
background-color: #f2f3f4;
|
|
202
|
-
border-bottom: 1px solid #ecedf0;
|
|
203
|
-
&-left {
|
|
204
|
-
padding: 10px 0px 10px 10px;
|
|
205
|
-
border-right: 1px solid #ecedf0;
|
|
206
|
-
}
|
|
207
|
-
&-right {
|
|
208
|
-
display: flex;
|
|
209
|
-
align-items: center;
|
|
210
|
-
justify-content: space-between;
|
|
211
|
-
padding: 10px 10px 10px 10px;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
&-content {
|
|
215
|
-
display: grid;
|
|
216
|
-
grid-gap: 16px;
|
|
217
|
-
grid-template-columns: 200px 1fr;
|
|
218
|
-
align-items: flex-start;
|
|
219
|
-
justify-content: space-between;
|
|
220
|
-
height: 300px;
|
|
221
|
-
&-left {
|
|
222
|
-
height: 100%;
|
|
223
|
-
overflow: auto;
|
|
224
|
-
border-right: 1px solid #ecedf0;
|
|
225
|
-
&-tip {
|
|
226
|
-
margin: 0px 5px 0px 0px;
|
|
227
|
-
color: red;
|
|
228
|
-
}
|
|
229
|
-
&-item {
|
|
230
|
-
padding: 10px;
|
|
231
|
-
cursor: pointer;
|
|
232
|
-
}
|
|
233
|
-
&-itemContent {
|
|
234
|
-
margin: 0px 0px 0px 5px;
|
|
235
|
-
padding: 5px;
|
|
236
|
-
border: 1px solid #5f6085;
|
|
237
|
-
border-radius: 4px;
|
|
238
|
-
}
|
|
239
|
-
.active {
|
|
240
|
-
position: relative;
|
|
241
|
-
background-color: #e8efff;
|
|
242
|
-
&::after {
|
|
243
|
-
position: absolute;
|
|
244
|
-
top: 0;
|
|
245
|
-
left: 0;
|
|
246
|
-
width: 2px;
|
|
247
|
-
height: 100%;
|
|
248
|
-
background-color: #6b8ffd;
|
|
249
|
-
content: '';
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
.activeTime {
|
|
253
|
-
color: #2467fc;
|
|
254
|
-
.formulateDetailClass-content-left-tip {
|
|
255
|
-
color: #2467fc;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
&-right {
|
|
260
|
-
display: flex;
|
|
261
|
-
align-items: center;
|
|
262
|
-
justify-content: space-between;
|
|
263
|
-
margin: 15px;
|
|
264
|
-
line-height: 2;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
.addRule-errorTip {
|
|
269
|
-
color: red;
|
|
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
|
+
padding: 4px 15px;
|
|
82
|
+
color: #333;
|
|
83
|
+
vertical-align: middle;
|
|
84
|
+
background-color: #efefef;
|
|
85
|
+
border: 1px solid #e5e5e5;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
transition: all 0.2s ease;
|
|
89
|
+
&::after {
|
|
90
|
+
position: absolute;
|
|
91
|
+
bottom: -1px;
|
|
92
|
+
left: 6px;
|
|
93
|
+
z-index: 10;
|
|
94
|
+
width: 17px;
|
|
95
|
+
font-size: 23px;
|
|
96
|
+
content: '+';
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.ant-checkbox-wrapper-checked {
|
|
100
|
+
position: relative;
|
|
101
|
+
color: #165dff;
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
border: 1px solid #165dff;
|
|
104
|
+
&::after {
|
|
105
|
+
position: absolute;
|
|
106
|
+
bottom: -1px;
|
|
107
|
+
left: 6px;
|
|
108
|
+
z-index: 10;
|
|
109
|
+
width: 17px;
|
|
110
|
+
font-size: 23px;
|
|
111
|
+
content: '+';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.ant-checkbox-wrapper::after {
|
|
115
|
+
display: inline;
|
|
116
|
+
}
|
|
117
|
+
.ant-checkbox,
|
|
118
|
+
.ant-checkbox-inner {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
.drawerCloseIcon {
|
|
122
|
+
float: right;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
}
|
|
125
|
+
.ant-drawer-close {
|
|
126
|
+
display: none;
|
|
127
|
+
}
|
|
128
|
+
.ant-drawer-footer {
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: end;
|
|
131
|
+
}
|
|
132
|
+
.attrValue {
|
|
133
|
+
&-list {
|
|
134
|
+
display: grid;
|
|
135
|
+
grid-gap: 20px;
|
|
136
|
+
grid-template-columns: 80px 1fr;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: space-between;
|
|
139
|
+
margin: 20px 0px;
|
|
140
|
+
}
|
|
141
|
+
position: relative;
|
|
142
|
+
padding-left: 30px;
|
|
143
|
+
&-styleLine {
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 50%;
|
|
146
|
+
left: -1px;
|
|
147
|
+
z-index: 10;
|
|
148
|
+
width: 20px;
|
|
149
|
+
color: white;
|
|
150
|
+
text-align: center;
|
|
151
|
+
background: #165dff;
|
|
152
|
+
border-radius: 4px 4px 0px 0px;
|
|
153
|
+
transform: translate(0, -50%);
|
|
154
|
+
}
|
|
155
|
+
&::after {
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 0;
|
|
158
|
+
left: 8px;
|
|
159
|
+
z-index: 1;
|
|
160
|
+
width: 1px;
|
|
161
|
+
height: 100%;
|
|
162
|
+
background: #e8efff;
|
|
163
|
+
content: '';
|
|
164
|
+
}
|
|
165
|
+
.attrValue-list-right {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-gap: 20px;
|
|
168
|
+
grid-template-columns: 3px 80px 10px 80px 3px;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: start;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
.columnsActionClass {
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
.formulateDetail {
|
|
178
|
+
&-title {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: space-between;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
.addRule-formulate-tip {
|
|
185
|
+
margin: 10px 0px 0px;
|
|
186
|
+
color: red;
|
|
187
|
+
}
|
|
188
|
+
.formulateDetailClass {
|
|
189
|
+
margin: 10px 0px 0px;
|
|
190
|
+
border: 1px solid #ecedf0;
|
|
191
|
+
border-radius: 5px;
|
|
192
|
+
&-time {
|
|
193
|
+
color: #5f6085;
|
|
194
|
+
}
|
|
195
|
+
&-title {
|
|
196
|
+
display: grid;
|
|
197
|
+
grid-gap: 16px;
|
|
198
|
+
grid-template-columns: 200px 1fr;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: space-between;
|
|
201
|
+
background-color: #f2f3f4;
|
|
202
|
+
border-bottom: 1px solid #ecedf0;
|
|
203
|
+
&-left {
|
|
204
|
+
padding: 10px 0px 10px 10px;
|
|
205
|
+
border-right: 1px solid #ecedf0;
|
|
206
|
+
}
|
|
207
|
+
&-right {
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
justify-content: space-between;
|
|
211
|
+
padding: 10px 10px 10px 10px;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
&-content {
|
|
215
|
+
display: grid;
|
|
216
|
+
grid-gap: 16px;
|
|
217
|
+
grid-template-columns: 200px 1fr;
|
|
218
|
+
align-items: flex-start;
|
|
219
|
+
justify-content: space-between;
|
|
220
|
+
height: 300px;
|
|
221
|
+
&-left {
|
|
222
|
+
height: 100%;
|
|
223
|
+
overflow: auto;
|
|
224
|
+
border-right: 1px solid #ecedf0;
|
|
225
|
+
&-tip {
|
|
226
|
+
margin: 0px 5px 0px 0px;
|
|
227
|
+
color: red;
|
|
228
|
+
}
|
|
229
|
+
&-item {
|
|
230
|
+
padding: 10px;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
}
|
|
233
|
+
&-itemContent {
|
|
234
|
+
margin: 0px 0px 0px 5px;
|
|
235
|
+
padding: 5px;
|
|
236
|
+
border: 1px solid #5f6085;
|
|
237
|
+
border-radius: 4px;
|
|
238
|
+
}
|
|
239
|
+
.active {
|
|
240
|
+
position: relative;
|
|
241
|
+
background-color: #e8efff;
|
|
242
|
+
&::after {
|
|
243
|
+
position: absolute;
|
|
244
|
+
top: 0;
|
|
245
|
+
left: 0;
|
|
246
|
+
width: 2px;
|
|
247
|
+
height: 100%;
|
|
248
|
+
background-color: #6b8ffd;
|
|
249
|
+
content: '';
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
.activeTime {
|
|
253
|
+
color: #2467fc;
|
|
254
|
+
.formulateDetailClass-content-left-tip {
|
|
255
|
+
color: #2467fc;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
&-right {
|
|
260
|
+
display: flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: space-between;
|
|
263
|
+
margin: 15px;
|
|
264
|
+
line-height: 2;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
.addRule-errorTip {
|
|
269
|
+
color: red;
|
|
270
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.import-meta-modal {
|
|
4
|
-
&-icon-file {
|
|
5
|
-
color: @primary-color;
|
|
6
|
-
font-size: 48px !important;
|
|
7
|
-
}
|
|
8
|
-
&-icon-export {
|
|
9
|
-
margin-right: @margin-xss;
|
|
10
|
-
}
|
|
11
|
-
&-export-btn {
|
|
12
|
-
display: block;
|
|
13
|
-
width: fit-content;
|
|
14
|
-
// margin-top: @margin-md;
|
|
15
|
-
}
|
|
16
|
-
.ant-upload.ant-upload-drag {
|
|
17
|
-
background: #fafafb;
|
|
18
|
-
/* io/中性/N2-置灰信息 */
|
|
19
|
-
border: 1px dashed #ccd0d4;
|
|
20
|
-
}
|
|
21
|
-
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
-
padding: 40px 0;
|
|
23
|
-
}
|
|
24
|
-
&-export-container {
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
&-h1 {
|
|
27
|
-
margin-top: -8px;
|
|
28
|
-
margin-bottom: 4px;
|
|
29
|
-
}
|
|
30
|
-
&-h2 {
|
|
31
|
-
color: @text-color-secondary;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-show-container {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
padding: 24px;
|
|
41
|
-
background: #fafafb;
|
|
42
|
-
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
-
border: 1px solid #e6e7ea;
|
|
44
|
-
border-radius: 4px;
|
|
45
|
-
&-content {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
&-icon {
|
|
49
|
-
margin-right: 12px;
|
|
50
|
-
color: @primary-color;
|
|
51
|
-
font-size: 40px !important;
|
|
52
|
-
}
|
|
53
|
-
&-file {
|
|
54
|
-
&-title {
|
|
55
|
-
font-size: 16px;
|
|
56
|
-
}
|
|
57
|
-
&-size {
|
|
58
|
-
color: @text-color-secondary;
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-spin {
|
|
66
|
-
background: #fafafb;
|
|
67
|
-
border: 1px solid #e6e7ea;
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
&-icon.anticon {
|
|
70
|
-
color: @primary-color;
|
|
71
|
-
font-size: 24px;
|
|
72
|
-
}
|
|
73
|
-
.ant-spin-text {
|
|
74
|
-
margin-top: @margin-xs;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-upload-txt {
|
|
79
|
-
font-size: 16px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ant-modal-body {
|
|
83
|
-
padding-top: 8px !important;
|
|
84
|
-
}
|
|
85
|
-
&-footer {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: row;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: space-between;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.import-meta-modal {
|
|
4
|
+
&-icon-file {
|
|
5
|
+
color: @primary-color;
|
|
6
|
+
font-size: 48px !important;
|
|
7
|
+
}
|
|
8
|
+
&-icon-export {
|
|
9
|
+
margin-right: @margin-xss;
|
|
10
|
+
}
|
|
11
|
+
&-export-btn {
|
|
12
|
+
display: block;
|
|
13
|
+
width: fit-content;
|
|
14
|
+
// margin-top: @margin-md;
|
|
15
|
+
}
|
|
16
|
+
.ant-upload.ant-upload-drag {
|
|
17
|
+
background: #fafafb;
|
|
18
|
+
/* io/中性/N2-置灰信息 */
|
|
19
|
+
border: 1px dashed #ccd0d4;
|
|
20
|
+
}
|
|
21
|
+
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
+
padding: 40px 0;
|
|
23
|
+
}
|
|
24
|
+
&-export-container {
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
&-h1 {
|
|
27
|
+
margin-top: -8px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
&-h2 {
|
|
31
|
+
color: @text-color-secondary;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-show-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
background: #fafafb;
|
|
42
|
+
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
+
border: 1px solid #e6e7ea;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
&-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
&-icon {
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
color: @primary-color;
|
|
51
|
+
font-size: 40px !important;
|
|
52
|
+
}
|
|
53
|
+
&-file {
|
|
54
|
+
&-title {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
}
|
|
57
|
+
&-size {
|
|
58
|
+
color: @text-color-secondary;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-spin {
|
|
66
|
+
background: #fafafb;
|
|
67
|
+
border: 1px solid #e6e7ea;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
&-icon.anticon {
|
|
70
|
+
color: @primary-color;
|
|
71
|
+
font-size: 24px;
|
|
72
|
+
}
|
|
73
|
+
.ant-spin-text {
|
|
74
|
+
margin-top: @margin-xs;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-upload-txt {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-modal-body {
|
|
83
|
+
padding-top: 8px !important;
|
|
84
|
+
}
|
|
85
|
+
&-footer {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -313,16 +313,40 @@ var ClearRule = function ClearRule() {
|
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
};
|
|
316
|
-
var
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
316
|
+
var statusCheck = function statusCheck(ruleRow) {
|
|
317
|
+
// 可直接关闭
|
|
318
|
+
if (ruleRow.status == 1) {
|
|
319
|
+
handleOpenRuleStatus(ruleRow);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
request(apis.rule.checkStatus, {
|
|
323
|
+
method: 'post',
|
|
324
|
+
data: {
|
|
325
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
326
|
+
ruleId: ruleRow.ruleId,
|
|
327
|
+
status: ruleRow.status ? 0 : 1
|
|
328
|
+
}
|
|
329
|
+
}).then(function (res) {
|
|
330
|
+
if (!res) return;
|
|
331
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
332
|
+
if (res.data.data == 0) {
|
|
333
|
+
UseModal({
|
|
334
|
+
onOk: function onOk() {
|
|
335
|
+
return handleOpenRuleStatus(ruleRow);
|
|
336
|
+
},
|
|
337
|
+
okText: "\u4ECD\u7136\u5F00\u542F",
|
|
338
|
+
title: '警告',
|
|
339
|
+
content: '该规则与已开启规则可能产生冲突,请确认是否继续开启'.concat(" ")
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
} else {
|
|
343
|
+
message.error('查询列表失败!');
|
|
344
|
+
}
|
|
324
345
|
});
|
|
325
346
|
};
|
|
347
|
+
var _onChange = function _onChange(value, ruleRow) {
|
|
348
|
+
statusCheck(ruleRow);
|
|
349
|
+
};
|
|
326
350
|
var handleOpenRuleStatus = function handleOpenRuleStatus(ruleRow) {
|
|
327
351
|
request(apis.rule.openRuleStatus, {
|
|
328
352
|
method: 'post',
|
|
@@ -199,13 +199,15 @@ var AddFormulate = function AddFormulate(_ref) {
|
|
|
199
199
|
// 回显
|
|
200
200
|
useEffect(function () {
|
|
201
201
|
if (detailData) {
|
|
202
|
+
var _detailData$rinseObje, _detailData$rinseShif;
|
|
202
203
|
ruleForm.setFieldsValue({
|
|
203
204
|
name: detailData.ruleName,
|
|
204
|
-
description: detailData.ruleDescription,
|
|
205
|
-
target: detailData.rinseObjects[0],
|
|
206
|
-
ruleArr: detailData.rinseShiftRuleDetails
|
|
205
|
+
description: detailData === null || detailData === void 0 ? void 0 : detailData.ruleDescription,
|
|
206
|
+
target: detailData === null || detailData === void 0 ? void 0 : (_detailData$rinseObje = detailData.rinseObjects) === null || _detailData$rinseObje === void 0 ? void 0 : _detailData$rinseObje[0],
|
|
207
|
+
ruleArr: detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails
|
|
207
208
|
});
|
|
208
|
-
var arr =
|
|
209
|
+
var arr = [];
|
|
210
|
+
arr = (_detailData$rinseShif = detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails) !== null && _detailData$rinseShif !== void 0 ? _detailData$rinseShif : detailData === null || detailData === void 0 ? void 0 : detailData.rinseShiftRuleDetails.map(function (o) {
|
|
209
211
|
return {
|
|
210
212
|
currentType: o.ruleType,
|
|
211
213
|
currentTypeName: typeArr.filter(function (j) {
|
|
@@ -96,7 +96,7 @@ var FormulateRule = function FormulateRule() {
|
|
|
96
96
|
openAddDraw = _useState2[0],
|
|
97
97
|
setOpenAddDraw = _useState2[1];
|
|
98
98
|
var handleOpenStatus = function handleOpenStatus(ruleObj) {
|
|
99
|
-
request(apis.clearRule.
|
|
99
|
+
request(apis.clearRule.checkStatus, {
|
|
100
100
|
method: 'post',
|
|
101
101
|
data: {
|
|
102
102
|
ruleId: ruleObj.ruleId,
|
|
@@ -182,8 +182,10 @@ var FormulateRule = function FormulateRule() {
|
|
|
182
182
|
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
183
183
|
if (res.data == 1) {
|
|
184
184
|
UseModal({
|
|
185
|
-
onOk: function onOk() {
|
|
186
|
-
|
|
185
|
+
onOk: function onOk() {
|
|
186
|
+
getDetail(ruleId);
|
|
187
|
+
},
|
|
188
|
+
okText: '去修改',
|
|
187
189
|
title: '校验对象已被删除',
|
|
188
190
|
content: "\u6821\u9A8C\u5BF9\u8C61\u5DF2\u88AB\u5220\u9664\uFF0C\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4F7F\u7528\uFF0C\u8BF7\u8FDB\u884C\u4FEE\u6539"
|
|
189
191
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
3
|
+
"version": "1.0.57-zhongyuan.9",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "6aa135c32ec66af4faeba83f19a97df26b576817",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|