dev_forum
杨树明 6 years ago
parent 279af48aba
commit 74bb30ba01

@ -189,6 +189,12 @@ class UseBank extends Component{
.setImgW .edu-nodata-img{
width:218px !important;
}
.bankwidth{
width:29% !important;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}
`}</style>
@ -269,7 +275,10 @@ class UseBank extends Component{
<span className="fl with65">
<label className="task-hide fl" title={item.name && item.name.length > 30 ? item.name:""} style={{"maxWidth":"100%"}}>{item.name}</label>
</span>
<span title={item.course_list_name && item.course_list_name.length > 14 && item.course_list_name} className={nav_my==='myself'?"fl with30 color-grey-6 task-hide pl5":"fl with30 color-grey-6 task-hide pl5"}>{item.course_list_name}</span>
<span title={item.course_list_name && item.course_list_name.length > 14 && item.course_list_name}
className={nav_my==='myself'?"fl with30 color-grey-6 task-hide pl5 bankwidth":"fl with30 color-grey-6 task-hide pl5 bankwidth"}
>{item.course_list_name}</span>
{
nav_my==='public' &&
<span className="fl with16 color-grey-6 task-hide pl10">{item.username}</span>

@ -272,9 +272,11 @@ class Coursesleftnav extends Component{
debugger
let {url}=this.state;
if(urls!=url){
debugger
this.props.history.replace(urls);
this.props.updataleftNavfun();
}else{
debugger
if (key === this.props.indexs) {
this.props.unlocationNavfun(undefined)
} else {

@ -1,5 +1,5 @@
import React,{ Component } from "react";
import { Modal,Checkbox,Input} from "antd";
import { Modal,Checkbox,Input, Spin, Icon } from "antd";
import axios from 'axios';
import Modals from '../../modals/Modals';
const CheckboxGroup = Checkbox.Group;
@ -23,6 +23,7 @@ class Addcourses extends Component{
modalsType:false,
modalsTopval:undefined,
modalSave:undefined,
isSpin:false
}
}
@ -144,17 +145,22 @@ class Addcourses extends Component{
}
submittojoinclass=()=>{
this.setState({
isSpin:true
})
let {invite_code,professor,assistant_professor,student}=this.state;
if(invite_code===undefined||invite_code===""){
this.setState({
invite_codetype:true,
invite_codevalue:"邀请码不能为空"
invite_codevalue:"邀请码不能为空",
spinning:false
})
return
}else{
this.setState({
invite_codetype:false,
invite_codevalue:" "
invite_codevalue:" ",
spinning:false
})
}
@ -178,7 +184,12 @@ class Addcourses extends Component{
// // modalSave:this.submitasyn,
// course_id:response.data.course_id
// })
if(response.data.course_id!=undefined){
this.submitasyn(response.data.course_id)
}
this.props.hideAddcoursestype();
this.props.showNotification(response.data.message);
}else{
this.setState({
Addcoursestype:false
@ -193,8 +204,15 @@ class Addcourses extends Component{
// course_id:undefined
// })
}
this.setState({
spinning:false
})
}).catch((error) => {
console.log(error)
this.setState({
spinning:false
})
})
// if(value===0){
@ -258,7 +276,7 @@ class Addcourses extends Component{
modalsTopval,
modalSave
}=this.state;
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
return(
<div>
<Modals
@ -277,6 +295,7 @@ class Addcourses extends Component{
footer={null}
destroyOnClose={true}
>
<Spin indicator={antIcon} spinning={this.state.isSpin}>
<div className="task_popup_con ml30">
<div className="mr15">
<ul>
@ -331,6 +350,7 @@ class Addcourses extends Component{
</ul>
</div>
</div>
</Spin>
</Modal>
</div>
)

@ -167,7 +167,7 @@ class ExerciseListItem extends Component{
{ IsAdmin &&<div className="homepagePostSetting" style={{"right":"-17px","top":"51px","display":"block","width":"100px"}}>
<a className="btn colorblue font-16" href={`/courses/${coursesId}/exercises/${item.id}/edit`} target={"_blank"}>编辑</a>
<a className="btn colorblue font-16" href={`/courses/${coursesId}/exercises/${item.id}/edit`}>编辑</a>
<a className="btn colorblue ml20 font-16" href={`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=3`}>设置</a>
</div> }

@ -811,7 +811,7 @@ submittojoinclass=(value)=>{
closable={false}
footer={null}
>
<div className="task_popup_con ml30">
<div className="task_popup_con">
<div className="mr15">
<ul>
<li className="clearfix mb10">

Loading…
Cancel
Save