|
|
|
@ -213,12 +213,10 @@ class sendResources extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log("description");
|
|
|
|
|
// console.log(description);
|
|
|
|
|
if(description===undefined||description===null){
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
if(description.length>100){
|
|
|
|
|
if(description===undefined){
|
|
|
|
|
|
|
|
|
|
}else if(description.length>100){
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
descriptiontype:true
|
|
|
|
@ -226,12 +224,6 @@ class sendResources extends Component{
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.props.Exterchainname==="资源设置"){
|
|
|
|
|
//设置
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
@ -248,8 +240,6 @@ class sendResources extends Component{
|
|
|
|
|
description:description,
|
|
|
|
|
delay_publish:Radiovalue,
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
if(result){
|
|
|
|
|
if(result.data){
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.ModalCancelModalCancel();
|
|
|
|
|
this.props.updataleftNavfun();
|
|
|
|
@ -258,8 +248,6 @@ class sendResources extends Component{
|
|
|
|
|
}else{
|
|
|
|
|
this.props.showNotification(result.data.message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
@ -278,8 +266,8 @@ class sendResources extends Component{
|
|
|
|
|
description:description,
|
|
|
|
|
delay_publish:Radiovalue,
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
if(result){
|
|
|
|
|
if(result.data){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(result.data.status===0){
|
|
|
|
|
this.ModalCancelModalCancel();
|
|
|
|
|
this.props.updataleftNavfun();
|
|
|
|
@ -288,10 +276,12 @@ class sendResources extends Component{
|
|
|
|
|
}else{
|
|
|
|
|
this.props.showNotification(result.data.message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
settextarea=(e)=>{
|
|
|
|
|