Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
e5affb3c
Commit
e5affb3c
authored
Jan 11, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:企微员工修改个人信息去掉手机号
parent
ab7a4ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/modules/personalInfo/index.tsx
+11
-4
No files found.
src/modules/personalInfo/index.tsx
View file @
e5affb3c
...
...
@@ -2,7 +2,7 @@
* @Author: zhangleyuan
* @Date: 2020-11-27 15:06:31
* @LastEditors: wufan
* @LastEditTime: 2021-01-
09 15:47:58
* @LastEditTime: 2021-01-
11 19:19:03
* @Description: 描述一下
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -39,6 +39,7 @@ function PersonalInfoPage() {
const
storeUserId
=
User
.
getStoreUserId
();
const
ctx
:
any
=
useContext
(
XMContext
);
const
userId
=
User
.
getUserId
();
const
isWorkWechat
=
!!
(
User
.
getStoreType
()
===
"WE_CHAT_STORE"
);
window
.
ctx
=
ctx
;
useEffect
(()
=>
{
...
...
@@ -89,13 +90,19 @@ function PersonalInfoPage() {
}
function
saveUserInfo
()
{
const
params
=
{
const
params
=
isWorkWechat
?
{
nickName
,
phone
:
String
(
phone
),
roleCodes
:
roleCodes
,
avatar
,
storeUserId
:
User
.
getStoreUserId
(),
storeUserId
:
User
.
getStoreUserId
()
}
:
{
nickName
,
roleCodes
:
roleCodes
,
avatar
,
storeUserId
:
User
.
getStoreUserId
()
};
StoreService
.
editEmployee
(
params
).
then
((
res
)
=>
{
getStoreGroupAndStoreList
();
message
.
success
(
"保存成功"
);
...
...
@@ -154,7 +161,7 @@ console.log('User.getStoreType()',User.getStoreType());
}
}
/>
</
div
>
{
User
.
getStoreType
()
===
"WE_CHAT_STORE"
?
(
{
isWorkWechat
?
(
<
div
className=
"phone-item"
>
<
span
className=
"label"
>
企业微信号:
</
span
>
<
span
>
{
weChatAccount
}
</
span
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment