Commit d449901f by ethanlamzs

优化学校信息的检索

1 parent aa7fcf08
...@@ -11,6 +11,7 @@ export function schoolList(count,filter) { ...@@ -11,6 +11,7 @@ export function schoolList(count,filter) {
name:`学校名字-${i}`, name:`学校名字-${i}`,
corp:`wx_xxxx111100111_${i}`, corp:`wx_xxxx111100111_${i}`,
schoolCode:`sch_000111234${i}`, schoolCode:`sch_000111234${i}`,
showArea:`address_xxxx-${i}`,
code:`sch_000111234${i}`, code:`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)),
......
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
const response = yield call(queryWXSchool,payload); const response = yield call(queryWXSchool,payload);
yield put({ yield put({
type : 'querySch', type : 'querySch',
payload: response, payload: Array.isArray(response.list) ? response : [],
}); });
}, },
}, },
......
...@@ -155,7 +155,7 @@ export default class schoollist extends PureComponent { ...@@ -155,7 +155,7 @@ export default class schoollist extends PureComponent {
</Col> </Col>
<Col md={8} sm={24}> <Col md={8} sm={24}>
<FormItem label="企业号代码"> <FormItem label="企业号代码">
{getFieldDecorator('corp')( {getFieldDecorator('corpid')(
<Input placeholder="请输入" /> <Input placeholder="请输入" />
)} )}
</FormItem> </FormItem>
...@@ -193,6 +193,10 @@ export default class schoollist extends PureComponent { ...@@ -193,6 +193,10 @@ export default class schoollist extends PureComponent {
render:val => <span> {val} </span>, render:val => <span> {val} </span>,
}, },
{ {
title: '所属地区',
dataIndex: 'showArea',
},
{
title: '更新时间', title: '更新时间',
dataIndex: 'updatedAt', dataIndex: 'updatedAt',
sorter: true, 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!