dev_cs_new
杨树明 6 years ago
parent 2de30bc91f
commit 14acd39a07

@ -837,7 +837,7 @@ class Coursesleftnav extends Component{
.droppableul{ .droppableul{
max-height: 500px; max-height: 500px;
overflow-y:auto; overflow-y:auto;
overflow:hidden auto; overflow-x:hidden;
} }
.mr13{ .mr13{
@ -928,8 +928,9 @@ class Coursesleftnav extends Component{
<a className="fl pl46 pd0 Draggablelichild"> <a className="fl pl46 pd0 Draggablelichild">
<span className={this.props.location.pathname===iem.second_category_url?"color-blue fl ml38 maxwidth155 task-hide Draggablelichild":"fl ml38 maxwidth155 task-hide Draggablelichild"}>{iem.category_name}</span> <span className={this.props.location.pathname===iem.second_category_url?"color-blue fl ml38 maxwidth155 task-hide Draggablelichild":"fl ml38 maxwidth155 task-hide Draggablelichild"}>{iem.category_name}</span>
<span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14":item.type===twosandiantypes&&twosandiantype===index?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span> <span className={twosandiantype===undefined?this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14":item.type===twosandiantypes&&twosandiantype===index&&iem.category_name!="未分班"?"none":this.props.location.pathname===iem.second_category_url?"fr mr20 color-blue Draggablelichild font-14":"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span>
{item.type===twosandiantypes&&twosandiantype===index? {item.type===twosandiantypes&&twosandiantype===index?
iem.category_name==="未分班"?"":
iem.category_type==="graduation_topics"||iem.category_type==="graduation_tasks"? iem.category_type==="graduation_topics"||iem.category_type==="graduation_tasks"?
<span className={"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span> <span className={"fr mr20 color999 Draggablelichild font-14"} >{iem.category_count===0?"":iem.category_count}</span>
:<Popover placement="right" content={this.content(item,iem,index)} trigger="hover" key={index}> :<Popover placement="right" content={this.content(item,iem,index)} trigger="hover" key={index}>

@ -472,6 +472,9 @@ class GraduationTasksSubmitnew extends Component{
// } // }
// } // }
}).catch((error) => { }).catch((error) => {
this.setState({
spinnings:false
});
console.log(error) console.log(error)
}) })

@ -179,8 +179,13 @@ class GraduationTasks extends Component{
}) })
.then((result)=>{ .then((result)=>{
if(result.data.status==0){ if(result.data.status==0){
this.props.showNotification(`${result.data.message}`); this.setState({
checkBoxValues:[],
checkAllValue:false
})
this.fetchAll(search,page,order,15) this.fetchAll(search,page,order,15)
this.props.showNotification(`${result.data.message}`);
} }
}).catch((error)=>{ }).catch((error)=>{
console.log(error); console.log(error);
@ -557,6 +562,7 @@ class GraduationTasks extends Component{
//debugger //debugger
let {search,page,order,all_count} = this.state; let {search,page,order,all_count} = this.state;
this.fetchAll(search,page,order,all_count) this.fetchAll(search,page,order,all_count)
} }
getcourse_groupslist=(id)=>{ getcourse_groupslist=(id)=>{
this.setState({ this.setState({
@ -651,7 +657,7 @@ class GraduationTasks extends Component{
</Link> </Link>
</WordsBtn> : ""} </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> </React.Fragment>
} }

@ -355,6 +355,14 @@ onBoardsNew=()=>{
DownloadMessageval:undefined DownloadMessageval:undefined
}) })
} }
// 题库选用成功后刷新页面
useBankSuccess=(checkBoxValues,object_ids)=>{
//debugger
let {search,page,order,all_count} = this.state;
this.fetchAll(search,page,order,all_count)
}
render(){ render(){
let { let {
searchValue, searchValue,

Loading…
Cancel
Save