调整 24692 题库选用新增需求

competitions
杨树林 6 years ago
parent ccb2054156
commit d768f8d7c7

@ -184,6 +184,9 @@ class UseBank extends Component{
let { flag, nav_my, loading, hasMore, object_list, search, checkBoxValues,isChecked,page,is_teacher }=this.state
let { object_type }=this.props;
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
console.log("题库选用2222");
console.log("UseBank");
console.log(this.props);
return(
<a>
<style>{`
@ -199,7 +202,7 @@ class UseBank extends Component{
width: 170px !important;
}
.bankwidth{
width:24% !important;
width:27% !important;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
@ -292,8 +295,22 @@ class UseBank extends Component{
nav_my==='public' &&
<span className="fl with16 color-grey-6 task-hide pl10">{item.username}</span>
}
<a style={{textAlign: "center"}} className="color-blue font-14"
{
this.props.object_type && this.props.object_type === "" ?
<a style={{textAlign: "center"}} className="color-blue font-14 pl5"
>编辑</a>
: this.props.object_type && this.props.object_type === "" ?
<a style={{textAlign: "center"}} className="color-blue font-14 pl5"
>编辑</a>
: this.props.object_type && this.props.object_type === "" ?
<a style={{textAlign: "center"}} className="color-blue font-14 pl5"
>编辑</a>
: this.props.object_type && this.props.object_type === "" ?
<a style={{textAlign: "center"}} className="color-blue font-14 pl5"
>编辑</a>
: ""
}
</p>
)

@ -672,7 +672,7 @@ class GraduationTasks extends Component{
</Link>
</WordsBtn> : ""}
{this.props.isAdmin() ?<UseBank {...this.props} {...this.state} object_type={"gtask"} useBankSuccess={(checkBoxValues,object_ids)=>this.useBankSuccess(checkBoxValues,object_ids)}></UseBank>:""}
{/*题库选用 {this.props.isAdmin() ?<UseBank {...this.props} {...this.state} object_type={"gtask"} useBankSuccess={(checkBoxValues,object_ids)=>this.useBankSuccess(checkBoxValues,object_ids)}></UseBank>:""}*/}
</React.Fragment>
}

@ -414,7 +414,7 @@ onBoardsNew=()=>{
{/* 参考普通作业 - 题库选用 */}
{/* <WordsBtn style="blue" className="mr30" onClick={()=>this.useFromBank()}>题库选用</WordsBtn> 正式版没有,先隐藏*/}
< a className={"fl color-blue mr30 font-16"} onClick={(url)=>this.confirmysl(`/courses/${this.props.match.params.coursesId}/graduation_topics/export.xlsx`)}>导出</a>
<p className="fl"><UseBank {...this.props} {...this.state} object_type={"gtopic"} useBankSuccess={this.useBankSuccess}></UseBank></p>
{/*<p className="fl"><UseBank {...this.props} {...this.state} object_type={"gtopic"} useBankSuccess={this.useBankSuccess}></UseBank></p> 题库选用*/}
<WordsBtn style="blue" className="font-16" onClick={()=>this.onBoardsNew()}>新建</WordsBtn>
</React.Fragment>):""
}

Loading…
Cancel
Save