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 d449901f
authored
2018-01-30 15:41:34 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化学校信息的检索
1 parent
aa7fcf08
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
mock/schoollist.js
src/models/schools.js
src/routes/devutil/schoollist.js
mock/schoollist.js
View file @
d449901
...
...
@@ -11,6 +11,7 @@ export function schoolList(count,filter) {
name
:
`学校名字-
${
i
}
`
,
corp
:
`wx_xxxx111100111_
${
i
}
`
,
schoolCode
:
`sch_000111234
${
i
}
`
,
showArea
:
`address_xxxx-
${
i
}
`
,
code
:
`sch_000111234
${
i
}
`
,
avatar
:
'XXX'
,
updatedAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
...
...
src/models/schools.js
View file @
d449901
...
...
@@ -15,7 +15,7 @@ export default {
const
response
=
yield
call
(
queryWXSchool
,
payload
);
yield
put
({
type
:
'querySch'
,
payload
:
response
,
payload
:
Array
.
isArray
(
response
.
list
)
?
response
:
[]
,
});
},
},
...
...
src/routes/devutil/schoollist.js
View file @
d449901
...
...
@@ -155,7 +155,7 @@ export default class schoollist extends PureComponent {
<
/Col
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"企业号代码"
>
{
getFieldDecorator
(
'corp'
)(
{
getFieldDecorator
(
'corp
id
'
)(
<
Input
placeholder
=
"请输入"
/>
)}
<
/FormItem
>
...
...
@@ -193,6 +193,10 @@ export default class schoollist extends PureComponent {
render
:
val
=>
<
span
>
{
val
}
<
/span>
,
},
{
title
:
'所属地区'
,
dataIndex
:
'showArea'
,
},
{
title
:
'更新时间'
,
dataIndex
:
'updatedAt'
,
sorter
:
true
,
...
...
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