Commit d449901f by ethanlamzs

优化学校信息的检索

1 parent aa7fcf08
......@@ -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)),
......
......@@ -15,7 +15,7 @@ export default {
const response = yield call(queryWXSchool,payload);
yield put({
type : 'querySch',
payload: response,
payload: Array.isArray(response.list) ? response : [],
});
},
},
......
......@@ -155,7 +155,7 @@ export default class schoollist extends PureComponent {
</Col>
<Col md={8} sm={24}>
<FormItem label="企业号代码">
{getFieldDecorator('corp')(
{getFieldDecorator('corpid')(
<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,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!