@zgfe/modules-settings 2.0.0-zhongyuan.4 → 2.0.0-zhongyuan.41
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/constants/api.d.ts +9 -0
- package/es/constants/api.js +15 -0
- package/es/modules/companySetting/application/index.d.ts +13 -0
- package/es/modules/companySetting/application/index.js +271 -98
- package/es/modules/companySetting/application/index.less +144 -126
- package/es/modules/companySetting/user/index.js +7 -0
- package/es/modules/companySetting/user/index.less +363 -363
- package/es/modules/companySetting/user/invite.js +19 -0
- package/es/modules/createDemand/constants.d.ts +15 -2
- package/es/modules/createDemand/constants.js +57 -4
- package/es/modules/createDemand/index.js +769 -170
- package/es/modules/createDemand/styles/index.less +397 -277
- package/es/modules/demandManage/index.js +139 -160
- package/es/modules/demandManage/styles/index.less +155 -210
- package/es/modules/messageList/index.d.ts +1 -1
- package/es/modules/messageList/index.js +5 -5
- 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/pointMap/createMetaDrawer.d.ts +4 -0
- package/es/modules/pointMap/createMetaDrawer.js +651 -0
- package/es/modules/pointMap/pageInfo.js +323 -130
- package/es/modules/pointMap/record.d.ts +7 -0
- package/es/modules/pointMap/record.js +521 -0
- package/es/modules/pointMap/styles/pageInfo.less +420 -244
- package/es/modules/pointMap/styles/tree.css +145 -145
- package/es/modules/pointMap/styles/tree.less +149 -149
- package/es/modules/pointMap/tree.js +1 -0
- package/es/modules/pointMap/types.d.ts +88 -0
- package/es/modules/pointMap/types.js +1 -0
- package/es/modules/systemSetting/document-setting/index.js +44 -15
- package/es/modules/systemSetting/index.css +161 -161
- package/es/modules/systemSetting/index.less +169 -169
- package/es/types/personal.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,210 +1,155 @@
|
|
|
1
|
-
// @import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
.system-setting-demand {
|
|
3
|
-
padding: 24px;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
|
|
6
|
-
&-title {
|
|
7
|
-
padding: 16px 0;
|
|
8
|
-
color: #021429;
|
|
9
|
-
font-weight: 500;
|
|
10
|
-
font-size: 20px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-panel {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
gap: 16px;
|
|
17
|
-
&-all {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
gap: 16px;
|
|
21
|
-
align-items: center;
|
|
22
|
-
width: 256px;
|
|
23
|
-
padding: 24px;
|
|
24
|
-
color: var(--io-N8-, #354354);
|
|
25
|
-
font-weight: 400;
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
background: var(--io-n-02, #fafafb);
|
|
28
|
-
border-radius: 8px;
|
|
29
|
-
&-img {
|
|
30
|
-
width: 64px;
|
|
31
|
-
height: 64px;
|
|
32
|
-
background: url('./../images/title-bg.png') no-repeat;
|
|
33
|
-
background-size: contain;
|
|
34
|
-
}
|
|
35
|
-
&-num {
|
|
36
|
-
color: var(--io-N-, #021429);
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
font-size: 32px;
|
|
39
|
-
line-height: 40px; /* 125% */
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
&-status {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex: 1;
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
color: var(--io-N8-, #354354);
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
font-family: 'PingFang SC';
|
|
51
|
-
font-style: normal;
|
|
52
|
-
line-height: normal;
|
|
53
|
-
background: var(--io-n-02, #fafafb);
|
|
54
|
-
border-radius: 8px;
|
|
55
|
-
&-item {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex: 1;
|
|
58
|
-
// align-items: center;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
padding: 24px;
|
|
61
|
-
&-txt {
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
gap: 4px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
&-num {
|
|
76
|
-
margin-top: 4px;
|
|
77
|
-
margin-left: 12px;
|
|
78
|
-
color: var(--io-N-, #021429);
|
|
79
|
-
font-weight: 700;
|
|
80
|
-
font-size: 32px;
|
|
81
|
-
font-family: Arial;
|
|
82
|
-
font-style: normal;
|
|
83
|
-
line-height: 40px; /* 125% */
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
&-
|
|
115
|
-
display: flex;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
&-status3 {
|
|
157
|
-
display: flex;
|
|
158
|
-
align-items: center;
|
|
159
|
-
padding: 1px 8px;
|
|
160
|
-
color: var(--io-i-, #fb5547);
|
|
161
|
-
font-weight: 400;
|
|
162
|
-
font-size: 14px;
|
|
163
|
-
line-height: 22px; /* 157.143% */
|
|
164
|
-
background: var(--io-i1-, #ffece8);
|
|
165
|
-
border-radius: 2px;
|
|
166
|
-
}
|
|
167
|
-
&-status4 {
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
padding: 1px 8px;
|
|
171
|
-
color: var(--io-i-, #5f6085);
|
|
172
|
-
font-weight: 400;
|
|
173
|
-
font-size: 14px;
|
|
174
|
-
line-height: 22px; /* 157.143% */
|
|
175
|
-
background: var(--io-i1-, #f2f3f4);
|
|
176
|
-
border-radius: 2px;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
.system-setting-demand-pop {
|
|
181
|
-
display: flex;
|
|
182
|
-
flex-direction: column;
|
|
183
|
-
gap: 8px;
|
|
184
|
-
width: 136px;
|
|
185
|
-
&-header {
|
|
186
|
-
display: flex;
|
|
187
|
-
flex-direction: row;
|
|
188
|
-
align-items: flex-start;
|
|
189
|
-
justify-content: space-between;
|
|
190
|
-
color: var(--io-N-, #021429);
|
|
191
|
-
font-weight: 400;
|
|
192
|
-
font-size: 16px;
|
|
193
|
-
line-height: 24px; /* 150% */
|
|
194
|
-
.qingchu {
|
|
195
|
-
color: #9aa1a9;
|
|
196
|
-
cursor: pointer;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
&-footer {
|
|
200
|
-
display: flex;
|
|
201
|
-
flex-direction: row;
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: space-between;
|
|
204
|
-
.ant-btn-primary {
|
|
205
|
-
height: 24px;
|
|
206
|
-
padding-top: 0;
|
|
207
|
-
padding-bottom: 0;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
1
|
+
// @import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
.system-setting-demand {
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
|
|
6
|
+
&-title {
|
|
7
|
+
padding: 16px 0;
|
|
8
|
+
color: #021429;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-panel {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
gap: 16px;
|
|
17
|
+
&-all {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
gap: 16px;
|
|
21
|
+
align-items: center;
|
|
22
|
+
width: 256px;
|
|
23
|
+
padding: 24px;
|
|
24
|
+
color: var(--io-N8-, #354354);
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
background: var(--io-n-02, #fafafb);
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
&-img {
|
|
30
|
+
width: 64px;
|
|
31
|
+
height: 64px;
|
|
32
|
+
background: url('./../images/title-bg.png') no-repeat;
|
|
33
|
+
background-size: contain;
|
|
34
|
+
}
|
|
35
|
+
&-num {
|
|
36
|
+
color: var(--io-N-, #021429);
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
font-size: 32px;
|
|
39
|
+
line-height: 40px; /* 125% */
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
&-status {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: 1;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
color: var(--io-N8-, #354354);
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
font-family: 'PingFang SC';
|
|
51
|
+
font-style: normal;
|
|
52
|
+
line-height: normal;
|
|
53
|
+
background: var(--io-n-02, #fafafb);
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
&-item {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex: 1;
|
|
58
|
+
// align-items: center;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
padding: 24px;
|
|
61
|
+
&-txt {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
gap: 4px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
&-icon {
|
|
69
|
+
display: block;
|
|
70
|
+
width: 8px;
|
|
71
|
+
height: 8px;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
content: '';
|
|
74
|
+
}
|
|
75
|
+
&-num {
|
|
76
|
+
margin-top: 4px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
color: var(--io-N-, #021429);
|
|
79
|
+
font-weight: 700;
|
|
80
|
+
font-size: 32px;
|
|
81
|
+
font-family: Arial;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
line-height: 40px; /* 125% */
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
&-filter {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
align-items: center;
|
|
93
|
+
padding: 16px 0;
|
|
94
|
+
&-left {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex: 1;
|
|
97
|
+
flex-direction: row;
|
|
98
|
+
gap: 16px;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
101
|
+
&-right {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
gap: 16px;
|
|
105
|
+
align-items: center;
|
|
106
|
+
.button:not(.disabled):not(.ant-btn-primary) {
|
|
107
|
+
color: #1454e5;
|
|
108
|
+
border: 1px solid #1454e5;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-table {
|
|
114
|
+
&-status {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
padding: 1px 8px;
|
|
118
|
+
font-weight: 400;
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
line-height: 22px; /* 157.143% */
|
|
121
|
+
border-radius: 2px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.system-setting-demand-pop {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
width: 136px;
|
|
130
|
+
&-header {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
align-items: flex-start;
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
color: var(--io-N-, #021429);
|
|
136
|
+
font-weight: 400;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
line-height: 24px; /* 150% */
|
|
139
|
+
.qingchu {
|
|
140
|
+
color: #9aa1a9;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
&-footer {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
align-items: center;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
.ant-btn-primary {
|
|
150
|
+
height: 24px;
|
|
151
|
+
padding-top: 0;
|
|
152
|
+
padding-bottom: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -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", {
|
|
@@ -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())
|