@zgfe/modules-settings 1.2.10-lmy-role21 → 1.2.10-lmy-role23
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/modules/companySetting/department/index.js +3 -2
- package/es/modules/companySetting/department/index.less +36 -5
- package/es/modules/companySetting/index.less +3 -1
- package/es/modules/companySetting/role/index.js +26 -1
- package/es/modules/companySetting/role/index.less +40 -1
- package/es/modules/companySetting/user/index.js +1 -0
- package/es/modules/companySetting/user/index.less +48 -2
- package/es/modules/companySetting/user/invite.js +20 -6
- package/package.json +1 -1
|
@@ -250,7 +250,8 @@ var DepartmentList = function DepartmentList(props) {
|
|
|
250
250
|
className: "department-list"
|
|
251
251
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
252
252
|
style: {
|
|
253
|
-
marginTop: '8px'
|
|
253
|
+
marginTop: '8px',
|
|
254
|
+
marginLeft: '2px'
|
|
254
255
|
}
|
|
255
256
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
256
257
|
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -267,7 +268,7 @@ var DepartmentList = function DepartmentList(props) {
|
|
|
267
268
|
placeholder: '请输入部门名称'
|
|
268
269
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
269
270
|
className: "app-list-head"
|
|
270
|
-
}, /*#__PURE__*/React.createElement("div", null, "\u90E8\u95E8\u5217\u8868"
|
|
271
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u90E8\u95E8\u5217\u8868"), /*#__PURE__*/React.createElement(Button, {
|
|
271
272
|
type: "primary",
|
|
272
273
|
disabled: !authority[10096],
|
|
273
274
|
onClick: function onClick() {
|
|
@@ -92,13 +92,17 @@
|
|
|
92
92
|
|
|
93
93
|
.department-dialog-content {
|
|
94
94
|
.ant-input {
|
|
95
|
-
border:
|
|
95
|
+
border-color: @background-color-base !important;
|
|
96
96
|
|
|
97
97
|
&:focus {
|
|
98
98
|
border-color: @primary-color !important;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
.ant-select-selector {
|
|
103
|
+
border-color: @background-color-base !important;
|
|
104
|
+
}
|
|
105
|
+
|
|
102
106
|
.biz-select-handle-input {
|
|
103
107
|
.ant-input {
|
|
104
108
|
border-color: @background-color-base !important;
|
|
@@ -107,14 +111,41 @@
|
|
|
107
111
|
border-color: @background-color-base !important;
|
|
108
112
|
}
|
|
109
113
|
}
|
|
114
|
+
|
|
115
|
+
&:focus {
|
|
116
|
+
border-color: @primary-color !important;
|
|
117
|
+
}
|
|
110
118
|
}
|
|
111
119
|
|
|
112
|
-
.ant-
|
|
113
|
-
|
|
120
|
+
.ant-input-status-error {
|
|
121
|
+
border: 1px solid #fb5547 !important;
|
|
122
|
+
|
|
123
|
+
&:focus {
|
|
124
|
+
border-color: #fb5547 !important;
|
|
125
|
+
}
|
|
114
126
|
}
|
|
115
127
|
|
|
116
|
-
.ant-select-
|
|
117
|
-
|
|
128
|
+
.ant-select-status-error {
|
|
129
|
+
border: none !important;
|
|
130
|
+
|
|
131
|
+
&:focus {
|
|
132
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.biz-select-handle-status-error.active:not(.disable) {
|
|
137
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.biz-select-handle-status-error {
|
|
141
|
+
.ant-input.ant-input-status-error:focus:not(.ant-input-disable):not(.ant-input-borderless),
|
|
142
|
+
.ant-input.ant-input-status-error-focused:not(.ant-input-disable):not(.ant-input-borderless) {
|
|
143
|
+
box-shadow: none !important;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ant-form-item:last-of-type {
|
|
148
|
+
margin-bottom: 0;
|
|
118
149
|
}
|
|
119
150
|
|
|
120
151
|
color: #5f6085;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.company-setting-tabs {
|
|
23
|
+
height: calc(100% - 78px);
|
|
24
|
+
min-height: 800px;
|
|
23
25
|
margin: 16px;
|
|
24
26
|
background: #fff !important;
|
|
25
27
|
border-radius: 8px;
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.ant-tabs-content {
|
|
41
|
-
padding: 0 24px;
|
|
43
|
+
padding: 0 24px 24px;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
.setting-tab {
|
|
@@ -350,6 +350,11 @@ var RoleList = function RoleList(props) {
|
|
|
350
350
|
label: '通用版本',
|
|
351
351
|
id: 1
|
|
352
352
|
}, roleId);
|
|
353
|
+
form.setFieldsValue({
|
|
354
|
+
systemVersion: {
|
|
355
|
+
id: 1
|
|
356
|
+
}
|
|
357
|
+
});
|
|
353
358
|
setMenuCodeMap({
|
|
354
359
|
map1: codeMap['1'] || codeMap.map1,
|
|
355
360
|
map2: codeMap['2'] || codeMap.map2,
|
|
@@ -362,6 +367,11 @@ var RoleList = function RoleList(props) {
|
|
|
362
367
|
label: '通用版本',
|
|
363
368
|
id: 1
|
|
364
369
|
}, roleId);
|
|
370
|
+
form.setFieldsValue({
|
|
371
|
+
systemVersion: {
|
|
372
|
+
id: 1
|
|
373
|
+
}
|
|
374
|
+
});
|
|
365
375
|
setMenuCodeMap({
|
|
366
376
|
map1: codeMap['1'] || codeMap.map1,
|
|
367
377
|
map2: [],
|
|
@@ -374,6 +384,11 @@ var RoleList = function RoleList(props) {
|
|
|
374
384
|
label: '城商行',
|
|
375
385
|
id: 2
|
|
376
386
|
}, roleId);
|
|
387
|
+
form.setFieldsValue({
|
|
388
|
+
systemVersion: {
|
|
389
|
+
id: 2
|
|
390
|
+
}
|
|
391
|
+
});
|
|
377
392
|
setMenuCodeMap({
|
|
378
393
|
map1: [],
|
|
379
394
|
map2: codeMap['2'] || codeMap.map2,
|
|
@@ -450,7 +465,8 @@ var RoleList = function RoleList(props) {
|
|
|
450
465
|
className: "role-list"
|
|
451
466
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
452
467
|
style: {
|
|
453
|
-
marginTop: '8px'
|
|
468
|
+
marginTop: '8px',
|
|
469
|
+
marginLeft: '2px'
|
|
454
470
|
}
|
|
455
471
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
456
472
|
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -487,6 +503,15 @@ var RoleList = function RoleList(props) {
|
|
|
487
503
|
width: 1220,
|
|
488
504
|
className: "add-drawer",
|
|
489
505
|
closable: true,
|
|
506
|
+
closeIcon: /*#__PURE__*/React.createElement("i", {
|
|
507
|
+
style: {
|
|
508
|
+
fontSize: 24,
|
|
509
|
+
marginRight: 0,
|
|
510
|
+
color: '#021429',
|
|
511
|
+
fontWeight: 'normal'
|
|
512
|
+
},
|
|
513
|
+
className: "bsicon qingchu"
|
|
514
|
+
}),
|
|
490
515
|
footerStyle: {
|
|
491
516
|
border: 'none',
|
|
492
517
|
padding: '24px',
|
|
@@ -95,6 +95,10 @@
|
|
|
95
95
|
.ant-drawer-header-title {
|
|
96
96
|
flex-direction: row-reverse;
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
.ant-drawer-close {
|
|
100
|
+
margin-right: 0 !important;
|
|
101
|
+
}
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
.role-dialog-content {
|
|
@@ -106,13 +110,17 @@
|
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
.ant-input {
|
|
109
|
-
border:
|
|
113
|
+
border-color: @background-color-base !important;
|
|
110
114
|
|
|
111
115
|
&:focus {
|
|
112
116
|
border-color: @primary-color !important;
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
|
|
120
|
+
.ant-select-selector {
|
|
121
|
+
border-color: @background-color-base !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
.biz-select-handle-input {
|
|
117
125
|
.ant-input {
|
|
118
126
|
border-color: @background-color-base !important;
|
|
@@ -121,6 +129,37 @@
|
|
|
121
129
|
border-color: @background-color-base !important;
|
|
122
130
|
}
|
|
123
131
|
}
|
|
132
|
+
|
|
133
|
+
&:focus {
|
|
134
|
+
border-color: @primary-color !important;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ant-input-status-error {
|
|
139
|
+
border: 1px solid #fb5547 !important;
|
|
140
|
+
|
|
141
|
+
&:focus {
|
|
142
|
+
border-color: #fb5547 !important;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ant-select-status-error {
|
|
147
|
+
border: none !important;
|
|
148
|
+
|
|
149
|
+
&:focus {
|
|
150
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.biz-select-handle-status-error.active:not(.disable) {
|
|
155
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.biz-select-handle-status-error {
|
|
159
|
+
.ant-input.ant-input-status-error:focus:not(.ant-input-disable):not(.ant-input-borderless),
|
|
160
|
+
.ant-input.ant-input-status-error-focused:not(.ant-input-disable):not(.ant-input-borderless) {
|
|
161
|
+
box-shadow: none !important;
|
|
162
|
+
}
|
|
124
163
|
}
|
|
125
164
|
|
|
126
165
|
.ant-form-item:last-of-type {
|
|
@@ -55,10 +55,13 @@
|
|
|
55
55
|
|
|
56
56
|
&:focus {
|
|
57
57
|
border-color: @primary-color !important;
|
|
58
|
-
box-shadow: #f55858 !important;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
61
|
+
.ant-select-selector {
|
|
62
|
+
border-color: @background-color-base !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
62
65
|
> div {
|
|
63
66
|
display: flex;
|
|
64
67
|
gap: 12px;
|
|
@@ -273,13 +276,17 @@
|
|
|
273
276
|
|
|
274
277
|
.user-dialog-content {
|
|
275
278
|
.ant-input {
|
|
276
|
-
border:
|
|
279
|
+
border-color: @background-color-base !important;
|
|
277
280
|
|
|
278
281
|
&:focus {
|
|
279
282
|
border-color: @primary-color !important;
|
|
280
283
|
}
|
|
281
284
|
}
|
|
282
285
|
|
|
286
|
+
.ant-select-selector {
|
|
287
|
+
border-color: @background-color-base !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
283
290
|
.biz-select-handle-input {
|
|
284
291
|
.ant-input {
|
|
285
292
|
border-color: @background-color-base !important;
|
|
@@ -288,6 +295,43 @@
|
|
|
288
295
|
border-color: @background-color-base !important;
|
|
289
296
|
}
|
|
290
297
|
}
|
|
298
|
+
|
|
299
|
+
&:focus {
|
|
300
|
+
border-color: @primary-color !important;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.ant-input-status-error {
|
|
305
|
+
border: 1px solid #fb5547 !important;
|
|
306
|
+
|
|
307
|
+
&:focus {
|
|
308
|
+
border-color: #fb5547 !important;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.account-status {
|
|
313
|
+
.ant-form-item-row {
|
|
314
|
+
height: 24px;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ant-select-status-error {
|
|
319
|
+
border: none !important;
|
|
320
|
+
|
|
321
|
+
&:focus {
|
|
322
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.biz-select-handle-status-error.active:not(.disable) {
|
|
327
|
+
box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.biz-select-handle-status-error {
|
|
331
|
+
.ant-input.ant-input-status-error:focus:not(.ant-input-disable):not(.ant-input-borderless),
|
|
332
|
+
.ant-input.ant-input-status-error-focused:not(.ant-input-disable):not(.ant-input-borderless) {
|
|
333
|
+
box-shadow: none !important;
|
|
334
|
+
}
|
|
291
335
|
}
|
|
292
336
|
|
|
293
337
|
.ant-form-item:last-of-type {
|
|
@@ -295,6 +339,8 @@
|
|
|
295
339
|
}
|
|
296
340
|
|
|
297
341
|
.no-rules-label {
|
|
342
|
+
margin-bottom: 20px;
|
|
343
|
+
|
|
298
344
|
.ant-form-item-label {
|
|
299
345
|
width: 50px !important;
|
|
300
346
|
}
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import './index.less';
|
|
15
|
-
import { Button, Form, Input, notification, Radio, TreeSelect } from 'antd';
|
|
15
|
+
import { Button, Form, Input, notification, Radio, Select, TreeSelect } from 'antd';
|
|
16
16
|
import request from './../../../utils/ajax';
|
|
17
17
|
import apis from './../../../constants/api';
|
|
18
18
|
import { BizDialog, BizSelect, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
@@ -231,16 +231,29 @@ var UserGroup = function UserGroup(props) {
|
|
|
231
231
|
}));
|
|
232
232
|
},
|
|
233
233
|
placeholder: '请输入姓名'
|
|
234
|
-
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u89D2\u8272"), /*#__PURE__*/React.createElement(
|
|
234
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u89D2\u8272"), /*#__PURE__*/React.createElement(Select, {
|
|
235
235
|
options: userList,
|
|
236
236
|
placeholder: '请选择角色',
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
fieldNames: {
|
|
238
|
+
label: 'roleName',
|
|
239
|
+
value: 'id'
|
|
240
|
+
},
|
|
241
|
+
style: {
|
|
242
|
+
width: '248px'
|
|
243
|
+
},
|
|
244
|
+
allowClear: true,
|
|
239
245
|
onChange: function onChange(e) {
|
|
240
246
|
setQueryParams(_objectSpread(_objectSpread({}, queryParams), {}, {
|
|
241
|
-
roleId: e
|
|
247
|
+
roleId: e
|
|
242
248
|
}));
|
|
243
|
-
}
|
|
249
|
+
},
|
|
250
|
+
suffixIcon: /*#__PURE__*/React.createElement("i", {
|
|
251
|
+
style: {
|
|
252
|
+
fontSize: 14,
|
|
253
|
+
color: '#5f6085'
|
|
254
|
+
},
|
|
255
|
+
className: "bsicon xiangxia"
|
|
256
|
+
})
|
|
244
257
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
245
258
|
className: "invite-list"
|
|
246
259
|
}, /*#__PURE__*/React.createElement("div", null, "\u6210\u5458\u5217\u8868"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -335,6 +348,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
335
348
|
})), !isAdmin && /*#__PURE__*/React.createElement(Form.Item, {
|
|
336
349
|
name: 'accountStatus',
|
|
337
350
|
label: "\u72B6\u6001",
|
|
351
|
+
className: "account-status",
|
|
338
352
|
rules: [{
|
|
339
353
|
required: true,
|
|
340
354
|
message: '请选择状态'
|