|
|
|
@ -107,7 +107,7 @@ const options = {
|
|
|
|
|
render: (text, record) => (
|
|
|
|
|
<span>
|
|
|
|
|
<Button type="primary">
|
|
|
|
|
<Link to={`/developer/neworedittask/${record.identifier}`}>编辑</Link>
|
|
|
|
|
<Link to={`/problems/neworedittask/${record.identifier}`}>编辑</Link>
|
|
|
|
|
</Button>
|
|
|
|
|
</span>
|
|
|
|
|
),
|
|
|
|
@ -116,7 +116,7 @@ const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: '标题',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
render: (name, record) => <Link style={{ color: '#459be5' }} to={`/developer/studentstudy/${record.identifier}`}>{name}</Link>
|
|
|
|
|
render: (name, record) => <Link style={{ color: '#459be5' }} to={`/problems/studentstudy/${record.identifier}`}>{name}</Link>
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '分类',
|
|
|
|
@ -178,7 +178,6 @@ class DeveloperHome extends Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
console.log('==============>>>>>>>>>>>>>>>', this.props);
|
|
|
|
|
const { isMySource } = this.props;
|
|
|
|
|
if (isMySource) {
|
|
|
|
|
// this.handleFilterSearch()
|
|
|
|
@ -199,21 +198,6 @@ class DeveloperHome extends Component {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidUpdate (nextProps) {
|
|
|
|
|
// if (nextProps.isMySource !== this.isMySource) {
|
|
|
|
|
// // this.handleFilterSearch({come_from: nextProps.isMySource ? 'mine' : 'all'});
|
|
|
|
|
// if (nextProps.isMySource !== 'all') {
|
|
|
|
|
// let _columns = columns.concat([options]);
|
|
|
|
|
// this.setState({
|
|
|
|
|
// columns: _columns
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// this.setState({
|
|
|
|
|
// columns: columns
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
handleTableChange = (pagination, filters, sorter) => {
|
|
|
|
|
// console.log(pagination, filters, sorter);
|
|
|
|
|
const {field, order} = sorter;
|
|
|
|
@ -318,7 +302,7 @@ class DeveloperHome extends Component {
|
|
|
|
|
<MultipTags type="error" text="困难" numb={diff_count}/>
|
|
|
|
|
</div>
|
|
|
|
|
<Button type="primary">
|
|
|
|
|
<Link to="/developer/neworedittask">新建</Link>
|
|
|
|
|
<Link to="/problems/neworedittask">新建</Link>
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|