|
|
@ -142,11 +142,15 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
//打开选择实训弹框初始化tag标签和列表
|
|
|
|
//打开选择实训弹框初始化tag标签和列表
|
|
|
|
changeTag=(id,search)=>{
|
|
|
|
changeTag=(id,search)=>{
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
ChooseShixunListshixun_list:[],
|
|
|
|
|
|
|
|
page:1,
|
|
|
|
hometypepvisible:true,
|
|
|
|
hometypepvisible:true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
let pathId=this.props.pathid;
|
|
|
|
let pathId=this.props.pathid;
|
|
|
|
let {page}=this.state;
|
|
|
|
|
|
|
|
let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+1
|
|
|
|
let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+1
|
|
|
|
if(search!="" && search!=undefined){
|
|
|
|
if(search!="" && search!=undefined){
|
|
|
|
url+="&search="+search;
|
|
|
|
url+="&search="+search;
|
|
|
@ -157,11 +161,6 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
if(result.status===200){
|
|
|
|
if(result.status===200){
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
ChooseShixunListshixun_list:[],
|
|
|
|
|
|
|
|
page:1
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
ChooseShixunList:result.data,
|
|
|
|
ChooseShixunList:result.data,
|
|
|
|
hometypepvisible:false,
|
|
|
|
hometypepvisible:false,
|
|
|
@ -296,11 +295,10 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contentViewScrolladd=(e)=>{
|
|
|
|
contentViewScrolladd=(e)=>{
|
|
|
|
let {page}=this.state;
|
|
|
|
|
|
|
|
//滑动到底判断
|
|
|
|
//滑动到底判断
|
|
|
|
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
|
|
|
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
|
|
|
// console.log("到达底部");
|
|
|
|
// console.log("到达底部");
|
|
|
|
if(page!=1){
|
|
|
|
debugger
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
hometypepvisible:true
|
|
|
|
hometypepvisible:true
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -334,7 +332,7 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -493,7 +491,7 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<div className="over180 pl20 pr20"
|
|
|
|
{ChooseShixunListshixun_list && ChooseShixunListshixun_list.length===0?"": <div className="over180 pl20 pr20"
|
|
|
|
onScroll={this.contentViewScrolladd}
|
|
|
|
onScroll={this.contentViewScrolladd}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
|
|
|
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
|
|
@ -520,7 +518,7 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</Checkbox.Group>
|
|
|
|
</Checkbox.Group>
|
|
|
|
</div>
|
|
|
|
</div>}
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.cloasShixunBox}>取消</a>
|
|
|
|
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.cloasShixunBox}>取消</a>
|
|
|
|
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.clickShixunchoose}>确定</a>
|
|
|
|
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.clickShixunchoose}>确定</a>
|
|
|
|