webpackJsonp([109],{
/***/ 1000:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/**
* Validates a number is a floating point number.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function floatFn(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options);
if (value !== undefined) {
_rule2['default'].type(rule, value, source, errors, options);
_rule2['default'].range(rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = floatFn;
/***/ }),
/***/ 1001:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/**
* Validates an array.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function array(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value, 'array') && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options, 'array');
if (!(0, _util.isEmptyValue)(value, 'array')) {
_rule2['default'].type(rule, value, source, errors, options);
_rule2['default'].range(rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = array;
/***/ }),
/***/ 1002:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/**
* Validates an object.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function object(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options);
if (value !== undefined) {
_rule2['default'].type(rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = object;
/***/ }),
/***/ 1003:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var ENUM = 'enum';
/**
* Validates an enumerable list.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function enumerable(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options);
if (value) {
_rule2['default'][ENUM](rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = enumerable;
/***/ }),
/***/ 1004:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
/**
* Validates a regular expression pattern.
*
* Performs validation when a rule only contains
* a pattern property but is not declared as a string type.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function pattern(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value, 'string') && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options);
if (!(0, _util.isEmptyValue)(value, 'string')) {
_rule2['default'].pattern(rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = pattern;
/***/ }),
/***/ 1005:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function date(rule, value, callback, source, options) {
// console.log('integer rule called %j', rule);
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
// console.log('validate on %s value', value);
if (validate) {
if ((0, _util.isEmptyValue)(value) && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options);
if (!(0, _util.isEmptyValue)(value)) {
var dateObject = void 0;
if (typeof value === 'number') {
dateObject = new Date(value);
} else {
dateObject = value;
}
_rule2['default'].type(rule, dateObject, source, errors, options);
if (dateObject) {
_rule2['default'].range(rule, dateObject.getTime(), source, errors, options);
}
}
}
callback(errors);
}
exports['default'] = date;
/***/ }),
/***/ 1006:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function required(rule, value, callback, source, options) {
var errors = [];
var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : _typeof(value);
_rule2['default'].required(rule, value, source, errors, options, type);
callback(errors);
}
exports['default'] = required;
/***/ }),
/***/ 1007:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _rule = __webpack_require__(813);
var _rule2 = _interopRequireDefault(_rule);
var _util = __webpack_require__(812);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function type(rule, value, callback, source, options) {
var ruleType = rule.type;
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((0, _util.isEmptyValue)(value, ruleType) && !rule.required) {
return callback();
}
_rule2['default'].required(rule, value, source, errors, options, ruleType);
if (!(0, _util.isEmptyValue)(value, ruleType)) {
_rule2['default'].type(rule, value, source, errors, options);
}
}
callback(errors);
}
exports['default'] = type;
/***/ }),
/***/ 1008:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.newMessages = newMessages;
function newMessages() {
return {
'default': 'Validation error on field %s',
required: '%s is required',
'enum': '%s must be one of %s',
whitespace: '%s cannot be empty',
date: {
format: '%s date %s is invalid for format %s',
parse: '%s date could not be parsed, %s is invalid ',
invalid: '%s date %s is invalid'
},
types: {
string: '%s is not a %s',
method: '%s is not a %s (function)',
array: '%s is not an %s',
object: '%s is not an %s',
number: '%s is not a %s',
date: '%s is not a %s',
boolean: '%s is not a %s',
integer: '%s is not an %s',
float: '%s is not a %s',
regexp: '%s is not a valid %s',
email: '%s is not a valid %s',
url: '%s is not a valid %s',
hex: '%s is not a valid %s'
},
string: {
len: '%s must be exactly %s characters',
min: '%s must be at least %s characters',
max: '%s cannot be longer than %s characters',
range: '%s must be between %s and %s characters'
},
number: {
len: '%s must equal %s',
min: '%s cannot be less than %s',
max: '%s cannot be greater than %s',
range: '%s must be between %s and %s'
},
array: {
len: '%s must be exactly %s in length',
min: '%s cannot be less than %s in length',
max: '%s cannot be greater than %s in length',
range: '%s must be between %s and %s in length'
},
pattern: {
mismatch: '%s value %s does not match pattern %s'
},
clone: function clone() {
var cloned = JSON.parse(JSON.stringify(this));
cloned.clone = this.clone;
return cloned;
}
};
}
var messages = exports.messages = newMessages();
/***/ }),
/***/ 1009:
/***/ (function(module, exports, __webpack_require__) {
var assignValue = __webpack_require__(902),
castPath = __webpack_require__(826),
isIndex = __webpack_require__(824),
isObject = __webpack_require__(163),
toKey = __webpack_require__(821);
/**
* The base implementation of `_.set`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
* @param {*} value The value to set.
* @param {Function} [customizer] The function to customize path creation.
* @returns {Object} Returns `object`.
*/
function baseSet(object, path, value, customizer) {
if (!isObject(object)) {
return object;
}
path = castPath(path, object);
var index = -1,
length = path.length,
lastIndex = length - 1,
nested = object;
while (nested != null && ++index < length) {
var key = toKey(path[index]),
newValue = value;
if (index != lastIndex) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;
if (newValue === undefined) {
newValue = isObject(objValue)
? objValue
: (isIndex(path[index + 1]) ? [] : {});
}
}
assignValue(nested, key, newValue);
nested = nested[key];
}
return object;
}
module.exports = baseSet;
/***/ }),
/***/ 1010:
/***/ (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);
// })
// }
/***/ }),
/***/ 3024:
/***/ (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__(1408);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__modals_Modals__ = __webpack_require__(166);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Addshixuns__ = __webpack_require__(2517);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__courses_coursesPublic_NewShixunModel__ = __webpack_require__(1653);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__ShixunPaths_css__ = __webpack_require__(1762);
/* 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{
// return(
//
// )
// })
// }
//
//
//
//
//
//
// - 实训名称
// - 使用院校
// - 使用人数
// - 评价等级
//
//
//
//
// {ChooseShixunListshixun_list && ChooseShixunListshixun_list.length===0?"":
//
// {
// ChooseShixunListshixun_list && ChooseShixunListshixun_list.map((item,key)=>{
// return(
//
//
//
//
//
//
//
{item.school_users}
//
{item.myshixuns_count}
//
{item.preference}
//
详情
//
// )
// })
// }
//
//
}
//
//
//
//
// //打开选择实训弹框初始化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,
// search:search,
// ChooseShixunListshixun_list:result.data.shixun_list
// })
// }
// }).catch((error)=>{
// console.log(error);
// })
// }
// contentViewScrolledit=(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{
// this.setState({
// hometypepvisible:true
// })
// // console.log("到达底部");
//
// let {page,type,search,ChooseShixunListshixun_list}=this.state;
//
// let newpage=page+1;
//
// let pathId=this.props.pathid;
//
// 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);
// })
//
//
// }
//
//
//
// }
//
// }
/***/ }),
/***/ 4336:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_form_style_css__ = __webpack_require__(918);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_form_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_form_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_form__ = __webpack_require__(919);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_form___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_form__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_progress_style_css__ = __webpack_require__(1065);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_progress_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_progress_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_progress__ = __webpack_require__(1066);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_progress___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_progress__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css__ = __webpack_require__(87);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_button_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_button__ = __webpack_require__(73);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_spin_style_css__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_spin_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_spin__ = __webpack_require__(72);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_spin__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_modal_style_css__ = __webpack_require__(30);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_modal__ = __webpack_require__(31);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_modal__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_icon_style_css__ = __webpack_require__(169);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_antd_lib_icon_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_antd_lib_icon_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_icon__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_antd_lib_icon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_antd_lib_icon__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_message_style_css__ = __webpack_require__(177);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_message_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_message_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_message__ = __webpack_require__(178);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_antd_lib_message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_antd_lib_message__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_notification_style_css__ = __webpack_require__(46);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_antd_lib_notification_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_antd_lib_notification_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_notification__ = __webpack_require__(47);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_antd_lib_notification___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_antd_lib_notification__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17_educoder__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__myelearning_css__ = __webpack_require__(4337);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__myelearning_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18__myelearning_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_axios__ = __webpack_require__(12);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__YslDetailCards_js__ = __webpack_require__(4339);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__modals_Jointheclass__ = __webpack_require__(1527);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__login_LoginDialog__ = __webpack_require__(118);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__modules_courses_coursesPublic_NoneData__ = __webpack_require__(304);
var _createClass=function(){function defineProperties(target,props){for(var i=0;i0){var stagesdatas=[];for(var i=0;i0){_this.kaishishixun(stagesdatas[0]);}else{__WEBPACK_IMPORTED_MODULE_15_antd_lib_notification___default.a.open({message:"提示",description:"实训暂未公开!"});}console.log("这是"+i);}}};_this.kaishishixun=function(id){var url="/shixuns/"+id+"/shixun_exec.json";__WEBPACK_IMPORTED_MODULE_19_axios___default.a.get(url).then(function(response){console.log("精品课堂开发学习");console.log(response);// console.log(JSON.stringify(response));
if(response.data.status===-2){_this.setState({shixunsreplaces:true,hidestartshixunsreplacevalues:response.data.message+".json"});}else if(response.data.status===-1){console.log(response);}else if(response.data.status===-3){_this.setState({shixunsmessages:response.data.message,startshixunCombattypes:true});}else{console.log("开始学习了");window.open("/tasks/"+response.data.game_identifier,'_blank');//这个是传过来 调用刷新
_this.Myreload();// window.location.href = path
// let path="/tasks/"+response.data.game_identifier;
// this.props.history.push(path);
}}).catch(function(error){});};_this.Startlearningtwo=function(){_this.setState({yslJointhe:true});};_this.ysljoinmodalCancel=function(){_this.setState({yslJointhe:false});};_this.ysljoinmodalCanceltwo=function(){_this.setState({yslJointhe:false});window.location.reload();};_this.Myreload=function(){window.location.reload();};_this.hidestartshixunsreplace=function(url){_this.setState({isSpins:true});__WEBPACK_IMPORTED_MODULE_19_axios___default.a.get(url).then(function(response){// debugger
if(response.status===200){// let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
// this.props.history.push(path);
__WEBPACK_IMPORTED_MODULE_13_antd_lib_message___default.a.success('重置成功,正在进入实训!');_this.startgameid(response.data.shixun_identifier);_this.setState({shixunsreplaces:false,isSpins:false});// message.success('重置成功,正在进入实训!');
// this.startshixunCombat();
}}).catch(function(error){_this.setState({isSpins:false,shixunsreplaces:false});});};_this.startgameid=function(id){if(_this.props.isNotMember()===true){//这个是外部传过来的
_this.Startlearningtwo();return;}var url="/shixuns/"+id+"/shixun_exec.json";__WEBPACK_IMPORTED_MODULE_19_axios___default.a.get(url).then(function(response){if(response.data.status===-2){_this.setState({shixunsreplaces:true,hidestartshixunsreplacevalues:response.data.message+".json"});}else if(response.data.status===-1){console.log(response);}else if(response.data.status===-3){_this.setState({shixunsmessages:response.data.message,startshixunCombattypes:true});}else{console.log("开始学习了");window.open("/tasks/"+response.data.game_identifier,'_blank');//这个是传过来 调用刷新
_this.Myreload();// window.location.href = path
// let path="/tasks/"+response.data.game_identifier;
// this.props.history.push(path);
}}).catch(function(error){});};_this.hidestartshixunCombattype=function(){_this.setState({startshixunCombattypes:false});};_this.Modifyloginvalue=function(){_this.setState({isRender:false});};_this.Tojoinclass=function(){_this.setState({isRender:true});};_this.myupdataleftNav=function(){_this.props.updataleftNavfun();};_this.state={description:"",//简介
isSpin:true,start_learning:undefined,//是否要开始学习 没开始学习 点击第一个是开始学习 就是学习下面的从第一个开始
learned:0,//学习进度
last_shixun:"",//上次学习的实训
stages:[],//实践课程的章节
yslJointhe:false,shixunsreplace:false,hidestartshixunsreplacevalue:"",shixunsmessage:"",startshixunCombattype:false,isSpins:false,userlogin:"",isRender:false,subject_id:0,myupdataleftNavs:_this.myupdataleftNav};return _this;}_createClass(Elearning,[{key:"componentDidMount",value:function componentDidMount(){// 记得删除退出课堂
// console.log("在线学习");
// console.log("获取到数据");
// console.log(this.props);
this.getdata();}//开始学习
},{key:"render",value:function render(){var _this2=this;console.log("Elearning++++++++");// console.log(this.props.Chapterupdate);
var _state=this.state,description=_state.description,whethertoedit=_state.whethertoedit,isSpin=_state.isSpin,start_learning=_state.start_learning,hidestartshixunsreplacevalues=_state.hidestartshixunsreplacevalues,learned=_state.learned,last_shixun=_state.last_shixun,stages=_state.stages,isRender=_state.isRender;var isNotMembers=this.props.isNotMember();//非课堂成员
var antIcon=__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_antd_lib_icon___default.a,{type:"loading",style:{fontSize:24},spin:true});return __WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{id:"zhudiv"},isRender===true?__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_22__login_LoginDialog__["a" /* default */],Object.assign({Modifyloginvalue:function Modifyloginvalue(){return _this2.Modifyloginvalue();}},this.props,this.state)):"",__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_21__modals_Jointheclass__["a" /* default */],Object.assign({},this.props,this.state,{ysljoinmodalCancel:function ysljoinmodalCancel(){return _this2.ysljoinmodalCancel();},ysljoinmodalCanceltwo:function ysljoinmodalCanceltwo(){return _this2.ysljoinmodalCanceltwo();}})),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_modal___default.a,{keyboard:false,title:"\u63D0\u793A",visible:this.state.startshixunCombattypes,closable:false,footer:null},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"task-popup-content"},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u76EE\u524D\u8BE5\u5B9E\u8BAD\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",this.state.shixunsmessages,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"task-popup-submit clearfix"},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("a",{className:"task-btn task-btn-orange fr",style:{marginRight:'51px'},onClick:this.hidestartshixunCombattype},"\u77E5\u9053\u4E86"))),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9_antd_lib_modal___default.a,{keyboard:false,title:"\u63D0\u793A",visible:this.state.shixunsreplaces,closable:false,footer:null},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_spin___default.a,{indicator:antIcon,spinning:this.state.isSpins},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"task-popup-content"},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("p",{className:"task-popup-text-center font-16 pb20"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!")),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"task-popup-submit clearfix"},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("a",{className:"task-btn task-btn-orange fr",style:{marginRight:'51px'},onClick:function onClick(){return _this2.hidestartshixunsreplace(hidestartshixunsreplacevalues);}},"\u77E5\u9053\u4E86")))),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"edu-back-white"},this.props.isAdmin()===true?"":__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",null,start_learning===undefined?"":start_learning===false?__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"clearfix padding30 bor-bottom-greyE",style:{textAlign:"center"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{style:{height:'40px',textAlign:"center"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("span",{className:" fl color-dark-21 ",style:{height:'40px',textAlign:"center",fontSize:"19px"}},"\u8FD8\u672A\u5F00\u59CB\u5B66\u4E60"),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_antd_lib_button___default.a,{className:"ant-btn defalutSubmitbtn ant-btn-primary colorblue font-16 fr",onClick:function onClick(){return _this2.Startlearning();}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("span",null,"\u5F00\u59CB\u5B66\u4E60")))):__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:"clearfix padding30 bor-bottom-greyE",style:{textAlign:"center"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{style:{height:'40px',textAlign:"left"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("span",{className:" color-dark-21 ",style:{height:'40px',textAlign:"center",fontSize:"19px",color:"#05101A"}},"\u5DF2\u5B66",learned,"%")),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{style:{marginTop:"7px",width:"401px"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_progress___default.a,{percent:learned,showInfo:false})),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{style:{marginTop:"7px",textAlign:"left"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("span",{className:"font-16"},"\u4E0A\u6B21\u5B66\u4E60\u5185\u5BB9"),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("span",{style:{color:"#4CADFF",marginLeft:"25px"}},last_shixun))))),__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_antd_lib_spin___default.a,{size:"large",spinning:isSpin,id:"cdiv"},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",{className:" clearfix",style:this.props.isAdmin()===true?{marginTop:"0px"}:{marginTop:"20px"}},__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_16_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_20__YslDetailCards_js__["a" /* default */],Object.assign({},this.state,this.props,{Startlearningtwo:function Startlearningtwo(){return _this2.Startlearningtwo();},Myreload:function Myreload(){return _this2.Myreload();},Tojoinclass:function Tojoinclass(){return _this2.Tojoinclass();},getPathCardsList:function getPathCardsList(){return _this2.getdata();}})))))));}}]);return Elearning;}(__WEBPACK_IMPORTED_MODULE_16_react__["Component"]);var Elearningss=__WEBPACK_IMPORTED_MODULE_1_antd_lib_form___default.a.create({name:'elearning'})(Elearning);/* harmony default export */ __webpack_exports__["default"] = (Elearningss);
/***/ }),
/***/ 4337:
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a