@zgfe/modules-dm 1.0.57-zhongyuan.6 → 1.0.57-zhongyuan.7
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.
|
@@ -109,7 +109,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
109
109
|
// 刷新列表
|
|
110
110
|
getList();
|
|
111
111
|
} else {
|
|
112
|
-
message.error(
|
|
112
|
+
message.error(res.msg);
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
return;
|
|
@@ -142,7 +142,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
142
142
|
// 刷新列表
|
|
143
143
|
getList();
|
|
144
144
|
} else {
|
|
145
|
-
message.error(
|
|
145
|
+
message.error(res.msg);
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
};
|
|
@@ -313,10 +313,6 @@ var AddRule = function AddRule(_ref) {
|
|
|
313
313
|
if (o.ruleType == j.ruleType) {
|
|
314
314
|
o.content = j.content;
|
|
315
315
|
}
|
|
316
|
-
// 这个为模拟的区间数据
|
|
317
|
-
if (o.ruleType == 3) {
|
|
318
|
-
o.content = '(4,8]';
|
|
319
|
-
}
|
|
320
316
|
});
|
|
321
317
|
});
|
|
322
318
|
var currentTypeArr = currentRuleDetail.verifyDetailVo.map(function (o) {
|
|
@@ -359,7 +355,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
359
355
|
initialValues: {
|
|
360
356
|
name: '',
|
|
361
357
|
desctiption: '',
|
|
362
|
-
ruleobj:
|
|
358
|
+
ruleobj: {}
|
|
363
359
|
},
|
|
364
360
|
onFinish: onFinish,
|
|
365
361
|
labelAlign: "left"
|
|
@@ -386,7 +382,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
386
382
|
name: "ruleobj",
|
|
387
383
|
rules: [{
|
|
388
384
|
required: true,
|
|
389
|
-
message: '
|
|
385
|
+
message: '请选择校验对象'
|
|
390
386
|
}]
|
|
391
387
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
392
388
|
onChange: onSelectType,
|
|
@@ -395,7 +391,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
395
391
|
value: 'eventProp'
|
|
396
392
|
}, "\u4E8B\u4EF6\u5C5E\u6027\u6821\u9A8C"), /*#__PURE__*/React.createElement(Radio, {
|
|
397
393
|
value: 'user'
|
|
398
|
-
}, "\
|
|
394
|
+
}, "\u89D2\u8272\u5C5E\u6027\u6821\u9A8C")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", {
|
|
399
395
|
className: "selectVent"
|
|
400
396
|
}, selectType == 'eventProp' && (/*#__PURE__*/React.createElement(BizEventSelector, {
|
|
401
397
|
showAllEvent: true,
|
|
@@ -415,7 +411,7 @@ var AddRule = function AddRule(_ref) {
|
|
|
415
411
|
enableEnvProp: true,
|
|
416
412
|
eventIdList: [event === null || event === void 0 ? void 0 : event.id],
|
|
417
413
|
value: bizAttributeSelectorValue,
|
|
418
|
-
enableDelete:
|
|
414
|
+
enableDelete: false,
|
|
419
415
|
onChange: onChangeAttr,
|
|
420
416
|
onDelete: function onDelete() {
|
|
421
417
|
onChangeAttr(undefined);
|
|
@@ -213,6 +213,8 @@ var ClearRule = function ClearRule() {
|
|
|
213
213
|
setOpenImportModal(false);
|
|
214
214
|
setOpenImportModalResult(false);
|
|
215
215
|
setErrorRule(undefined);
|
|
216
|
+
// 刷新列表
|
|
217
|
+
_getList(ruleSearchName);
|
|
216
218
|
};
|
|
217
219
|
// 导出规则
|
|
218
220
|
var handleDownLoadRuleFile = function handleDownLoadRuleFile() {
|
|
@@ -239,6 +241,7 @@ var ClearRule = function ClearRule() {
|
|
|
239
241
|
var searchChange = function searchChange(e) {
|
|
240
242
|
var _value = e.currentTarget.value;
|
|
241
243
|
setRuleSearchName(_value);
|
|
244
|
+
_getList(_value);
|
|
242
245
|
};
|
|
243
246
|
var handleSearch = function handleSearch() {
|
|
244
247
|
_getList(ruleSearchName);
|
package/package.json
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
4
|
-
"license": "ISC",
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"typings": "es/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"es"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "father-build",
|
|
12
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
-
"docs:build": "dumi build",
|
|
14
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
16
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
-
"pub": "lerna publish",
|
|
18
|
-
"start": "dumi dev",
|
|
19
|
-
"test": "umi-test",
|
|
20
|
-
"test:coverage": "umi-test --coverage"
|
|
21
|
-
},
|
|
22
|
-
"lint-staged": {
|
|
23
|
-
"*.{js,jsx,less,md,json}": [
|
|
24
|
-
"prettier --write"
|
|
25
|
-
],
|
|
26
|
-
"*.ts?(x)": [
|
|
27
|
-
"prettier --parser=typescript --write"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@types/lodash-es": "^4.17.12",
|
|
32
|
-
"@visactor/react-vtable": "^1.12.0",
|
|
33
|
-
"@visactor/vtable": "^1.12.0",
|
|
34
|
-
"array-move": "^4.0.0",
|
|
35
|
-
"echarts": "^5.6.0",
|
|
36
|
-
"echarts-for-react": "^3.0.2",
|
|
37
|
-
"lodash-es": "^4.17.21",
|
|
38
|
-
"moment": "^2.30.1",
|
|
39
|
-
"react": "^16.12.0 || ^17.0.0",
|
|
40
|
-
"react-sortable-hoc": "^2.0.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@testing-library/jest-dom": "^5.15.1",
|
|
44
|
-
"@testing-library/react": "^12.1.2",
|
|
45
|
-
"@types/jest": "^27.0.3",
|
|
46
|
-
"@types/lodash": "^4.14.182",
|
|
47
|
-
"@umijs/fabric": "^2.8.1",
|
|
48
|
-
"@umijs/test": "^3.0.5",
|
|
49
|
-
"@zgfe/business-lib": "1.2.70-hxd.1",
|
|
50
|
-
"antd": "4.24.10",
|
|
51
|
-
"dumi": "^1.1.0",
|
|
52
|
-
"father-build": "^1.17.2",
|
|
53
|
-
"gh-pages": "^3.0.0",
|
|
54
|
-
"lerna": "^4.0.0",
|
|
55
|
-
"lint-staged": "^10.0.7",
|
|
56
|
-
"prettier": "^2.2.1",
|
|
57
|
-
"umi-request": "^1.4.0",
|
|
58
|
-
"yorkie": "^2.0.0"
|
|
59
|
-
},
|
|
60
|
-
"gitHead": "
|
|
61
|
-
"gitHooks": {
|
|
62
|
-
"pre-commit": "lint-staged"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@zgfe/modules-dm",
|
|
3
|
+
"version": "1.0.57-zhongyuan.7",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"typings": "es/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"es"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "father-build",
|
|
12
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
+
"docs:build": "dumi build",
|
|
14
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
+
"pub": "lerna publish",
|
|
18
|
+
"start": "dumi dev",
|
|
19
|
+
"test": "umi-test",
|
|
20
|
+
"test:coverage": "umi-test --coverage"
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"*.{js,jsx,less,md,json}": [
|
|
24
|
+
"prettier --write"
|
|
25
|
+
],
|
|
26
|
+
"*.ts?(x)": [
|
|
27
|
+
"prettier --parser=typescript --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/lodash-es": "^4.17.12",
|
|
32
|
+
"@visactor/react-vtable": "^1.12.0",
|
|
33
|
+
"@visactor/vtable": "^1.12.0",
|
|
34
|
+
"array-move": "^4.0.0",
|
|
35
|
+
"echarts": "^5.6.0",
|
|
36
|
+
"echarts-for-react": "^3.0.2",
|
|
37
|
+
"lodash-es": "^4.17.21",
|
|
38
|
+
"moment": "^2.30.1",
|
|
39
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
40
|
+
"react-sortable-hoc": "^2.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
44
|
+
"@testing-library/react": "^12.1.2",
|
|
45
|
+
"@types/jest": "^27.0.3",
|
|
46
|
+
"@types/lodash": "^4.14.182",
|
|
47
|
+
"@umijs/fabric": "^2.8.1",
|
|
48
|
+
"@umijs/test": "^3.0.5",
|
|
49
|
+
"@zgfe/business-lib": "1.2.70-hxd.1",
|
|
50
|
+
"antd": "4.24.10",
|
|
51
|
+
"dumi": "^1.1.0",
|
|
52
|
+
"father-build": "^1.17.2",
|
|
53
|
+
"gh-pages": "^3.0.0",
|
|
54
|
+
"lerna": "^4.0.0",
|
|
55
|
+
"lint-staged": "^10.0.7",
|
|
56
|
+
"prettier": "^2.2.1",
|
|
57
|
+
"umi-request": "^1.4.0",
|
|
58
|
+
"yorkie": "^2.0.0"
|
|
59
|
+
},
|
|
60
|
+
"gitHead": "ff2b189d1b171c2fdea85754a66e9370090120e0",
|
|
61
|
+
"gitHooks": {
|
|
62
|
+
"pre-commit": "lint-staged"
|
|
63
|
+
}
|
|
64
|
+
}
|