Commit 13668f48 by ethanlamzs

重置功能

1 parent a2d66cfc
......@@ -9,7 +9,8 @@ export function schoolList(count,filter) {
key: i,
id: `fake-list-${i}`,
name:`学校名字-${i}`,
corp:`企业号代码${i}`,
corp:`wx_xxxx111100111_${i}`,
schoolCode:`sch_000111234${i}`,
avatar:'XXX',
updatedAt: new Date(new Date().getTime() - (1000 * 60 * 60 * 2 * i)),
createdAt: new Date(new Date().getTime() - (1000 * 60 * 60 * 2 * i)),
......
......@@ -63,7 +63,15 @@ export default class linkmanadm extends PureComponent {
}
handleFormReset = () => {
const { form, dispatch } = this.props;
form.resetFields();
this.setState({
formValues: {},
});
dispatch({
type: 'schools/fetch',
payload: {},
});
}
toggleForm = () => {
......@@ -123,6 +131,13 @@ export default class linkmanadm extends PureComponent {
</FormItem>
</Col>
<Col md={8} sm={24}>
<FormItem label="学校代码">
{getFieldDecorator('schoolCode')(
<Input placeholder="请输入" />
)}
</FormItem>
</Col>
<Col md={8} sm={24}>
<FormItem label="企业号代码">
{getFieldDecorator('corp')(
<Input placeholder="请输入" />
......@@ -161,6 +176,10 @@ export default class linkmanadm extends PureComponent {
dataIndex: 'corp',
},
{
title:'学校码',
dataIndex:'schoolCode',
},
{
title: '更新时间',
dataIndex: 'updatedAt',
sorter: true,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!