@zgfe/modules-dm 1.0.57-zhongyuan.33 → 1.0.57-zhongyuan.34
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.
|
@@ -27,7 +27,8 @@ var className = 'clearRule';
|
|
|
27
27
|
var ClearRule = function ClearRule() {
|
|
28
28
|
var _useContext = useContext(BizGlobalDataContext),
|
|
29
29
|
currentApp = _useContext.currentApp,
|
|
30
|
-
authority = _useContext.authority
|
|
30
|
+
authority = _useContext.authority,
|
|
31
|
+
showProdDownload = _useContext.showProdDownload;
|
|
31
32
|
var columns = [{
|
|
32
33
|
title: '规则名',
|
|
33
34
|
dataIndex: 'ruleName',
|
|
@@ -430,7 +431,7 @@ var ClearRule = function ClearRule() {
|
|
|
430
431
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
431
432
|
checked: allOpenRule,
|
|
432
433
|
onChange: handleAllOpenStatus
|
|
433
|
-
}))), authority[170928557418] && (/*#__PURE__*/React.createElement(Button, {
|
|
434
|
+
}))), authority[170928557418] && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
434
435
|
icon: /*#__PURE__*/React.createElement(DiffOutlined, {
|
|
435
436
|
onPointerEnterCapture: undefined,
|
|
436
437
|
onPointerLeaveCapture: undefined
|
|
@@ -438,7 +439,7 @@ var ClearRule = function ClearRule() {
|
|
|
438
439
|
onClick: function onClick() {
|
|
439
440
|
return setIsModalOpen(true);
|
|
440
441
|
}
|
|
441
|
-
}, "\u751F\u6210\u62A5\u544A")), authority[170928557417] && (/*#__PURE__*/React.createElement(Button, {
|
|
442
|
+
}, "\u751F\u6210\u62A5\u544A")), authority[170928557417] && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
442
443
|
icon: /*#__PURE__*/React.createElement(DownloadOutlined, {
|
|
443
444
|
onPointerEnterCapture: undefined,
|
|
444
445
|
onPointerLeaveCapture: undefined
|
|
@@ -448,7 +449,7 @@ var ClearRule = function ClearRule() {
|
|
|
448
449
|
type: "primary",
|
|
449
450
|
onClick: handleAddRule,
|
|
450
451
|
disabled: !authority[170928557411]
|
|
451
|
-
}, "\u65B0\u5EFA\u89C4\u5219"), authority[170928557415] && (/*#__PURE__*/React.createElement(Button, {
|
|
452
|
+
}, "\u65B0\u5EFA\u89C4\u5219"), authority[170928557415] && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
452
453
|
type: "primary",
|
|
453
454
|
onClick: function onClick() {
|
|
454
455
|
return setOpenImportModal(true);
|
|
@@ -34,7 +34,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
34
34
|
var _useContext = useContext(BizGlobalDataContext),
|
|
35
35
|
currentApp = _useContext.currentApp,
|
|
36
36
|
isDemo = _useContext.isDemo,
|
|
37
|
-
authority = _useContext.authority
|
|
37
|
+
authority = _useContext.authority,
|
|
38
|
+
showProdDownload = _useContext.showProdDownload;
|
|
38
39
|
var isOpen = props.isOpen,
|
|
39
40
|
queryPlanData = props.queryPlanData,
|
|
40
41
|
source = props.source,
|
|
@@ -1171,14 +1172,14 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
1171
1172
|
onClick: function onClick() {
|
|
1172
1173
|
return setCreateAttrShow(true);
|
|
1173
1174
|
}
|
|
1174
|
-
}, "\u521B\u5EFA\u5C5E\u6027"), /*#__PURE__*/React.createElement(Button, {
|
|
1175
|
+
}, "\u521B\u5EFA\u5C5E\u6027"), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
1175
1176
|
shape: "round",
|
|
1176
1177
|
className: "button",
|
|
1177
1178
|
disabled: isDemo || !authority[1722838544],
|
|
1178
1179
|
onClick: function onClick() {
|
|
1179
1180
|
return setOpenImportModal(true);
|
|
1180
1181
|
}
|
|
1181
|
-
}, "\u5BFC\u5165\u5C5E\u6027")))), /*#__PURE__*/React.createElement(Table, {
|
|
1182
|
+
}, "\u5BFC\u5165\u5C5E\u6027"))))), /*#__PURE__*/React.createElement(Table, {
|
|
1182
1183
|
className: "".concat(classPrefix, "-table"),
|
|
1183
1184
|
columns: columns,
|
|
1184
1185
|
id: 'dataManageAttrTable',
|
|
@@ -37,7 +37,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
37
37
|
currentApp = _useContext.currentApp,
|
|
38
38
|
authority = _useContext.authority,
|
|
39
39
|
route = _useContext.route,
|
|
40
|
-
isDemo = _useContext.isDemo
|
|
40
|
+
isDemo = _useContext.isDemo,
|
|
41
|
+
showProdDownload = _useContext.showProdDownload;
|
|
41
42
|
var _useContext2 = useContext(DmContext),
|
|
42
43
|
state = _useContext2.state;
|
|
43
44
|
var _useState = useState(0),
|
|
@@ -474,7 +475,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
474
475
|
}), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406")))
|
|
475
476
|
}, {
|
|
476
477
|
key: '3',
|
|
477
|
-
disabled: isDemo || !authority[1722837260],
|
|
478
|
+
disabled: (isDemo || !authority[1722837260]) && !showProdDownload,
|
|
478
479
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
479
480
|
className: "".concat(classPrefix, "-downItems"),
|
|
480
481
|
onClick: function onClick() {
|
|
@@ -487,7 +488,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
487
488
|
}), " ", /*#__PURE__*/React.createElement("span", null, "\u5BFC\u5165\u4E8B\u4EF6")))
|
|
488
489
|
}, {
|
|
489
490
|
key: '4',
|
|
490
|
-
disabled: isDemo || !authority[1722837261],
|
|
491
|
+
disabled: (isDemo || !authority[1722837261]) && !showProdDownload,
|
|
491
492
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
492
493
|
className: "".concat(classPrefix, "-downItems"),
|
|
493
494
|
onClick: exportEvent
|
|
@@ -510,6 +511,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
510
511
|
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u5F00\u53D1\u7BA1\u7406")))
|
|
511
512
|
}, {
|
|
512
513
|
key: '6',
|
|
514
|
+
disabled: !showProdDownload,
|
|
513
515
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
514
516
|
className: "".concat(classPrefix, "-downItems"),
|
|
515
517
|
onClick: function onClick() {
|
|
@@ -522,6 +524,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
522
524
|
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u751F\u6210\u6D4B\u8BD5\u62A5\u544A")))
|
|
523
525
|
}, {
|
|
524
526
|
key: '7',
|
|
527
|
+
disabled: !showProdDownload,
|
|
525
528
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
526
529
|
className: "".concat(classPrefix, "-downItems"),
|
|
527
530
|
onClick: function onClick() {
|
|
@@ -27,7 +27,8 @@ var AddPlan = function AddPlan(props) {
|
|
|
27
27
|
var classPrefix = 'add-plan';
|
|
28
28
|
var _useContext = useContext(BizGlobalDataContext),
|
|
29
29
|
currentApp = _useContext.currentApp,
|
|
30
|
-
isDemo = _useContext.isDemo
|
|
30
|
+
isDemo = _useContext.isDemo,
|
|
31
|
+
showProdDownload = _useContext.showProdDownload;
|
|
31
32
|
var _useState = useState(false),
|
|
32
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
34
|
spinning = _useState2[0],
|
|
@@ -636,7 +637,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
636
637
|
value: "0"
|
|
637
638
|
}, "\u6240\u6709\u884C"), /*#__PURE__*/React.createElement(Option, {
|
|
638
639
|
value: "1"
|
|
639
|
-
}, "\u5F53\u524D\u884C"))), /*#__PURE__*/React.createElement(Button, {
|
|
640
|
+
}, "\u5F53\u524D\u884C"))), showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
640
641
|
loading: downloadingPlanTemp,
|
|
641
642
|
onClick: function onClick() {
|
|
642
643
|
setDownloadingPlanTemp(true);
|
|
@@ -654,11 +655,11 @@ var AddPlan = function AddPlan(props) {
|
|
|
654
655
|
}
|
|
655
656
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
656
657
|
type: "xiazai1"
|
|
657
|
-
}), "\u4E0B\u8F7D\u6A21\u677F"), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, uploadProps), /*#__PURE__*/React.createElement(Button, {
|
|
658
|
+
}), "\u4E0B\u8F7D\u6A21\u677F")), showProdDownload && (/*#__PURE__*/React.createElement(Upload, _objectSpread({}, uploadProps), /*#__PURE__*/React.createElement(Button, {
|
|
658
659
|
disabled: isDemo
|
|
659
660
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
660
661
|
type: "daochu"
|
|
661
|
-
}), "\u6587\u4EF6\u4E0A\u4F20")))), /*#__PURE__*/React.createElement(Search, {
|
|
662
|
+
}), "\u6587\u4EF6\u4E0A\u4F20"))))), /*#__PURE__*/React.createElement(Search, {
|
|
662
663
|
type: listTab == '1' ? 'event' : 'user',
|
|
663
664
|
total: searchTotal,
|
|
664
665
|
searchData: searchData,
|
|
@@ -26,7 +26,8 @@ var className = 'formulateRule';
|
|
|
26
26
|
var FormulateRule = function FormulateRule() {
|
|
27
27
|
var _useContext = useContext(BizGlobalDataContext),
|
|
28
28
|
currentApp = _useContext.currentApp,
|
|
29
|
-
authority = _useContext.authority
|
|
29
|
+
authority = _useContext.authority,
|
|
30
|
+
showProdDownload = _useContext.showProdDownload;
|
|
30
31
|
var columns = [{
|
|
31
32
|
title: '任务名',
|
|
32
33
|
dataIndex: 'ruleName',
|
|
@@ -391,7 +392,7 @@ var FormulateRule = function FormulateRule() {
|
|
|
391
392
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
392
393
|
checked: allOpenRule,
|
|
393
394
|
onChange: handleAllOpenStatus
|
|
394
|
-
}))), authority[170928557426] && (/*#__PURE__*/React.createElement(Button, {
|
|
395
|
+
}))), authority[170928557426] && showProdDownload && (/*#__PURE__*/React.createElement(Button, {
|
|
395
396
|
icon: /*#__PURE__*/React.createElement(DiffOutlined, {
|
|
396
397
|
onPointerEnterCapture: undefined,
|
|
397
398
|
onPointerLeaveCapture: undefined
|
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.34",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@types/lodash": "^4.14.182",
|
|
47
47
|
"@umijs/fabric": "^2.8.1",
|
|
48
48
|
"@umijs/test": "^3.0.5",
|
|
49
|
-
"@zgfe/business-lib": "1.2.70-hxd.
|
|
49
|
+
"@zgfe/business-lib": "1.2.70-hxd.31",
|
|
50
50
|
"antd": "4.24.10",
|
|
51
51
|
"dumi": "^1.1.0",
|
|
52
52
|
"father-build": "^1.17.2",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "13acec8ea76fa8e9ce7f1b9384ac66e9fa4304ba",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|