You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/build/static/js/200.71239078.chunk.js

183 lines
50 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

webpackJsonp([200],{
/***/ 1743:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__ = __webpack_require__(177);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__ = __webpack_require__(175);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__ = __webpack_require__(68);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__ = __webpack_require__(32);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__ = __webpack_require__(318);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select__ = __webpack_require__(315);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_select__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_router_dom__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN__ = __webpack_require__(180);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_educoder__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_axios__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__modals_Modals__ = __webpack_require__(173);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__coursesPublic_CoursesListType__ = __webpack_require__(1084);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__coursesPublic_AccessoryModal__ = __webpack_require__(1451);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__css_Courses_css__ = __webpack_require__(327);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__css_Courses_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18__css_Courses_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__common_CBreadcrumb__ = __webpack_require__(349);
var _createClass=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);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Option=__WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default.a.Option;var CheckboxGroup=__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default.a.Group;var confirm=__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default.a.confirm;var GraduationTasksnewtype=true;var $=window.$;var Search=__WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default.a.Search;var RadioGroup=__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default.a.Group;var WorkDetailPageHeader=function(_Component){_inherits(WorkDetailPageHeader,_Component);function WorkDetailPageHeader(props){_classCallCheck(this,WorkDetailPageHeader);var _this=_possibleConstructorReturn(this,(WorkDetailPageHeader.__proto__||Object.getPrototypeOf(WorkDetailPageHeader)).call(this,props));_this.goback=function(){var workId=_this.props.match.params.workId;if(window.location.pathname.indexOf('appraise')==-1){var category_id=_this.props.category.category_id;_this.props.toListPage(_this.props.match.params,category_id);}else{_this.props.toWorkListPage(_this.props.match.params,workId);// this.props.match.params.category_id
}// this.props.history.goBack()
};_this.Cancelvisible=function(){_this.setState({accessoryVisible:false});};_this.addAccessory=function(){_this.setState({accessoryVisible:true});};_this.setupdate=function(){_this.props.getReviseAttachments&&_this.props.getReviseAttachments();};_this.state={};return _this;}_createClass(WorkDetailPageHeader,[{key:"componentDidMount",value:function componentDidMount(){}// 补交附件
},{key:"render",value:function render(){var dateFormat='YYYY-MM-DD HH:mm';var _props=this.props,course_name=_props.course_name,homework_name=_props.homework_name,search=_props.search,page=_props.page,loadingstate=_props.loadingstate,homework_status=_props.homework_status,description=_props.description,noTab=_props.noTab,view_answer=_props.view_answer,author_name=_props.author_name,category=_props.category,work_id=_props.work_id,current_user=_props.current_user;var courseId=this.props.match.params.coursesId;var category_id=category&&category.category_id;var category_name=category&&category.category_name;var workId=this.props.match.params.workId;var studentWorkId=this.props.match.params.studentWorkId;var isGroup=this.props.isGroup();var moduleName=!isGroup?"普通作业":"分组作业";var moduleEngName=this.props.getModuleName();var childModuleName=this.props.moduleName;return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"newMain clearfix worklist1 workDetailPageHeader"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"educontent mt20"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n .memoContent {\n background: #fff;\n }\n .workDetailPageHeader .summaryname {\n line-height:28px\n }\n "),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_19__common_CBreadcrumb__["a" /* default */],{items:[{to:current_user&&current_user.first_category_url,name:course_name},{to:"/courses/"+courseId+"/"+moduleEngName+"/"+category_id,name:category_name},window.location.pathname.indexOf('appraise')==-1?{}:{to:"/courses/"+courseId+"/"+moduleEngName+"/"+workId+"/list",name:'作业详情'},// 1. 与上一条联动当匿评他人作品时TA人作品的作者真实姓名切换为“匿名”
window.location.pathname.indexOf('appraise')==-1?{name:'作业详情'}:{name:author_name}]}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"clearfix mt20 mb20"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:" fl color-black summaryname"},homework_name),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__coursesPublic_CoursesListType__["a" /* default */],{typelist:homework_status,typesylename:"mt3"}),category&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"color-grey-6 fr font-16 ml30 mr30 lineh-25",onClick:this.goback},"\u8FD4\u56DE"),this.props.update_atta&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,this.state.accessoryVisible===true?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_17__coursesPublic_AccessoryModal__["a" /* default */],Object.assign({},this.props,{modalname:"补交附件",visible:this.state.accessoryVisible,Cancelname:"取消",Savesname:"确认",Cancel:this.Cancelvisible,setupdate:this.setupdate,seeworks:undefined,reviseAttachmentUrl:"/student_works/"+(work_id||studentWorkId)+"/revise_attachment.json"})):"",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16 ",href:"javascript:void(0)",onClick:this.addAccessory,style:{'marginTop':'-4px'}},"\u8865\u4EA4\u9644\u4EF6"))),noTab!==true&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"stud-class-set bor-bottom-greyE"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"mt10 clearfix edu-back-white poll_list pl5"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_router_dom__["b" /* Link */],{className:(childModuleName=='作品列表'?'active':'')+" ",to:"/courses/"+courseId+"/"+moduleEngName+"/"+workId+"/list"},"\u4F5C\u54C1\u5217\u8868"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_router_dom__["b" /* Link */],{className:(childModuleName=='作业描述'?'active':'')+" ",to:"/courses/"+courseId+"/"+moduleEngName+"/"+workId+"/question"},"\u4F5C\u4E1A\u63CF\u8FF0"),view_answer==true&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_router_dom__["b" /* Link */],{className:(childModuleName=='参考答案'?'active':'')+" ",to:"/courses/"+courseId+"/"+moduleEngName+"/"+workId+"/answer"},"\u53C2\u8003\u7B54\u6848"),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11_react_router_dom__["b" /* Link */],{className:(childModuleName=='设置'?'active':'')+" ",style:{paddingLeft:this.props.isAdmin()?'38px':'20px'},to:"/courses/"+courseId+"/"+moduleEngName+"/"+workId+"/setting"},this.props.isAdmin()?"设置":"得分规则"),this.props.tabRightComponents)),this.props.children))));}}]);return WorkDetailPageHeader;}(__WEBPACK_IMPORTED_MODULE_10_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (WorkDetailPageHeader);
/***/ }),
/***/ 1772:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_educoder__ = __webpack_require__(5);
var _createClass=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);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var CheckboxGroup=__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a.Group;var CheckAllGroup=function(_Component){_inherits(CheckAllGroup,_Component);function CheckAllGroup(props){var _arguments=arguments;_classCallCheck(this,CheckAllGroup);var _this=_possibleConstructorReturn(this,(CheckAllGroup.__proto__||Object.getPrototypeOf(CheckAllGroup)).call(this,props));_this.onCheckAll=function(){_this.setState({'checkAll':true,checkedValues:[]});_this.props.onChange&&_this.props.onChange([],true);};_this.onChange=function(checkedValues){if(checkedValues.length>0){_this.setState({'checkAll':false,checkedValues:checkedValues});_this.props.onChange&&_this.props.onChange(checkedValues,false);}else{_this.setState({'checkAll':true,checkedValues:[]});_this.props.onChange&&_this.props.onChange(checkedValues,true);}console.log(checkedValues,_arguments);};_this.state={checkAll:true,checkedValues:[]};return _this;}_createClass(CheckAllGroup,[{key:"render",value:function render(){var _props=this.props,label=_props.label,options=_props.options,checkboxGroupStyle=_props.checkboxGroupStyle;var _state=this.state,checkAll=_state.checkAll,checkedValues=_state.checkedValues;return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("style",null,"\n .groupList .ant-checkbox-group-item{\n margin-bottom:5px;\n }\n "),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{className:"fl mr10 color-grey-8"},label),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("span",{className:"fl mr25"},__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a",{href:"javascript:void(0);",id:"comment_no_limit",className:"pl10 pr10 "+(checkAll?'check_on':''),onClick:this.onCheckAll},"\u5168\u90E8")),__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div",{className:"fl groupList",style:{maxWidth:"990px"}},options.length>1&&__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(CheckboxGroup,{options:options,onChange:this.onChange,value:checkedValues,style:checkboxGroupStyle})));}}]);return CheckAllGroup;}(__WEBPACK_IMPORTED_MODULE_2_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (CheckAllGroup);
/***/ }),
/***/ 1795:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_select_style_css__ = __webpack_require__(318);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_select_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_select__ = __webpack_require__(315);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_select__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_axios__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_ModalWrapper__ = __webpack_require__(333);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_infinite_scroller__ = __webpack_require__(1289);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_infinite_scroller___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_infinite_scroller__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_educoder__ = __webpack_require__(5);
var _createClass=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);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Option=__WEBPACK_IMPORTED_MODULE_3_antd_lib_select___default.a.Option;var pageCount=15;// 代码查重弹框
var CheckCodeModal=function(_Component){_inherits(CheckCodeModal,_Component);function CheckCodeModal(props){_classCallCheck(this,CheckCodeModal);var _this=_possibleConstructorReturn(this,(CheckCodeModal.__proto__||Object.getPrototypeOf(CheckCodeModal)).call(this,props));_this.fetchMemberList=function(arg_page){var courseId=_this.props.match.params.coursesId;var page=arg_page||_this.state.page;var _this$state=_this.state,name=_this$state.name,school_name=_this$state.school_name;var url="/courses/"+courseId+"/search_teacher_candidate.json";_this.setState({loading:true});__WEBPACK_IMPORTED_MODULE_5_axios___default.a.post(url,{page:page,limit:pageCount,school_name:school_name||'',name:name||''}).then(function(response){if(!response.data.candidates||response.data.candidates.length==0){_this.setState({page:page,loading:false,hasMore:false});}else{_this.setState({candidates:page==1?response.data.candidates:_this.state.candidates.concat(response.data.candidates),page:page,loading:false,hasMore:response.data.candidates.length==pageCount});}}).catch(function(error){console.log(error);});};_this.fetchOptions=function(){// add_teacher_popup
var courseId=_this.props.match.params.coursesId;var url="/courses/"+courseId+"/add_teacher_popup.json";__WEBPACK_IMPORTED_MODULE_5_axios___default.a.get(url,{}).then(function(response){if(response.data.graduation_groups){_this.setState({graduation_groups:response.data.graduation_groups});}if(response.data.course_groups){_this.setState({course_groups:response.data.course_groups});}}).catch(function(error){console.log(error);});};_this.setVisible=function(visible){if(visible){_this.fetchMemberList();_this.fetchOptions();}_this.refs.modalWrapper.setVisible(visible);if(visible==false){_this.setState({checkBoxValues:[]});}};_this.onSendOk=function(){var courseId=_this.props.match.params.coursesId;var url="/courses/"+courseId+"/add_teacher.json";var params={"user_list":_this.state.checkBoxValues.map(function(item){return{'user_id':item};}),"graduation_group_id":"2","course_group_id":"820"// "role": ROLE_TEACHER_NUM
};var _this$state2=_this.state,graduationGroup=_this$state2.graduationGroup,courseGroup=_this$state2.courseGroup;if(graduationGroup){params.graduation_group_id=graduationGroup;}if(courseGroup){params.course_group_id=courseGroup;}__WEBPACK_IMPORTED_MODULE_5_axios___default.a.post(url,params).then(function(response){if(response.data.status==0){_this.setVisible(false);_this.props.showNotification('添加成功');}}).catch(function(error){console.log(error);});};_this.onOk=function(){_this.onSendOk();};_this.onCheckBoxChange=function(checkBoxValues){_this.setState({checkBoxValues:checkBoxValues});};_this.handleInfiniteOnLoad=function(){_this.fetchMemberList(_this.state.page+1);};_this.onSearch=function(){_this.fetchMemberList(1);};_this.handleGradationGroupChange=function(value){_this.setState({graduationGroup:value});};_this.handleCourseGroupChange=function(value){_this.setState({courseGroup:value});};_this.state={checkBoxValues:[],candidates:[],hasMore:true,loading:false,page:1};return _this;}_createClass(CheckCodeModal,[{key:"componentDidMount",value:function componentDidMount(){}},{key:"render",value:function render(){var _state=this.state,candidates=_state.candidates,checkBoxValues=_state.checkBoxValues,loading=_state.loading,hasMore=_state.hasMore,name=_state.name,school_name=_state.school_name,graduationGroup=_state.graduationGroup,graduation_groups=_state.graduation_groups,courseGroup=_state.courseGroup,course_groups=_state.course_groups;var moduleName=this.props.moduleName;return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__common_ModalWrapper__["a" /* default */],Object.assign({ref:"modalWrapper",width:"700px",title:"\u4EE3\u7801\u67E5\u91CD"},this.props,{onOk:this.onOk,className:"checkCodeModal"}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n .demo-loading-container {\n position: absolute;\n bottom: 93px;\n width: 82%;\n text-align: center;\n }\n .df {\n display: flex;\n align-items: baseline;\n margin: 12px 0;\n }\n .firstLabel {\n flex: 0 0 60px;\n }\n .df span.label {\n margin-right: 8px;\n text-align: right;\n margin-left: 12px;\n }\n .df .ant-input-affix-wrapper {\n width: 32%;\n }\n\n .checkCodeModal label.task-hide {\n width: 100%;\n }\n "),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"clearfix mb2",style:{margin:'0px 15px 6px'}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a,{className:"fl",style:{visibility:'hidden'}}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with25"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},'分班名称')),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with25"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},'有效作品数')),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with45"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},'上次查重时间'))),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"edu-back-skyblue padding10-15",style:{"height":"300px",overflowY:"scroll",overflowAnchor:'none'}},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a.Group,{style:{width:'100%'},onChange:this.onCheckBoxChange,value:checkBoxValues},candidates&&candidates.map(function(candidate){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"clearfix mb7",key:candidate.id},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a,{className:"fl",value:candidate.id,key:candidate.id}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with25"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_educoder__["g" /* ConditionToolTip */],{title:candidate.name,condition:candidate.name&&candidate.name.length>12},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},candidate.name))),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with25"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_educoder__["g" /* ConditionToolTip */],{title:candidate.nickname,condition:candidate.nickname&&candidate.nickname.length>12},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},candidate.nickname))),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl with45"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("label",{className:"task-hide fl",style:{"maxWidth":"208px;"}},candidate.school_name)));})))));}}]);return CheckCodeModal;}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (CheckCodeModal);
/***/ }),
/***/ 2477:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__ = __webpack_require__(177);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__ = __webpack_require__(175);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__ = __webpack_require__(68);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__ = __webpack_require__(32);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__ = __webpack_require__(318);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select__ = __webpack_require__(315);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_select__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_router_dom__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_educoder__ = __webpack_require__(5);
/* 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__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__PublishRightnow__ = __webpack_require__(1681);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__coursesPublic_AccessoryModal__ = __webpack_require__(1451);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__modals_DownloadMessageysl__ = __webpack_require__(1427);
var _createClass=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);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Option=__WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default.a.Option;var CheckboxGroup=__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default.a.Group;var confirm=__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default.a.confirm;var GraduationTasksnewtype=true;var $=window.$;var Search=__WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default.a.Search;var RadioGroup=__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default.a.Group;var TabRightComponents=function(_Component){_inherits(TabRightComponents,_Component);function TabRightComponents(props){_classCallCheck(this,TabRightComponents);var _this=_possibleConstructorReturn(this,(TabRightComponents.__proto__||Object.getPrototypeOf(TabRightComponents)).call(this,props));_this.onToPublishClick=function(){};_this.Cancelvisible=function(){_this.setState({accessoryVisible:false});};_this.Downloadcal=function(){_this.setState({DownloadType:false,DownloadMessageval:undefined});};_this.addAccessory=function(){_this.setState({accessoryVisible:true});};_this.setupdate=function(){};_this.publishModal=__WEBPACK_IMPORTED_MODULE_10_react___default.a.createRef();_this.endModal=__WEBPACK_IMPORTED_MODULE_10_react___default.a.createRef();_this.state={accessoryVisible:false,DownloadType:false,DownloadMessageval:undefined};return _this;}_createClass(TabRightComponents,[{key:"componentDidMount",value:function componentDidMount(){}// 补交附件
},{key:"confirmysl",/// 确认是否下载
value:function confirmysl(url){var _this2=this;__WEBPACK_IMPORTED_MODULE_13_axios___default.a.get(url+'?export=true').then(function(response){if(response.data.status&&response.data.status===-1){}else if(response.data.status&&response.data.status===-2){if(response.data.message==="100"){// 已超出文件导出的上限数量100 ),建议:
_this2.setState({DownloadType:true,DownloadMessageval:100});}else{//因附件资料超过500M
_this2.setState({DownloadType:true,DownloadMessageval:500});}}else{_this2.props.slowDownload(url);// this.props.showNotification(`正在下载中`);
// window.open("/api"+url, '_blank');
}}).catch(function(error){console.log(error);});}},{key:"render",value:function render(){var _this3=this;var dateFormat='YYYY-MM-DD HH:mm';var accessoryVisible=this.state.accessoryVisible;var _props=this.props,work_statuses=_props.work_statuses,publish_immediately=_props.publish_immediately,work_id=_props.work_id,end_immediately=_props.end_immediately;var courseId=this.props.match.params.coursesId;var category_id=this.props.match.params.category_id;var workId=this.props.match.params.workId;var isGroup=this.props.isGroup();var moduleName=!isGroup?"普通作业":"分组作业";var moduleEngName=this.props.getModuleName();var childModuleName=this.props.moduleName;var isAdmin=this.props.isAdmin();var isSuperAdmin=this.props.isSuperAdmin();var exportUrl="/api/homework_commons/"+workId+"/works_list.zip";var exportResultUrl="/api/homework_commons/"+workId+"/works_list.xlsx";return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,isAdmin?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{style:{display:'inline',float:'right'}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_14__PublishRightnow__["a" /* default */],Object.assign({ref:this.publishModal,showActionButton:false},this.props,{checkBoxValues:[workId],isPublish:true,doWhenSuccess:this.props.doWhenSuccess,checkBeforePost:this.props.saveWorkSetting,onToPublishClick:this.onToPublishClick})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_14__PublishRightnow__["a" /* default */],Object.assign({ref:this.endModal,showActionButton:false},this.props,{checkBoxValues:[workId],isPublish:false,doWhenSuccess:this.props.doWhenSuccess}))),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__modals_DownloadMessageysl__["a" /* default */],Object.assign({},this.props,{value:this.state.DownloadMessageval,modalCancel:this.Downloadcal,modalsType:this.state.DownloadType})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("style",null,"\n .drop_down_menu li a {\n padding: 0px;\n font-size: 14px;\n color: #333;\n }\n .drop_down_menu {\n width: 121px;\n }\n .drop_down_menu li {\n overflow: visible;\n width: 121px;\n }\n .drop_down_menu, .drop_down_normal {\n padding-top: 10px;\n padding-bottom: 8px;\n }\n "),this.props.isAdmin()?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",{className:"li_line drop_down fr color-blue font-16 mr8 mt20",style:{"padding":"0 20px"}},"\u5BFC\u51FA",__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("i",{className:"iconfont icon-xiajiantou font-12 ml2"}),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("ul",{className:"drop_down_menu",style:{"right":"-34px","left":"unset","height":"auto"}},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{href:exportResultUrl,onClick:function onClick(url){return _this3.confirmysl(exportResultUrl);},className:"color-dark"},"\u5BFC\u51FA\u6210\u7EE9")),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("li",null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{href:exportUrl,onClick:function onClick(url){return _this3.confirmysl(exportUrl);},className:"color-dark"},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")))):"",end_immediately&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",onClick:function onClick(){_this3.endModal.current.open();}},"\u7ACB\u5373\u622A\u6B62"),publish_immediately&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",onClick:function onClick(){_this3.publishModal.current.open();}},"\u7ACB\u5373\u53D1\u5E03"),isAdmin&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",onClick:function onClick(){return _this3.props.toEditPage(_this3.props.match.params,workId);}},"\u7F16\u8F91\u4F5C\u4E1A")):__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,work_statuses&&work_statuses.indexOf('提交作品')!=-1&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",href:"javascript:void(0)",onClick:function onClick(){_this3.props.toWorkPostPage(_this3.props.match.params);}},"\u63D0\u4EA4\u4F5C\u54C1"),work_statuses&&work_statuses.indexOf('修改作品')!=-1&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",href:"javascript:void(0)",onClick:function onClick(){_this3.props.toWorkPostPage(_this3.props.match.params,null,true,work_id);}},"\u4FEE\u6539\u4F5C\u54C1"),work_statuses&&work_statuses.indexOf('补交附件')!=-1&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__coursesPublic_AccessoryModal__["a" /* default */],Object.assign({},this.props,{modalname:"补交附件",visible:accessoryVisible,Cancelname:"取消",Savesname:"确认",Cancel:this.Cancelvisible,setupdate:this.setupdate,reviseAttachmentUrl:"/student_works/"+work_id+"/revise_attachment.json"})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"fr color-blue font-16",href:"javascript:void(0)",onClick:this.addAccessory},"\u8865\u4EA4\u9644\u4EF6"))));}}]);return TabRightComponents;}(__WEBPACK_IMPORTED_MODULE_10_react__["Component"]);/* unused harmony default export */ var _unused_webpack_default_export = (TabRightComponents);
/***/ }),
/***/ 3116:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__ = __webpack_require__(177);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_radio_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__ = __webpack_require__(175);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__ = __webpack_require__(68);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_input_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input__ = __webpack_require__(69);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__ = __webpack_require__(32);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_antd_lib_modal_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__ = __webpack_require__(317);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_antd_lib_checkbox_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__ = __webpack_require__(314);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__ = __webpack_require__(318);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd_lib_select_style_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select__ = __webpack_require__(315);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_antd_lib_select__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_router_dom__ = __webpack_require__(44);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN__ = __webpack_require__(180);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_antd_lib_date_picker_locale_zh_CN__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_educoder__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_axios__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_axios__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__modals_Modals__ = __webpack_require__(173);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__coursesPublic_CoursesListType__ = __webpack_require__(1084);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__coursesPublic_HomeworkModal__ = __webpack_require__(1200);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__common_button_CheckAllGroup__ = __webpack_require__(1772);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_moment__ = __webpack_require__(86);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19_moment__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__coursesPublic_modal_CheckCodeModal__ = __webpack_require__(1795);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__coursesPublic_NoneData__ = __webpack_require__(328);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__css_Courses_css__ = __webpack_require__(327);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__css_Courses_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_22__css_Courses_css__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__common_WorkDetailPageHeader__ = __webpack_require__(1743);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__common_TabRightComponents__ = __webpack_require__(2477);
var _createClass=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);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var Option=__WEBPACK_IMPORTED_MODULE_9_antd_lib_select___default.a.Option;var CheckboxGroup=__WEBPACK_IMPORTED_MODULE_7_antd_lib_checkbox___default.a.Group;var confirm=__WEBPACK_IMPORTED_MODULE_5_antd_lib_modal___default.a.confirm;var GraduationTasksnewtype=true;var $=window.$;var Search=__WEBPACK_IMPORTED_MODULE_3_antd_lib_input___default.a.Search;var RadioGroup=__WEBPACK_IMPORTED_MODULE_1_antd_lib_radio___default.a.Group;var CommonWorkAnswer=function(_Component){_inherits(CommonWorkAnswer,_Component);function CommonWorkAnswer(props){_classCallCheck(this,CommonWorkAnswer);var _this=_possibleConstructorReturn(this,(CommonWorkAnswer.__proto__||Object.getPrototypeOf(CommonWorkAnswer)).call(this,props));_this.fetchData=function(){var workId=_this.props.match.params.workId;var url="/homework_commons/"+workId+"/reference_answer.json";__WEBPACK_IMPORTED_MODULE_14_axios___default.a.get(url).then(function(result){if(result.data.course_id){_this.setState(Object.assign({},result.data),function(){});_this.props.initWorkDetailCommonState&&_this.props.initWorkDetailCommonState(Object.assign(Object.assign({},result.data),{moduleName:'参考答案'}));}}).catch(function(error){console.log(error);});};_this.fetchAllListener=function(){_this.fetchData();};_this.state={course_name:"",homework_name:"",search:''};return _this;}_createClass(CommonWorkAnswer,[{key:"componentDidMount",value:function componentDidMount(){this.fetchData();try{this.props.triggerRef(this);}catch(e){}Object(__WEBPACK_IMPORTED_MODULE_13_educoder__["Z" /* on */])('commonwork_fetch_all',this.fetchAllListener);}},{key:"componentWillUnmount",value:function componentWillUnmount(){Object(__WEBPACK_IMPORTED_MODULE_13_educoder__["Y" /* off */])('commonwork_fetch_all',this.fetchAllListener);}},{key:"render",value:function render(){var dateFormat='YYYY-MM-DD HH:mm';var _state=this.state,course_name=_state.course_name,homework_name=_state.homework_name,search=_state.search,page=_state.page,loadingstate=_state.loadingstate,homework_status=_state.homework_status,reference_answer=_state.reference_answer,attachments=_state.attachments;var courseId=this.props.match.params.coursesId;var category_id=this.props.match.params.category_id;var workId=this.props.match.params.workId;var exportResultUrl="/api/homework_commons/"+workId+"/works_list.xlsx";return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Fragment,null,__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"padding40 memoContent new_li"},reference_answer?__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13_educoder__["s" /* MarkdownToHtml */],{content:reference_answer||"还未设置答案。"}):reference_answer===undefined?'':(!attachments||attachments.length==0)&&__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_21__coursesPublic_NoneData__["a" /* default */],null),attachments&&attachments.map(function(item){return __WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("div",{className:"color-grey"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{className:"color-grey"},__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("i",{className:"font-14 color-green iconfont icon-fujian mr8","aria-hidden":"true"})),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("a",{href:item.url,className:"mr12",length:"58"},item.title),__WEBPACK_IMPORTED_MODULE_10_react___default.a.createElement("span",{className:"color-grey mt2 color-grey-6 font-12"},item.filesize));})));}}]);return CommonWorkAnswer;}(__WEBPACK_IMPORTED_MODULE_10_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (CommonWorkAnswer);
/***/ })
});