@ -213,17 +213,25 @@ class sendResources extends Component{
}
// console.log("description");
// console.log(description);
if ( description === undefined || description === null ) {
if ( description === undefined ) {
} else {
if ( description . length > 100 ) {
this . setState ( {
descriptiontype : true
} )
return
}
} else if ( description . length > 100 ) {
this . setState ( {
descriptiontype : true
} )
return
}
if ( this . props . Exterchainname === "资源设置" ) {
//设置
let coursesId = this . props . match . params . coursesId ;
@ -240,13 +248,17 @@ class sendResources extends Component{
description : description ,
delay _publish : Radiovalue ,
} ) . then ( ( result ) => {
if ( result . data . status === 0 ) {
this . ModalCancelModalCancel ( ) ;
this . props . updataleftNavfun ( ) ;
this . props . showNotification ( "设置资源成功" ) ;
this . props . setupdate ( 1 , false )
} else {
this . props . showNotification ( result . data . message ) ;
if ( result ) {
if ( result . data ) {
if ( result . data . status === 0 ) {
this . ModalCancelModalCancel ( ) ;
this . props . updataleftNavfun ( ) ;
this . props . showNotification ( "设置资源成功" ) ;
this . props . setupdate ( 1 , false )
} else {
this . props . showNotification ( result . data . message ) ;
}
}
}
} )
@ -266,22 +278,20 @@ class sendResources extends Component{
description : description ,
delay _publish : Radiovalue ,
} ) . then ( ( result ) => {
if ( result . data . status === 0 ) {
this . ModalCancelModalCancel ( ) ;
this . props . updataleftNavfun ( ) ;
this . props . showNotification ( "上传资源成功" ) ;
this . props . setupdate ( 1 , false )
} else {
this . props . showNotification ( result . data . message ) ;
if ( result ) {
if ( result . data ) {
if ( result . data . status === 0 ) {
this . ModalCancelModalCancel ( ) ;
this . props . updataleftNavfun ( ) ;
this . props . showNotification ( "上传资源成功" ) ;
this . props . setupdate ( 1 , false )
} else {
this . props . showNotification ( result . data . message ) ;
}
}
}
} )
}
}
settextarea = ( e ) => {
@ -348,7 +358,7 @@ class sendResources extends Component{
}
handleChangess = ( e ) => {
this . setState ( {
this . setState ( {
resourceurl : e . target . value ,
resourceurlbool : false ,
} )