dev_forum
hjm 5 years ago
parent 4bc87cc97f
commit 02f1650cd3

@ -905,7 +905,7 @@ class Fileslists extends Component{
isAdmin={this.props.isAdmin()} isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()} isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()} 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)} Settingtypes={(id)=>this.Settingtypes(id)}
coursesId={this.props.match.params.coursesId} coursesId={this.props.match.params.coursesId}
updatafiledfun={()=>this.updatafiled()} updatafiledfun={()=>this.updatafiled()}

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

@ -135,7 +135,7 @@ class CommonWorkItem extends Component{
<div className="workList_Item"> <div className="workList_Item">
{ {
mainList && isAdmin && 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})) }> <div className="flex1" onClick={() => this.props.onItemClick(Object.assign({}, item, {id: item.homework_id})) }>
<p className="clearfix mb20"> <p className="clearfix mb20">

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

@ -730,7 +730,7 @@ debugger
isAdmin={this.props.isAdmin()} isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()} isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()} 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} // onItemClick={this.onItemClick}
// onSticky={this.onSticky} // onSticky={this.onSticky}
funlist={()=>this.fetchAll(search,page,order)} funlist={()=>this.fetchAll(search,page,order)}

@ -411,7 +411,7 @@ onBoardsNew=()=>{
{...this.props} {...this.props}
discussMessage={item} discussMessage={item}
data={data} 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} onItemClick={this.onItemClick}
index={index} index={index}
chooseTopic={this.chooseTopic} chooseTopic={this.chooseTopic}

@ -17,19 +17,6 @@ import DownloadMessageysl from "../../modals/DownloadMessageysl";
import CreateGroupByImportModal from './modal/CreateGroupByImportModal' import CreateGroupByImportModal from './modal/CreateGroupByImportModal'
const Search =Input.Search; 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 buildColumns = (that) => {
const { course_groups } = that.state const { course_groups } = that.state
@ -100,7 +87,7 @@ const buildColumns = (that) => {
dataIndex: 'check', dataIndex: 'check',
key: 'check', key: 'check',
render: (text, item) => { 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%" width:"5%"
}) })
@ -280,6 +267,7 @@ class studentsList extends Component{
} }
componentDidUpdate(prevProps) { componentDidUpdate(prevProps) {
if (prevProps.match.params.course_group_id != this.props.match.params.course_group_id) { if (prevProps.match.params.course_group_id != this.props.match.params.course_group_id) {
this.setState({checkBoxValues: []})
this.fetchAll(1) this.fetchAll(1)
} }
// 加载了2次 // 加载了2次

Loading…
Cancel
Save