webpackJsonp([116],{ /***/ 1002: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a // {ChooseShixunListshixun_list && ChooseShixunListshixun_list.length===0?"":
// // { // ChooseShixunListshixun_list && ChooseShixunListshixun_list.map((item,key)=>{ // return( //
//
  • // // // //
  • //
  • {item.school_users}
  • //
  • {item.myshixuns_count}
  • //
  • {item.preference}
  • //
  • 详情
  • //
    // ) // }) // } //
    //
    } //
    // 取消 // 确定 //
    // // // // 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{ // 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); // }) // } /***/ }), /***/ 3026: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__ = __webpack_require__(165); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__ = __webpack_require__(164); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_tooltip__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_notification_style_css__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_notification_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_notification_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_notification__ = __webpack_require__(47); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_notification___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_notification__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_input_style_css__ = __webpack_require__(67); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_input_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_input__ = __webpack_require__(68); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_input__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_beautiful_dnd__ = __webpack_require__(1407); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modals_Modals__ = __webpack_require__(167); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Addshixuns__ = __webpack_require__(2537); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__courses_coursesPublic_NewShixunModel__ = __webpack_require__(1660); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ShixunPaths_css__ = __webpack_require__(1766); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ShixunPaths_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__ShixunPaths_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_axios__ = __webpack_require__(12); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_axios__); var _createClass=function(){function defineProperties(target,props){for(var i=0;i300){_this.setState({descriptiontype:true});return;}}else{newstage_descriptions="";}var url=void 0;if(_this.props.ysldetailcards===undefined){url='/stages/'+stageid+'.json';}else{url='/course_stages/'+stageid+'.json';}__WEBPACK_IMPORTED_MODULE_13_axios___default.a.put(url,{name:stage_name,description:newstage_descriptions,shixun_id:shixuns_listeditlist}).then(function(response){// window.location.href = "/paths/" + response.data.subject_id _this.setState({stage_name:undefined,stage_description:undefined,shixuns_listeditlist:[],shixuns_listedit:undefined,stage_nametype:false,descriptiontype:false});_this.props.updatapathCardsedits();}).catch(function(error){console.log(error);});};_this.shixunslisteditdelect=function(e){_this.setState({Modalstype:true,Modalstopval:'是否删除该实训?',Modalsbottomval:'',delectfunvalue:e.target.id});};_this.shixunslisteditdelectfun=function(){var delectfunvalue=_this.state.delectfunvalue;var sum=parseInt(delectfunvalue);var _this$state3=_this.state,shixuns_listedit=_this$state3.shixuns_listedit,shixuns_listeditlist=_this$state3.shixuns_listeditlist;var newshixuns_listedit=shixuns_listedit;var newshixuns_listeditlist=shixuns_listeditlist;newshixuns_listedit.splice(sum,1);newshixuns_listeditlist.splice(sum,1);_this.setState({shixuns_listedit:newshixuns_listedit,shixuns_listeditlist:newshixuns_listeditlist,Modalstype:false,Modalstopval:' ',Modalsbottomval:'',delectfunvalue:undefined});};_this.cardsModalcancel=function(){_this.setState({Modalstype:false,Modalstopval:'',Modalsbottomval:'',delectfunvalue:undefined,Addshixunstype:false});};_this.cardsModalsave=function(){_this.setState({Modalstype:false,Modalstopval:'',Modalsbottomval:''});};_this.onDragStart=function(){/*...*/};_this.onDragUpdate=function(){/*...*/};_this.showNotification=function(description){var message=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"提示";var icon=arguments[2];var data={message:message,description:description};if(icon){data.icon=icon;}__WEBPACK_IMPORTED_MODULE_3_antd_lib_notification___default.a.open(data);};_this.Getaddshixuns=function(value,is_jupyter){var _this$state4=_this.state,shixuns_listeditlist=_this$state4.shixuns_listeditlist,shixuns_listedit=_this$state4.shixuns_listedit;var newshixuns_listedit=shixuns_listedit;var list=shixuns_listeditlist;var url='/paths/add_shixun_to_stage.json';__WEBPACK_IMPORTED_MODULE_13_axios___default.a.post(url,{name:value,is_jupyter:is_jupyter}).then(function(response){if(response){if(response.data){newshixuns_listedit.push(response.data);list.push(response.data.shixun_id);_this.setState({shixuns_listedit:newshixuns_listedit,shixuns_listeditlist:list,patheditarry:[],selectShixun:false,page:1});}}}).catch(function(error){console.log(error);});};_this.state={selectShixun:false,editPanel:true,search:"",type:0,page:1,ChooseShixunList:undefined,hometypepvisible:true,shixuns_listedit:undefined,patheditarry:[],stage_name:undefined,stage_description:undefined,stageid:undefined,Modalstype:false,Modalstopval:'',Modalsbottomval:'',delectfunvalue:undefined,ChooseShixunListshixun_list:undefined,stage_nametype:false,descriptiontype:false,Addshixunstype:false};_this.onDragEnd=_this.onDragEnd.bind(_this);return _this;}//选择实训弹框 //关闭选择实训弹框 _createClass(DetailCardsEditAndEdit,[{key:'componentDidMount',value:function componentDidMount(){}},{key:'componentWillReceiveProps',value:function componentWillReceiveProps(nextProps,nextState){if(nextProps.pathlisteditlist!=undefined){var list=[];for(var i=0;i