this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
diff --git a/public/react/src/modules/courses/exercise/Exercise.js b/public/react/src/modules/courses/exercise/Exercise.js
index 5058b5719..4331bdc6f 100644
--- a/public/react/src/modules/courses/exercise/Exercise.js
+++ b/public/react/src/modules/courses/exercise/Exercise.js
@@ -560,7 +560,7 @@ class Exercise extends Component{
{...this.state}
item={item}
key={key}
- checkBox={ this.onItemClick(item)}
>}
>
diff --git a/public/react/src/modules/courses/graduation/tasks/index.js b/public/react/src/modules/courses/graduation/tasks/index.js
index 0a4bd47b4..7bf9b690b 100644
--- a/public/react/src/modules/courses/graduation/tasks/index.js
+++ b/public/react/src/modules/courses/graduation/tasks/index.js
@@ -730,7 +730,7 @@ debugger
isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()}
- checkBox={this.props.isAdmin()?:""}
+ checkBox={this.props.isAdmin()?:""}
// onItemClick={this.onItemClick}
// onSticky={this.onSticky}
funlist={()=>this.fetchAll(search,page,order)}
diff --git a/public/react/src/modules/courses/graduation/topics/index.js b/public/react/src/modules/courses/graduation/topics/index.js
index 8ed3118b9..6dab02f07 100644
--- a/public/react/src/modules/courses/graduation/topics/index.js
+++ b/public/react/src/modules/courses/graduation/topics/index.js
@@ -411,7 +411,7 @@ onBoardsNew=()=>{
{...this.props}
discussMessage={item}
data={data}
- checkBox={ this.onItemClick(item)} className="mr15">}
+ checkBox={ this.onItemClick(item)} className="mr15">}
onItemClick={this.onItemClick}
index={index}
chooseTopic={this.chooseTopic}
diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js
index c073abf4f..acffd8ef4 100644
--- a/public/react/src/modules/courses/members/studentsList.js
+++ b/public/react/src/modules/courses/members/studentsList.js
@@ -17,19 +17,6 @@ import DownloadMessageysl from "../../modals/DownloadMessageysl";
import CreateGroupByImportModal from './modal/CreateGroupByImportModal'
const Search =Input.Search;
-const dataSource = [{
- check:,
- id: 1,
- name: 胡莎莎,
- StuNo: 32,
- classes: 西湖区湖底公园1号
-}, {
- check:,
- id: 2,
- name: 胡莎莎,
- StuNo: 32,
- classes: 西湖区湖底公园2号
-}];
const buildColumns = (that) => {
const { course_groups } = that.state
@@ -100,7 +87,7 @@ const buildColumns = (that) => {
dataIndex: 'check',
key: 'check',
render: (text, item) => {
- return
+ return
},
width:"5%"
})
@@ -280,6 +267,7 @@ class studentsList extends Component{
}
componentDidUpdate(prevProps) {
if (prevProps.match.params.course_group_id != this.props.match.params.course_group_id) {
+ this.setState({checkBoxValues: []})
this.fetchAll(1)
}
// 加载了2次