webpackJsonp([80],{ /***/ 1000: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(__webpack_require__(0)); var _rcMenu = __webpack_require__(172); var _MenuContext = _interopRequireDefault(__webpack_require__(893)); var _tooltip = _interopRequireDefault(__webpack_require__(168)); var _Sider = __webpack_require__(908); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var __rest = void 0 && (void 0).__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; } if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; var MenuItem = /*#__PURE__*/ function (_React$Component) { _inherits(MenuItem, _React$Component); function MenuItem() { var _this; _classCallCheck(this, MenuItem); _this = _possibleConstructorReturn(this, _getPrototypeOf(MenuItem).apply(this, arguments)); _this.onKeyDown = function (e) { _this.menuItem.onKeyDown(e); }; _this.saveMenuItem = function (menuItem) { _this.menuItem = menuItem; }; _this.renderItem = function (_ref) { var siderCollapsed = _ref.siderCollapsed; var _this$props = _this.props, level = _this$props.level, children = _this$props.children, rootPrefixCls = _this$props.rootPrefixCls; var _a = _this.props, title = _a.title, rest = __rest(_a, ["title"]); return React.createElement(_MenuContext["default"].Consumer, null, function (_ref2) { var inlineCollapsed = _ref2.inlineCollapsed; var tooltipProps = { title: title || (level === 1 ? children : '') }; if (!siderCollapsed && !inlineCollapsed) { tooltipProps.title = null; // Reset `visible` to fix control mode tooltip display not correct // ref: https://github.com/ant-design/ant-design/issues/16742 tooltipProps.visible = false; } return React.createElement(_tooltip["default"], _extends({}, tooltipProps, { placement: "right", overlayClassName: "".concat(rootPrefixCls, "-inline-collapsed-tooltip") }), React.createElement(_rcMenu.Item, _extends({}, rest, { title: title, ref: _this.saveMenuItem }))); }); }; return _this; } _createClass(MenuItem, [{ key: "render", value: function render() { return React.createElement(_Sider.SiderContext.Consumer, null, this.renderItem); } }]); return MenuItem; }(React.Component); exports["default"] = MenuItem; MenuItem.isMenuItem = true; //# sourceMappingURL=MenuItem.js.map /***/ }), /***/ 1001: /***/ (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); // }) // } /***/ }), /***/ 3209: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_tooltip_style_css__ = __webpack_require__(169); /* 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__(168); /* 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__(45); /* 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__(46); /* 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__(68); /* 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__(69); /* 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__(1537); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modals_Modals__ = __webpack_require__(173); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Addshixuns__ = __webpack_require__(2716); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__courses_coursesPublic_NewShixunModel__ = __webpack_require__(1783); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ShixunPaths_css__ = __webpack_require__(1900); /* 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__(15); /* 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