@zgfe/modules-settings 1.2.12 → 1.2.13-alpha.1

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 (43) hide show
  1. package/README.md +33 -33
  2. package/es/components/pageLoading/index.less +7 -7
  3. package/es/components/settingTabs/index.less +47 -47
  4. package/es/constants/api.d.ts +1 -0
  5. package/es/constants/api.js +3 -1
  6. package/es/constants/icons/demo.css +539 -539
  7. package/es/constants/icons/demo_index.html +8537 -8537
  8. package/es/constants/icons/iconfont.css +1467 -1467
  9. package/es/constants/icons/iconfont.json +2550 -2550
  10. package/es/global.d.ts +4 -4
  11. package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
  12. package/es/modules/appSettings/member/index.less +18 -18
  13. package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
  14. package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
  15. package/es/modules/companySetting/appList/index.js +59 -2
  16. package/es/modules/companySetting/appList/index.less +100 -100
  17. package/es/modules/companySetting/cost/index.less +31 -31
  18. package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
  19. package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
  20. package/es/modules/companySetting/edit/styles/authModule.less +82 -82
  21. package/es/modules/companySetting/edit/styles/user.less +54 -54
  22. package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
  23. package/es/modules/companySetting/index.less +24 -24
  24. package/es/modules/companySetting/info/index.less +35 -35
  25. package/es/modules/companySetting/operationLog/index.less +27 -27
  26. package/es/modules/companySetting/style/common.less +68 -68
  27. package/es/modules/companySetting/style/reset.less +117 -117
  28. package/es/modules/companySetting/user/index.less +162 -162
  29. package/es/modules/companySetting/userGroup/index.less +6 -6
  30. package/es/modules/companySetting/userGroup/style/authConfigDetail.less +44 -44
  31. package/es/modules/companySetting/userGroup/style/index.less +79 -79
  32. package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
  33. package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
  34. package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
  35. package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
  36. package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
  37. package/es/modules/companySetting/wechatBinding/index.less +48 -48
  38. package/es/modules/personalSetting/securityLog/index.less +10 -10
  39. package/es/modules/personalSetting/styles/unbinding.less +73 -73
  40. package/es/modules/systemSetting/notice/configItem/index.less +15 -15
  41. package/es/modules/systemSetting/notice/edit/index.less +26 -26
  42. package/es/types/companySetting.d.ts +1 -0
  43. package/package.json +2 -2
