|
|
webpackJsonp([164],{1135:function(e,t,n){(e.exports=n(280)(!0)).push([e.i,".polllisthover:hover{-webkit-box-shadow:0 2px 6px rgba(51,51,51,.09);box-shadow:0 2px 6px rgba(51,51,51,.09);opacity:1;border-radius:2px}.workList_Item{display:-ms-flexbox;display:flex;background-color:#fff;margin-bottom:20px;padding-top:10px}p span{cursor:default}.mt-5{margin-top:-5px}.bankNav li{float:left;margin-right:20px}.bankNav li:last-child{margin-right:0}.bankNav li.active a{color:#fff!important;background-color:#4cacff}.bankNav li a{display:block;padding:0 10px;height:28px;line-height:28px;background-color:#f5f5f5;border-radius:36px;color:#666!important}.task_menu_ul{width:600px}.task_menu_ul .ant-menu-item,.task_menu_ul .ant-menu-submenu-title{padding:0;margin-right:30px;line-height:68px;font-size:16px}.ant-menu{color:#05101a}.task_menu_ul .ant-menu-horizontal{border-bottom:none}.task_menu_ul .ant-menu-horizontal>.ant-menu-item:hover{border-bottom:2px solid transparent}.task_menu_ul .ant-menu-horizontal>.ant-menu-item-selected{border-bottom:2px solid #4cacff!important}.sourceTag a{display:block;float:left;background-color:#e5f3ff;padding:0 10px;height:24px;line-height:24px;color:#4e7a9b;margin:5px 0 5px 10px}.sourceTag a.active{color:#fff;background-color:#4cacff}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/courses/css/busyWork.css"],names:[],mappings:"AACA,qBACE,gDAAoD,AAC5C,wCAA4C,AACpD,UAAW,AACX,iBAAmB,CACpB,AAED,eAEE,oBAAqB,AACrB,aAAc,AACd,sBAAuB,AACvB,mBAAoB,AACpB,gBAAkB,CACnB,AACD,OACE,cAAgB,CACjB,AACD,MAAO,eAAgB,CAAC,AAIxB,YACE,WAAY,AACZ,iBAAmB,CACpB,AACD,uBACE,cAAkB,CACnB,AACD,qBACE,qBAAsB,AACtB,wBAA0B,CAC3B,AACD,cACE,cAAe,AACf,eAAiB,AACjB,YAAa,AACb,iBAAkB,AAClB,yBAA0B,AAC1B,mBAAoB,AACpB,oBAAyB,CAC1B,AAID,cACE,WAAa,CACd,AAED,mEACE,UAAY,AACZ,kBAAmB,AACnB,iBAAkB,AAClB,cAAgB,CACjB,AACD,UACE,aAAe,CAChB,AACD,mCACE,kBAAoB,CACrB,AACD,wDACE,mCAAoC,CACrC,AACD,2DACE,yCAA4C,CAC7C,AAED,aACE,cAAe,AACf,WAAY,AACZ,yBAAyB,AACzB,eAAkB,AAClB,YAAa,AACb,iBAAkB,AAClB,cAAe,AACf,qBAAwB,CACzB,AACD,oBACE,WAAe,wBAAyB,CACzC",file:"busyWork.css",sourcesContent:["\n.polllisthover:hover {\n -webkit-box-shadow: 0px 2px 6px rgba(51,51,51,0.09);\n box-shadow: 0px 2px 6px rgba(51,51,51,0.09);\n opacity: 1;\n border-radius: 2px;\n}\n\n.workList_Item{\n /* padding:20px 30px; */\n display: -ms-flexbox;\n display: flex;\n background-color: #fff;\n margin-bottom: 20px;\n padding-top: 10px;\n}\np span{\n cursor: default;\n}\n.mt-5{ margin-top:-5px;}\n\n\n/* <20><><EFBFBD>ѡ<EFBFBD><D1A1>tab */\n.bankNav li{\n float: left;\n margin-right: 20px;\n}\n.bankNav li:last-child{\n margin-right: 0px;\n}\n.bankNav li.active a{\n color: #fff!important;\n background-color: #4CACFF;\n}\n.bankNav li a{\n display: block;\n padding:0px 10px;\n height: 28px;\n line-height: 28px;\n background-color: #F5F5F5;\n border-radius: 36px;\n color: #666666!important;\n}\n\n\n\n.task_menu_ul{\n width: 600px;\n}\n\n.task_menu_ul .ant-menu-item,.task_menu_ul .ant-menu-submenu-title{\n padding:0px;\n margin-right: 30px;\n line-height: 68px;\n font-size: 16px;\n}\n.ant-menu{\n color: #05101a;\n}\n.task_menu_ul .ant-menu-horizontal{\n border-bottom: none;\n}\n.task_menu_ul .ant-menu-horizontal > .ant-menu-item:hover{\n border-bottom:2px solid transparent;\n}\n.task_menu_ul .ant-menu-horizontal > .ant-menu-item-selected{\n border-bottom: 2px solid #4CACFF !important;\n}\n\n.sourceTag a{\n display: block;\n float: left;\n background-color:#E5F3FF;\n padding: 0px 10px;\n height: 24px;\n line-height: 24px;\n color: #4E7A9B;\n margin:5px 0px 5px 10px;\n}\n.sourceTag a.active{\n color: #FFFFFF;background-color:#4CACFF; \n}\n\n"],sourceRoot:""}])},1559:function(e,t,n){"use strict";var a=n(30),o=(n.n(a),n(31)),r=n.n(o),s=n(166),i=(n.n(s),n(165)),l=n.n(i),c=n(65),u=(n.n(c),n(66)),p=n.n(u),d=n(0),m=n.n(d),A=n(12),f=n.n(A),h=function(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e};function b(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var g=p.a.Search,y=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(C,d.Component),h(C,[{key:"componentDidMount",value:function(){var e=this.state.search;this.onupdatalist(e),this.setState({yslbanksMenu:this.props.banksMenu})}},{key:"render",value:function(){var e=this,t=this.state,n=t.courses,a=t.Radiolist,o=t.showcheck,s=(t.smallisSpin,{display:"block",height:"30px",lineHeight:"30px"});return m.a.createElement("div",null,m.a.createElement("style",null,"\n\t\t\t\t\t\t.ant-modal-body{\n\t\t\t\t\t\t padding:20px 40px;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.onSearchtopics input{\n\t\t\t\t\t\t height:40px;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.over221{\n\t\t\t\t\t\t height:221px;\n\t\t\t\t\t\t overflow-y: auto;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t"),m.a.createElement(r.a,{keyboard:!1,title:"发送至课堂",visible:this.props.visible,closable:!1,footer:null,destroyOnClose:!0,width:600},m.a.createElement("div",{className:"newupload_conbox"},m.a.createElement("div",{className:"mb15 font-14 edu-txt-center color-orange-tip"},"温馨提示:选择的题将会发送到指定课堂"),m.a.createElement("div",{className:"mb5"},m.a.createElement(g,{className:"mb14 onSearchtopics",placeholder:"请输入课堂名称进行搜索",onChange:this.onSearchChange,onSearch:this.onSearch})),m.a.createElement("div",{className:"edu-back-skyblue pl15 pr15 clearfix over221 pt5"},m.a.createElement(l.a.Group,{onChange:this.onChange,value:a},n&&n.map(function(e,t){return m.a.createElement("div",{className:"mt5",key:t},m.a.createElement(l.a,{style:s,value:e.course_id,key:e.course_id},e.course_name))}))),!0===o?m.a.createElement("div",{className:"color-red mt10"},"请先选择课堂"):"",m.a.createElement("div",{className:"mt20 clearfix edu-txt-center"},m.a.createElement("a",{onClick:function(){return e.props.topicscancelmodel()},className:"pop_close task-btn mr30 "},"取消"),m.a.createElement("a",{className:"task-btn task-btn-orange",onClick:function(){return e.submitInfo()}},"确定")))))}}]),C);function C(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,e));return a.onupdatalist=function(e){f.a.get("/question_banks/my_courses.json",{params:{search:e}}).then(function(e){a.setState({courses:e.data.courses})}).catch(function(e){console.log(e)})},a.onSearchChange=function(e){a.setState({search:e.target.value})},a.onSearch=function(e){a.onupdatalist(e)},a.onChange=function(e){console.log("SendTopics"),console.log(e),a.setState({Radiolist:e.target.value})},a.submitInfo=function(){a.setState({smallisSpin:!0});var e=a.state.Radiolist,t=a.props.checkBoxValues,n=a.props.category;void 0===e?a.setState({showcheck:!0,smallisSpin:!1}):f.a.post("/question_banks/send_to_course.json",{object_id:t,object_type:n,course_id:e}).then(function(e){if(a.setState({smallisSpin:!1}),0===e.data.status){a.props.showNotification(e.data.message),a.props.topicscancelmodel();try{a.props.updataslist()}catch(e){}if(!0===a.props.mysendall)try{var t="";"normal"===a.state.yslbanksMenu.category?t="/courses/"+a.state.Radiolist+"/common_homeworks/"+e.data.task_ids+"/setting":"group"===a.state.yslbanksMenu.category?t="/courses/"+a.state.Radiolist+"/group_homeworks/"+e.data.task_ids+"/setting":"exercise"===a.state.yslbanksMenu.category?t="/courses/"+a.state.Radiolist+"/exercises/"+e.data.task_ids+"/student_exercise_list?tab=3":"poll"===a.state.yslbanksMenu.category&&(t="/courses/"+a.state.Radiolist+"/polls/"+e.data.task_ids+"/detail?tab=3"),window.open(t,"_blank")}catch(e){}else try{t="";"normal"===a.props.category?t="/courses/"+a.state.Radiolist+"/common_homeworks/"+e.data.category_id:"group"===a.props.category?t="/courses/"+a.state.Radiolist+"/group_homeworks/"+e.data.category_id:"exercise"===a.props.category?t="/courses/"+a.state.Radiolist+"/exercises/"+e.data.category_id:"poll"===a.props.category&&(t="/courses/"+a.state.Radiolist+"/polls/"+e.data.category_id),window.open(t,"_blank")}catch(e){console.log(e)}}else a.props.showNotification(e.data.message)}).catch(function(e){console.log(e),a.setState({smallisSpin:!1})})},a.state={courses:[],search:null,Radiolist:void 0,showcheck:!1,smallisSpin:!1,yslbanksMenu:void 0},a}t.a=y},1707:function(e,t,n){"use strict";var a=n(877),o=(n.n(a),n(839)),s=n.n(o),r=n(0),i=n.n(r),l=n(45),c=n(5),u=n(1416),p=(n.n(u),n(293)),d=(n.n(p),n(870)),m=(n.n(d),n(1559)),A=n(163),f=n(12),h=n.n(f),b=function(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e};function g(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var y=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(C,r.Component),b(C,[{key:"componentDidMount",value:function(){try{var e=this.props.location.search.split("?tab=");void 0===e[1]?this.setState({tab:["0"]}):"0"===e[1]?this.setState({tab:["0"]}):"1"===e[1]&&this.setState({tab:["1"]})}catch(e){this.setState({tab:["0"]})}}},{key:"render",value:function(){var e=this,t=this.props.banksMenu,n=this.state,a=n.visible,o=n.tab;return this.props.current_user&&this.props.current_user.user_id,this.props.current_user&&this.props.current_user.user_identity,this.props.data&&this.props.data.id,i.a.createElement("div",{className:"clearfix bor-bottom-greyE edu-back-white",style:{padding:"0px 30px"}},this.state.Modalstype&&!0===this.state.Modalstype?i.a.createElement(A.a,{modalsType:this.state.Modalstype,modalsTopval:this.state.Modalstopval,modalCancel:this.state.ModalCancel,modalSave:this.state.ModalSave,modalsBottomval:this.state.ModalsBottomval,loadtype:this.state.Loadtype}):"",a&&!0===a?i.a.createElement(m.a,Object.assign({},this.state,this.props,{mysendall:!0,visible:a,category:t&&t.category,checkBoxValues:[t&&t.id],topicscancelmodel:function(){return e.topicscancelmodel()}})):"",t&&i.a.createElement("div",{className:"task_menu_ul fl"},i.a.createElement(s.a,{mode:"horizontal",selectedKeys:o,onClick:this.changeTab},t.menuArray&&t.menuArray.map(function(e,t){return i.a.createElement(s.a.Item,{key:t},i.a.createElement(l.b,{to:""+e.to},e.content))}))),void 0===t?i.a.createElement("span",{className:"fr mt18"},i.a.createElement(c.A,{onClick:function(){return e.deletecheckBoxValues(t&&t.id,t&&t.category)},style:"blue",className:"ml20 font-16"},"删除"),i.a.createElement(c.A,{to:t.tos?t.tos:"",style:"blue",className:"ml20 font-16"},"编辑"),i.a.createElement(c.A,{onClick:function(){return e.sendTopics()},style:"blue",className:"ml20 font-16"},"发送")):!0===t.authorize?i.a.createElement("span",{className:"fr mt18"},i.a.createElement(c.A,{onClick:function(){return e.deletecheckBoxValues(t&&t.id,t&&t.category)},style:"blue",className:"ml20 font-16"},"删除"),i.a.createElement(c.A,{to:t.tos?t.tos:"",style:"blue",className:"ml20 font-16"},"编辑"),i.a.createElement(c.A,{onClick:function(){return e.sendTopics()},style:"blue",className:"ml20 font-16"},"发送")):i.a.createElement("span",{className:"fr mt18"},i.a.createElement(c.A,{onClick:function(){return e.sendTopics()},style:"blue",className:"ml20 font-16"},"发送")))}}]),C);function C(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,e));return n.sendTopics=function(){n.setState({visible:!0})},n.topicscancelmodel=function(){n.setState({Modalstype:!1,Loadtype:!1,visible:!1,Modalstopval:"",ModalCancel:"",ModalSave:"",checkBoxValues:[],checkedtype:!1})},n.deletecheckBoxValues=function(e,t){n.setState({Modalstype:!0,Modalstopval:"是否确认删除?",ModalCancel:n.topicscancelmodel,ModalSave:function(){return n.topicssavedelete(e,t)}})},n.topicssavedelete=function(e,t){h.a.delete("/question_banks/multi_delete.json",{data:{object_id:[e],object_type:t}}).then(function(e){console.log(e),e&&e.data&&(0===e.data.status?(n.props.showNotification(e.data.message),window.location.href="/users/"+n.props.current_user.login+"/topics/personal"):n.props.showNotification(e.data.message))}).catch(function(e){console.log(e)}),n.topicscancelmodel()},n.changeTab=function(e){n.setState({tab:e.key}),console.log(e.key)},n.state={visible:!1,tab:["0"]},n}t.a=y},3929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),o=n.n(a),s=n(45),r=n(308),i=n.n(r),l=n(307),c=n(1707),u=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e};function p(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var d=i()({loader:function(){return n.e(44).then(n.bind(null,3019))},loading:l.a}),m=i()({loader:function(){return n.e(172).then(n.bind(null,3930))},loading:l.a}),A=i()({loader:function(){return n.e(153).then(n.bind(null,3931))},loading:l.a}),f=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(h,a.Component),u(h,[{key:"render",value:function(){var t=this,e=this.state.banksMenu,n={initPublic:this.initPublic};return console.log("BanksTabIndex"),console.log(e),console.log(this.props),o.a.createElement(o.a.Fragment,null,e&&o.a.createElement(c.a,Object.assign({banksMenu:e},this.props,this.state,n)),o.a.createElement(s.e,this.props,o.a.createElement(s.d,{path:"/banks/exercise/:Id/:type",render:function(e){return o.a.createElement(A,Object.assign({},t.props,e,t.state,n))}}),o.a.createElement(s.d,{path:"/banks/gtopic/:bankId/:type",render:function(e){return o.a.createElement(d,Object.assign({},t.props,e,t.state,n))}}),o.a.createElement(s.d,{path:"/banks/poll/:bankId/:type",render:function(e){return o.a.createElement(m,Object.assign({},t.props,e,t.state,n))}})))}}]),h);function h(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e));return a.initPublic=function(e,t,n){a.setState({banksMenu:t}),a.props.initPublic(e,n)},a.state={banksMenu:void 0},a}t.default=f},870:function(e,t,n){var a=n(1135);"string"==typeof a&&(a=[[e.i,a,""]]);var o={hmr:!1,transform:void 0};n(281)(a,o);a.locals&&(e.exports=a.locals)}}); |