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
aca11922
Commit
aca11922
authored
Aug 02, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理姓名字端的显示
parent
ed7ad85b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
src/modules/college-manage/EmployeeManage.tsx
+12
-0
src/modules/root/CollegeManagePage.jsx
+8
-2
src/modules/root/Header.jsx
+4
-2
No files found.
src/modules/college-manage/EmployeeManage.tsx
View file @
aca11922
...
...
@@ -33,6 +33,7 @@ interface RecordTypes {
phone
:
string
;
avatar
?:
string
;
weChatAccount
?:
string
;
depNameList
:
Array
<
string
>
}
interface
RoleItemType
{
...
...
@@ -170,6 +171,17 @@ function EmployeeManage() {
},
},
{
title
:
"部门"
,
dataIndex
:
"depNameList"
,
key
:
"depNameList"
,
render
:
(
val
:
string
,
record
:
RecordTypes
)
=>
{
return
record
.
depNameList
.
map
((
item
,
index
)
=>
{
return
<
span
>
{
item
}{
index
<
(
record
.
depNameList
.
length
-
1
)?
'、'
:
''
}
</
span
>;
})
},
},
{
title
:
"身份"
,
dataIndex
:
"role"
,
key
:
"role"
,
...
...
src/modules/root/CollegeManagePage.jsx
View file @
aca11922
...
...
@@ -5,6 +5,7 @@ import BaseService from "@/domains/basic-domain/baseService";
import
User
from
"@/common/js/user"
;
import
{
LIVE_SHARE
}
from
"@/domains/course-domain/constants"
;
import
{
Modal
,
message
}
from
'antd'
;
import
WWOpenDataCom
from
'@/components/WWOpenDataCom'
;
import
'./CollegeManagePage.less'
;
import
storage
from
'@/common/js/storage'
;
...
...
@@ -246,7 +247,10 @@ export default class CollegeManagePage extends React.Component {
<
img
className=
"box-image"
src=
"https://image.xiaomaiketang.com/xm/fe4NCjr7XF.png"
/>
<
div
className=
"user"
>
<
img
className=
"image"
src=
{
avatar
}
/>
<
span
className=
"name"
>
{
name
}
</
span
>
<
span
className=
"name"
>
{
/* {name} */
}
<
WWOpenDataCom
type=
"userName"
openid=
{
name
}
/>
</
span
>
<
span
className=
"logout"
onClick=
{
()
=>
{
...
...
@@ -270,7 +274,9 @@ export default class CollegeManagePage extends React.Component {
<
div
className=
"college-box"
>
<
div
className=
"user"
>
<
img
className=
"image"
src=
{
avatar
}
/>
<
span
className=
"name"
>
{
name
}
</
span
>
<
span
className=
"name"
>
<
WWOpenDataCom
type=
"userName"
openid=
{
name
}
/>
</
span
>
</
div
>
<
div
>
<
div
className=
"title-box"
>
...
...
src/modules/root/Header.jsx
View file @
aca11922
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-08-02 1
6:40:31
* @LastEditTime: 2021-08-02 1
7:05:45
* @Description:
*/
import
React
,
{
useRef
,
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
@@ -377,7 +377,9 @@ function Header(props) {
}
}
src=
{
avatar
||
baseImg
}
/>
<
span
className=
'name'
>
{
nickName
}
</
span
>
<
span
className=
'name'
>
<
WWOpenDataCom
type=
"userName"
openid=
{
nickName
}
/>
</
span
>
</
div
>
</
Dropdown
>
</
div
>
...
...
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