|
@@ -1,10 +1,10 @@
|
|
|
import React, { Component, Fragment } from 'react';
|
|
import React, { Component, Fragment } from 'react';
|
|
|
-import moment from 'moment';
|
|
|
|
|
import { connect } from 'dva';
|
|
import { connect } from 'dva';
|
|
|
-import { Form, Card, Select, List, Tag, Icon, Avatar, Row, Col, Button } from 'antd';
|
|
|
|
|
|
|
+import { Form, Card, Select, List, Tag, Icon, Row, Col, Button } from 'antd';
|
|
|
|
|
|
|
|
import TagSelect from '@/components/TagSelect';
|
|
import TagSelect from '@/components/TagSelect';
|
|
|
import StandardFormRow from '@/components/StandardFormRow';
|
|
import StandardFormRow from '@/components/StandardFormRow';
|
|
|
|
|
+import ArticleListContent from '@/components/ArticleListContent';
|
|
|
import styles from './Articles.less';
|
|
import styles from './Articles.less';
|
|
|
|
|
|
|
|
const { Option } = Select;
|
|
const { Option } = Select;
|
|
@@ -96,18 +96,6 @@ class SearchList extends Component {
|
|
|
</span>
|
|
</span>
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- const ListContent = ({ data: { content, updatedAt, avatar, owner, href } }) => (
|
|
|
|
|
- <div className={styles.listContent}>
|
|
|
|
|
- <div className={styles.description}>{content}</div>
|
|
|
|
|
- <div className={styles.extra}>
|
|
|
|
|
- <Avatar src={avatar} size="small" />
|
|
|
|
|
- <a href={href}>{owner}</a> 发布在
|
|
|
|
|
- <a href={href}>{href}</a>
|
|
|
|
|
- <em>{moment(updatedAt).format('YYYY-MM-DD HH:mm')}</em>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
const formItemLayout = {
|
|
const formItemLayout = {
|
|
|
wrapperCol: {
|
|
wrapperCol: {
|
|
|
xs: { span: 24 },
|
|
xs: { span: 24 },
|
|
@@ -186,10 +174,7 @@ class SearchList extends Component {
|
|
|
<Col xl={8} lg={10} md={12} sm={24} xs={24}>
|
|
<Col xl={8} lg={10} md={12} sm={24} xs={24}>
|
|
|
<FormItem {...formItemLayout} label="活跃用户">
|
|
<FormItem {...formItemLayout} label="活跃用户">
|
|
|
{getFieldDecorator('user', {})(
|
|
{getFieldDecorator('user', {})(
|
|
|
- <Select
|
|
|
|
|
- placeholder="不限"
|
|
|
|
|
- style={{ maxWidth: 200, width: '100%' }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <Select placeholder="不限" style={{ maxWidth: 200, width: '100%' }}>
|
|
|
<Option value="lisa">李三</Option>
|
|
<Option value="lisa">李三</Option>
|
|
|
</Select>
|
|
</Select>
|
|
|
)}
|
|
)}
|
|
@@ -198,10 +183,7 @@ class SearchList extends Component {
|
|
|
<Col xl={8} lg={10} md={12} sm={24} xs={24}>
|
|
<Col xl={8} lg={10} md={12} sm={24} xs={24}>
|
|
|
<FormItem {...formItemLayout} label="好评度">
|
|
<FormItem {...formItemLayout} label="好评度">
|
|
|
{getFieldDecorator('rate', {})(
|
|
{getFieldDecorator('rate', {})(
|
|
|
- <Select
|
|
|
|
|
- placeholder="不限"
|
|
|
|
|
- style={{ maxWidth: 200, width: '100%' }}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <Select placeholder="不限" style={{ maxWidth: 200, width: '100%' }}>
|
|
|
<Option value="good">优秀</Option>
|
|
<Option value="good">优秀</Option>
|
|
|
</Select>
|
|
</Select>
|
|
|
)}
|
|
)}
|
|
@@ -247,7 +229,7 @@ class SearchList extends Component {
|
|
|
</span>
|
|
</span>
|
|
|
}
|
|
}
|
|
|
/>
|
|
/>
|
|
|
- <ListContent data={item} />
|
|
|
|
|
|
|
+ <ArticleListContent data={item} />
|
|
|
</List.Item>
|
|
</List.Item>
|
|
|
)}
|
|
)}
|
|
|
/>
|
|
/>
|