@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.
Files changed (56) hide show
  1. package/es/components/settingTabs/index.less +3 -0
  2. package/es/constants/api.d.ts +21 -0
  3. package/es/constants/api.js +26 -1
  4. package/es/constants/icons/demo.css +0 -0
  5. package/es/constants/icons/demo_index.html +0 -0
  6. package/es/constants/icons/iconfont.css +0 -0
  7. package/es/constants/icons/iconfont.js +0 -0
  8. package/es/constants/icons/iconfont.json +0 -0
  9. package/es/constants/icons/iconfont.ttf +0 -0
  10. package/es/constants/icons/iconfont.woff +0 -0
  11. package/es/constants/icons/iconfont.woff2 +0 -0
  12. package/es/modules/appSettings/demo/index.d.ts +3 -1
  13. package/es/modules/appSettings/demo/index.js +16 -12
  14. package/es/modules/appSettings/index.js +6 -7
  15. package/es/modules/appSettings/member/index.js +75 -82
  16. package/es/modules/appSettings/member/index.less +4 -1
  17. package/es/modules/appSettings/member/modal.js +1 -1
  18. package/es/modules/companySetting/appList/index.js +24 -21
  19. package/es/modules/companySetting/appList/index.less +22 -0
  20. package/es/modules/companySetting/cost/index.js +2 -2
  21. package/es/modules/companySetting/cost/index.less +7 -0
  22. package/es/modules/companySetting/demo.js +3 -4
  23. package/es/modules/companySetting/department/index.d.ts +7 -0
  24. package/es/modules/companySetting/department/index.js +414 -0
  25. package/es/modules/companySetting/department/index.less +157 -0
  26. package/es/modules/companySetting/index.d.ts +0 -2
  27. package/es/modules/companySetting/index.js +189 -372
  28. package/es/modules/companySetting/index.less +65 -0
  29. package/es/modules/companySetting/info/index.js +6 -1
  30. package/es/modules/companySetting/info/index.less +7 -0
  31. package/es/modules/companySetting/operationLog/index.js +10 -4
  32. package/es/modules/companySetting/operationLog/index.less +6 -0
  33. package/es/modules/companySetting/role/index.d.ts +6 -0
  34. package/es/modules/companySetting/role/index.js +716 -0
  35. package/es/modules/companySetting/role/index.less +220 -0
  36. package/es/modules/companySetting/style/common.less +13 -2
  37. package/es/modules/companySetting/user/index.d.ts +1 -0
  38. package/es/modules/companySetting/user/index.js +224 -278
  39. package/es/modules/companySetting/user/index.less +199 -10
  40. package/es/modules/companySetting/user/invite.d.ts +4 -8
  41. package/es/modules/companySetting/user/invite.js +335 -174
  42. package/es/modules/companySetting/userGroup/groupItem.js +1 -1
  43. package/es/modules/companySetting/virtualApp/panels/list.js +1 -1
  44. package/es/modules/companySetting/wechatBinding/index.js +1 -1
  45. package/es/modules/companySetting/wechatBinding/index.less +10 -0
  46. package/es/modules/systemSetting/demo.d.ts +3 -0
  47. package/es/modules/systemSetting/demo.js +10 -0
  48. package/es/modules/systemSetting/notice/configItem/index.js +5 -1
  49. package/es/requests/department.d.ts +15 -0
  50. package/es/requests/department.js +68 -0
  51. package/es/requests/role.d.ts +25 -0
  52. package/es/requests/role.js +100 -0
  53. package/es/types/companySetting.d.ts +29 -2
  54. package/es/utils/util.d.ts +29 -0
  55. package/es/utils/util.js +77 -0
  56. package/package.json +5 -5
@@ -1,26 +1,83 @@
1
1
  @import './../../../constants/icons/iconfont.css';
