@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
@@ -0,0 +1,220 @@
1
+ @import './../../../constants/icons/iconfont.css';
2
+
3
+ .role-list {
4
+ .ant-form-item {
5
+ .ant-form-item-control-input {
6
+ width: 392px;
7
+ height: 32px;
8
+ }
9
+ }
10
+
11
+ .ant-input {
12
+ border-color: @background-color-base !important;
13
+
14
+ &:focus {
15
+ border-color: @primary-color !important;
16
+ }
17
+ }
18
+
19
+ .ant-table-cell {
20
+ height: 50px;
21
+ }
22
+
23
+ .ant-table-row-indent + .ant-table-row-expand-icon {
24
+ margin-top: 0;
25
+ }
26
+
27
+ height: 100%;
28
+ padding: 0;
29
+ overflow: auto;
30
+
31
+ .app-list-head {
32
+ display: flex;
33
+ align-items: center;
34
+ justify-content: space-between;
35
+ margin-top: 24px;
36
+
37
+ > div {
38
+ color: var(--io-n, #021429);
39
+ font-weight: 500;
40
+ font-size: 16px;
41
+ font-family: PingFang SC;
42
+ font-style: normal;
43
+ line-height: 24px;
44
+ /* 150% */
45
+ }
46
+ }
47
+
48
+ .platform-icons {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: flex-start;
52
+ width: 100%;
53
+
54
+ span {
55
+ margin-right: 10px;
56
+ color: #cfcfcf;
57
+ font-size: 16px;
58
+ }
59
+ }
60
+
61
+ .role-list-content {
62
+ margin-top: 16px;
63
+
64
+ .c-grid-cell,
65
+ .c-grid-header-cell {
66
+ text-align: left !important;
67
+ border: none;
68
+ border-bottom: 1px solid #d1d1d1;
69
+ }
70
+
71
+ .c-grid-cell {
72
+ text-align: left !important;
73
+ }
74
+
75
+ .c-grid-body .c-grid-row:nth-child(2n) {
76
+ background: #fff !important;
77
+ }
78
+
79
+ .app-name {
80
+ cursor: pointer;
81
+
82
+ &:hover {
83
+ color: #00a0ea;
84
+ }
85
+ }
86
+
87
+ .operating {
88
+ display: flex;
89
+ gap: 16px;
90
+ }
91
+ }
92
+ }
93
+
94
+ .add-drawer {
95
+ .ant-drawer-header-title {
96
+ flex-direction: row-reverse;
97
+ }
98
+
99
+ .ant-drawer-close {
100
+ margin-right: 0 !important;
101
+ }
102
+ }
103
+
104
+ .role-dialog-content {
105
+ .ant-form-item {
106
+ .ant-form-item-control-input {
107
+ width: 484px;
108
+ min-height: 32px;
109
+ }
110
+ }
111
+
112
+ .ant-input {
113
+ border-color: @background-color-base !important;
114
+
115
+ &:focus {
116
+ border-color: @primary-color !important;
117
+ }
118
+ }
119
+
120
+ .ant-select-selector {
121
+ border-color: @background-color-base !important;
122
+ }
123
+
124
+ .biz-select-handle-input {
125
+ .ant-input {
126
+ border-color: @background-color-base !important;
127
+
128
+ &:focus {
129
+ border-color: @background-color-base !important;
130
+ }
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
+ }
163
+ }
164
+
165
+ .ant-form-item:last-of-type {
166
+ margin-bottom: 0;
167
+ }
168
+
169
+ color: #5f6085;
170
+
171
+ .ant-form-item-label {
172
+ width: 80px;
173
+ text-align: right;
174
+ }
175
+
176
+ .menuCode-map {
177
+ .ant-form-item-label::before {
178
+ display: inline-block;
179
+ margin-right: 4px;
180
+ color: #ff4d4f;
181
+ font-size: 14px;
182
+ font-family: SimSun, sans-serif;
183
+ line-height: 1;
184
+ content: '*';
185
+ }
186
+
187
+ .ant-form-item-control-input {
188
+ width: 100%;
189
+ height: auto;
190
+ padding: 14px 16px;
191
+ border: 1px solid var(--io-n-1, #e6e7ea);
192
+ border-radius: 4px;
193
+
194
+ .ant-form-item {
195
+ margin-bottom: 8px;
196
+ }
197
+
198
+ .ant-input {
199
+ border: 1px solid #fafafb;
200
+
201
+ &:focus {
202
+ border-color: @primary-color !important;
203
+ }
204
+ }
205
+
206
+ .ant-form-item-control-input {
207
+ width: 484px;
208
+ padding: 0;
209
+ border: none;
210
+ }
211
+ }
212
+ }
213
+
214
+ .is-encryption {
215
+ .ant-form-item-label {
216
+ width: 116px;
217
+ text-align: right;
218
+ }
219
+ }
220
+ }
@@ -1,9 +1,11 @@
1
1
  @import './reset.less';
2
+
2
3
  .setting {
3
4
  height: 100%;
4
- overflow-y: hidden;
5
+ overflow-y: auto;
5
6
  font-size: 14px;
6
- background: #eef0f3;
7
+ background: #fafafb;
8
+
7
9
  .disabled {
8
10
  background: #ccc !important;
9
11
  border-color: #ccc !important;
@@ -13,24 +15,30 @@
13
15
 
14
16
  .setting-content {
15
17
  padding: 0px;
18
+
16
19
  .setting-title {
17
20
  display: flex;
18
21
  align-items: center;
19
22
  margin-bottom: 0px;
23
+
20
24
  .icon-set,
21
25
  .icon-company {
22
26
  margin-right: 10px;
23
27
  }
28
+
24
29
  .app-name {
25
30
  margin-left: 3px;
26
31
  font-size: 14px;
27
32
  }
28
33
  }
34
+
29
35
  .setting-body {
30
36
  display: flex;
31
37
  align-items: flex-start;
38
+
32
39
  .setting-tab {
33
40
  border-top: 1px solid #dadada;
41
+
34
42
  li > a {
35
43
  z-index: 1;
36
44
  display: inline-block;
@@ -46,17 +54,20 @@
46
54
  border: 1px solid #dadada;
47
55
  border-top: none;
48
56
  cursor: pointer;
57
+
49
58
  &:hover {
50
59
  color: #000;
51
60
  font-weight: bold;
52
61
  }
53
62
  }
63
+
54
64
  .router-link-active {
55
65
  color: #000;
56
66
  font-weight: bold;
57
67
  }
58
68
  }
59
69
  }
70
+
60
71
  .setting-component {
61
72
  width: 914px;
62
73
  height: calc(100vh - 130px);
@@ -12,6 +12,7 @@ declare const User: React.FC<{
12
12
  leftMenus: LeftMenusItem[];
13
13
  isAdmin: boolean;
14
14
  serviceType: number;
15
+ companyId: number;
15
16
  removeUserCallback: (delIndex: number) => void;
16
17
  changeUserAuthCallback: (id: number) => void;
17
18
  createMembersCallback: (res: ApiResult<void>, userConfig?: AllMembersItem | false) => void;