newyslclassrooms
杨树林 5 years ago
parent de899cbccb
commit f60e3485ab

@ -25,7 +25,7 @@ class Fileslistitem extends Component {
if (bools === true) {
this.props.Settingtypes(discussMessage.id)
} else {
this.props.Settingtypess(discussMessage.id)
this.props.Settingtypess(discussMessage.id,discussMessage.title,discussMessage.link)
}
}

@ -43,7 +43,9 @@ class Fileslists extends Component{
has_course_groups:false,
course_is_public:undefined,
isSpin:false,
course_second_categories:[]
course_second_categories:[],
title: "",
link: ""
}
}
@ -595,6 +597,8 @@ class Fileslists extends Component{
}else{
this.setState({
Addanexternallink:false,
title: "",
link: ""
})
if(ints===1){
this.Updateresourcepage();
@ -627,11 +631,14 @@ class Fileslists extends Component{
})
}
Settingtypess=(id)=>{
Settingtypess=(id,title,link)=>{
debugger
this.setState({
Addanexternallink:true,
Exterchainname:"资源设置",
discussMessageid:id,
title: title,
link: link
})
}
@ -779,7 +786,9 @@ class Fileslists extends Component{
child,
sort,
Addanexternallink,
Exterchainname
Exterchainname,
title,
link,
} = this.state;
let category_id= this.props.match.params.category_id;
@ -876,6 +885,8 @@ class Fileslists extends Component{
{Addanexternallink&&Addanexternallink===true?<SendResources
{...this.props}
{...this.state}
title={title}
link={link}
modalname={Exterchainname}
visible={Addanexternallink}
discussMessageid={discussMessageid}
@ -1071,7 +1082,7 @@ class Fileslists extends Component{
isNotMember={this.props.isNotMember()}
checkBox={this.props.isAdmin()?<Checkbox value={item.id} key={item.id}></Checkbox>:""}
Settingtypes={(id)=>this.Settingtypes(id)}
Settingtypess={(id)=>this.Settingtypess(id)}
Settingtypess={(id,t,l)=>this.Settingtypess(id,t,l)}
coursesId={this.props.match.params.coursesId}
updatafiledfun={()=>this.updatafiled()}
index={index}

@ -63,6 +63,16 @@ class sendResources extends Component{
componentDidMount() {
try {
this.setState({
resourcesname:this.props.title,
resourceurl:this.props.link,
addonAfteronelens3:this.props.title.length,
})
}catch (e) {
}
}
//勾选实训

Loading…
Cancel
Save