2
+
2
3
  .company-user {
3
4
  height: 100%;
4
5
  padding: 0;
5
6
  overflow: auto;
6
7
  color: #2f3f57;
7
8
  font-size: 14px;
9
+
8
10
  .company-setting-user {
9
11
  padding: 0;
10
12
  }
13
+
11
14
  .invite {
12
15
  & > p {
13
16
  margin-bottom: 10px;
14
17
  }
18
+
19
+ .invite-list {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: space-between;
23
+ margin-top: 24px;
24
+
25
+ div {
26
+ color: var(--io-n, #021429);
27
+ font-weight: 500;
28
+ font-size: 16px;
29
+ font-family: PingFang SC;
30
+ font-style: normal;
31
+ line-height: 24px;
32
+ }
33
+ }
15
34
  }
35
+
16
36
  .user-list-head {
17
37
  margin-bottom: 5px;
18
38
  }
39
+
19
40
  .invite-control {
20
41
  position: relative;
21
42
  display: flex;
43
+ gap: 24px;
22
44
  align-items: center;
23
45
  justify-content: flex-start;
46
+ margin-top: 8px;
47
+
48
+ .biz-select-handle-input {
49
+ width: 248px;
50
+ }
51
+
52
+ .ant-input {
53
+ width: 248px;
54
+ border: 1px solid #fafafb;
55
+
56
+ &:focus {
57
+ border-color: @primary-color !important;
58
+ }
59
+ }
60
+
61
+ .ant-select-selector {
62
+ border-color: @background-color-base !important;
63
+ }
64
+
65
+ > div {
66
+ display: flex;
67
+ gap: 12px;
68
+ align-items: center;
69
+
70
+ > span {
71
+ color: var(--3, #5f6085);
72
+ font-weight: 400;
73
+ font-size: 14px;
74
+ font-family: PingFang SC;
75
+ font-style: normal;
76
+ line-height: normal;
77
+ text-align: right;
78
+ }
79
+ }
80
+
24
81
  .invite-list-panel {
25
82
  position: absolute;
26
83
  top: 35px;
@@ -31,82 +88,102 @@
31
88
  background: #fff;
32
89
  border: 1px solid #dadada;
33
90
  border-radius: 3px;
91
+
34
92
  li {
35
93
  padding: 10px;
94
+
36
95
  &:hover {
37
96
  color: #0ea1eb;
38
97
  cursor: pointer;
39
98
  }
40
99
  }
100
+
41
101
  li.noData {
42
102
  height: 150px;
43
103
  line-height: 100px;
44
104
  text-align: center;
45
105
  }
46
106
  }
107
+
47
108
  .c-button {
48
109
  margin-left: 20px;
49
110
  padding: 0 2.4em;
50
111
  }
112
+
51
113
  .c-input {
52
114
  border-radius: 3px 0 0 3px;
53
115
  }
116
+
54
117
  .c-active {
55
118
  border-color: #d1d1d1;
56
119
  }
120
+
57
121
  .c-select {
58
122
  .c-placeholder {
59
123
  color: #bcbec2;
60
124
  }
125
+
61
126
  .c-select-handle {
62
127
  border-left: none;
63
128
  border-radius: 0 3px 3px 0;
64
129
  }
65
130
  }
66
131
  }
132
+
67
133
  .user-list {
68
134
  min-height: 500px;
69
- margin-top: 20px;
135
+ margin-top: 16px;
136
+
70
137
  .member-filter {
71
138
  float: right;
72
139
  margin-bottom: 10px;
73
140
  margin-left: 10px;
74
141
  }
142
+
75
143
  .super-admin {
76
144
  color: #f5bf4d;
77
145
  font-size: 12px;
78
146
  }
147
+
79
148
  .icon-eye {
80
149
  color: #75787d;
81
150
  cursor: pointer;
151
+
82
152
  &:hover {
83
153
  color: #0ea1eb;
84
154
  }
85
155
  }
156
+
86
157
  .operate {
87
158
  display: flex;
88
159
  justify-content: space-around;
89
160
  margin: 0 auto;
161
+
90
162
  .icon-zhongxinfasong {
91
163
  font-size: 18px;
92
164
  transform: translateY(-3px);
93
165
  }
166
+
94
167
  span {
95
168
  color: #0ea1eb;
96
169
  font-size: 16px;
97
170
  cursor: pointer;
171
+
98
172
  &:hover {
99
173
  color: #f55858;
100
174
  }
101
175
  }
102
176
  }
177
+
103
178
  .c-grid-header .c-grid-header-row .c-grid-header-cell {
104
179
  text-align: left !important;
105
180
  border: none;
181
+
106
182
  &:last-child {
107
183
  text-align: center !important;
108
184
  }
109
185
  }
186
+
110
187
  .c-grid-body {
111
188
  .c-grid-cell {
112
189
  text-align: left !important;
@@ -114,6 +191,7 @@
114
191
  border-top: 1px solid #d1d1d1;
115
192
  }
116
193
  }
194
+
117
195
  .c-pagination .c-select:first-of-type {
118
196
  display: none;
119
197
  }
@@ -121,42 +199,153 @@
121
199
 
122
200
  .over-hand {
123
201
  position: relative;
202
+ bottom: 18px;
124
203
  display: flex;
125
204
  align-items: center;
126
- justify-content: flex-end;
127
- margin-top: 80px;
205
+ width: 300px;
206
+ height: 0;
207
+
208
+ > span {
209
+ margin-right: 12px;
210
+ color: var(--3, #5f6085);
211
+ font-weight: 400;
212
+ font-size: 14px;
213
+ font-family: PingFang SC;
214
+ font-style: normal;
215
+ line-height: normal;
216
+ text-align: right;
217
+ }
218
+
219
+ .biz-select-handle-input {
220
+ width: 136px;
221
+ }
222
+
128
223
  .c-select {
224
+ width: 136px;
129
225
  margin-left: 10px;
130
226
  }
131
227
  }
132
228
  }
229
+
133
230
  .group-auth-list {
134
231
  height: 532px;
232
+
135
233
  .auth-config-detail {
136
234
  max-height: none;
137
235
  border-bottom: 1px solid #dadada;
236
+
138
237
  &:last-child {
139
238
  border: none;
140
239
  }
141
240
  }
142
241
  }
242
+
143
243
  .popover-group-auth-list {
144
244
  overflow-y: scroll;
145
245
  }
246
+
146
247
  .copy-dialog .foot {
147
248
  margin-top: 20px;
249
+
148
250
  a {
149
251
  margin-left: 0;
150
252
  }
253
+
151
254
  & > * {
152
255
  float: right;
153
256
  margin-left: 10px;
154
257
  }
155
258
  }
156
- // [class^='icon-'],
157
- // [class*=' icon-'] {
158
- // font-family: 'zhuge' !important;
159
- // font-style: normal;
160
- // -webkit-font-smoothing: antialiased;
161
- // -moz-osx-font-smoothing: grayscale;
162
- // }
259
+
260
+ .setting-bizDialog-zh {
261
+ display: grid;
262
+ gap: 16px;
263
+ width: 400px;
264
+
265
+ li {
266
+ height: 20px;
267
+ }
268
+
269
+ li:nth-child(3) {
270
+ display: flex;
271
+ align-items: center;
272
+ margin-top: 8px;
273
+ color: var(--unnamed, #fd9f41);
274
+ line-height: 20px;
275
+ }
276
+ }
277
+
278
+ .user-dialog-content {
279
+ .ant-input {
280
+ border-color: @background-color-base !important;
281
+
282
+ &:focus {
283
+ border-color: @primary-color !important;
284
+ }
285
+ }
286
+
287
+ .ant-select-selector {
288
+ border-color: @background-color-base !important;
289
+ }
290
+
291
+ .biz-select-handle-input {
292
+ .ant-input {
293
+ border-color: @background-color-base !important;
294
+
295
+ &:focus {
296
+ border-color: @background-color-base !important;
297
+ }
298
+ }
299
+
300
+ &:focus {
301
+ border-color: @primary-color !important;
302
+ }
303
+ }
304
+
305
+ .ant-input-status-error {
306
+ border: 1px solid #fb5547 !important;
307
+
308
+ &:focus {
309
+ border-color: #fb5547 !important;
310
+ }
311
+ }
312
+
313
+ .account-status {
314
+ .ant-form-item-row {
315
+ height: 24px;
316
+ }
317
+ }
318
+
319
+ .ant-select-status-error {
320
+ border: none !important;
321
+
322
+ &:focus {
323
+ box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
324
+ }
325
+ }
326
+
327
+ .biz-select-handle-status-error.active:not(.disable) {
328
+ box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2) !important;
329
+ }
330
+
331
+ .biz-select-handle-status-error {
332
+ .ant-input.ant-input-status-error:focus:not(.ant-input-disable):not(.ant-input-borderless),
333
+ .ant-input.ant-input-status-error-focused:not(.ant-input-disable):not(.ant-input-borderless) {
334
+ box-shadow: none !important;
335
+ }
336
+ }
337
+
338
+ .ant-form-item:last-of-type {
339
+ margin-bottom: 0;
340
+ }
341
+
342
+ .no-rules-label {
343
+ margin-bottom: 20px;
344
+
345
+ .ant-form-item-label {
346
+ width: 50px !important;
347
+ }
348
+ }
349
+
350
+ color: #5f6085;
351
+ }
@@ -1,15 +1,11 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- import { AllGroupInfosItem, AllMembersItem, ApiResult } from '../../../types';
3
+ import { AllGroupInfosItem, AllMembersItem, ApiResult, queryPanelItem } from '../../../types';
4
4
  declare const UserGroup: React.FC<{
5
- ENVIRONMENT: string;
6
5
  allGroupInfos: AllGroupInfosItem[];
7
- isSso: boolean;
8
- showPwdPanel: (userInfo: {
9
- account: string;
10
- pwd: string;
11
- userConfig?: AllMembersItem;
12
- }) => void;
6
+ queryPanel: (params: queryPanelItem) => void;
7
+ userEditAuthData: AllMembersItem;
8
+ companyId: number;
13
9
  createMembersCallback: (res: ApiResult<void>, userConfig: AllMembersItem | false) => void;
14
10
  }>;
15
11
  export default UserGroup;