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 9daeadc2
authored
2018-01-30 18:05:46 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
通讯录分组加入排序功能
1 parent
8ac6f7ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
.roadhogrc.mock.js
src/routes/devutil/schoolmgr.js
.roadhogrc.mock.js
View file @
9daeadc
...
...
@@ -112,6 +112,17 @@ const proxy = {
code
:
0
});
},
'GET /api/ywpt/wx/schinfo'
:(
req
,
res
)
=>
{
res
.
send
({
code
:
0
,
corpid
:
"wx720bfe80a251d709"
,
followed
:
68
,
members
:
427
,
status
:
"ok"
,
sysName
:
"明星宝贝惠州仲恺高新区潼侨光明学校"
,
unfollowed
:
359
});
},
'GET /api/500'
:
(
req
,
res
)
=>
{
res
.
status
(
500
).
send
({
"timestamp"
:
1513932555104
,
...
...
src/routes/devutil/schoolmgr.js
View file @
9daeadc
...
...
@@ -100,15 +100,17 @@ export default class schoolmgr extends Component{
return
;
});
}
//排序
groupsort
=
(
a
,
b
)
=>
(
a
.
order
>
b
.
order
?
1
:
-
1
)
//加载所有数节点
renderTreeNodes
=
(
data
)
=>
{
return
data
.
map
((
item
)
=>
{
if
(
item
.
children
)
{
return
(
<
TreeNode
title
=
{
item
.
name
}
key
=
{
item
.
id
}
dataRef
=
{
item
}
>
{
this
.
renderTreeNodes
(
item
.
children
)}
{
this
.
renderTreeNodes
(
item
.
children
.
sort
(
this
.
groupsort
)
)}
<
/TreeNode
>
);
}
...
...
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