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 13668f48
authored
2018-01-23 11:27:46 +0800
by
ethanlamzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
重置功能
1 parent
a2d66cfc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
mock/schoollist.js
src/routes/devutil/linkmanadm2.js
mock/schoollist.js
View file @
13668f4
...
@@ -9,7 +9,8 @@ export function schoolList(count,filter) {
...
@@ -9,7 +9,8 @@ export function schoolList(count,filter) {
key
:
i
,
key
:
i
,
id
:
`fake-list-
${
i
}
`
,
id
:
`fake-list-
${
i
}
`
,
name
:
`学校名字-
${
i
}
`
,
name
:
`学校名字-
${
i
}
`
,
corp
:
`企业号代码
${
i
}
`
,
corp
:
`wx_xxxx111100111_
${
i
}
`
,
schoolCode
:
`sch_000111234
${
i
}
`
,
avatar
:
'XXX'
,
avatar
:
'XXX'
,
updatedAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
updatedAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
createdAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
createdAt
:
new
Date
(
new
Date
().
getTime
()
-
(
1000
*
60
*
60
*
2
*
i
)),
...
...
src/routes/devutil/linkmanadm2.js
View file @
13668f4
...
@@ -63,7 +63,15 @@ export default class linkmanadm extends PureComponent {
...
@@ -63,7 +63,15 @@ export default class linkmanadm extends PureComponent {
}
}
handleFormReset
=
()
=>
{
handleFormReset
=
()
=>
{
const
{
form
,
dispatch
}
=
this
.
props
;
form
.
resetFields
();
this
.
setState
({
formValues
:
{},
});
dispatch
({
type
:
'schools/fetch'
,
payload
:
{},
});
}
}
toggleForm
=
()
=>
{
toggleForm
=
()
=>
{
...
@@ -123,6 +131,13 @@ export default class linkmanadm extends PureComponent {
...
@@ -123,6 +131,13 @@ export default class linkmanadm extends PureComponent {
<
/FormItem
>
<
/FormItem
>
<
/Col
>
<
/Col
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"学校代码"
>
{
getFieldDecorator
(
'schoolCode'
)(
<
Input
placeholder
=
"请输入"
/>
)}
<
/FormItem
>
<
/Col
>
<
Col
md
=
{
8
}
sm
=
{
24
}
>
<
FormItem
label
=
"企业号代码"
>
<
FormItem
label
=
"企业号代码"
>
{
getFieldDecorator
(
'corp'
)(
{
getFieldDecorator
(
'corp'
)(
<
Input
placeholder
=
"请输入"
/>
<
Input
placeholder
=
"请输入"
/>
...
@@ -161,6 +176,10 @@ export default class linkmanadm extends PureComponent {
...
@@ -161,6 +176,10 @@ export default class linkmanadm extends PureComponent {
dataIndex
:
'corp'
,
dataIndex
:
'corp'
,
},
},
{
{
title
:
'学校码'
,
dataIndex
:
'schoolCode'
,
},
{
title
:
'更新时间'
,
title
:
'更新时间'
,
dataIndex
:
'updatedAt'
,
dataIndex
:
'updatedAt'
,
sorter
:
true
,
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