diff --git a/public/react/src/modules/user/usersInfo/InfosTopics.js b/public/react/src/modules/user/usersInfo/InfosTopics.js index 13bd93ebd..3a5d0c080 100644 --- a/public/react/src/modules/user/usersInfo/InfosTopics.js +++ b/public/react/src/modules/user/usersInfo/InfosTopics.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { SnackbarHOC } from 'educoder'; import {BrowserRouter as Router,Route,Switch,Link} from 'react-router-dom'; -import {Tooltip,Menu,Pagination,Spin, Dropdown} from 'antd'; +import {Tooltip,Menu,Pagination,Spin, Dropdown,Checkbox} from 'antd'; import axios from 'axios'; import {getImageUrl,WordsBtn} from 'educoder'; import moment from 'moment'; @@ -21,7 +21,8 @@ class InfosTopics extends Component{ sort_by:"updated_at", sort_direction:"desc", page:1, - data:undefined + data:undefined, + checkBoxValues:[] } } @@ -112,13 +113,20 @@ class InfosTopics extends Component{ ) } + onCheckBoxChange=(checkedValues)=>{ + debugger + this.setState({ + checkBoxValues:checkedValues + }) + } render(){ let{ category, course_list_id, isSpin, data, - page + page, + sort_direction } = this.state; let categorylist=[ @@ -140,20 +148,14 @@ class InfosTopics extends Component{ const menu = (
); return( @@ -206,8 +208,10 @@ class InfosTopics extends Component{共 {data&&data.count} 个 - 已选择 {data&&data.count} 个 + 已选择 {this.state.checkBoxValues.length} 个
- {types==="publicly"?{item.creator_name}:""} + {types==="publicly"?{item.creator_name}:""} {item.quotes_count} 次引用 {item.solve_count} 次答题 {moment(item.updated_at).fromNow()} @@ -287,6 +299,8 @@ class InfosTopics extends Component{