@zgfe/modules-settings 1.2.12 → 1.2.13
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/components/settingTabs/index.less +3 -0
- package/es/constants/api.d.ts +21 -0
- package/es/constants/api.js +26 -1
- package/es/constants/icons/demo.css +0 -0
- package/es/constants/icons/demo_index.html +0 -0
- package/es/constants/icons/iconfont.css +0 -0
- package/es/constants/icons/iconfont.js +0 -0
- package/es/constants/icons/iconfont.json +0 -0
- package/es/constants/icons/iconfont.ttf +0 -0
- package/es/constants/icons/iconfont.woff +0 -0
- package/es/constants/icons/iconfont.woff2 +0 -0
- package/es/modules/appSettings/demo/index.d.ts +3 -1
- package/es/modules/appSettings/demo/index.js +16 -12
- package/es/modules/appSettings/index.js +6 -7
- package/es/modules/appSettings/member/index.js +75 -82
- package/es/modules/appSettings/member/index.less +4 -1
- package/es/modules/appSettings/member/modal.js +1 -1
- package/es/modules/companySetting/appList/index.js +24 -21
- package/es/modules/companySetting/appList/index.less +22 -0
- package/es/modules/companySetting/cost/index.js +2 -2
- package/es/modules/companySetting/cost/index.less +7 -0
- package/es/modules/companySetting/demo.js +3 -4
- package/es/modules/companySetting/department/index.d.ts +7 -0
- package/es/modules/companySetting/department/index.js +414 -0
- package/es/modules/companySetting/department/index.less +157 -0
- package/es/modules/companySetting/index.d.ts +0 -2
- package/es/modules/companySetting/index.js +189 -372
- package/es/modules/companySetting/index.less +65 -0
- package/es/modules/companySetting/info/index.js +6 -1
- package/es/modules/companySetting/info/index.less +7 -0
- package/es/modules/companySetting/operationLog/index.js +10 -4
- package/es/modules/companySetting/operationLog/index.less +6 -0
- package/es/modules/companySetting/role/index.d.ts +6 -0
- package/es/modules/companySetting/role/index.js +716 -0
- package/es/modules/companySetting/role/index.less +220 -0
- package/es/modules/companySetting/style/common.less +13 -2
- package/es/modules/companySetting/user/index.d.ts +1 -0
- package/es/modules/companySetting/user/index.js +224 -278
- package/es/modules/companySetting/user/index.less +199 -10
- package/es/modules/companySetting/user/invite.d.ts +4 -8
- package/es/modules/companySetting/user/invite.js +335 -174
- package/es/modules/companySetting/userGroup/groupItem.js +1 -1
- package/es/modules/companySetting/virtualApp/panels/list.js +1 -1
- package/es/modules/companySetting/wechatBinding/index.js +1 -1
- package/es/modules/companySetting/wechatBinding/index.less +10 -0
- package/es/modules/systemSetting/demo.d.ts +3 -0
- package/es/modules/systemSetting/demo.js +10 -0
- package/es/modules/systemSetting/notice/configItem/index.js +5 -1
- package/es/requests/department.d.ts +15 -0
- package/es/requests/department.js +68 -0
- package/es/requests/role.d.ts +25 -0
- package/es/requests/role.js +100 -0
- package/es/types/companySetting.d.ts +29 -2
- package/es/utils/util.d.ts +29 -0
- package/es/utils/util.js +77 -0
- package/package.json +5 -5
|
@@ -1,12 +1,54 @@
|
|
|
1
1
|
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
2
|
@import './style/common.less';
|
|
3
|
+
|
|
4
|
+
.ant-card-body {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
3
8
|
.company-setting {
|
|
9
|
+
border: 1px solid var(--unnamed, #ecedf0);
|
|
10
|
+
|
|
11
|
+
.company-setting-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
gap: 10px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 48px;
|
|
18
|
+
padding: 0 24px;
|
|
19
|
+
background: #fff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.company-setting-tabs {
|
|
23
|
+
min-height: 800px;
|
|
24
|
+
margin: 16px;
|
|
25
|
+
background: #fff !important;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.hidden-tab {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-tabs-nav {
|
|
34
|
+
margin-bottom: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ant-tabs-nav-wrap {
|
|
38
|
+
margin: 0 24px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ant-tabs-content {
|
|
42
|
+
padding: 0 24px 24px;
|
|
43
|
+
}
|
|
44
|
+
|
|
4
45
|
.setting-tab {
|
|
5
46
|
li:nth-child(1),
|
|
6
47
|
li:nth-child(3),
|
|
7
48
|
li:nth-child(6) {
|
|
8
49
|
margin-bottom: 10px;
|
|
9
50
|
}
|
|
51
|
+
|
|
10
52
|
li {
|
|
11
53
|
&:nth-child(2),
|
|
12
54
|
&:nth-child(4) > a {
|
|
@@ -15,10 +57,33 @@
|
|
|
15
57
|
}
|
|
16
58
|
}
|
|
17
59
|
}
|
|
60
|
+
|
|
18
61
|
.setting-title {
|
|
19
62
|
color: initial;
|
|
20
63
|
font-size: 18px;
|
|
64
|
+
|
|
21
65
|
label {
|
|
22
66
|
font-weight: bold;
|
|
23
67
|
}
|
|
24
68
|
}
|
|
69
|
+
|
|
70
|
+
.setting-bizDialog {
|
|
71
|
+
.ant-modal-header {
|
|
72
|
+
padding-bottom: 24px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ant-modal-close-x {
|
|
76
|
+
width: 24px;
|
|
77
|
+
height: 24px;
|
|
78
|
+
margin-right: 22px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-modal-close .qingchu {
|
|
82
|
+
font-weight: normal;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ant-modal-body {
|
|
86
|
+
padding: 0 24px;
|
|
87
|
+
padding-bottom: 24px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -4,9 +4,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useState } from 'react';
|
|
7
|
+
import React, { useState, useContext } from 'react';
|
|
8
8
|
import './index.less';
|
|
9
9
|
import { Button, Form, Input, notification } from 'antd';
|
|
10
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
10
11
|
import request from './../../../utils/ajax';
|
|
11
12
|
import api from './../../../constants/api';
|
|
12
13
|
var TextArea = Input.TextArea;
|
|
@@ -23,6 +24,8 @@ var Info = function Info(props) {
|
|
|
23
24
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
24
25
|
isChange = _useState4[0],
|
|
25
26
|
setIsChange = _useState4[1];
|
|
27
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
28
|
+
authority = _useContext.authority;
|
|
26
29
|
var updateLicense = function updateLicense(license) {
|
|
27
30
|
request(api.setting.updateLicense, {
|
|
28
31
|
method: 'post',
|
|
@@ -103,6 +106,7 @@ var Info = function Info(props) {
|
|
|
103
106
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
104
107
|
type: 'text',
|
|
105
108
|
placeholder: '请填写公司名称',
|
|
109
|
+
disabled: !authority[10086],
|
|
106
110
|
onChange: function onChange(e) {
|
|
107
111
|
setIsChange(e.target.value === companyName);
|
|
108
112
|
}
|
|
@@ -112,6 +116,7 @@ var Info = function Info(props) {
|
|
|
112
116
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
113
117
|
rows: 5,
|
|
114
118
|
placeholder: '请输入您的授权码',
|
|
119
|
+
disabled: !authority[10087],
|
|
115
120
|
onChange: function onChange(e) {
|
|
116
121
|
setIsChange(!e.target.value);
|
|
117
122
|
}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
2
|
@import './../style/common.less';
|
|
3
|
+
|
|
3
4
|
.company-setting-info {
|
|
5
|
+
margin-top: 8px;
|
|
4
6
|
padding: 0;
|
|
7
|
+
|
|
5
8
|
> p {
|
|
6
9
|
margin-bottom: 13px;
|
|
7
10
|
color: #565656;
|
|
8
11
|
}
|
|
12
|
+
|
|
9
13
|
li {
|
|
10
14
|
margin-bottom: 30px;
|
|
11
15
|
color: #333333;
|
|
12
16
|
}
|
|
17
|
+
|
|
13
18
|
.c-button {
|
|
14
19
|
width: 90px;
|
|
15
20
|
height: 40px;
|
|
16
21
|
}
|
|
22
|
+
|
|
17
23
|
.c-input.c-size-big {
|
|
18
24
|
height: 40px;
|
|
19
25
|
color: initial;
|
|
20
26
|
line-height: 40px;
|
|
21
27
|
}
|
|
28
|
+
|
|
22
29
|
.el-textarea {
|
|
23
30
|
width: 350px;
|
|
24
31
|
}
|
|
@@ -10,16 +10,19 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
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; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import React, { useEffect, useState } from 'react';
|
|
13
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import request from '../../../utils/ajax';
|
|
15
15
|
import apis from '../../../constants/api';
|
|
16
16
|
import { DatePicker, Radio, Table } from 'antd';
|
|
17
17
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
18
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
18
19
|
import moment from 'moment';
|
|
19
20
|
import './index.less';
|
|
20
21
|
import { setColumnsList } from './util';
|
|
21
22
|
var OperationLog = function OperationLog() {
|
|
22
23
|
var classPrefix = 'operation-log-page';
|
|
24
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
25
|
+
authority = _useContext.authority;
|
|
23
26
|
var _useState = useState({
|
|
24
27
|
page: 1,
|
|
25
28
|
size: 10,
|
|
@@ -187,11 +190,14 @@ var OperationLog = function OperationLog() {
|
|
|
187
190
|
onChange: onChangeType,
|
|
188
191
|
value: logType
|
|
189
192
|
}, /*#__PURE__*/React.createElement(Radio.Button, {
|
|
190
|
-
value: "1"
|
|
193
|
+
value: "1",
|
|
194
|
+
disabled: !authority[10102]
|
|
191
195
|
}, "\u67E5\u8BE2\u65E5\u5FD7"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
192
|
-
value: "2"
|
|
196
|
+
value: "2",
|
|
197
|
+
disabled: !authority[10103]
|
|
193
198
|
}, "\u64CD\u4F5C\u65E5\u5FD7"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
194
|
-
value: "3"
|
|
199
|
+
value: "3",
|
|
200
|
+
disabled: !authority[10104]
|
|
195
201
|
}, "\u6743\u9650\u7BA1\u7406\u65E5\u5FD7")), condition.year && /*#__PURE__*/React.createElement(DatePicker, {
|
|
196
202
|
value: moment("".concat(condition.year, "-").concat(condition.month), 'YYYY-MM'),
|
|
197
203
|
picker: "month",
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
.operation-log-page {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
+
margin-top: 8px;
|
|
5
|
+
|
|
4
6
|
&-header {
|
|
5
7
|
display: flex;
|
|
6
8
|
justify-content: space-between;
|
|
7
9
|
margin-bottom: 30px;
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
&-table {
|
|
10
13
|
flex: 1;
|
|
11
14
|
overflow-y: auto;
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.ant-radio-group {
|
|
14
18
|
.ant-radio-button-wrapper:first-child {
|
|
15
19
|
border-radius: 4px 0 0 4px;
|
|
16
20
|
}
|
|
21
|
+
|
|
17
22
|
.ant-radio-button-wrapper:last-child {
|
|
18
23
|
border-radius: 0 4px 4px 0;
|
|
19
24
|
}
|
|
20
25
|
}
|
|
26
|
+
|
|
21
27
|
&-columns {
|
|
22
28
|
width: 120px;
|
|
23
29
|
overflow: hidden;
|