|
|
|
@ -1,10 +1,11 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import {Modal,Input,Checkbox,Tooltip,Spin} from "antd";
|
|
|
|
|
import {Modal,Input,Checkbox,Tooltip,Spin,notification} from "antd";
|
|
|
|
|
import { DragDropContext , Draggable, Droppable} from 'react-beautiful-dnd';
|
|
|
|
|
import Modals from '../../modals/Modals';
|
|
|
|
|
import '../ShixunPaths.css';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import NewShixunModel from '../../courses/coursesPublic/NewShixunModel';
|
|
|
|
|
const $ = window.$;
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
|
|
|
|
@ -60,36 +61,34 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
this.setState({
|
|
|
|
|
selectShixun:true,
|
|
|
|
|
patheditarry:[],
|
|
|
|
|
page:1
|
|
|
|
|
})
|
|
|
|
|
this.changeTag(0,"");
|
|
|
|
|
// this.changeTag(0,"");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//关闭选择实训弹框
|
|
|
|
|
cloasShixunBox =()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
selectShixun:false,
|
|
|
|
|
page:1,
|
|
|
|
|
patheditarry:[]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
clickShixunchoose=()=>{
|
|
|
|
|
showNotification = (description, message = "提示", icon) => {
|
|
|
|
|
const data = {
|
|
|
|
|
message,
|
|
|
|
|
description
|
|
|
|
|
}
|
|
|
|
|
if (icon) {
|
|
|
|
|
data.icon = icon;
|
|
|
|
|
}
|
|
|
|
|
notification.open(data);
|
|
|
|
|
}
|
|
|
|
|
clickShixunchoose=(patheditarry)=>{
|
|
|
|
|
|
|
|
|
|
let{patheditarry,shixuns_listeditlist,shixuns_listedit}=this.state
|
|
|
|
|
let{shixuns_listeditlist,shixuns_listedit}=this.state
|
|
|
|
|
|
|
|
|
|
let newshixuns_listedit=shixuns_listedit;
|
|
|
|
|
let list=shixuns_listeditlist
|
|
|
|
|
|
|
|
|
|
if(patheditarry.length===0){
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype:true,
|
|
|
|
|
Modalstopval:'请选择实训',
|
|
|
|
|
cardsModalsave:this.cardsModalsave
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let url='/paths/append_to_stage.json'
|
|
|
|
|
axios.post(url,{
|
|
|
|
|
shixun_id:patheditarry
|
|
|
|
@ -98,6 +97,19 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
if(response.data){
|
|
|
|
|
let newshixun_lists=response.data.shixun_lists;
|
|
|
|
|
|
|
|
|
|
for(var j=0; j<newshixuns_listedit.length; j++){
|
|
|
|
|
for(var a=0; a<newshixun_lists.length; a++){
|
|
|
|
|
if(newshixuns_listedit[j].shixun_id===newshixun_lists[a].shixun_id){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// Modalstype:true,
|
|
|
|
|
// Modalstopval:'请勿重复选择'+newshixun_lists[a].shixun_name+'实训',
|
|
|
|
|
// })
|
|
|
|
|
this.showNotification('请勿重复选择:'+newshixun_lists[a].shixun_name+'实训')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(var z=0; z<newshixun_lists.length; z++){
|
|
|
|
|
newshixuns_listedit.push(newshixun_lists[z]);
|
|
|
|
|
}
|
|
|
|
@ -147,38 +159,7 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//打开选择实训弹框初始化tag标签和列表
|
|
|
|
|
changeTag=(id,search)=>{
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
ChooseShixunListshixun_list:[],
|
|
|
|
|
page:1,
|
|
|
|
|
hometypepvisible:true,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
let pathId=this.props.pathid;
|
|
|
|
|
|
|
|
|
|
let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+1
|
|
|
|
|
if(search!="" && search!=undefined){
|
|
|
|
|
url+="&search="+search;
|
|
|
|
|
}
|
|
|
|
|
if(id!=0){
|
|
|
|
|
url+="&type="+id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
axios.get(encodeURI(url)).then((result)=>{
|
|
|
|
|
if(result.status===200){
|
|
|
|
|
this.setState({
|
|
|
|
|
ChooseShixunList:result.data,
|
|
|
|
|
hometypepvisible:false,
|
|
|
|
|
type:id,
|
|
|
|
|
ChooseShixunListshixun_list:result.data.shixun_list
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//勾选实训
|
|
|
|
|
shixunhomeworkedit=(list)=>{
|
|
|
|
@ -307,57 +288,7 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
contentViewScrolladd=(e)=>{
|
|
|
|
|
const {ChooseShixunList}=this.state;
|
|
|
|
|
//滑动到底判断
|
|
|
|
|
let newscrollTop=parseInt(e.currentTarget.scrollTop);
|
|
|
|
|
let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
|
|
|
|
|
|
|
|
|
|
if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1||e.currentTarget.scrollHeight-allclientHeight===-1){
|
|
|
|
|
|
|
|
|
|
if(ChooseShixunList.shixun_list.length===0){
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
// console.log("到达底部");
|
|
|
|
|
this.setState({
|
|
|
|
|
hometypepvisible:true
|
|
|
|
|
})
|
|
|
|
|
let pathId=this.props.pathid;
|
|
|
|
|
let {search,page,type,ChooseShixunListshixun_list}=this.state;
|
|
|
|
|
let newpage=page+1;
|
|
|
|
|
let newChooseShixunListshixun_list=ChooseShixunListshixun_list;
|
|
|
|
|
let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+newpage
|
|
|
|
|
if(search!="" && search!=undefined){
|
|
|
|
|
url+="&search="+search;
|
|
|
|
|
}
|
|
|
|
|
if(type!=0){
|
|
|
|
|
url+="&type="+type;
|
|
|
|
|
}
|
|
|
|
|
axios.get(encodeURI(url)).then((result)=>{
|
|
|
|
|
if(result.status===200){
|
|
|
|
|
let list =result.data.shixun_list;
|
|
|
|
|
|
|
|
|
|
for(var i=0; i<list.length; i++){
|
|
|
|
|
newChooseShixunListshixun_list.push(list[i])
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
ChooseShixunList:result.data,
|
|
|
|
|
hometypepvisible:false,
|
|
|
|
|
type:type,
|
|
|
|
|
search:search,
|
|
|
|
|
page:newpage,
|
|
|
|
|
ChooseShixunListshixun_list:newChooseShixunListshixun_list
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
onDragEnd (result) {
|
|
|
|
|
|
|
|
|
|
let {shixuns_listedit,shixuns_listeditlist} =this.state;
|
|
|
|
@ -456,99 +387,13 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>:""}
|
|
|
|
|
{selectShixun===true?<NewShixunModel
|
|
|
|
|
NewShixunModelType={selectShixun}
|
|
|
|
|
hideNewShixunModelType={this.cloasShixunBox}
|
|
|
|
|
pathShixun={this.clickShixunchoose}
|
|
|
|
|
{...this.props}
|
|
|
|
|
></NewShixunModel>:""}
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
|
keyboard={false}
|
|
|
|
|
title="选择实训"
|
|
|
|
|
visible={selectShixun}
|
|
|
|
|
closable={false}
|
|
|
|
|
footer={null}
|
|
|
|
|
width="840px"
|
|
|
|
|
destroyOnClose={true}
|
|
|
|
|
>
|
|
|
|
|
<Spin spinning={hometypepvisible} size="large" style={{marginTop:'15%'}}>
|
|
|
|
|
<div className="newupload_conbox">
|
|
|
|
|
<div className="clearfix mb20 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
|
|
|
|
<li className="fl mr5 mt5"> <a onClick={()=>this.changeTag(0,`${search}`)} className={ parseInt(type)===0 ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a></li>
|
|
|
|
|
{
|
|
|
|
|
ChooseShixunList && ChooseShixunList.tags.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<li className="fl mr5 mt5" key={key}>
|
|
|
|
|
<a onClick={()=>this.changeTag(`${item.tag_id}`,`${search}`)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix mb20" id="shixun_search_form_div">
|
|
|
|
|
<span className="fl color-grey-9 font-16 mt3">
|
|
|
|
|
<span>共</span>
|
|
|
|
|
<span className="color-orange-tip">{ChooseShixunList && ChooseShixunList.shixuns_count}</span>
|
|
|
|
|
<span>个实训</span>
|
|
|
|
|
</span>
|
|
|
|
|
<div className="fr search-new mb0">
|
|
|
|
|
<Search
|
|
|
|
|
placeholder="请输入创建者或者实训名称进行搜索"
|
|
|
|
|
onInput={this.searchNameInput}
|
|
|
|
|
onSearch={()=>this.changeTag(`${type}`,`${search}`)}
|
|
|
|
|
style={{width: '115%'}}
|
|
|
|
|
></Search>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ul className="clearfix greybackHead edu-txt-center" style={{marginBottom: '0px'}}>
|
|
|
|
|
<li className="fl with40 paddingleft22">实训名称</li>
|
|
|
|
|
<li className="fl with30 edu-txt-left">使用院校</li>
|
|
|
|
|
<li className="fl with10">使用人数</li>
|
|
|
|
|
<li className="fl with10">评价等级</li>
|
|
|
|
|
<li className="fl with10"></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.over180{min-height: 180px;max-height: 180px;overflow-y: auto}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{ChooseShixunListshixun_list && ChooseShixunListshixun_list.length===0?"": <div className="over180 pl20 pr20"
|
|
|
|
|
onScroll={this.contentViewScrolladd}
|
|
|
|
|
>
|
|
|
|
|
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
|
|
|
|
{
|
|
|
|
|
ChooseShixunListshixun_list && ChooseShixunListshixun_list.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
|
<li className="fl with40">
|
|
|
|
|
<Checkbox
|
|
|
|
|
id={"shixun_input_"+item.shixun_id}
|
|
|
|
|
value={item.shixun_id}
|
|
|
|
|
key={item.shixun_id}
|
|
|
|
|
className="fl task-hide edu-txt-left"
|
|
|
|
|
style={{"width":"298px"}}
|
|
|
|
|
name="shixun_homework[]"
|
|
|
|
|
>
|
|
|
|
|
<label style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name" title={item.shixun_name}>{item.shixun_name}</label>
|
|
|
|
|
</Checkbox>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="fl with30 edu-txt-left task-hide paddingl5">{item.school_users}</li>
|
|
|
|
|
<li className="fl with10 paddingl10">{item.myshixuns_count}</li>
|
|
|
|
|
<li className="fl with10 color-orange-tip paddingl10">{item.preference}</li>
|
|
|
|
|
<li className="fl with10"><a className="color-blue" href={"/shixuns/"+item.identifier+"/challenges"} target="_blank">详情</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</Checkbox.Group>
|
|
|
|
|
</div>}
|
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
</Modal>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* 可拖拽选择实训列表*/}
|
|
|
|
@ -651,3 +496,184 @@ class DetailCardsEditAndAdd extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
export default DetailCardsEditAndAdd;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// <Modal
|
|
|
|
|
// keyboard={false}
|
|
|
|
|
// title="选择实训"
|
|
|
|
|
// visible={selectShixun}
|
|
|
|
|
// closable={false}
|
|
|
|
|
// footer={null}
|
|
|
|
|
// width="840px"
|
|
|
|
|
// destroyOnClose={true}
|
|
|
|
|
// >
|
|
|
|
|
// <Spin spinning={hometypepvisible} size="large" style={{marginTop:'15%'}}>
|
|
|
|
|
// <div className="newupload_conbox">
|
|
|
|
|
// <div className="clearfix mb20 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
|
|
|
|
// <li className="fl mr5 mt5"> <a onClick={()=>this.changeTag(0,`${search}`)} className={ parseInt(type)===0 ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a></li>
|
|
|
|
|
// {
|
|
|
|
|
// ChooseShixunList && ChooseShixunList.tags.map((item,key)=>{
|
|
|
|
|
// return(
|
|
|
|
|
// <li className="fl mr5 mt5" key={key}>
|
|
|
|
|
// <a onClick={()=>this.changeTag(`${item.tag_id}`,`${search}`)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
|
|
|
|
// </li>
|
|
|
|
|
// )
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// </div>
|
|
|
|
|
// <div className="clearfix mb20" id="shixun_search_form_div">
|
|
|
|
|
// <span className="fl color-grey-9 font-16 mt3">
|
|
|
|
|
// <span>共</span>
|
|
|
|
|
// <span className="color-orange-tip">{ChooseShixunList && ChooseShixunList.shixuns_count}</span>
|
|
|
|
|
// <span>个实训</span>
|
|
|
|
|
// </span>
|
|
|
|
|
// <div className="fr search-new mb0">
|
|
|
|
|
// <Search
|
|
|
|
|
// placeholder="请输入创建者或者实训名称进行搜索"
|
|
|
|
|
// onInput={this.searchNameInput}
|
|
|
|
|
// onSearch={()=>this.changeTag(`${type}`,`${search}`)}
|
|
|
|
|
// style={{width: '115%'}}
|
|
|
|
|
// ></Search>
|
|
|
|
|
// </div>
|
|
|
|
|
// </div>
|
|
|
|
|
// <ul className="clearfix greybackHead edu-txt-center" style={{marginBottom: '0px'}}>
|
|
|
|
|
// <li className="fl with40 paddingleft22">实训名称</li>
|
|
|
|
|
// <li className="fl with30 edu-txt-left">使用院校</li>
|
|
|
|
|
// <li className="fl with10">使用人数</li>
|
|
|
|
|
// <li className="fl with10">评价等级</li>
|
|
|
|
|
// <li className="fl with10"></li>
|
|
|
|
|
// </ul>
|
|
|
|
|
//
|
|
|
|
|
// <style>
|
|
|
|
|
// {
|
|
|
|
|
// `
|
|
|
|
|
// .over180{min-height: 180px;max-height: 180px;overflow-y: auto}
|
|
|
|
|
// `
|
|
|
|
|
// }
|
|
|
|
|
// </style>
|
|
|
|
|
// {ChooseShixunListshixun_list && ChooseShixunListshixun_list.length===0?"": <div className="over180 pl20 pr20"
|
|
|
|
|
// onScroll={this.contentViewScrolladd}
|
|
|
|
|
// >
|
|
|
|
|
// <Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
|
|
|
|
// {
|
|
|
|
|
// ChooseShixunListshixun_list && ChooseShixunListshixun_list.map((item,key)=>{
|
|
|
|
|
// return(
|
|
|
|
|
// <div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
|
|
|
|
// <li className="fl with40">
|
|
|
|
|
// <Checkbox
|
|
|
|
|
// id={"shixun_input_"+item.shixun_id}
|
|
|
|
|
// value={item.shixun_id}
|
|
|
|
|
// key={item.shixun_id}
|
|
|
|
|
// className="fl task-hide edu-txt-left"
|
|
|
|
|
// style={{"width":"298px"}}
|
|
|
|
|
// name="shixun_homework[]"
|
|
|
|
|
// >
|
|
|
|
|
// <label style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name" title={item.shixun_name}>{item.shixun_name}</label>
|
|
|
|
|
// </Checkbox>
|
|
|
|
|
// </li>
|
|
|
|
|
// <li className="fl with30 edu-txt-left task-hide paddingl5">{item.school_users}</li>
|
|
|
|
|
// <li className="fl with10 paddingl10">{item.myshixuns_count}</li>
|
|
|
|
|
// <li className="fl with10 color-orange-tip paddingl10">{item.preference}</li>
|
|
|
|
|
// <li className="fl with10"><a className="color-blue" href={"/shixuns/"+item.identifier+"/challenges"} target="_blank">详情</a></li>
|
|
|
|
|
// </div>
|
|
|
|
|
// )
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// </Checkbox.Group>
|
|
|
|
|
// </div>}
|
|
|
|
|
// <div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
|
// <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>
|
|
|
|
|
// </div>
|
|
|
|
|
// </div>
|
|
|
|
|
// </Spin>
|
|
|
|
|
// </Modal>
|
|
|
|
|
// contentViewScrolladd=(e)=>{
|
|
|
|
|
// const {ChooseShixunList}=this.state;
|
|
|
|
|
// //滑动到底判断
|
|
|
|
|
// let newscrollTop=parseInt(e.currentTarget.scrollTop);
|
|
|
|
|
// let allclientHeight=e.currentTarget.clientHeight+newscrollTop;
|
|
|
|
|
//
|
|
|
|
|
// if(e.currentTarget.scrollHeight-allclientHeight===0||e.currentTarget.scrollHeight-allclientHeight===1||e.currentTarget.scrollHeight-allclientHeight===-1){
|
|
|
|
|
//
|
|
|
|
|
// if(ChooseShixunList.shixun_list.length===0){
|
|
|
|
|
// return
|
|
|
|
|
// }else{
|
|
|
|
|
// // console.log("到达底部");
|
|
|
|
|
// this.setState({
|
|
|
|
|
// hometypepvisible:true
|
|
|
|
|
// })
|
|
|
|
|
// let pathId=this.props.pathid;
|
|
|
|
|
// let {search,page,type,ChooseShixunListshixun_list}=this.state;
|
|
|
|
|
// let newpage=page+1;
|
|
|
|
|
// let newChooseShixunListshixun_list=ChooseShixunListshixun_list;
|
|
|
|
|
// let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+newpage
|
|
|
|
|
// if(search!="" && search!=undefined){
|
|
|
|
|
// url+="&search="+search;
|
|
|
|
|
// }
|
|
|
|
|
// if(type!=0){
|
|
|
|
|
// url+="&type="+type;
|
|
|
|
|
// }
|
|
|
|
|
// axios.get(encodeURI(url)).then((result)=>{
|
|
|
|
|
// if(result.status===200){
|
|
|
|
|
// let list =result.data.shixun_list;
|
|
|
|
|
//
|
|
|
|
|
// for(var i=0; i<list.length; i++){
|
|
|
|
|
// newChooseShixunListshixun_list.push(list[i])
|
|
|
|
|
// }
|
|
|
|
|
// this.setState({
|
|
|
|
|
// ChooseShixunList:result.data,
|
|
|
|
|
// hometypepvisible:false,
|
|
|
|
|
// type:type,
|
|
|
|
|
// search:search,
|
|
|
|
|
// page:newpage,
|
|
|
|
|
// ChooseShixunListshixun_list:newChooseShixunListshixun_list
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }).catch((error)=>{
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// })
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// //打开选择实训弹框初始化tag标签和列表
|
|
|
|
|
// changeTag=(id,search)=>{
|
|
|
|
|
//
|
|
|
|
|
// this.setState({
|
|
|
|
|
// ChooseShixunListshixun_list:[],
|
|
|
|
|
// page:1,
|
|
|
|
|
// hometypepvisible:true,
|
|
|
|
|
// })
|
|
|
|
|
//
|
|
|
|
|
// let pathId=this.props.pathid;
|
|
|
|
|
//
|
|
|
|
|
// let url='/paths/'+pathId+'/choose_subject_shixun.json?page='+1
|
|
|
|
|
// if(search!="" && search!=undefined){
|
|
|
|
|
// url+="&search="+search;
|
|
|
|
|
// }
|
|
|
|
|
// if(id!=0){
|
|
|
|
|
// url+="&type="+id;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// axios.get(encodeURI(url)).then((result)=>{
|
|
|
|
|
// if(result.status===200){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// ChooseShixunList:result.data,
|
|
|
|
|
// hometypepvisible:false,
|
|
|
|
|
// type:id,
|
|
|
|
|
// ChooseShixunListshixun_list:result.data.shixun_list
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }).catch((error)=>{
|
|
|
|
|
// console.log(error);
|
|
|
|
|
// })
|
|
|
|
|
// }
|