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