newyslclassrooms
杨树林 5 years ago
parent de899cbccb
commit f60e3485ab

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

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

Loading…
Cancel
Save