@zgfe/modules-dm 1.0.57-zhongyuan.2 → 1.0.57-zhongyuan.21
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 +8 -1
- package/es/constants/api.js +9 -2
- package/es/modules/CutsModal.d.ts +8 -0
- package/es/modules/clearRule/addRule.js +72 -23
- package/es/modules/clearRule/css/index.css +2 -2
- package/es/modules/clearRule/css/index.less +271 -270
- package/es/modules/clearRule/importMetaDialog/styles/index.less +91 -91
- package/es/modules/clearRule/index.js +97 -59
- package/es/modules/dataManage/collectionAttributeList.js +2 -2
- package/es/modules/dataManage/components/createMetaDrawer.js +85 -4
- package/es/modules/dataManage/components/eventGroupingDrawer.js +1 -4
- package/es/modules/dataManage/components/panelList.js +1 -1
- package/es/modules/dataManage/components/tablePlus.d.ts +8 -0
- package/es/modules/dataManage/components/tablePlus.js +194 -27
- package/es/modules/dataManage/styles/index.less +1209 -1205
- package/es/modules/dataManage/types.d.ts +4 -0
- package/es/modules/formulateRule/addFormulate.d.ts +1 -1
- package/es/modules/formulateRule/addFormulate.js +26 -24
- package/es/modules/formulateRule/addRule.d.ts +1 -1
- package/es/modules/formulateRule/addRule.js +1 -1
- package/es/modules/formulateRule/index.d.ts +1 -1
- package/es/modules/formulateRule/index.js +29 -16
- 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,11 +96,17 @@ 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;
|
|
102
103
|
allOpenStatus: string;
|
|
103
104
|
};
|
|
105
|
+
dict: {
|
|
106
|
+
dictList: string;
|
|
107
|
+
eventTag: string;
|
|
108
|
+
addLabelRelation: string;
|
|
109
|
+
delLabelRelation: string;
|
|
110
|
+
};
|
|
104
111
|
};
|
|
105
112
|
export default apis;
|
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,11 +160,17 @@ 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',
|
|
166
167
|
allOpenStatus: '/zg/web/v2/rinseShiftRule/statusMain'
|
|
168
|
+
},
|
|
169
|
+
dict: {
|
|
170
|
+
dictList: '/zg/web/v2/systemSettings/attr/dict/list',
|
|
171
|
+
eventTag: '/zg/web/v2/eventLabel/list',
|
|
172
|
+
addLabelRelation: '/zg/web/v2/eventLabel/addLabelRelation',
|
|
173
|
+
delLabelRelation: '/zg/web/v2/eventLabel/delLabelRelation'
|
|
167
174
|
}
|
|
168
175
|
};
|
|
169
176
|
export default apis;
|
|
@@ -65,6 +65,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
65
65
|
}, {
|
|
66
66
|
ruleType: 5,
|
|
67
67
|
content: undefined
|
|
68
|
+
}, {
|
|
69
|
+
ruleType: 6,
|
|
70
|
+
content: undefined
|
|
68
71
|
}]);
|
|
69
72
|
setBizAttributeSelectorValue(undefined); // 清空属性
|
|
70
73
|
setEvent({
|
|
@@ -109,7 +112,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
109
112
|
// 刷新列表
|
|
110
113
|
getList();
|
|
111
114
|
} else {
|
|
112
|
-
message.error(
|
|
115
|
+
message.error(res.msg);
|
|
113
116
|
}
|
|
114
117
|
});
|
|
115
118
|
return;
|
|
@@ -142,7 +145,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
142
145
|
// 刷新列表
|
|
143
146
|
getList();
|
|
144
147
|
} else {
|
|
145
|
-
message.error(
|
|
148
|
+
message.error(res.msg);
|
|
146
149
|
}
|
|
147
150
|
});
|
|
148
151
|
};
|
|
@@ -165,6 +168,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
165
168
|
}, {
|
|
166
169
|
ruleType: 5,
|
|
167
170
|
content: undefined
|
|
171
|
+
}, {
|
|
172
|
+
ruleType: 6,
|
|
173
|
+
content: undefined
|
|
168
174
|
}]),
|
|
169
175
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
170
176
|
optionsRule = _useState6[0],
|
|
@@ -184,6 +190,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
184
190
|
}, {
|
|
185
191
|
label: '非空',
|
|
186
192
|
value: 5
|
|
193
|
+
}, {
|
|
194
|
+
label: '字典校验',
|
|
195
|
+
value: 6
|
|
187
196
|
}];
|
|
188
197
|
var _useState7 = useState([]),
|
|
189
198
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
@@ -233,6 +242,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
233
242
|
}, {
|
|
234
243
|
ruleType: 5,
|
|
235
244
|
content: undefined
|
|
245
|
+
}, {
|
|
246
|
+
ruleType: 6,
|
|
247
|
+
content: undefined
|
|
236
248
|
}]);
|
|
237
249
|
setBizAttributeSelectorValue(undefined); // 清空属性
|
|
238
250
|
};
|
|
@@ -265,15 +277,9 @@ var AddRule = function AddRule(_ref) {
|
|
|
265
277
|
setBizAttributeSelectorValue(undefined);
|
|
266
278
|
} else {
|
|
267
279
|
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
|
-
});
|
|
280
|
+
setBizAttributeSelectorValue(_objectSpread(_objectSpread({}, attr), {}, {
|
|
281
|
+
value: _value
|
|
282
|
+
}));
|
|
277
283
|
// 初始化属性基础类型
|
|
278
284
|
if (currentRule.includes(1)) {
|
|
279
285
|
var newArr = optionsRule;
|
|
@@ -313,10 +319,6 @@ var AddRule = function AddRule(_ref) {
|
|
|
313
319
|
if (o.ruleType == j.ruleType) {
|
|
314
320
|
o.content = j.content;
|
|
315
321
|
}
|
|
316
|
-
// 这个为模拟的区间数据
|
|
317
|
-
if (o.ruleType == 3) {
|
|
318
|
-
o.content = '(4,8]';
|
|
319
|
-
}
|
|
320
322
|
});
|
|
321
323
|
});
|
|
322
324
|
var currentTypeArr = currentRuleDetail.verifyDetailVo.map(function (o) {
|
|
@@ -359,7 +361,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
359
361
|
initialValues: {
|
|
360
362
|
name: '',
|
|
361
363
|
desctiption: '',
|
|
362
|
-
ruleobj:
|
|
364
|
+
ruleobj: {}
|
|
363
365
|
},
|
|
364
366
|
onFinish: onFinish,
|
|
365
367
|
labelAlign: "left"
|
|
@@ -386,7 +388,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
386
388
|
name: "ruleobj",
|
|
387
389
|
rules: [{
|
|
388
390
|
required: true,
|
|
389
|
-
message: '
|
|
391
|
+
message: '请选择校验对象'
|
|
390
392
|
}]
|
|
391
393
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
392
394
|
onChange: onSelectType,
|
|
@@ -395,7 +397,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
395
397
|
value: 'eventProp'
|
|
396
398
|
}, "\u4E8B\u4EF6\u5C5E\u6027\u6821\u9A8C"), /*#__PURE__*/React.createElement(Radio, {
|
|
397
399
|
value: 'user'
|
|
398
|
-
}, "\
|
|
400
|
+
}, "\u89D2\u8272\u5C5E\u6027\u6821\u9A8C")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", {
|
|
399
401
|
className: "selectVent"
|
|
400
402
|
}, selectType == 'eventProp' && (/*#__PURE__*/React.createElement(BizEventSelector, {
|
|
401
403
|
showAllEvent: true,
|
|
@@ -415,7 +417,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
415
417
|
enableEnvProp: true,
|
|
416
418
|
eventIdList: [event === null || event === void 0 ? void 0 : event.id],
|
|
417
419
|
value: bizAttributeSelectorValue,
|
|
418
|
-
enableDelete:
|
|
420
|
+
enableDelete: false,
|
|
419
421
|
onChange: onChangeAttr,
|
|
420
422
|
onDelete: function onDelete() {
|
|
421
423
|
onChangeAttr(undefined);
|
|
@@ -462,6 +464,8 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
462
464
|
editStatus = _ref2.editStatus;
|
|
463
465
|
// type:1 string 2:正则 3:数字区间 4:枚举
|
|
464
466
|
var Component = null;
|
|
467
|
+
var _useContext2 = useContext(BizGlobalDataContext),
|
|
468
|
+
currentApp = _useContext2.currentApp;
|
|
465
469
|
// 枚举
|
|
466
470
|
var _useState15 = useState([]),
|
|
467
471
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
@@ -490,6 +494,27 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
490
494
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
491
495
|
includedMaxState = _useState24[0],
|
|
492
496
|
setIncludedMaxState = _useState24[1];
|
|
497
|
+
//字典
|
|
498
|
+
var _useState25 = useState([]),
|
|
499
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
500
|
+
dictList = _useState26[0],
|
|
501
|
+
setDictList = _useState26[1];
|
|
502
|
+
var getDictList = function getDictList() {
|
|
503
|
+
request(apis.dict.dictList, {
|
|
504
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
505
|
+
}).then(function (res) {
|
|
506
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
507
|
+
var _res$data;
|
|
508
|
+
setDictList((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) {
|
|
509
|
+
return {
|
|
510
|
+
label: item.dictName,
|
|
511
|
+
value: item.id,
|
|
512
|
+
id: item.id
|
|
513
|
+
};
|
|
514
|
+
}));
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
};
|
|
493
518
|
// 只会执行一次 区间回显
|
|
494
519
|
useEffect(function () {
|
|
495
520
|
if (editStatus) {
|
|
@@ -503,9 +528,10 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
503
528
|
setMinNum(val.firstNumber);
|
|
504
529
|
setMaxNum(val.secondNumber);
|
|
505
530
|
setIncludedMinState(val.leftSymbol == '(' ? false : true);
|
|
506
|
-
setIncludedMaxState(val.rightSymbol == '
|
|
531
|
+
setIncludedMaxState(val.rightSymbol == ')' ? false : true);
|
|
507
532
|
}
|
|
508
533
|
}
|
|
534
|
+
getDictList();
|
|
509
535
|
}, []);
|
|
510
536
|
switch (type) {
|
|
511
537
|
case 1:
|
|
@@ -519,7 +545,7 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
519
545
|
label: '字符串类型'
|
|
520
546
|
}, {
|
|
521
547
|
value: 2,
|
|
522
|
-
label: '
|
|
548
|
+
label: '数值类型'
|
|
523
549
|
}, {
|
|
524
550
|
value: 3,
|
|
525
551
|
label: '日期类型'
|
|
@@ -548,8 +574,11 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
548
574
|
Component = /*#__PURE__*/React.createElement("div", {
|
|
549
575
|
className: "attrValue-list-right"
|
|
550
576
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
551
|
-
title: "\u70B9\u51FB\u5207\u6362[\u5F00
|
|
577
|
+
title: "\u70B9\u51FB\u5207\u6362[\u5F00/\u95ED]\u533A\u95F4"
|
|
552
578
|
}, /*#__PURE__*/React.createElement("div", {
|
|
579
|
+
style: {
|
|
580
|
+
cursor: 'pointer'
|
|
581
|
+
},
|
|
553
582
|
onClick: function onClick() {
|
|
554
583
|
setIncludedMinState(function (pre) {
|
|
555
584
|
optionsValue.filter(function (r) {
|
|
@@ -579,8 +608,11 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
579
608
|
})[0].content = "".concat(includedMinState ? '[' : '(').concat(minNum, ",").concat(value).concat(includedMaxState ? ']' : ')');
|
|
580
609
|
}
|
|
581
610
|
}), /*#__PURE__*/React.createElement(Tooltip, {
|
|
582
|
-
title: "\u70B9\u51FB\u5207\u6362[\u5F00
|
|
611
|
+
title: "\u70B9\u51FB\u5207\u6362[\u5F00/\u95ED]\u533A\u95F4"
|
|
583
612
|
}, /*#__PURE__*/React.createElement("div", {
|
|
613
|
+
style: {
|
|
614
|
+
cursor: 'pointer'
|
|
615
|
+
},
|
|
584
616
|
onClick: function onClick() {
|
|
585
617
|
setIncludedMaxState(function (pre) {
|
|
586
618
|
optionsValue.filter(function (r) {
|
|
@@ -605,6 +637,23 @@ var TypeComponent = function TypeComponent(_ref2) {
|
|
|
605
637
|
options: optionsEnum
|
|
606
638
|
});
|
|
607
639
|
break;
|
|
640
|
+
case 6:
|
|
641
|
+
Component = /*#__PURE__*/React.createElement(Select
|
|
642
|
+
// defaultValue={Number(optionsValue.filter((r) => r.ruleType == type)[0].content)}
|
|
643
|
+
, {
|
|
644
|
+
// defaultValue={Number(optionsValue.filter((r) => r.ruleType == type)[0].content)}
|
|
645
|
+
value: Number(optionsValue.filter(function (r) {
|
|
646
|
+
return r.ruleType == type;
|
|
647
|
+
})[0].content),
|
|
648
|
+
placeholder: "\u9009\u62E9\u5B57\u5178\u89C4\u5219",
|
|
649
|
+
options: dictList,
|
|
650
|
+
onChange: function onChange(value) {
|
|
651
|
+
optionsValue.filter(function (r) {
|
|
652
|
+
return r.ruleType == type;
|
|
653
|
+
})[0].content = value;
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
break;
|
|
608
657
|
default:
|
|
609
658
|
Component = /*#__PURE__*/React.createElement("div", null, "\u5FC5\u586B");
|
|
610
659
|
break;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
height: 350px;
|
|
16
16
|
}
|
|
17
17
|
.clearRule-modal .ant-picker-dropdown {
|
|
18
|
-
left: 13px !important;
|
|
19
18
|
top: 133px !important;
|
|
19
|
+
left: 13px !important;
|
|
20
20
|
}
|
|
21
21
|
.clearRule-content {
|
|
22
22
|
display: flex;
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
.addRuleForm .attrValue-list {
|
|
126
126
|
display: grid;
|
|
127
127
|
grid-gap: 20px;
|
|
128
|
-
grid-template-columns:
|
|
128
|
+
grid-template-columns: 120px 1fr;
|
|
129
129
|
align-items: center;
|
|
130
130
|
justify-content: space-between;
|
|
131
131
|
margin: 20px 0px;
|