@zgfe/modules-settings 2.0.0-zhongyuan.9 → 2.1.0-zhongyuan-set.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.
- package/README.md +33 -33
- package/es/components/card/index.less +87 -87
- package/es/components/importMetaDialog/index.d.ts +13 -0
- package/es/components/importMetaDialog/index.js +217 -0
- package/es/components/importMetaDialog/styles/index.less +115 -0
- package/es/components/pageLoading/index.less +7 -7
- package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
- package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
- package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
- package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
- package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
- package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
- package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
- package/es/components/picCircleSelect/index.less +37 -37
- package/es/components/processCanvas/styles/customNode.less +149 -149
- package/es/components/processCanvas/styles/index.less +34 -34
- package/es/components/settingTabs/index.less +51 -51
- package/es/constants/api.d.ts +30 -0
- package/es/constants/api.js +43 -1
- package/es/constants/icons/demo.css +539 -539
- package/es/constants/icons/demo_index.html +9871 -9871
- package/es/constants/icons/iconfont.css +1699 -1699
- package/es/constants/icons/iconfont.json +2956 -2956
- package/es/global.d.ts +4 -4
- package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
- package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
- package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
- package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
- package/es/modules/companySetting/appList/index.less +126 -126
- package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
- package/es/modules/companySetting/application/applicationForm.js +34 -4
- package/es/modules/companySetting/application/index.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +276 -104
- package/es/modules/companySetting/application/index.less +144 -126
- package/es/modules/companySetting/business/index.less +92 -92
- package/es/modules/companySetting/cost/index.less +38 -38
- package/es/modules/companySetting/department/index.less +157 -157
- package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
- package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
- package/es/modules/companySetting/edit/styles/authModule.less +82 -82
- package/es/modules/companySetting/edit/styles/user.less +54 -54
- package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
- package/es/modules/companySetting/index.js +37 -33
- package/es/modules/companySetting/index.less +90 -90
- package/es/modules/companySetting/info/index.less +42 -42
- package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
- package/es/modules/companySetting/mainPart/index.less +239 -239
- package/es/modules/companySetting/operationLog/index.js +22 -5
- package/es/modules/companySetting/operationLog/index.less +33 -33
- package/es/modules/companySetting/role/index.less +296 -296
- package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
- package/es/modules/companySetting/style/common.less +79 -79
- package/es/modules/companySetting/style/reset.less +117 -117
- package/es/modules/companySetting/user/index.js +29 -24
- package/es/modules/companySetting/user/index.less +363 -363
- package/es/modules/companySetting/user/invite.js +30 -102
- package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
- package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
- package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
- package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
- package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
- package/es/modules/companySetting/wechatBinding/index.less +58 -58
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/demo/selectPoint.js +1 -2
- package/es/modules/createDemand/index.d.ts +0 -1
- package/es/modules/createDemand/index.js +793 -179
- package/es/modules/createDemand/styles/index.less +403 -277
- package/es/modules/createDemand_bf/demo/index.js +0 -1
- package/es/modules/createDemand_bf/index.js +0 -1
- package/es/modules/createDemand_bf/styles/index.less +222 -222
- package/es/modules/createProcess/components/index.less +52 -52
- package/es/modules/createProcess/index.less +114 -114
- package/es/modules/createProcess/title/index.less +53 -53
- package/es/modules/dealDemand/demo/index.js +0 -1
- package/es/modules/dealDemand/demo/selectPoint.js +1 -1
- package/es/modules/dealDemand/index.js +0 -2
- package/es/modules/dealDemand/styles/index.less +265 -265
- package/es/modules/demandManage/index.js +174 -178
- package/es/modules/demandManage/styles/index.less +8 -68
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +6 -6
- package/es/modules/messageList/index.less +81 -81
- package/es/modules/personalSetting/demo/index.d.ts +3 -0
- package/es/modules/personalSetting/demo/index.js +12 -0
- package/es/modules/personalSetting/index.js +11 -1
- package/es/modules/personalSetting/info/index.js +23 -5
- package/es/modules/personalSetting/securityLog/index.less +11 -11
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
- package/es/modules/pointMap/createMetaDrawer.d.ts +5 -0
- package/es/modules/pointMap/createMetaDrawer.js +825 -0
- package/es/modules/pointMap/editTxt/index.less +55 -55
- package/es/modules/pointMap/pageInfo.js +401 -179
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/index.less +165 -38
- package/es/modules/pointMap/styles/pageInfo.less +439 -244
- package/es/modules/pointMap/styles/tree.css +164 -145
- package/es/modules/pointMap/styles/tree.less +174 -149
- package/es/modules/pointMap/tree.js +232 -88
- package/es/modules/pointMap/types.d.ts +88 -0
- package/es/modules/pointMap/types.js +1 -0
- package/es/modules/systemSetting/Dictionary.d.ts +5 -2
- package/es/modules/systemSetting/Dictionary.js +54 -370
- package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.less +14 -14
- package/es/modules/systemSetting/approvalmanage/index.less +5 -5
- package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +245 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.d.ts +4 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +207 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/type/index.js +1 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.d.ts +10 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +124 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.d.ts +7 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +264 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +9 -0
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.js +1 -0
- package/es/modules/systemSetting/document-setting/index.js +7 -6
- package/es/modules/systemSetting/index.css +161 -161
- package/es/modules/systemSetting/index.js +16 -16
- package/es/modules/systemSetting/index.less +169 -169
- package/es/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/types/personal.d.ts +1 -0
- package/package.json +74 -74
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
.get-password-box {
|
|
2
|
-
height: 100%;
|
|
3
|
-
&-button {
|
|
4
|
-
height: 40px;
|
|
5
|
-
}
|
|
6
|
-
&-background {
|
|
7
|
-
height: 250px;
|
|
8
|
-
padding: 50px 0;
|
|
9
|
-
text-align: center;
|
|
10
|
-
background: url('./images/zg_regist_top.png') 100% 50%;
|
|
11
|
-
img {
|
|
12
|
-
width: 200px;
|
|
13
|
-
height: 150px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&-logo {
|
|
17
|
-
width: 200px;
|
|
18
|
-
height: 150px;
|
|
19
|
-
margin: 0 auto;
|
|
20
|
-
background: url('./images/register_logo.png') 100% 100%;
|
|
21
|
-
}
|
|
22
|
-
&-form1 {
|
|
23
|
-
> :nth-child(1) {
|
|
24
|
-
.ant-input-affix-wrapper {
|
|
25
|
-
height: 40px;
|
|
26
|
-
}
|
|
27
|
-
.ant-input-affix-wrapper:not(:hover):not(.ant-input-affix-wrapper-focused):not(
|
|
28
|
-
.ant-input-affix-wrapper-status-error
|
|
29
|
-
) {
|
|
30
|
-
border: 1px solid #ecedf0 !important;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
&-form2 {
|
|
35
|
-
.ant-form-item {
|
|
36
|
-
.ant-input-affix-wrapper {
|
|
37
|
-
height: 40px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
> :nth-child(2) {
|
|
41
|
-
margin-bottom: 32px;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
&-saas {
|
|
45
|
-
width: 366px;
|
|
46
|
-
margin: 72px auto 0 auto;
|
|
47
|
-
> :nth-child(1) {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
&-img-code {
|
|
53
|
-
display: flex;
|
|
54
|
-
gap: 14px;
|
|
55
|
-
.ant-input {
|
|
56
|
-
width: 248px;
|
|
57
|
-
height: 40px;
|
|
58
|
-
}
|
|
59
|
-
> :nth-child(2) {
|
|
60
|
-
position: relative;
|
|
61
|
-
img {
|
|
62
|
-
width: 102px;
|
|
63
|
-
height: 40px;
|
|
64
|
-
}
|
|
65
|
-
> div {
|
|
66
|
-
position: absolute;
|
|
67
|
-
top: 0;
|
|
68
|
-
left: 0;
|
|
69
|
-
display: none;
|
|
70
|
-
width: 100%;
|
|
71
|
-
height: 40px;
|
|
72
|
-
color: #fff;
|
|
73
|
-
font-size: 14px;
|
|
74
|
-
line-height: 40px;
|
|
75
|
-
text-align: center;
|
|
76
|
-
background: rgba(0, 0, 0, 0.7);
|
|
77
|
-
border-radius: 4px;
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
> :nth-child(2):hover {
|
|
82
|
-
> div {
|
|
83
|
-
display: block;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
&-mobile-code {
|
|
88
|
-
display: flex;
|
|
89
|
-
gap: 14px;
|
|
90
|
-
.ant-input {
|
|
91
|
-
width: 248px;
|
|
92
|
-
height: 40px;
|
|
93
|
-
}
|
|
94
|
-
> :nth-child(2) {
|
|
95
|
-
width: 102px;
|
|
96
|
-
height: 40px;
|
|
97
|
-
color: #fff;
|
|
98
|
-
line-height: 40px;
|
|
99
|
-
text-align: center;
|
|
100
|
-
background: var(--io-i-, #165dff);
|
|
101
|
-
border-radius: 4px;
|
|
102
|
-
cursor: not-allowed;
|
|
103
|
-
opacity: 0.5;
|
|
104
|
-
}
|
|
105
|
-
.mobile-send {
|
|
106
|
-
cursor: pointer;
|
|
107
|
-
opacity: 1;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
&-not-saas {
|
|
111
|
-
width: 100%;
|
|
112
|
-
margin: 40px auto;
|
|
113
|
-
color: #858585;
|
|
114
|
-
font-size: 16px;
|
|
115
|
-
text-align: center;
|
|
116
|
-
> div {
|
|
117
|
-
width: 100%;
|
|
118
|
-
margin-bottom: 20px;
|
|
119
|
-
text-align: center;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
1
|
+
.get-password-box {
|
|
2
|
+
height: 100%;
|
|
3
|
+
&-button {
|
|
4
|
+
height: 40px;
|
|
5
|
+
}
|
|
6
|
+
&-background {
|
|
7
|
+
height: 250px;
|
|
8
|
+
padding: 50px 0;
|
|
9
|
+
text-align: center;
|
|
10
|
+
background: url('./images/zg_regist_top.png') 100% 50%;
|
|
11
|
+
img {
|
|
12
|
+
width: 200px;
|
|
13
|
+
height: 150px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&-logo {
|
|
17
|
+
width: 200px;
|
|
18
|
+
height: 150px;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
background: url('./images/register_logo.png') 100% 100%;
|
|
21
|
+
}
|
|
22
|
+
&-form1 {
|
|
23
|
+
> :nth-child(1) {
|
|
24
|
+
.ant-input-affix-wrapper {
|
|
25
|
+
height: 40px;
|
|
26
|
+
}
|
|
27
|
+
.ant-input-affix-wrapper:not(:hover):not(.ant-input-affix-wrapper-focused):not(
|
|
28
|
+
.ant-input-affix-wrapper-status-error
|
|
29
|
+
) {
|
|
30
|
+
border: 1px solid #ecedf0 !important;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
&-form2 {
|
|
35
|
+
.ant-form-item {
|
|
36
|
+
.ant-input-affix-wrapper {
|
|
37
|
+
height: 40px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
> :nth-child(2) {
|
|
41
|
+
margin-bottom: 32px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&-saas {
|
|
45
|
+
width: 366px;
|
|
46
|
+
margin: 72px auto 0 auto;
|
|
47
|
+
> :nth-child(1) {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&-img-code {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 14px;
|
|
55
|
+
.ant-input {
|
|
56
|
+
width: 248px;
|
|
57
|
+
height: 40px;
|
|
58
|
+
}
|
|
59
|
+
> :nth-child(2) {
|
|
60
|
+
position: relative;
|
|
61
|
+
img {
|
|
62
|
+
width: 102px;
|
|
63
|
+
height: 40px;
|
|
64
|
+
}
|
|
65
|
+
> div {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
display: none;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 40px;
|
|
72
|
+
color: #fff;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
line-height: 40px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
background: rgba(0, 0, 0, 0.7);
|
|
77
|
+
border-radius: 4px;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
> :nth-child(2):hover {
|
|
82
|
+
> div {
|
|
83
|
+
display: block;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
&-mobile-code {
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: 14px;
|
|
90
|
+
.ant-input {
|
|
91
|
+
width: 248px;
|
|
92
|
+
height: 40px;
|
|
93
|
+
}
|
|
94
|
+
> :nth-child(2) {
|
|
95
|
+
width: 102px;
|
|
96
|
+
height: 40px;
|
|
97
|
+
color: #fff;
|
|
98
|
+
line-height: 40px;
|
|
99
|
+
text-align: center;
|
|
100
|
+
background: var(--io-i-, #165dff);
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
cursor: not-allowed;
|
|
103
|
+
opacity: 0.5;
|
|
104
|
+
}
|
|
105
|
+
.mobile-send {
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
&-not-saas {
|
|
111
|
+
width: 100%;
|
|
112
|
+
margin: 40px auto;
|
|
113
|
+
color: #858585;
|
|
114
|
+
font-size: 16px;
|
|
115
|
+
text-align: center;
|
|
116
|
+
> div {
|
|
117
|
+
width: 100%;
|
|
118
|
+
margin-bottom: 20px;
|
|
119
|
+
text-align: center;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -74,7 +74,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
var gotoPage = function gotoPage(businessId, content) {
|
|
77
|
-
var pageNmae = businessId === -1 ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : content.includes('埋点待测试') ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/setting/systemSetting/
|
|
77
|
+
var pageNmae = businessId === -1 ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : content.includes('埋点待测试') ? '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage' : '/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/setting/systemSetting/demandManage?id=' + businessId;
|
|
78
78
|
window.open(pageNmae, '_blank');
|
|
79
79
|
// const pageNmae = businessId === -1 ? routes.dataAccess.manage : routes.createDemand;
|
|
80
80
|
// const currentPage =
|
|
@@ -100,12 +100,12 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
100
100
|
className: "".concat(classPrefix)
|
|
101
101
|
}, /*#__PURE__*/React.createElement("div", {
|
|
102
102
|
className: "".concat(classPrefix, "-header")
|
|
103
|
-
}, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", /*#__PURE__*/React.createElement(IconFont, {
|
|
103
|
+
}, "\u6D88\u606F\u901A\u77E5\uFF08", unReadNum, "\uFF09", onclose ? (/*#__PURE__*/React.createElement(IconFont, {
|
|
104
104
|
type: "qingchu",
|
|
105
105
|
onClick: function onClick() {
|
|
106
|
-
return props.onClose();
|
|
106
|
+
return props.onClose && props.onClose();
|
|
107
107
|
}
|
|
108
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
})) : ''), /*#__PURE__*/React.createElement("div", {
|
|
109
109
|
className: "".concat(classPrefix, "-content")
|
|
110
110
|
}, /*#__PURE__*/React.createElement("div", {
|
|
111
111
|
className: "".concat(classPrefix, "-content-filter")
|
|
@@ -167,7 +167,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
167
167
|
},
|
|
168
168
|
onClick: function onClick() {
|
|
169
169
|
gotoPage(v.businessId, v.content);
|
|
170
|
-
props.onClose();
|
|
170
|
+
props.onClose && props.onClose();
|
|
171
171
|
// changeAllRead(v.id);
|
|
172
172
|
}
|
|
173
173
|
}, v.content), /*#__PURE__*/React.createElement("div", {
|
|
@@ -190,7 +190,7 @@ var CreateProcess = function CreateProcess(props) {
|
|
|
190
190
|
className: "".concat(classPrefix, "-content-list-item-title"),
|
|
191
191
|
onClick: function onClick() {
|
|
192
192
|
gotoPage(v.businessId, v.content);
|
|
193
|
-
props.onClose();
|
|
193
|
+
props.onClose && props.onClose();
|
|
194
194
|
changeAllRead(v.id);
|
|
195
195
|
}
|
|
196
196
|
}, v.content), /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
.system-setting-message {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: 100%;
|
|
6
|
-
background-color: #fff;
|
|
7
|
-
&-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
height: 56px;
|
|
12
|
-
padding: 16px 24px;
|
|
13
|
-
color: var(--io-N-, #021429);
|
|
14
|
-
font-weight: 500;
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
border-bottom: 1px solid var(--io-N1-, #e6e7ea);
|
|
17
|
-
.qingchu {
|
|
18
|
-
font-size: 24px !important;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&-content {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex: 1;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
overflow-y: auto;
|
|
27
|
-
&-filter {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
padding: 16px 16px 8px 16px;
|
|
33
|
-
&-select {
|
|
34
|
-
width: 120px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
&-list {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
align-items: flex-start;
|
|
41
|
-
padding: 0 16px;
|
|
42
|
-
&-empty {
|
|
43
|
-
width: 100%;
|
|
44
|
-
margin-top: 54px;
|
|
45
|
-
}
|
|
46
|
-
&-item {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: row;
|
|
49
|
-
gap: 8px;
|
|
50
|
-
padding: 12px 0;
|
|
51
|
-
&-dian {
|
|
52
|
-
width: 8px;
|
|
53
|
-
height: 8px;
|
|
54
|
-
margin: 6px;
|
|
55
|
-
border-radius: 8px;
|
|
56
|
-
}
|
|
57
|
-
&-title {
|
|
58
|
-
margin-bottom: 8px;
|
|
59
|
-
color: var(--io-N-, #021429);
|
|
60
|
-
font-size: 14px;
|
|
61
|
-
line-height: 20px;
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
&:hover {
|
|
64
|
-
color: #165dff !important;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&-date {
|
|
68
|
-
color: var(--io-N6-, #67727f);
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
line-height: 20px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
&-search-popup {
|
|
76
|
-
.ant-select-item {
|
|
77
|
-
height: 32px !important;
|
|
78
|
-
padding: 4px 12px !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
.system-setting-message {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
background-color: #fff;
|
|
7
|
+
&-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
height: 56px;
|
|
12
|
+
padding: 16px 24px;
|
|
13
|
+
color: var(--io-N-, #021429);
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
border-bottom: 1px solid var(--io-N1-, #e6e7ea);
|
|
17
|
+
.qingchu {
|
|
18
|
+
font-size: 24px !important;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&-content {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
overflow-y: auto;
|
|
27
|
+
&-filter {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
padding: 16px 16px 8px 16px;
|
|
33
|
+
&-select {
|
|
34
|
+
width: 120px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&-list {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
padding: 0 16px;
|
|
42
|
+
&-empty {
|
|
43
|
+
width: 100%;
|
|
44
|
+
margin-top: 54px;
|
|
45
|
+
}
|
|
46
|
+
&-item {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
gap: 8px;
|
|
50
|
+
padding: 12px 0;
|
|
51
|
+
&-dian {
|
|
52
|
+
width: 8px;
|
|
53
|
+
height: 8px;
|
|
54
|
+
margin: 6px;
|
|
55
|
+
border-radius: 8px;
|
|
56
|
+
}
|
|
57
|
+
&-title {
|
|
58
|
+
margin-bottom: 8px;
|
|
59
|
+
color: var(--io-N-, #021429);
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
line-height: 20px;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
&:hover {
|
|
64
|
+
color: #165dff !important;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&-date {
|
|
68
|
+
color: var(--io-N6-, #67727f);
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
line-height: 20px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&-search-popup {
|
|
76
|
+
.ant-select-item {
|
|
77
|
+
height: 32px !important;
|
|
78
|
+
padding: 4px 12px !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PersonalSetting from '../index';
|
|
3
|
+
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
|
+
export default (function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
6
|
+
defaultApp: 99825
|
|
7
|
+
}, /*#__PURE__*/React.createElement(PersonalSetting, {
|
|
8
|
+
settingsCallback: function settingsCallback(type) {
|
|
9
|
+
throw new Error('Function not implemented.');
|
|
10
|
+
}
|
|
11
|
+
}));
|
|
12
|
+
});
|
|
@@ -14,11 +14,13 @@ import { useContext } from 'react';
|
|
|
14
14
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
15
15
|
import util from '../../utils/util';
|
|
16
16
|
import SecurityLog from './securityLog';
|
|
17
|
+
import CreateProcess from '../messageList';
|
|
17
18
|
var PersonalSetting = function PersonalSetting(_ref) {
|
|
18
19
|
var settingsCallback = _ref.settingsCallback;
|
|
19
20
|
var _useContext = useContext(BizGlobalDataContext),
|
|
20
21
|
currentUser = _useContext.currentUser,
|
|
21
|
-
isDemo = _useContext.isDemo
|
|
22
|
+
isDemo = _useContext.isDemo,
|
|
23
|
+
route = _useContext.route;
|
|
22
24
|
var _useState = useState('1'),
|
|
23
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
26
|
currentKey = _useState2[0],
|
|
@@ -29,8 +31,10 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
29
31
|
className: "tab-header-title"
|
|
30
32
|
}, "\u4E2A\u4EBA\u8BBE\u7F6E"));
|
|
31
33
|
useEffect(function () {
|
|
34
|
+
var _route$query, _route$query2;
|
|
32
35
|
var query = util.getHrefData(window.location.href);
|
|
33
36
|
if (query.password) setCurrentKey('2');
|
|
37
|
+
if (route === null || route === void 0 ? void 0 : (_route$query = route.query) === null || _route$query === void 0 ? void 0 : _route$query.currentKey) setCurrentKey(route === null || route === void 0 ? void 0 : (_route$query2 = route.query) === null || _route$query2 === void 0 ? void 0 : _route$query2.currentKey);
|
|
34
38
|
}, []);
|
|
35
39
|
var items = [{
|
|
36
40
|
key: '1',
|
|
@@ -54,6 +58,12 @@ var PersonalSetting = function PersonalSetting(_ref) {
|
|
|
54
58
|
key: '4',
|
|
55
59
|
label: '安全日志',
|
|
56
60
|
content: /*#__PURE__*/React.createElement(SecurityLog, null)
|
|
61
|
+
}, {
|
|
62
|
+
key: '5',
|
|
63
|
+
label: '消息通知',
|
|
64
|
+
content: /*#__PURE__*/React.createElement(CreateProcess, {
|
|
65
|
+
onClose: undefined
|
|
66
|
+
})
|
|
57
67
|
}];
|
|
58
68
|
return /*#__PURE__*/React.createElement(SettingTabs, {
|
|
59
69
|
typeName: "personal",
|
|
@@ -18,7 +18,8 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
18
18
|
isDemo = _useContext.isDemo;
|
|
19
19
|
var _useState = useState({
|
|
20
20
|
username: currentUser === null || currentUser === void 0 ? void 0 : currentUser.username,
|
|
21
|
-
emailNote: currentUser === null || currentUser === void 0 ? void 0 : currentUser.emailNote
|
|
21
|
+
emailNote: currentUser === null || currentUser === void 0 ? void 0 : currentUser.emailNote,
|
|
22
|
+
telphone: currentUser === null || currentUser === void 0 ? void 0 : currentUser.telphone
|
|
22
23
|
}),
|
|
23
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
25
|
initialValues = _useState2[0],
|
|
@@ -34,14 +35,15 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
34
35
|
var onSubmit = function onSubmit(value) {
|
|
35
36
|
setLoading(true);
|
|
36
37
|
var username = value.username,
|
|
37
|
-
emailNote = value.emailNote
|
|
38
|
+
emailNote = value.emailNote,
|
|
39
|
+
telphone = value.telphone;
|
|
38
40
|
urlRequest(apis.setting.updateUserInfo, {
|
|
39
41
|
method: 'post',
|
|
40
42
|
data: {
|
|
41
43
|
data: JSON.stringify({
|
|
42
44
|
name: username,
|
|
43
45
|
email: emailNote,
|
|
44
|
-
mobile:
|
|
46
|
+
mobile: telphone
|
|
45
47
|
})
|
|
46
48
|
}
|
|
47
49
|
}).then(function (res) {
|
|
@@ -52,11 +54,13 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
52
54
|
// 表单重置
|
|
53
55
|
setInitialValues({
|
|
54
56
|
username: username,
|
|
55
|
-
emailNote: emailNote
|
|
57
|
+
emailNote: emailNote,
|
|
58
|
+
telphone: telphone
|
|
56
59
|
});
|
|
57
60
|
form.resetFields();
|
|
58
61
|
currentUser.username = username;
|
|
59
62
|
currentUser.emailNote = emailNote;
|
|
63
|
+
currentUser.telphone = telphone;
|
|
60
64
|
// 主应用更新currentUser,同公司设置-更新应用名称回调
|
|
61
65
|
settingsCallback('settingChangeCompanyNameCallback');
|
|
62
66
|
} else {
|
|
@@ -96,6 +100,20 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
96
100
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
97
101
|
placeholder: "\u59D3\u540D",
|
|
98
102
|
disabled: isDemo
|
|
103
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
104
|
+
label: "\u624B\u673A\u53F7",
|
|
105
|
+
name: "telphone",
|
|
106
|
+
rules: [{
|
|
107
|
+
required: true,
|
|
108
|
+
message: '请输入手机号'
|
|
109
|
+
}, {
|
|
110
|
+
pattern: /^[0-9]{11}$/,
|
|
111
|
+
message: '请输入正确的手机号'
|
|
112
|
+
}]
|
|
113
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
114
|
+
maxLength: 11,
|
|
115
|
+
placeholder: "\u624B\u673A\u53F7",
|
|
116
|
+
disabled: isDemo
|
|
99
117
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
100
118
|
label: "\u90AE\u7BB1",
|
|
101
119
|
name: "emailNote",
|
|
@@ -116,7 +134,7 @@ var PersonalInfo = function PersonalInfo(_ref) {
|
|
|
116
134
|
type: "primary",
|
|
117
135
|
htmlType: "submit",
|
|
118
136
|
loading: loading,
|
|
119
|
-
disabled: isDemo || !(form.isFieldTouched('username') || form.isFieldTouched('emailNote')) || !!form.getFieldsError().filter(function (_ref2) {
|
|
137
|
+
disabled: isDemo || !(form.isFieldTouched('username') || form.isFieldTouched('emailNote') || form.isFieldTouched('telphone')) || !!form.getFieldsError().filter(function (_ref2) {
|
|
120
138
|
var errors = _ref2.errors;
|
|
121
139
|
return errors.length;
|
|
122
140
|
}).length || JSON.stringify(initialValues) === JSON.stringify(form.getFieldsValue())
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.security-log-page {
|
|
2
|
-
padding: 40px;
|
|
3
|
-
&-spin {
|
|
4
|
-
padding-top: 200px;
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
&-header {
|
|
8
|
-
margin-bottom: 30px;
|
|
9
|
-
text-align: right;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
.security-log-page {
|
|
2
|
+
padding: 40px;
|
|
3
|
+
&-spin {
|
|
4
|
+
padding-top: 200px;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
&-header {
|
|
8
|
+
margin-bottom: 30px;
|
|
9
|
+
text-align: right;
|
|
10
|
+
}
|
|
11
|
+
}
|