| | |
| | | fetch({ |
| | | url: `api/news/keywordlist` |
| | | }).then(res => { |
| | | console.log('res', res); |
| | | this.setState({ |
| | | loading: false |
| | | }) |
| | |
| | | } |
| | | |
| | | setFormData = data => { |
| | | console.log('form', data); |
| | | this.setState({ |
| | | formData: data, |
| | | }); |
| | |
| | | dataIndex: 'title', |
| | | key: 'title', |
| | | render: (cur, item) => { |
| | | return <a dangerouslySetInnerHTML={{ __html: cur }} onClick={() => { |
| | | window.open(item.url) |
| | | }}> |
| | | return <a dangerouslySetInnerHTML={{ __html: cur }} target="_blank" href={item.url} > |
| | | </a> |
| | | } |
| | | }, |
| | | { |
| | | // title: '爬虫时间', |
| | | title: '发布时间', |
| | | key: 'create_time', |
| | | dataIndex: 'create_time', |
| | |
| | | }, |
| | | { |
| | | title: '来源', |
| | | dataIndex: 'keyword', |
| | | key: 'keyword', |
| | | dataIndex: 'author', |
| | | key: 'author', |
| | | }, |
| | | ]; |
| | | } |