调整无数据情况下的显示

dev_aliyun_beta
杨树明 5 years ago
parent a0a0623373
commit ad4cf27615

@ -787,7 +787,7 @@ class Fileslists extends Component{
showSearchInput={true}
></Titlesearchsection>
{this.props.isAdmin()? <div className="mt20 edu-back-white padding20-30" style={{display:this.props.isAdmin()||this.props.isStudent()?"":"none"}}>
{this.props.isAdmin()? files===undefined?'' :files.length===0? "":<div className="mt20 edu-back-white padding20-30" style={{display:this.props.isAdmin()||this.props.isStudent()?"":"none"}}>
<div className="clearfix">
{this.props.isAdmin()? <Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} </Checkbox>:""}
<div className="studentList_operation_ul">
@ -948,7 +948,7 @@ class Fileslists extends Component{
/>:""}
</div>
<div className="alltask edu-back-white"
<div className="alltask"
style={
{
display: files===undefined?'none' :files.length===0? 'block' : 'none'

@ -363,9 +363,9 @@ class Boards extends Component{
<FilesListItem></FilesListItem> */}
{isAdmin && <div className="mt20 edu-back-white padding20-30">
<div className="clearfix">
{isAdmin && <Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} </Checkbox>}
{messages&&messages.length == 0?"": isAdmin && <div className="mt20 edu-back-white padding20-30">
<div className="clearfix">
{isAdmin&&<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} </Checkbox>}
<div className="studentList_operation_ul">
{ !!isAdmin &&
<React.Fragment>

@ -507,7 +507,7 @@ class Exercise extends Component{
</div>
</div>
<Spin size="large" spinning={this.state.isSpin}>
{this.props.isAdmin()?<div className="mt20 mb20 edu-back-white padding20-30">
{this.props.isAdmin()?exercises && exercises.length ===0?"":<div className="mt20 mb20 edu-back-white padding20-30">
<div className="clearfix">
<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} </Checkbox>
<div className="studentList_operation_ul">

@ -667,7 +667,7 @@ class GraduationTasks extends Component{
// }
secondRowLeft={
<div style={{"display":"inline-block", "marginTop": "22px"}}>
<div style={{"display":"inline-block", "marginTop": "22px"}}>
<span>{all_count}个毕设任务</span>
<span style={{"marginLeft":"16px"}}>已发布{this.state.published_count}</span>
<span style={{"marginLeft":"16px"}}>未发布{this.state.unpublished_count}</span>
@ -696,7 +696,7 @@ class GraduationTasks extends Component{
<FilesListItem></FilesListItem> */}
{this.props.isAdmin()? <div className="mt20 edu-back-white padding20-30">
{this.props.isAdmin()?all_count===undefined?'' :all_count===0?"": <div className="mt20 edu-back-white padding20-30">
<div className="clearfix">
<Checkbox className="fl" onChange={this.onCheckAll} checked={checkAllValue}>已选 {checkBoxValues.length} </Checkbox>
<div className="studentList_operation_ul">
@ -770,7 +770,7 @@ class GraduationTasks extends Component{
/>
</div>
}
<div className="alltask edu-back-white"
<div className="alltask"
style={
{
display: all_count===undefined?'none' :all_count===0? 'block' : 'none'

@ -1035,7 +1035,7 @@ class ShixunHomework extends Component{
</p>
<div className="clearfix pl30 pr30">
<p style={{marginTop:'10px'}}>
<p style={{marginTop:'10px'}}>
<div style={{"display":"inline-block", "marginTop": "22px"}}>
<span> {datas&&datas.all_count}个实训作业</span>
<span style={{"marginLeft":"16px"}}>已发布{datas&&datas.published_count}</span>
@ -1062,7 +1062,9 @@ class ShixunHomework extends Component{
</div>
</div>
<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.task_count===0?"":
<div className="mt20 edu-back-white padding20-30">
<div className="clearfix">
<Checkbox className="fl" style={{marginTop:'0px'}}checked={checkedtype} onClick={this.funselect}>已选 {checkBoxValues&&checkBoxValues.length} </Checkbox>
@ -1211,8 +1213,8 @@ class ShixunHomework extends Component{
}
}
>
<div className="edu-tab-con-box clearfix edu-txt-center"><img className="edu-nodata-img mb20"
src="/images/educoder/nodata.png" />
<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>

Loading…
Cancel
Save