dev_forum
hjm 5 years ago
parent 4bc87cc97f
commit 02f1650cd3

@ -905,7 +905,7 @@ class Fileslists extends Component{
isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()}
checkBox={this.props.isAdmin()?<Checkbox value={item.id}></Checkbox>:""}
checkBox={this.props.isAdmin()?<Checkbox value={item.id} key={item.id}></Checkbox>:""}
Settingtypes={(id)=>this.Settingtypes(id)}
coursesId={this.props.match.params.coursesId}
updatafiledfun={()=>this.updatafiled()}

@ -428,7 +428,7 @@ class Boards extends Component{
<BoardsListItem
{...this.props}
discussMessage={item}
checkBox={ isAdmin ? <Checkbox value={item.id}></Checkbox> : ''}
checkBox={ isAdmin ? <Checkbox value={item.id} key={item.id}></Checkbox> : ''}
onItemClick={this.onItemClick}
onSticky={this.onSticky}
></BoardsListItem>

@ -135,7 +135,7 @@ class CommonWorkItem extends Component{
<div className="workList_Item">
{
mainList && isAdmin &&
<span className="fl mr12"><Checkbox value={item.homework_id}></Checkbox></span>
<span className="fl mr12"><Checkbox value={item.homework_id} key={item.homework_id}></Checkbox></span>
}
<div className="flex1" onClick={() => this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
<p className="clearfix mb20">

@ -560,7 +560,7 @@ class Exercise extends Component{
{...this.state}
item={item}
key={key}
checkBox={<Checkbox value={item.id}
checkBox={<Checkbox value={item.id} key={item.id}
// onClick={() => this.onItemClick(item)}
></Checkbox>}
></ExerciseListItem>

@ -730,7 +730,7 @@ debugger
isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()}
checkBox={this.props.isAdmin()?<Checkbox value={item.task_id}></Checkbox>:""}
checkBox={this.props.isAdmin()?<Checkbox value={item.task_id} key={item.task_id}></Checkbox>:""}
// onItemClick={this.onItemClick}
// onSticky={this.onSticky}
funlist={()=>this.fetchAll(search,page,order)}

@ -411,7 +411,7 @@ onBoardsNew=()=>{
{...this.props}
discussMessage={item}
data={data}
checkBox={<Checkbox value={item.id} onClick={() => this.onItemClick(item)} className="mr15"></Checkbox>}
checkBox={<Checkbox value={item.id} key={item.id} onClick={() => this.onItemClick(item)} className="mr15"></Checkbox>}
onItemClick={this.onItemClick}
index={index}
chooseTopic={this.chooseTopic}

@ -17,19 +17,6 @@ import DownloadMessageysl from "../../modals/DownloadMessageysl";
import CreateGroupByImportModal from './modal/CreateGroupByImportModal'
const Search =Input.Search;
const dataSource = [{
check:<Checkbox></Checkbox>,
id: <span className="color-grey-6">1</span>,
name: <a href="javascript:void(0)"className="color-grey-3">胡莎莎</a>,
StuNo: <span className="color-grey-9">32</span>,
classes: <span className="color-grey-3 task-hide classesName">西湖区湖底公园1号</span>
}, {
check:<Checkbox></Checkbox>,
id: <span className="color-grey-6">2</span>,
name: <a href="javascript:void(0)"className="color-grey-3">胡莎莎</a>,
StuNo: <span className="color-grey-9">32</span>,
classes: <span className="color-grey-3 task-hide classesName">西湖区湖底公园2号</span>
}];
const buildColumns = (that) => {
const { course_groups } = that.state
@ -100,7 +87,7 @@ const buildColumns = (that) => {
dataIndex: 'check',
key: 'check',
render: (text, item) => {
return <Checkbox value={item.course_member_id}></Checkbox>
return <Checkbox value={item.course_member_id} key={item.course_member_id} ></Checkbox>
},
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次

Loading…
Cancel
Save