@zgfe/modules-settings 1.2.15 → 1.2.16-role.0
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.
|
@@ -15,6 +15,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
15
15
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
import React, { useEffect, useState, useContext } from 'react';
|
|
18
|
+
import { BizUserCondition } from '@zgfe/business-lib';
|
|
18
19
|
import './index.less';
|
|
19
20
|
import util from './../../../utils/util';
|
|
20
21
|
import { Button, Drawer, Form, Input, Radio, Spin, Table, Tooltip, Tree, notification } from 'antd';
|
|
@@ -109,6 +110,14 @@ var RoleList = function RoleList(props) {
|
|
|
109
110
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
110
111
|
usList = _useState34[0],
|
|
111
112
|
setUsList = _useState34[1];
|
|
113
|
+
var _useState35 = useState(false),
|
|
114
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
115
|
+
isDataRange = _useState36[0],
|
|
116
|
+
setIsDataRange = _useState36[1];
|
|
117
|
+
var _useState37 = useState([]),
|
|
118
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
|
119
|
+
condition = _useState38[0],
|
|
120
|
+
setCondition = _useState38[1];
|
|
112
121
|
var _Form$useForm = Form.useForm(),
|
|
113
122
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
114
123
|
form = _Form$useForm2[0];
|
|
@@ -465,6 +474,10 @@ var RoleList = function RoleList(props) {
|
|
|
465
474
|
});
|
|
466
475
|
});
|
|
467
476
|
};
|
|
477
|
+
function onChangeCondition(condition) {
|
|
478
|
+
console.log('condition', condition);
|
|
479
|
+
setCondition(condition);
|
|
480
|
+
}
|
|
468
481
|
return /*#__PURE__*/React.createElement(Spin, {
|
|
469
482
|
spinning: loading
|
|
470
483
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -496,7 +509,8 @@ var RoleList = function RoleList(props) {
|
|
|
496
509
|
setRoleId(null);
|
|
497
510
|
form.resetFields();
|
|
498
511
|
form.setFieldsValue({
|
|
499
|
-
isEncryption: 0
|
|
512
|
+
isEncryption: 0,
|
|
513
|
+
dataRange: 0
|
|
500
514
|
});
|
|
501
515
|
queryRoleDataConfigList(null);
|
|
502
516
|
queryRoleUserList(null);
|
|
@@ -646,6 +660,59 @@ var RoleList = function RoleList(props) {
|
|
|
646
660
|
autoExpandParent: true,
|
|
647
661
|
treeData: functionList
|
|
648
662
|
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
663
|
+
name: 'dataRange',
|
|
664
|
+
className: "is-encryption",
|
|
665
|
+
label: /*#__PURE__*/React.createElement(React.Fragment, null, "\u6570\u636E\u8303\u56F4", /*#__PURE__*/React.createElement(Tooltip, {
|
|
666
|
+
overlayStyle: {
|
|
667
|
+
maxWidth: 396
|
|
668
|
+
},
|
|
669
|
+
overlayInnerStyle: {
|
|
670
|
+
color: '#FFF',
|
|
671
|
+
fontSize: 14,
|
|
672
|
+
fontWeight: 400,
|
|
673
|
+
letterSpacing: 0.56
|
|
674
|
+
},
|
|
675
|
+
placement: "top",
|
|
676
|
+
title: '数据范围'
|
|
677
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
678
|
+
style: {
|
|
679
|
+
fontSize: 16,
|
|
680
|
+
margin: '0 24px 0 8px'
|
|
681
|
+
},
|
|
682
|
+
className: "bsicon tishi"
|
|
683
|
+
}))),
|
|
684
|
+
rules: [{
|
|
685
|
+
required: true,
|
|
686
|
+
message: '请选择'
|
|
687
|
+
}]
|
|
688
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
689
|
+
buttonStyle: "outline",
|
|
690
|
+
onChange: function onChange(value) {
|
|
691
|
+
setIsDataRange(!!value.target.value);
|
|
692
|
+
}
|
|
693
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
694
|
+
value: 0
|
|
695
|
+
}, "\u6240\u6709\u7528\u6237"), /*#__PURE__*/React.createElement(Radio, {
|
|
696
|
+
value: 1
|
|
697
|
+
}, "\u7B5B\u9009\u7528\u6237"))), isDataRange ? /*#__PURE__*/React.createElement("li", {
|
|
698
|
+
className: "group-config condition"
|
|
699
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
700
|
+
className: "config-name"
|
|
701
|
+
}, "\u5B9A\u4E49"), /*#__PURE__*/React.createElement("div", {
|
|
702
|
+
className: "config-value"
|
|
703
|
+
}), /*#__PURE__*/React.createElement(BizUserCondition, {
|
|
704
|
+
key: -1,
|
|
705
|
+
openCdpCondition: true,
|
|
706
|
+
openBusinessDataCondition: true,
|
|
707
|
+
openOrderDataCondition: true,
|
|
708
|
+
openTagCondition: true,
|
|
709
|
+
defaultValue: condition,
|
|
710
|
+
onChange: onChangeCondition,
|
|
711
|
+
orConditionNum: 3,
|
|
712
|
+
andConditionNum: 8,
|
|
713
|
+
eventAttrNum: 3,
|
|
714
|
+
isRealTime: true
|
|
715
|
+
})) : null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
649
716
|
name: 'isEncryption',
|
|
650
717
|
className: "is-encryption",
|
|
651
718
|
label: /*#__PURE__*/React.createElement(React.Fragment, null, "\u6570\u636E\u52A0\u5BC6", /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -102,6 +102,24 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.role-dialog-content {
|
|
105
|
+
.group-config {
|
|
106
|
+
display: flex;
|
|
107
|
+
margin-bottom: 24px;
|
|
108
|
+
padding-left: 120px;
|
|
109
|
+
|
|
110
|
+
.config-name {
|
|
111
|
+
margin-right: 12px;
|
|
112
|
+
color: #5f6085;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
line-height: 30px;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.biz-user-condition-type-label {
|
|
119
|
+
margin-left: -7px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
105
123
|
.ant-form-item {
|
|
106
124
|
.ant-form-item-control-input {
|
|
107
125
|
width: 484px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16-role.0",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "bd4bc467d64f258aa110bf98a40f7644582bf1e9",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|