dev_static
杨树明 5 years ago
parent 40eb7f0c03
commit 75560a90c6

@ -3474,10 +3474,7 @@ a.singlepublishtwo{
margin-bottom: 0 !important;
}
/*.ant-notification{*/
/*width: auto !important;*/
/*max-width: 600px !important;*/
/*}*/
.markdown-body {
@ -3502,3 +3499,7 @@ a.singlepublishtwo{
text-shadow: none !important;
box-shadow: none !important;
}
.ant-notification{
z-index: 10001 !important;
}

@ -234,16 +234,7 @@ class NewShixunModel extends Component{
this.getdatalist(1,undefined,'all',value,'desc',0,20)
}
showNotification = (description, message = "提示", icon) => {
const data = {
message,
description
}
if (icon) {
data.icon = icon;
}
notification.open(data);
}
savecouseShixunModal=()=>{
this.setState({
@ -252,19 +243,24 @@ class NewShixunModel extends Component{
let {coursesId}=this.props;
let{Grouplist}=this.state;
if(Grouplist.length===0){
this.setState({
hometypepvisible:false
})
this.showNotification(this.props.type==='shixuns'?"请先选择实训":"请先选择课程")
this.props.showNotification(this.props.type==='shixuns'?"请先选择实训":"请先选择课程")
return
}
if (this.props.chooseShixun) {
if(Grouplist.length>1){
this.setState({
hometypepvisible:false
})
this.showNotification("试卷选择的实训数不能大于1")
this.props.showNotification("试卷选择的实训数不能大于1")
return
}
this.props.chooseShixun(Grouplist)
@ -293,7 +289,7 @@ class NewShixunModel extends Component{
}else{
// this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
this.showNotification("操作成功")
this.props.showNotification("操作成功")
this.props.homeworkupdatalists(this.props.Coursename,this.props.page,this.props.order);
this.props.hideNewShixunModelType()
this.props.updataleftNavfun()
@ -321,7 +317,7 @@ class NewShixunModel extends Component{
}else{
// this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
this.showNotification("操作成功")
this.props.showNotification("操作成功")
this.props.homeworkupdatalists(this.props.Coursename,this.props.page,this.props.order);
this.props.hideNewShixunModelType()
this.props.updataleftNavfun()

@ -3784,10 +3784,7 @@ a.singlepublishtwo{
.has-error .ant-input:focus{
border-color: #ff4d4f !important;
}
/*.ant-notification{*/
/*width: auto !important;*/
/*max-width: 600px !important;*/
/*}*/
.fontweight400{
font-weight: 400 !important;
}
@ -3800,6 +3797,10 @@ a.singlepublishtwo{
z-index: 10000 !important;
}
.ant-notification{
z-index: 10001 !important;
}
.markdown-body {
text-align: justify;
word-break: break-all;

Loading…
Cancel
Save