Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
ant-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit dbad4e47
authored
2018-01-29 17:04:27 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加关注状态的显示
1 parent
bf0e6e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/routes/devutil/schoolmgr.js
src/routes/devutil/schoolmgr.js
View file @
dbad4e4
...
...
@@ -118,7 +118,8 @@ export default class schoolmgr extends Component{
const
{
linkman
:{
linkmanMap
}}
=
this
.
props
;
if
(
linkmanMap
[
'g_'
+
groupid
]){
return
linkmanMap
[
'g_'
+
groupid
].
map
((
item
)
=>
{
let
showninfo
=
item
.
name
+
" # "
+
item
.
userid
;
let
status
=
item
.
status
;
let
showninfo
=
item
.
name
+
" # "
+
item
.
userid
+
" "
+
(
status
==
1
?
"已关注"
:
"未关注"
);
return
(
<
TreeNode
isLeaf
title
=
{
showninfo
}
key
=
{
item
.
userid
}
dataRef
=
{
item
}
/>
)
;
});
}
...
...
@@ -166,8 +167,9 @@ export default class schoolmgr extends Component{
return
(
<
div
>
<
span
><
strong
>
检索结果:
<
/strong></
span
>
<
div
>
<
span
>
uid
:
{
userFoundResult
.
userid
}
<
/span><br/
>
<
span
>
uid
:
{
userFoundResult
.
userid
}
<
/span><br/
>
<
span
>
姓名
:
{
userFoundResult
.
name
}
<
/span><br/
>
<
span
>
状态
:
{
userFoundResult
.
status
==
1
?
"已关注"
:
"未关注"
}
<
/span><br/
>
<
span
>
角色
:
{
userFoundResult
.
position
}
<
/span><br/
>
<
span
>
部门
:
{
userFoundResult
.
department
}
<
/span><br/
>
<
/div
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment