webpackJsonp([69],{ /***/ 1014: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a // //
  • // //
  • //
  • 分数不能为空
  • //
    // {this.props.Cancelname || '取消'} // {this.props.Savesname || '保存'} {/*
    */}{/**/} /***/ }), /***/ 1762: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__ = __webpack_require__(30); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_modal_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__ = __webpack_require__(31); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__ = __webpack_require__(71); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_spin_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__ = __webpack_require__(72); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_spin___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_spin__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css__ = __webpack_require__(178); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_message_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_message__ = __webpack_require__(179); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_message__); /* 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_router_dom__ = __webpack_require__(45); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios__ = __webpack_require__(12); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_axios__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__modals_Modals__ = __webpack_require__(167); var _createClass=function(){function defineProperties(target,props){for(var i=0;i0){response.data.group_list.map(function(item,key){newgroup_list.push(item);_this.setState({course_groups:response.data,group_list:newgroup_list,page:newpage});});}if(response.data.ungroup_list===undefined||response.data.ungroup_list===null){}else{newgroup_list.push(response.data.ungroup_list);_this.setState({course_groups:response.data,group_list:newgroup_list,page:newpage});}}}).catch(function(error){console.log(error);});}};_this.onChange=function(e){var group_list=_this.state.group_list;var data=_this.props.data;if(e.target.checked===true){if(data&&data.length===0){var id=[];group_list.forEach(function(item,key){if(item.works_count!=0){id.push(item.id);}});_this.setState({group_ids:id,onChangetype:e.target.checked});}else{var _id=[];group_list.forEach(function(item,key){if(item.works_count!=0){_id.push(item.id);}});_this.setState({group_ids:_id,onChangetype:e.target.checked});}}else{_this.setState({group_ids:[],onChangetype:e.target.checked});}};_this.isSave=function(){var group_ids=_this.state.group_ids;if(group_ids&&group_ids.length===0){_this.props.showNotification("\u8BF7\u5148\u9009\u62E9\u5206\u73ED");return;}// if(group_ids&&group_ids.length < 2){ // this.props.showNotification(`有效作品数少于2个,无法查重`); // return // } var url="/homework_commons/"+_this.props.match.params.homeworkid+"/homework_code_repeat.json";__WEBPACK_IMPORTED_MODULE_7_axios___default.a.post(url,{group_ids:group_ids}).then(function(response){// console.log(this.props) if(response.data.status===0){_this.props.updatas();_this.props.issCancel();// notification.open({ // message:"提示", // description: response.data.message // }); window.location.href="/courses/"+_this.props.match.params.coursesId+"/shixun_homeworks/"+_this.props.match.params.homeworkid+"/student_work?tab=2";}else if(response.data.status===-1){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-2){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-3){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}else if(response.data.status===-4){__WEBPACK_IMPORTED_MODULE_5_antd_lib_notification___default.a.open({message:"提示",description:response.data.message});}}).catch(function(error){console.log(error);});};_this.issCancel=function(){_this.props.issCancel();};_this.state={course_groups:undefined,limit:10,page:1,group_ids:undefined,group_list:undefined};return _this;}_createClass(ShixunWorkModal,[{key:"componentDidMount",value:function componentDidMount(){var _this2=this;var group_list=this.state.group_list;var url="/homework_commons/"+this.props.match.params.homeworkid+"/group_list.json";__WEBPACK_IMPORTED_MODULE_7_axios___default.a.get(url,{params:{limit:10,page:1}}).then(function(response){if(response.data.group_list===undefined){_this2.setState({course_groups:response.data,group_list:undefined});}else{var newgroup_list=[];response.data.group_list.map(function(item,key){newgroup_list.push(item);});if(response.data.ungroup_list===undefined){}else{newgroup_list.push(response.data.ungroup_list);}_this2.setState({course_groups:response.data,group_list:newgroup_list});}}).catch(function(error){console.log(error);});}//勾选实训 },{key:"render",value:function render(){var _state=this.state,course_groups=_state.course_groups,group_ids=_state.group_ids,onChangetype=_state.onChangetype,group_list=_state.group_list;// let {data}=this.props; // console.log(group_list) // console.log(group_list) return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_modal___default.a,{keyboard:false,className:"HomeworkModal",title:this.props.modalname,visible:this.props.visible,closable:false,footer:null,destroyOnClose:true},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"task-popup-content"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("style",null,"\n .greybackHead{\n padding:0px 30px;\n }\n .fontlefts{text-align: left;}\n "),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("ul",{className:"clearfix edu-txt-center"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl paddingleft22 fontlefts",style:{width:'260px'}},"\u5206\u73ED\u540D\u79F0"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl edu-txt-left",style:{width:'117px'}},"\u6709\u6548\u4F5C\u54C1\u6570"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'100px'}},"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4")),course_groups===undefined?"":group_list===undefined||JSON.stringify(group_list)==="[]"?__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{id:"forum_list",className:"forum_table"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:" edu-back-white"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"edu-tab-con-box clearfix edu-txt-center"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("img",{className:"edu-nodata-img mb20",src:Object(__WEBPACK_IMPORTED_MODULE_8_educoder__["M" /* getImageUrl */])("images/educoder/nodata.png")}),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("p",{className:"edu-nodata-p mb30"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6\uFF01")))):__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("ul",{className:"upload_select_box fl clearfix mt10 mb10",style:{"overflow-y":"auto"},id:"search_not_members_list",onScroll:this.contentViewScroll},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a.Group,{style:{width:'100%'},onChange:this.shixunhomeworkedit,value:group_ids},group_list===undefined||JSON.stringify(group_list)==="[]"?"":group_list&&group_list.length===0?"":group_list.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix edu-txt-center lineh-40 bor-bottom-greyE",key:key},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl task-hide",style:{width:'240px',paddingLeft:'10px'}},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a,{className:"fl task-hide edu-txt-left",name:"shixun_homework[]",value:item===undefined?"":item.id,key:item===undefined?"":item.id},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("label",{style:{"textAlign":"left","color":"#05101A"},className:"task-hide color-grey-name",title:item===undefined?"":item.name},item===undefined?"":item.name))),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'100px'}},item===undefined?"":item.works_count===undefined?item.work_count:item.works_count),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("li",{className:"fl",style:{width:'160px'}},item===undefined?"":item.last_review_time));}))),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_checkbox___default.a,{checked:onChangetype,onChange:this.onChange,className:"ml10"},onChangetype===true?"清除":"全选")),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("div",{className:"clearfix mt30 edu-txt-center mb10"},__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("a",{className:"task-btn color-white mr30",onClick:this.issCancel},"\u53D6\u6D88"),__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement("a",{className:"task-btn task-btn-orange",onClick:this.isSave},"\u786E\u8BA4")))));}}]);return ShixunWorkModal;}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (ShixunWorkModal);// course_groups.ungroup_list.work_count===0?"": // //
    //
  • // // // //
  • //
  • // {course_groups.ungroup_list.work_count} //
  • //
  • // {course_groups.ungroup_list.last_review_time} //
  • //
    // // : /***/ }), /***/ 2337: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a