package/es/global.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- interface Window {
2
- __POWERED_BY_QIANKUN__?: any;
3
- __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: any;
4
- }
1
+ interface Window {
2
+ __POWERED_BY_QIANKUN__?: any;
3
+ __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: any;
4
+ }
@@ -1,5 +1,5 @@
1
- .explain {
2
- margin-left: 12px;
3
- color: #b2b2b2;
4
- font-size: 12px;
5
- }
1
+ .explain {
2
+ margin-left: 12px;
3
+ color: #b2b2b2;
4
+ font-size: 12px;
5
+ }
@@ -1,18 +1,18 @@
1
- .seting-modal-box {
2
- .ant-modal-header {
3
- padding: 24px 24px 8px 24px !important;
4
- font-size: 24px;
5
- }
6
- .ant-modal-body {
7
- height: 60vh;
8
- padding: 0px 24px !important;
9
- }
10
- .ant-modal-footer {
11
- display: none;
12
- }
13
- .ant-modal-close-x {
14
- margin: 10px 10px 0 0;
15
- color: #242541;
16
- font-size: 20px;
17
- }
18
- }
1
+ .seting-modal-box {
2
+ .ant-modal-header {
3
+ padding: 24px 24px 8px 24px !important;
4
+ font-size: 24px;
5
+ }
6
+ .ant-modal-body {
7
+ height: 60vh;
8
+ padding: 0px 24px !important;
9
+ }
10
+ .ant-modal-footer {
11
+ display: none;
12
+ }
13
+ .ant-modal-close-x {
14
+ margin: 10px 10px 0 0;
15
+ color: #242541;
16
+ font-size: 20px;
17
+ }
18
+ }
@@ -1,28 +1,28 @@
1
- @import url(./table.less);
2
-
3
- .app-setting-virtual-source {
4
- height: 100%;
5
- min-height: 120px;
6
- padding: 20px;
7
- overflow: auto;
8
-
9
- .source-app-list {
10
- width: 100%;
11
- height: auto;
12
-
13
- .source-app-name {
14
- display: inline-block;
15
- width: 354px;
16
- margin-left: 10px;
17
-
18
- .source-app-events-num {
19
- display: inline-block;
20
- // margin-left: 10px;
21
-
22
- .empty-data {
23
- line-height: 47px;
24
- }
25
- }
26
- }
27
- }
28
- }
1
+ @import url(./table.less);
2
+
3
+ .app-setting-virtual-source {
4
+ height: 100%;
5
+ min-height: 120px;
6
+ padding: 20px;
7
+ overflow: auto;
8
+
9
+ .source-app-list {
10
+ width: 100%;
11
+ height: auto;
12
+
13
+ .source-app-name {
14
+ display: inline-block;
15
+ width: 354px;
16
+ margin-left: 10px;
17
+
18
+ .source-app-events-num {
19
+ display: inline-block;
20
+ // margin-left: 10px;
21
+
22
+ .empty-data {
23
+ line-height: 47px;
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
@@ -1,51 +1,51 @@
1
- .virtual-app-table-box {
2
- display: flex;
3
- flex-direction: column;
4
- // width: 100%;
5
- font-size: 14px;
6
- border: 1px solid #dadada;
7
-
8
- .table-title {
9
- display: flex;
10
- flex-shrink: 0;
11
- // padding: 0 20px;
12
- box-sizing: border-box;
13
- height: 32px;
14
- color: #565656;
15
- font-size: 0;
16
- line-height: 32px;
17
- background: #e6e6e6;
18
-
19
- > div,
20
- > span {
21
- display: inline-block;
22
- // margin-left: 10px;
23
- font-size: 14px;
24
-
25
- .table-body {
26
- min-height: 47px;
27
- padding: 0 20px;
28
-
29
- .empty-data {
30
- text-align: center;
31
-
32
- > div,
33
- > span {
34
- border-bottom: 1px solid #eeeeee;
35
-
36
- > div,
37
- > span {
38
- display: inline-block;
39
- margin-left: 10px;
40
- font-size: 14px;
41
-
42
- &:last-child {
43
- border: none;
44
- }
45
- }
46
- }
47
- }
48
- }
49
- }
50
- }
51
- }
1
+ .virtual-app-table-box {
2
+ display: flex;
3
+ flex-direction: column;
4
+ // width: 100%;
5
+ font-size: 14px;
6
+ border: 1px solid #dadada;
7
+
8
+ .table-title {
9
+ display: flex;
10
+ flex-shrink: 0;
11
+ // padding: 0 20px;
12
+ box-sizing: border-box;
13
+ height: 32px;
14
+ color: #565656;
15
+ font-size: 0;
16
+ line-height: 32px;
17
+ background: #e6e6e6;
18
+
19
+ > div,
20
+ > span {
21
+ display: inline-block;
22
+ // margin-left: 10px;
23
+ font-size: 14px;
24
+
25
+ .table-body {
26
+ min-height: 47px;
27
+ padding: 0 20px;
28
+
29
+ .empty-data {
30
+ text-align: center;
31
+
32
+ > div,
33
+ > span {
34
+ border-bottom: 1px solid #eeeeee;
35
+
36
+ > div,
37
+ > span {
38
+ display: inline-block;
39
+ margin-left: 10px;
40
+ font-size: 14px;
41
+
42
+ &:last-child {
43
+ border: none;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
@@ -8,7 +8,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useContext, useEffect, useRef, useState } from 'react';
9
9
  import './index.less';
10
10
  import util from './../../../utils/util';
11
- import { Button, Form, Input, Radio, notification } from 'antd';
11
+ import { Button, Form, Input, Radio, notification, Switch } from 'antd';
12
12
  import request from './../../../utils/ajax';
13
13
  import api from './../../../constants/api';
14
14
  import { BizTable, BizDialog, BizGlobalDataContext, ajax, IconFont } from '@zgfe/business-lib';
@@ -72,6 +72,7 @@ var appList = function appList(props) {
72
72
  setCepAppList = _useState12[1];
73
73
  var formRef = useRef();
74
74
  useEffect(function () {
75
+ console.log(companyRealAppList, 'companyRealAppList');
75
76
  if (system === 'CEP') {
76
77
  request(api.setting.queryAppList, {
77
78
  method: 'post'
@@ -82,6 +83,45 @@ var appList = function appList(props) {
82
83
  });
83
84
  }
84
85
  }, []);
86
+ // 处理开关状态变更
87
+ var handleSwitchChange = function handleSwitchChange(checked, record) {
88
+ var data = {
89
+ appKey: record.appKey,
90
+ appId: record.id,
91
+ isOpen: checked ? 1 : 0,
92
+ appName: record.appName
93
+ };
94
+ request(api.setting.updateAppName, {
95
+ method: 'post',
96
+ params: data
97
+ }).then(function () {
98
+ notification.success({
99
+ message: '状态更新成功'
100
+ });
101
+ var cloneAuthConfig = util.clone(authConfig);
102
+ if (!(cloneAuthConfig.dataAuth.length === 1 && cloneAuthConfig.dataAuth[0].appId === 0)) {
103
+ var index = cloneAuthConfig.dataAuth.findIndex(function (item) {
104
+ return item.appId === delAppId;
105
+ });
106
+ cloneAuthConfig.dataAuth.splice(index, 1);
107
+ }
108
+ var formData = {
109
+ userId: id,
110
+ authConfig: JSON.stringify(cloneAuthConfig),
111
+ groupIds: findGroups().join(',')
112
+ };
113
+ var hasAuthApplistByDel = companyRealAppList.filter(function (item) {
114
+ return item.id !== delAppId;
115
+ });
116
+ var appId = hasAuthApplistByDel.length ? hasAuthApplistByDel[0].id : 0;
117
+ // 通知数据刷新
118
+ delAppCallback(formData, appId);
119
+ }).catch(function (err) {
120
+ notification.error({
121
+ message: '状态更新失败'
122
+ });
123
+ });
124
+ };
85
125
  // #todo isAdmin 需要添加
86
126
  var columns = [{
87
127
  title: '应用名称',
@@ -114,6 +154,21 @@ var appList = function appList(props) {
114
154
  // const data = res[1];
115
155
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, "appId: ", data.id), /*#__PURE__*/React.createElement("p", null, "appKey: ", data.appKey), showAppAlias(data) ? /*#__PURE__*/React.createElement("p", null, "\u6240\u5C5E\u4EA7\u54C1\uFF1A", data.appAlias) : null);
116
156
  }
157
+ }, {
158
+ title: '开关',
159
+ dataIndex: 'isOpen',
160
+ // render: (data: AppListItem) => (
161
+ render: function render(_, data) {
162
+ return /*#__PURE__*/React.createElement(Switch, {
163
+ checked: data.isOpen,
164
+ // onChange={handleSwitchChange(data)}
165
+ onChange: function onChange(checked) {
166
+ return handleSwitchChange(checked, data);
167
+ },
168
+ checkedChildren: "\u5F00\u542F",
169
+ unCheckedChildren: "\u5173\u95ED"
170
+ });
171
+ }
117
172
  }, {
118
173
  title: '操作',
119
174
  render: function render(data) {
@@ -162,6 +217,7 @@ var appList = function appList(props) {
162
217
  }
163
218
  };
164
219
  var showDelPanel = function showDelPanel(data) {
220
+ console.log(data, 'data');
165
221
  if (isAdmin && !checkAppAuth(data.id)) {
166
222
  notification.error({
167
223
  message: '删除失败,无权限'
@@ -287,7 +343,8 @@ var appList = function appList(props) {
287
343
  data: {
288
344
  appName: appNameVal,
289
345
  companyId: companyId,
290
- appVersion: (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFieldValue('appVersion')
346
+ appVersion: (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFieldValue('appVersion'),
347
+ isOpen: 1
291
348
  }
292
349
  }).then(function (res) {
293
350
  if (!res) return;
@@ -1,100 +1,100 @@
1
- @import './../../../constants/icons/iconfont.css';
2
- .app-list {
3
- height: 100%;
4
- padding: 0;
5
- overflow: auto;
6
- .applist-head {
7
- .c-button {
8
- margin-right: 20px;
9
- }
10
- }
11
- .app-list-content {
12
- margin-top: 20px;
13
- }
14
- .platform-icons {
15
- display: flex;
16
- align-items: center;
17
- justify-content: flex-start;
18
- width: 100%;
19
- span {
20
- margin-right: 10px;
21
- color: #cfcfcf;
22
- font-size: 16px;
23
- }
24
- }
25
- .app-list-content {
26
- .c-grid-cell,
27
- .c-grid-header-cell {
28
- text-align: left !important;
29
- border: none;
30
- border-bottom: 1px solid #d1d1d1;
31
- }
32
- .c-grid-cell {
33
- text-align: left !important;
34
- }
35
- .c-grid-body .c-grid-row:nth-child(2n) {
36
- background: #fff !important;
37
- }
38
- .app-name {
39
- cursor: pointer;
40
- &:hover {
41
- color: #00a0ea;
42
- }
43
- }
44
- .operating {
45
- span {
46
- color: #00a0ea;
47
- cursor: pointer;
48
- }
49
- span.icon-delete {
50
- margin-left: 10px;
51
- color: #cfcfcf;
52
- &:hover {
53
- color: #00a0ea;
54
- }
55
- }
56
- }
57
- }
58
- .dialog-content {
59
- color: #858585;
60
- .c-input {
61
- margin-bottom: 20px;
62
- color: #000;
63
- }
64
- }
65
- .app-version .ant-radio-wrapper {
66
- margin-right: 48px !important;
67
- }
68
- &-version-warning {
69
- display: flex;
70
- gap: 10px;
71
- align-items: center;
72
- height: 32px;
73
- padding: 0 16px;
74
- color: #021429;
75
- background-color: #e6f7ff;
76
- border: 1px solid #91d5ff;
77
- border-radius: 2px;
78
- .bsicon {
79
- color: #1890ff;
80
- font-size: 14px;
81
- }
82
- }
83
- &-create-app .ant-modal-header {
84
- padding-bottom: 0 !important;
85
- }
86
-
87
- &-form-item.ant-form-item {
88
- margin-bottom: 16px !important;
89
- }
90
- &-desc {
91
- li {
92
- padding-left: 4px;
93
- color: #9aa1a9;
94
- &::before {
95
- margin-right: 8px;
96
- content: '•';
97
- }
98
- }
99
- }
100
- }
1
+ @import './../../../constants/icons/iconfont.css';
2
+ .app-list {
3
+ height: 100%;
4
+ padding: 0;
5
+ overflow: auto;
6
+ .applist-head {
7
+ .c-button {
8
+ margin-right: 20px;
9
+ }
10
+ }
11
+ .app-list-content {
12
+ margin-top: 20px;
13
+ }
14
+ .platform-icons {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: flex-start;
18
+ width: 100%;
19
+ span {
20
+ margin-right: 10px;
21
+ color: #cfcfcf;
22
+ font-size: 16px;
23
+ }
24
+ }
25
+ .app-list-content {
26
+ .c-grid-cell,
27
+ .c-grid-header-cell {
28
+ text-align: left !important;
29
+ border: none;
30
+ border-bottom: 1px solid #d1d1d1;
31
+ }
32
+ .c-grid-cell {
33
+ text-align: left !important;
34
+ }
35
+ .c-grid-body .c-grid-row:nth-child(2n) {
36
+ background: #fff !important;
37
+ }
38
+ .app-name {
39
+ cursor: pointer;
40
+ &:hover {
41
+ color: #00a0ea;
42
+ }
43
+ }
44
+ .operating {
45
+ span {
46
+ color: #00a0ea;
47
+ cursor: pointer;
48
+ }
49
+ span.icon-delete {
50
+ margin-left: 10px;
51
+ color: #cfcfcf;
52
+ &:hover {
53
+ color: #00a0ea;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ .dialog-content {
59
+ color: #858585;
60
+ .c-input {
61
+ margin-bottom: 20px;
62
+ color: #000;
63
+ }
64
+ }
65
+ .app-version .ant-radio-wrapper {
66
+ margin-right: 48px !important;
67
+ }
68
+ &-version-warning {
69
+ display: flex;
70
+ gap: 10px;
71
+ align-items: center;
72
+ height: 32px;
73
+ padding: 0 16px;
74
+ color: #021429;
75
+ background-color: #e6f7ff;
76
+ border: 1px solid #91d5ff;
77
+ border-radius: 2px;
78
+ .bsicon {
79
+ color: #1890ff;
80
+ font-size: 14px;
81
+ }
82
+ }
83
+ &-create-app .ant-modal-header {
84
+ padding-bottom: 0 !important;
85
+ }
86
+
87
+ &-form-item.ant-form-item {
88
+ margin-bottom: 16px !important;
89
+ }
90
+ &-desc {
91
+ li {
92
+ padding-left: 4px;
93
+ color: #9aa1a9;
94
+ &::before {
95
+ margin-right: 8px;
96
+ content: '•';
97
+ }
98
+ }
99
+ }
100
+ }
@@ -1,31 +1,31 @@
1
- @import './../../../constants/icons/iconfont.css';
2
- .company-setting-cost {
3
- min-height: 400px;
4
- max-height: 100%;
5
- padding: 0;
6
- overflow: auto;
7
- h5 {
8
- font-weight: normal;
9
- font-size: 14px;
10
- }
11
- table {
12
- width: 100%;
13
- margin: 15px 0 40px 0;
14
- border-collapse: collapse;
15
- thead {
16
- color: #636363;
17
- font-weight: bold;
18
- font-size: 14px;
19
- background: #fbfbfb;
20
- }
21
- td,
22
- th {
23
- padding: 10px 15px;
24
- text-align: center;
25
- border: 1px solid #cecece;
26
- }
27
- td {
28
- height: 50px;
29
- }
30
- }
31
- }
1
+ @import './../../../constants/icons/iconfont.css';
2
+ .company-setting-cost {
3
+ min-height: 400px;
4
+ max-height: 100%;
5
+ padding: 0;
6
+ overflow: auto;
7
+ h5 {
8
+ font-weight: normal;
9
+ font-size: 14px;
10
+ }
11
+ table {
12
+ width: 100%;
13
+ margin: 15px 0 40px 0;
14
+ border-collapse: collapse;
15
+ thead {
16
+ color: #636363;
17
+ font-weight: bold;
18
+ font-size: 14px;
19
+ background: #fbfbfb;
20
+ }
21
+ td,
22
+ th {
23
+ padding: 10px 15px;
24
+ text-align: center;
25
+ border: 1px solid #cecece;
26
+ }
27
+ td {
28
+ height: 50px;
29
+ }
30
+ }
31
+ }
@@ -1,3 +1,3 @@
1
- .company-setting-auth-config {
2
- margin: 0 20px;
3
- }
1
+ .company-setting-auth-config {
2
+ margin: 0 20px;
3
+ }
@@ -1,10 +1,10 @@
1
- .company-auth-group {
2
- position: relative;
3
- .company-auth-group-top {
4
- height: 36px;
5
- margin-top: 20px;
6
- padding: 0 20px;
7
- line-height: 36px;
8
- background-color: #f3f8fa;
9
- }
10
- }
1
+ .company-auth-group {
2
+ position: relative;
3
+ .company-auth-group-top {
4
+ height: 36px;
5
+ margin-top: 20px;
6
+ padding: 0 20px;
7
+ line-height: 36px;
8
+ background-color: #f3f8fa;
9
+ }
10
+ }