|
|
@ -587,6 +587,8 @@ class ShixunHomework extends Component{
|
|
|
|
let {Coursename,page}=this.state;
|
|
|
|
let {Coursename,page}=this.state;
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
order: e.key,
|
|
|
|
order: e.key,
|
|
|
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|
|
|
|
checkedtype:false,
|
|
|
|
isSpin:true
|
|
|
|
isSpin:true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
let newkey=e.key;
|
|
|
|
let newkey=e.key;
|
|
|
@ -655,6 +657,7 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
savedelete=()=>{
|
|
|
|
savedelete=()=>{
|
|
|
|
let {Coursename,page,order,checkBoxValues,datas}=this.state;
|
|
|
|
let {Coursename,page,order,checkBoxValues,datas}=this.state;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
@ -966,7 +969,7 @@ class ShixunHomework extends Component{
|
|
|
|
category_id={this.props.match.params.category_id}
|
|
|
|
category_id={this.props.match.params.category_id}
|
|
|
|
visible={shixunmodal}
|
|
|
|
visible={shixunmodal}
|
|
|
|
shixunmodallist={shixunmodallist}
|
|
|
|
shixunmodallist={shixunmodallist}
|
|
|
|
// funshixunmodallist={(search,type,loading,page)=>this.funshixunmodallist(search,type,loading,page)}
|
|
|
|
homeworkupdatalists={(Coursename,page,order)=>this.homeworkupdatalist(Coursename,page,order)}
|
|
|
|
hometypepvisible={hometypepvisible}
|
|
|
|
hometypepvisible={hometypepvisible}
|
|
|
|
hidecouseShixunModal={this.hidecouseShixunModal}
|
|
|
|
hidecouseShixunModal={this.hidecouseShixunModal}
|
|
|
|
newshixunmodallist={newshixunmodallist}
|
|
|
|
newshixunmodallist={newshixunmodallist}
|
|
|
@ -1019,8 +1022,8 @@ class ShixunHomework extends Component{
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<div className="edu-back-white">
|
|
|
|
<p className="clearfix padding30 bor-bottom-greyE">
|
|
|
|
<p className="clearfix padding30 bor-bottom-greyE">
|
|
|
|
<p style={{height: '20px'}}>
|
|
|
|
<p style={{height: '20px'}}>
|
|
|
|
<span className="font-18 fl color-dark-21">{datas&&datas.category_name===undefined||datas&&datas.category_name===null?datas&&datas.main_category_name:datas&&datas.category_name+" 作业列表"}</span>
|
|
|
|
{/*<span className="font-18 fl color-dark-21">{datas&&datas.category_name===undefined||datas&&datas.category_name===null?datas&&datas.main_category_name:datas&&datas.category_name+" 作业列表"}</span>*/}
|
|
|
|
{/* <span className="font-18 fl color-dark-21">实训作业</span>*/}
|
|
|
|
<span className="font-18 fl color-dark-21">实训作业</span>
|
|
|
|
<li className="fr">
|
|
|
|
<li className="fr">
|
|
|
|
{this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?
|
|
|
|
{this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
@ -1062,7 +1065,9 @@ class ShixunHomework extends Component{
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Spin size="large" spinning={this.state.isSpin}>
|
|
|
|
<Spin size="large" spinning={this.state.isSpin}>
|
|
|
|
{this.props.isAdmin()===true?<div className="mt20 edu-back-white padding20-30">
|
|
|
|
{this.props.isAdmin()===true?
|
|
|
|
|
|
|
|
datas===undefined?'' :datas.homeworks.length===0?"":
|
|
|
|
|
|
|
|
<div className="mt20 edu-back-white padding20-30">
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<Checkbox className="fl" style={{marginTop:'0px'}}checked={checkedtype} onClick={this.funselect}>已选 {checkBoxValues&&checkBoxValues.length} 个</Checkbox>
|
|
|
|
<Checkbox className="fl" style={{marginTop:'0px'}}checked={checkedtype} onClick={this.funselect}>已选 {checkBoxValues&&checkBoxValues.length} 个</Checkbox>
|
|
|
@ -1152,7 +1157,7 @@ class ShixunHomework extends Component{
|
|
|
|
// console.log("++++++++++++++++++++++++++++++++++++++++++")
|
|
|
|
// console.log("++++++++++++++++++++++++++++++++++++++++++")
|
|
|
|
// console.log(JSON.stringify(this.props))
|
|
|
|
// console.log(JSON.stringify(this.props))
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="mt20 edu-back-white padding02010" key={index}>
|
|
|
|
<div className="mt20 edu-back-white padding02010" key={index} >
|
|
|
|
<div className="clearfix">
|
|
|
|
<div className="clearfix">
|
|
|
|
<ShixunhomeWorkItem
|
|
|
|
<ShixunhomeWorkItem
|
|
|
|
{...this.props}
|
|
|
|
{...this.props}
|
|
|
@ -1163,6 +1168,7 @@ class ShixunHomework extends Component{
|
|
|
|
isClassManagement={this.props.isClassManagement()}
|
|
|
|
isClassManagement={this.props.isClassManagement()}
|
|
|
|
checkBox={this.props.isAdmin()?<Checkbox value={item.homework_id} key={item.homework_id}></Checkbox>:""}
|
|
|
|
checkBox={this.props.isAdmin()?<Checkbox value={item.homework_id} key={item.homework_id}></Checkbox>:""}
|
|
|
|
match={this.props.match}
|
|
|
|
match={this.props.match}
|
|
|
|
|
|
|
|
index={index}
|
|
|
|
coursedata={this.props.coursedata}
|
|
|
|
coursedata={this.props.coursedata}
|
|
|
|
coursupdata={()=>this.homeworkupdatalist(Coursename,page,order)}
|
|
|
|
coursupdata={()=>this.homeworkupdatalist(Coursename,page,order)}
|
|
|
|
course_identity={datas.course_identity}
|
|
|
|
course_identity={datas.course_identity}
|
|
|
@ -1203,18 +1209,10 @@ class ShixunHomework extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="alltask "
|
|
|
|
|
|
|
|
style={
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
display: datas===undefined?'none' :datas.task_count===0? 'block' : 'none'
|
|
|
|
datas===undefined?'' :datas.homeworks.length===0? <NoneData></NoneData>:""
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
|
|
|
|
<div className="edu-tab-con-box clearfix edu-txt-center"><img className="edu-nodata-img mb20"
|
|
|
|
|
|
|
|
src="/images/educoder/nodata.png" />
|
|
|
|
|
|
|
|
<p className="edu-nodata-p mb20">暂时还没有相关数据哦!</p></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -1223,3 +1221,14 @@ class ShixunHomework extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default ShixunHomework;
|
|
|
|
export default ShixunHomework;
|
|
|
|
|
|
|
|
// {/*<div className="alltask "*/}
|
|
|
|
|
|
|
|
// {/*style={*/}
|
|
|
|
|
|
|
|
// {/*{*/}
|
|
|
|
|
|
|
|
// {/*display: datas===undefined?'none' :datas.task_count===0? 'block' : 'none'*/}
|
|
|
|
|
|
|
|
// {/*}*/}
|
|
|
|
|
|
|
|
// {/*}*/}
|
|
|
|
|
|
|
|
// {/*>*/}
|
|
|
|
|
|
|
|
// {/*<div className="edu-tab-con-box clearfix edu-txt-center">*/}
|
|
|
|
|
|
|
|
// {/*<img className="edu-nodata-img mb20" src="/images/educoder/nodata.png" />*/}
|
|
|
|
|
|
|
|
// {/*<p className="edu-nodata-p mb20">暂时还没有相关数据哦!</p></div>*/}
|
|
|
|
|
|
|
|
// {/*</div>*/}
|