|
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[52],{"2oyp":function(t,e,n){"use strict";n.r(e);n("ZuIQ");var i=n("DbVt"),a=n("xwgP"),o=n.n(a),r=n("sYIF"),s=n("91MD"),l=n.n(s),c=n("5A3O"),u=(n("awnt"),n("RNYb"),n("3JZM"));function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var a=b(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?h(t):e}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(r,t);var e,n,i,a=m(r);function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),g(h(e=a.call(this,t)),"onChange",(function(t){})),g(h(e),"jixuxuantioncli",(function(){e.props.history.replace("/problemset")})),e.state={page:1},e}return e=r,(n=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return o.a.createElement("div",{className:"w100s mt20 mb20 backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"w100s sortinxdirection"},o.a.createElement("div",{className:"w70s sortinxdirection"},o.a.createElement("p",{className:"questionstishu lh34"},"题数:",this.props.all_score),o.a.createElement("p",{className:"ml58 questionstishu lh34"},"总分:",o.a.createElement("span",{className:"questionstotal"},this.props.all_questions_count)),o.a.createElement("p",{className:"ml58 questionstishu lh34"},"难度:",o.a.createElement("span",{className:"questionstotal"},void 0===this.props.difficulty?"":1===this.props.difficulty?"简单":2===this.props.difficulty?"适中":3===this.props.difficulty?"困难":""))),o.a.createElement("div",{className:"w30s xaxisreverseorder"},o.a.createElement("div",{className:"jixuxuanti xiaoshou",onClick:function(){return t.props.setnewmyshixunmodelbool(!0)}},"继续选题"))),o.a.createElement("div",{className:"questiontypeheng w100s mt19 mb19"}),o.a.createElement("div",{className:"w100s sortinxdirection"},o.a.createElement("div",{className:"pagertdstcolor w50s sortinxdirection"},"拖动试题可调整排序")))}}])&&d(e.prototype,n),i&&d(e,i),r}(a.Component),v=n("ebhk"),w=(n("BiRT"),n("MnfA")),x=n("wm8L"),E=n("RKqF"),k=n("B7eH"),S=n("hMRu"),j=n("Gqv7");function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=I(t);if(e){var a=I(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}(r,t);var e,n,i,a=P(r);function r(){return q(this,r),a.apply(this,arguments)}return e=r,(n=[{key:"render",value:function(){var t,e=this,n=this.props,i=n.paperreviewsingleindex,a=n.paperreviewsinglename,r=n.typenames,s=n.indexs,l=n.object,c=n.typenamesn;return o.a.createElement("div",null,i===s&&a===r?o.a.createElement("div",{className:"xaxisreverseorder mt25 mr2"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return e.props.showsetmodalsTypedels(l.id,!0,1)}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return e.props.Singlemagazines(!0,l.id,c)}},"设置得分")):o.a.createElement("div",{className:"xaxisreverseorder mt25 "}),o.a.createElement(j.a,(O(t={paperreviewsingleindex:i,name:r,key:s,showparagraphs:function(t,n){return e.props.showparagraphs(t,n)},objectsingle:l},"key",s),O(t,"indexx",s+1),O(t,"indexxy",s),O(t,"hideparagraphs",(function(){return e.props.hideparagraphs()})),t)))}}])&&T(e.prototype,n),i&&T(e,i),r}(a.Component);function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function K(){return(K=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function M(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function B(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=G(t);if(e){var a=G(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?L(t):e}function L(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(r,t);var e,n,i,a=B(r);function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),V(L(e=a.call(this,t)),"onDragEnd",(function(t,n){if(t.destination){var i=e.props[n].questions[t.source.index].id,a=e.props[n].questions[t.destination.index].position,o="/examination_items/".concat(i,"/adjust_position.json");if("Intelligence"===e.props.match.params.type)var r={position:a,exam_setting_id:e.props.match.params.id};else r={position:a};l.a.post(o,r).then((function(t){0==t.data.status&&e.props.getdata({})})).catch((function(t){}))}})),V(L(e),"Singlemagazine",(function(t,n){!0===n?e.setState({modalsTypey:!0,titilesm:t}):e.setState({modalsTypey:!1,titilesm:""})})),V(L(e),"setDownloady",(function(t){var n={exam_id:e.props.match.params.id,score:t,item_type:"单选题"===e.state.titilesm?"SINGLE":"多选题"===e.state.titilesm?"MULTIPLE":"判断题"===e.state.titilesm?"JUDGMENT":"编程题"===e.state.titilesm?"PROGRAM":"填空题"===e.state.titilesm?"COMPLETION":"简答题"===e.state.titilesm?"SUBJECTIVE":""};l.a.post("/examination_items/batch_set_score.json",n).then((function(t){0==t.data.status&&(e.props.getdata({}),e.Singlemagazine("",!1))})).catch((function(t){}))})),V(L(e),"setDownloadys",(function(t){var n="/examination_items/".concat(e.state.set_scoreid,"/set_score.json"),i={score:t};l.a.post(n,i).then((function(t){0==t.data.status&&(e.props.getdata({}),e.Singlemagazines(!1))})).catch((function(t){}))})),V(L(e),"Singlemagazines",(function(t,n,i){!0===t?e.setState({set_scoreid:n,modalsTypeys:t,titilesm:i}):e.setState({modalsTypeys:t,set_scoreid:null,titilesm:null})})),V(L(e),"setmodalsTypedel",(function(t,n,i){if(1===n)e.setState({modalsTypedel:t,titilesms:i});else{e.setState({modalsTypedel:t,titilesms:i});l.a.delete("/examination_items/delete_item_type.json",{data:{exam_id:e.props.match.params.id,item_type:i}}).then((function(t){0==t.data.status&&(e.props.getdata({}),e.setState({titilesms:""}))})).catch((function(t){}))}})),V(L(e),"setmodalsTypedels",(function(t,n){if(1===n)e.setState({modalsTypedels:t});else{var i="/examination_items/".concat(e.state.item_bank_id,".json");l.a.delete(i).then((function(t){0==t.data.status&&e.props.getdata({})})).catch((function(t){})),e.setState({modalsTypedels:t})}})),V(L(e),"showsetmodalsTypedels",(function(t,n,i){console.log("Paperlibraryseeid_itemss"),e.setState({item_bank_id:t}),e.setmodalsTypedels(n,i)})),V(L(e),"hideparagraph",(function(t){})),V(L(e),"hideparagraphs",(function(){e.setState({singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!1,completionbool:!1,subjectivebool:!1})})),V(L(e),"showparagraph",(function(t){"SINGLE"===t?e.setState({singlebool:!0,multiplebool:!1,judgmentbool:!1,programbool:!1,paperreviewsingleindex:"无",paperreviewsinglename:""}):"MULTIPLE"===t?e.setState({singlebool:!1,multiplebool:!0,judgmentbool:!1,programbool:!1,completionbool:!1,subjectivebool:!1,paperreviewsingleindex:"无",paperreviewsinglename:""}):"JUDGMENT"===t?e.setState({singlebool:!1,multiplebool:!1,judgmentbool:!0,programbool:!1,completionbool:!1,subjectivebool:!1,paperreviewsingleindex:"无",paperreviewsinglename:""}):"PROGRAM"===t?e.setState({singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!0,completionbool:!1,subjectivebool:!1,paperreviewsingleindex:"无",paperreviewsinglename:""}):"COMPLETION"===t?e.setState({singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!1,completionbool:!0,subjectivebool:!1,paperreviewsingleindex:"无",paperreviewsinglename:""}):"SUBJECTIVE"===t&&e.setState({singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!1,completionbool:!1,subjectivebool:!0,paperreviewsingleindex:"无",paperreviewsinglename:""})})),V(L(e),"showparagraphs",(function(t,n){e.setState({paperreviewsingleindex:t,paperreviewsinglename:n,singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!1,completionbool:!1,subjectivebool:!1})})),e.state={questions:0,totalscore:0,total:0,modalsTypedel:!1,modalsTypey:!1,modalsTypeys:!1,modalsTypedels:!1,titilesm:"",titilesms:"",singlebool:!1,multiplebool:!1,judgmentbool:!1,programbool:!1,completionbool:!1,subjectivebool:!1,paperreviewsingleindex:"无",set_scoreid:null,item_bank_id:null},e}return e=r,(n=[{key:"render",value:function(){var t=this,e=this.state,n=e.modalsTypedel,i=e.modalsTypey,a=e.modalsTypedels,r=e.singlebool,s=e.multiplebool,l=e.judgmentbool,c=e.programbool,u=e.completionbool,p=e.subjectivebool,d=e.modalsTypeys,f=this.props,m=f.single_questions,y=f.multiple_questions,h=f.judgement_questions,b=f.program_questions,g=f.completion_questions,_=f.subjective_questions,v=function(t){var e,n={single_questions:m,multiple_questions:y,judgement_questions:h,program_questions:b,completion_questions:g,subjective_questions:_};return Object.keys(n).filter((function(t){return n[t]})).map((function(n,i){t===n&&(e=i)})),["一","二","三","四","五","六"][e]};return o.a.createElement("div",{className:" w100s "},!0===n?o.a.createElement(x.a,K({},this.state,this.props,{setmodalsTypedel:function(e,n,i){return t.setmodalsTypedel(e,n,i)}})):"",!0===i?o.a.createElement(k.a,K({},this.state,this.props,{setDownloady:function(e){return t.setDownloady(e)},Singlemagazine:function(e,n){return t.Singlemagazine(e,n)}})):"",!0===d?o.a.createElement(S.a,K({},this.state,this.props,{setDownloadys:function(e){return t.setDownloadys(e)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)}})):"",!0===a?o.a.createElement(E.a,K({},this.state,this.props,{setmodalsTypedels:function(e,n,i){return t.setmodalsTypedels(e,n,i)}})):"",o.a.createElement("div",{className:"w100s mt20 mb20 backgroudwhites",style:{position:"relative"}},m&&m?o.a.createElement("div",{className:"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"w100s mt20 mb20 postitonrelati"},o.a.createElement("div",{className:!0===r?"w100s sortinxdirection borderwdswuhques intermediatecenterysls":"w100s sortinxdirection intermediatecenterysls",onMouseEnter:function(){return t.showparagraph("SINGLE")},onMouseLeave:function(){return t.hideparagraph("SINGLE")}},o.a.createElement("p",{className:!0===r?"ml18 yldxtit":"yldxtit"},"一、单选题")," ",o.a.createElement("p",{className:"ml15 yldxtits"},"(共",m&&m.questions_count,"题;共",m&&m.questions_score,"分)")),!0===r?o.a.createElement("div",{className:"postitonrelatiss xaxisreverseorder"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"SINGLE")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("单选题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"single_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),m&&m.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"SINGLE",typenamesn:"单选题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):"",y&&y?o.a.createElement("div",{className:"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"h20 lh20"}),o.a.createElement("div",{className:"w100s mb20 postitonrelati"},o.a.createElement("div",{className:!0===s?"w100s sortinxdirection mt10 borderwdswuhques intermediatecenterysls":"w100s sortinxdirection intermediatecenterysls",onMouseEnter:function(){return t.showparagraph("MULTIPLE")},onMouseLeave:function(){return t.hideparagraph("MULTIPLE")}},o.a.createElement("p",{className:!0===s?"ml18 yldxtit":"yldxtit"},null===m?"一":"二","、多选题"),o.a.createElement("p",{className:"ml15 yldxtits"},"(共",y&&y.questions_count,"题;共",y&&y.questions_score,"分)")),!0===s?o.a.createElement("div",{className:"postitonrelatisss xaxisreverseorder "},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"MULTIPLE")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("多选题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"multiple_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),y&&y.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"MULTIPLE",typenamesn:"多选题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):"",h&&h?o.a.createElement("div",{className:!0===l?"backgroudwhites ":"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"h20 lh20"}),o.a.createElement("div",{className:"w100s mb20 postitonrelati"},o.a.createElement("div",{className:!0===l?"w100s sortinxdirection borderwdswuhques mt10 intermediatecenterysls ":"w100s sortinxdirection intermediatecenterysls ",onMouseEnter:function(){return t.showparagraph("JUDGMENT")},onMouseLeave:function(){return t.hideparagraph("JUDGMENT")}},o.a.createElement("p",{className:!0===l?"ml18 yldxtit":"yldxtit"},v("judgement_questions"),"、判断题")," ",o.a.createElement("p",{className:"ml15 yldxtits"},"(共",h&&h.questions_count,"题;共",h&&h.questions_score,"分)")),!0===l?o.a.createElement("div",{className:"postitonrelatiss xaxisreverseorder"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"JUDGMENT")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("判断题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"judgement_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),h&&h.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"JUDGMENT",typenamesn:"判断题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):"",b&&b?o.a.createElement("div",{className:!0===c?"backgroudwhites ":"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"h20 lh20"}),o.a.createElement("div",{className:"w100s mb20 postitonrelati"},o.a.createElement("div",{className:!0===c?"w100s sortinxdirection mt10 borderwdswuhques intermediatecenterysls ":"w100s sortinxdirection intermediatecenterysls",onMouseEnter:function(){return t.showparagraph("PROGRAM")},onMouseLeave:function(){return t.hideparagraph("PROGRAM")}},o.a.createElement("p",{className:!0===c?"ml18 yldxtit":"yldxtit"},v("program_questions"),"、编程题")," ",o.a.createElement("p",{className:"ml15 yldxtits"},"(共",b&&b.questions_count,"题;共",b&&b.questions_score,"分)")),!0===c?o.a.createElement("div",{className:"postitonrelatiss xaxisreverseorder"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"PROGRAM")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("编程题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"program_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),b&&b.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"PROGRAM",typenamesn:"编程题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):"",g&&g?o.a.createElement("div",{className:!0===u?"backgroudwhites ":"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"h20 lh20"}),o.a.createElement("div",{className:"w100s mb20 postitonrelati"},o.a.createElement("div",{className:!0===u?"w100s sortinxdirection borderwdswuhques mt10 intermediatecenterysls ":"w100s sortinxdirection intermediatecenterysls ",onMouseEnter:function(){return t.showparagraph("COMPLETION")},onMouseLeave:function(){return t.hideparagraph("COMPLETION")}},o.a.createElement("p",{className:!0===u?"ml18 yldxtit":"yldxtit"},v("completion_questions"),"、填空题")," ",o.a.createElement("p",{className:"ml15 yldxtits"},"(共",g&&g.questions_count,"题;共",g&&g.questions_score,"分)")),!0===u?o.a.createElement("div",{className:"postitonrelatiss xaxisreverseorder"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"COMPLETION")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("填空题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"completion_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),g&&g.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"COMPLETION",typenamesn:"填空题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):"",_&&_?o.a.createElement("div",{className:!0===p?"backgroudwhites ":"backgroudwhites",style:{position:"relative"}},o.a.createElement("div",{className:"h20 lh20"}),o.a.createElement("div",{className:"w100s mb20 postitonrelati"},o.a.createElement("div",{className:!0===p?"w100s sortinxdirection borderwdswuhques mt10 intermediatecenterysls ":"w100s sortinxdirection intermediatecenterysls ",onMouseEnter:function(){return t.showparagraph("SUBJECTIVE")},onMouseLeave:function(){return t.hideparagraph("SUBJECTIVE")}},o.a.createElement("p",{className:!0===p?"ml18 yldxtit":"yldxtit"},v("subjective_questions"),"、简答题")," ",o.a.createElement("p",{className:"ml15 yldxtits"},"(共",_&&_.questions_count,"题;共",_&&_.questions_score,"分)")),!0===p?o.a.createElement("div",{className:"postitonrelatiss xaxisreverseorder"},o.a.createElement("div",{className:"scd xiaoshou",onClick:function(){return t.setmodalsTypedel(!0,1,"SUBJECTIVE")}},"删除"),o.a.createElement("div",{className:"szdfd xiaoshou",onClick:function(){return t.Singlemagazine("简答题",!0)}},"批量设置得分")):"",o.a.createElement(w.a,{onDragEnd:function(e){return t.onDragEnd(e,"subjective_questions")}},o.a.createElement(w.c,{droppableId:"0"},(function(e,n){return o.a.createElement("div",K({ref:e.innerRef},e.droppableProps,{className:"",onScroll:t.contentViewScrolledit}),_&&_.questions.map((function(e,n){return o.a.createElement(w.b,{key:e.id,draggableId:e.id,index:n,className:""},(function(i,a){return o.a.createElement("div",K({key:n,ref:i.innerRef},i.draggableProps,i.dragHandleProps),o.a.createElement(z,{key:n,paperreviewsingleindex:t.state.paperreviewsingleindex,paperreviewsinglename:t.state.paperreviewsinglename,indexs:n,typenames:"SUBJECTIVE",typenamesn:"简答题",showsetmodalsTypedels:function(e,n,i){return t.showsetmodalsTypedels(e,n,i)},Singlemagazines:function(e,n,i){return t.Singlemagazines(e,n,i)},showparagraphs:function(e,n){return t.showparagraphs(e,n)},object:e,hideparagraphs:function(){return t.hideparagraphs()}}))}))})))}))))):""))}}])&&M(e.prototype,n),i&&M(e,i),r}(a.Component),U=n("W9V0");function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(){return(Y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function W(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Z(t,e){return(Z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function X(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nt(t);if(e){var a=nt(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return tt(this,n)}}function tt(t,e){return!e||"object"!==H(e)&&"function"!=typeof e?et(t):e}function et(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var at=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Z(t,e)}(c,t);var e,n,a,s=X(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),it(et(e=s.call(this,t)),"getJudquestio",(function(t){e.Judquestio=t})),it(et(e),"getdata",(function(){var t="/examination_banks/".concat(e.props.match.params.id,".json");l.a.get(t).then((function(t){t&&e.setState({Contentdata:t.data,item_banksedit:t.data.exam})}))})),it(et(e),"scrollToAnchor",(function(t){try{if(t){var e=document.getElementById(t);e&&e.scrollIntoView()}}catch(t){}})),it(et(e),"preservation",(function(){if(0!==e.Judquestio.Getdatas().length){var t,n=[],i=W(e.Judquestio.Getdatas()[2].rbzsd);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.id)}}catch(t){i.e(t)}finally{i.f()}var o="/examination_banks/".concat(e.props.match.params.id,".json"),r={difficulty:e.Judquestio.Getdatas()[0].rbnd,name:e.Judquestio.Getdatas()[4].classroom,duration:e.Judquestio.Getdatas()[5].kssc,discipline_id:e.Judquestio.Getdatas()[3].rbkc[0],sub_discipline_id:e.Judquestio.Getdatas()[3].rbkc[1],tag_discipline_id:n};l.a.put(o,r).then((function(t){0===t.data.status&&e.props.history.push("/paperlibrary/see/"+e.props.match.params.id)})).catch((function(t){}))}else e.scrollToAnchor("Itembankstopid")})),it(et(e),"setitem_type",(function(t){})),it(et(e),"setCohetepaperbool",(function(t){})),it(et(e),"getcontentMdRef",(function(t){e.contentMdRef=t})),it(et(e),"setnewmyshixunmodelbool",(function(t){if(!0===t)var n=window.setInterval((function(){var t=window.pageYOffset;t>0?window.scrollTo(0,t-20):window.clearInterval(n)}),2);e.setState({newmyshixunmodelbool:t}),e.getdata()})),e.Judquestio=o.a.createRef(),e.state={Contentdata:[],disciplinesdata:[],knowledgepoints:[],disciplmy:[],item_banksedit:[],newmyshixunmodelbool:!1,defaultActiveKey:"0"},e}return e=c,(n=[{key:"componentDidMount",value:function(){var t=this;this.getdata(),l.a.get("/disciplines.json",{params:{source:"question"}}).then((function(e){if(e&&(t.setState({disciplinesdata:e.data.disciplines}),e.data&&e.data.disciplines)){for(var n=e.data.disciplines,i=0;i<n.length;i++){for(var a=[],o=n[i].sub_disciplines,r=0;r<o.length;r++){var s=o[r].tag_disciplines;a.push({value:o[r].id,label:o[r].name});for(var l=0;l<s.length;l++)t.state.knowledgepoints.push(s[l])}var c={value:n[i].id,label:n[i].name,children:a};t.state.disciplmy.push(c)}t.setState({knowledgepoints:t.state.knowledgepoints,disciplmy:t.state.disciplmy})}}));var e=this.props.location.search,n=r.X.parse(e);"{}"===JSON.stringify(n)||"0"===n.defaultActiveKey?this.setState({defaultActiveKey:"0"}):this.setState({defaultActiveKey:"1"})}},{key:"render",value:function(){var t=this,e=this.state,n=e.Contentdata,a=e.newmyshixunmodelbool,r=e.defaultActiveKey,s=(this.props&&this.props.match&&this.props.match.params,"/paperlibrary?defaultActiveKey=".concat(r));return o.a.createElement("div",null,o.a.createElement("div",{id:"Itembankstopid",className:"newMain clearfix intermediatecenter "},!0===a?o.a.createElement("style",null,"\n\t\t\t\t\t\t\t\tbody{ overflow: hidden !important; }\n\t\t\t\t\t\t\t\t"):"",!0===a?o.a.createElement("div",{className:"fangdatwo"},o.a.createElement(U.a,Y({},this.state,this.props,{Contentdata:this.state.Contentdata,exam_id:this.props.match.params.id,setnewmyshixunmodelbool:function(e){return t.setnewmyshixunmodelbool(e)}}))):"",o.a.createElement("style",null,"\n\t\t\t\t\t\n\t\t\t\t\t\t.newFooter{\n\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"),o.a.createElement("div",{className:"w1200ms"},o.a.createElement("div",{className:"w100s mt30"},o.a.createElement(i.a,{separator:">"},o.a.createElement(i.a.Item,{className:"shubiao"},"试卷库"),o.a.createElement(i.a.Item,{href:s},"1"===r?"公开试卷库":"我的试卷库"),o.a.createElement(i.a.Item,{className:"shubiao"},"试卷编辑"))),o.a.createElement(v.a,Y({},this.state,this.props,{item_banksedit:this.state.item_banksedit,getJudquestio:function(e){return t.getJudquestio(e)}})),o.a.createElement("div",{className:" clearfix educontent Contentquestionbankstyle w100s w1200wuh mt19"},o.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t.seeoagertitscss .jixuxuanti{\n\t\t\t\t\t\t\t\t\tbackground:#4CACFF;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t"),o.a.createElement("div",{className:"seeoagertitscss"},o.a.createElement(_,{setnewmyshixunmodelbool:function(e){return t.setnewmyshixunmodelbool(e)},all_score:n&&n.exam&&n.exam.all_questions_count,all_questions_count:n&&n.exam&&n.exam.all_score,difficulty:n&&n.exam&&n.exam.difficulty})),o.a.createElement(J,Y({},this.state,this.props,{getdata:function(){return t.getdata()},single_questions:n&&n.single_questions&&n.single_questions.questions.length>0?n.single_questions:null,multiple_questions:n&&n.multiple_questions&&n.multiple_questions.questions.length>0?n.multiple_questions:null,judgement_questions:n&&n.judgement_questions&&n.judgement_questions.questions.length>0?n.judgement_questions:null,program_questions:n&&n.program_questions&&n.program_questions.questions.length>0?n.program_questions:null,completion_questions:n&&n.completion_questions&&n.completion_questions.questions.length>0?n.completion_questions:null,subjective_questions:n&&n.subjective_questions&&n.subjective_questions.questions.length>0?n.subjective_questions:null}))))),!0===a?"":o.a.createElement(u.a,Y({},this.props,this.state,{bottomvalue:"保存",setCohetepaperbool:function(e){return t.setCohetepaperbool(e)},onSubmits:function(){return t.preservation()},url:s})))}}])&&Q(e.prototype,n),a&&Q(e,a),c}(a.Component);e.default=Object(r.m)()(Object(c.a)(at))},"3JZM":function(t,e,n){"use strict";n("Y5Ue");var i=n("xc0u"),a=n("xwgP"),o=n.n(a);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,a,r=u(p);function p(){var t;s(this,p);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return m(d(t=r.call.apply(r,[this].concat(n))),"cannelfun",(function(){try{!0===t.props.Cohetepaperbool?t.props.setCohetepaperbool(!1):t.props.history.replace(t.props.url)}catch(e){t.props.history.replace(t.props.url)}})),t}return e=p,(n=[{key:"render",value:function(){var t,e=this;return o.a.createElement("div",null,o.a.createElement("style",null,"\n .newFooter{\n display:none;\n }\n .newshixunbottombtn {\n position: fixed;\n z-index: 1000;\n bottom: 0;\n width: 100%;\n height: 63px;\n background: #fff;\n box-shadow: 0 -4px 4px 0 rgba(0,0,0,.05);\n }\n .padding13-30 {\n padding: 13px 30px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n .newshixunmode {\n width: 100px;\n height: 38px;\n border-radius: 3px;\n }\n "),o.a.createElement("div",{className:"clearfix bor-bottom-greyE edu-back-white orderingbox newshixunbottombtn"},o.a.createElement("div",{className:" edu-txt-center padding13-30"},o.a.createElement("button",{type:"button",className:"ant-btn mr20 newshixunmode backgroundFFF",onClick:function(){return e.cannelfun()}},o.a.createElement("span",null,"取 消")),o.a.createElement(i.a,(m(t={type:"button",className:"ant-btn newshixunmode mr40 ant-btn-primary"},"type","primary"),m(t,"htmlType","submit"),m(t,"onClick",this.props.onSubmits?function(){return e.props.onSubmits()}:function(){return e.cannelfun()}),m(t,"loading",this.props.loadings),t),o.a.createElement("span",null,void 0===this.props.bottomvalue?"保存":this.props.bottomvalue)))))}}])&&l(e.prototype,n),a&&l(e,a),p}(a.Component);e.a=y},B7eH:function(t,e,n){"use strict";n("U4At");var i=n("KiF4"),a=(n("/mds"),n("aLG4")),o=n("xwgP"),r=n.n(o);n("BiRT");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,o,s=u(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),m(d(e=s.call(this,t)),"onChange",(function(t){e.setState({value:t})})),m(d(e),"setDownloadysl",(function(){var t=e.state.value;if(/^[0-9]+.?[0-9]*$/.test(t)){try{if(t<1)return void e.props.showNotification("不能小于0")}catch(t){}e.props.setDownloady(e.state.value)}else e.props.showNotification("必须为数值")})),e.state={value:0},e}return e=p,(n=[{key:"render",value:function(){var t=this;return r.a.createElement(i.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"批量设置分数",centered:!0,visible:void 0!==this.props.modalsTypey&&this.props.modalsTypey,width:"442px"},r.a.createElement("style",null,"\n\t\t\t\t\t\t.yslzxueshisanfd .ant-input-number{\nheight: 35px !important;\nwidth: 124px !important;\n}\n\t\t\t\t\t\t"),r.a.createElement("div",{className:"educouddiv intermediatecenter"},r.a.createElement("div",{className:"tabeltext-alignleft mt10 sortinxdirection yslzxueshisanfd"},r.a.createElement("p",{className:"titiles lh35"},this.props.titilesm,":"),r.a.createElement(a.a,{min:0,step:.1,onChange:this.onChange}),r.a.createElement("p",{className:"titiles ml5 lh35"},"分/题")),r.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},r.a.createElement("a",{className:"task-btn mr30 w80",onClick:function(){return t.props.Singlemagazine("",!1)}},"取消"),r.a.createElement("a",{className:"task-btn task-btn-orange w80",onClick:function(){return t.setDownloadysl()}},"确定"))))}}])&&l(e.prototype,n),o&&l(e,o),p}(o.Component);e.a=y},Gqv7:function(t,e,n){"use strict";n("kvrU");var i,a=n("BPQb"),o=n("xwgP"),r=n.n(o),s=(n("BiRT"),n("RNYb"),n("SkK4")),l=n("bjH3"),c=n("91MD"),u=n.n(c);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var a=g(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v,w,x=n("DHRj").b.a(i||(v=["\n & :hover {\n cursor: pointer;\n color: #4cacff;\n }\n"],w||(w=v.slice(0)),i=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(w)}})))),E="abcdefghijklmnopqrstuvwxyz".toUpperCase(),k=Array.from(E).map((function(t){return"".concat(t,".")})),S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(c,t);var e,n,i,o=y(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),_(b(e=o.call(this,t)),"onProgramClick",(function(){if(e.props.objectsingle&&e.props.objectsingle.program_attr&&!e.state.start_id&&"PROGRAM"===e.props.objectsingle.item_type){var t="/problems/".concat(e.props.objectsingle.program_attr.identifier,"/start.json");u.a.get(t).then((function(t){window.open("/myproblems/".concat(t.data.identifier))}))}})),_(b(e),"handleShowUploadImage",(function(t){e.setState({url:t})})),_(b(e),"handleClose",(function(){e.setState({url:""})})),e.state={questions:0,totalscore:0,total:0,url:"",start_id:""},e}return e=c,(n=[{key:"render",value:function(){var t=this,e=this.state,n=(e.questions,e.totalscore,e.total,e.items,e.url),i=this.props,o=i.objectsingle,c=i.indexx,u=(i.paperreviewsingleindex,i.indexxy),p=i.name,f=o.name;if(f)try{f=JSON.parse(f)}catch(t){f=o.name}var m=o&&o.program_attr&&o.program_attr.description;if(m)try{m=JSON.parse(m)}catch(t){m=o&&o.program_attr&&o.program_attr.description}return r.a.createElement("div",{key:u,className:"w100s borderwdswuh mb20 pd20 ",onMouseEnter:function(){return t.props.showparagraphs(u,p)},style:{minHeight:"114px"}},n?r.a.createElement(s.a,d({},this.props,this.state,{handleClose:function(){return t.handleClose()}})):"",r.a.createElement("div",{className:"w100s sortinxdirection "},r.a.createElement("div",{className:" sortinxdirection "},r.a.createElement("p",{className:"cretitlecolrlis lh28",style:{fontWeight:"bold"}},c),"、"),r.a.createElement("style",null,"\n\t\t\t\t\t.markdown-body{\n\t\t\t\t\t color: #333333;\n font-size: 14px !important;\n line-height: 28px;\n\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t.markdown-body p {\n\t\t\t\t\t color: #333333;\n\t\t\t\t\t font-size: 14px !important;\n\t\t\t\t\t line-height: 28px;\n\t\t\t\t\t font-weight: bold;\n\n\t\t\t\t\t}\n\t\t\t\t\t.bodyysls .ql-editor p span{\n\t\t\t\t\t\t\t font-weight: bold;\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t"),"PROGRAM"===o.item_type?r.a.createElement("div",{className:"w100s sortinxdirection"},r.a.createElement("div",{className:" tites lh28 listjihetixingstit markdown-body cretitlecolrlist ",style:{wordBreak:"break-word",minWidth:"32px",fontWeight:"bold"}},"(",o.score,"分)"),r.a.createElement(x,{onClick:this.onProgramClick},r.a.createElement(l.a,{value:f,className:"ml10 lh28 listjihetixingstit cretitlecolrlist "}))):r.a.createElement("div",{className:"w100s sortinxdirection"},r.a.createElement("div",{className:" tites lh28 listjihetixingstit markdown-body cretitlecolrlist ",style:{wordBreak:"break-word",minWidth:"32px",fontWeight:"bold"}},"(",o.score,"分)"),r.a.createElement(l.a,{value:f,className:"ml10 lh28 listjihetixingstit cretitlecolrlist "}))),r.a.createElement("div",{className:"w100s sortinxdirection"},"JUDGMENT"===o.item_type?r.a.createElement("p",{className:"w100s listjihetixingstits sortinxdirection "},null==o?"":o.choices.map((function(t,e){return r.a.createElement("p",{className:1===e?"sortinxdirection ml10":"sortinxdirection "},r.a.createElement(a.a,{disabled:!0},t.choice_text))}))):"PROGRAM"===o.item_type?r.a.createElement("p",{className:"w100s listjihetixingstitssy sortinxdirection "},r.a.createElement("p",{className:"sortinxdirection mt15"},o&&o.program_attr&&o.program_attr.description?r.a.createElement("div",{className:"programquill ",style:{wordBreak:"break-word"}},null==m?null:r.a.createElement(l.a,{value:m})):null)):"COMPLETION"===o.item_type?r.a.createElement("p",{className:"w100s listjihetixingstitssy sortinxdirection "},r.a.createElement("p",{className:"sortinxdirection mt15"},r.a.createElement("div",{className:"programquill ",style:{wordBreak:"break-word"}},o.standard_answer.map((function(t,e){return r.a.createElement(l.a,{className:" testfondex yldxtit",value:"答案(填空".concat(t.position,"):").concat(t.answer_text.join("、")),key:e})}))))):"SUBJECTIVE"===o.item_type?r.a.createElement("p",{className:"w100s listjihetixingstitssy sortinxdirection "},r.a.createElement("p",{className:"sortinxdirection mt15"},r.a.createElement("div",{className:"programquill ",style:{wordBreak:"break-word"}},r.a.createElement("div",{className:"markdown-body"},r.a.createElement("p",null,"答案:")),r.a.createElement(l.a,{className:" testfondex yldxtit",value:o.answer_texts[0]?o.answer_texts[0]:""})))):r.a.createElement("p",{className:"w100s listjihetixingstits verticallayout "},null==o?"":o.choices.map((function(t,e){var n=t.choice_text;if(n)try{n=JSON.parse(n)}catch(e){n=t.choice_text}return r.a.createElement("p",{key:e,className:0===e?"sortinxdirection":"sortinxdirection mt15"},k[e],r.a.createElement("p",{className:"programquills",style:{wordBreak:"break-word"}},t?void 0===t.choice_text||null===t.choice_text||""===t.choice_text?"":t.choice_text.length>0?r.a.createElement(l.a,{value:n}):"":""))})))))}}])&&f(e.prototype,n),i&&f(e,i),c}(o.Component);e.a=S},RKqF:function(t,e,n){"use strict";n("U4At");var i=n("KiF4"),a=n("xwgP"),o=n.n(a);n("BiRT");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var a=d(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,a,r=u(p);function p(){return s(this,p),r.apply(this,arguments)}return e=p,(n=[{key:"render",value:function(){var t=this;return o.a.createElement(i.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"提示",centered:!0,visible:void 0!==this.props.modalsTypedels&&this.props.modalsTypedels,width:"442px"},o.a.createElement("div",{className:"educouddiv"},o.a.createElement("div",{className:"tabeltext-alignleft mt10"},o.a.createElement("p",{className:"titiles"},"确认删除该试题?")),o.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},o.a.createElement("a",{className:"task-btn mr30 w80",onClick:function(){return t.props.setmodalsTypedels(!1,1)}},"取消"),o.a.createElement("a",{className:"task-btn task-btn-orange w80",onClick:function(){return t.props.setmodalsTypedels(!1,2)}},"确定"))))}}])&&l(e.prototype,n),a&&l(e,a),p}(a.Component);e.a=f},RNYb:function(t,e,n){},W9V0:function(t,e,n){"use strict";n("qb5G");var i=n("wLbl"),a=n("xwgP"),o=n.n(a),r=n("91MD"),s=n.n(r),l=n("sIZv"),c=n("xYcE"),u=n("zqLt"),p=n("agvJ"),d=(n("BiRT"),n("3JZM")),f=n("hAGp");function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(){return(y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function h(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=E(t);if(e){var a=E(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?x(t):e}function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=!0,j=!1,N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(m,t);var e,n,a,r=v(m);function m(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),k(x(e=r.call(this,t)),"chakanjiexibool",(function(t){e.state.chakanjiexiboolindex!==t?e.setState({chakanjiexiboolindex:t}):e.setState({chakanjiexiboolindex:"无"})})),k(x(e),"setdiscipline_id",(function(t){e.setState({discipline_id:t,sub_discipline_id:null,tag_discipline_id:null,keyword:"",page:1,per_page:10,oj_status:null});var n={discipline_id:t,sub_discipline_id:null,tag_discipline_id:null,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:null,page:e.state.page,per_page:10,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"setsub_discipline_id",(function(t,n){e.setState({sub_discipline_id:n,tag_discipline_id:null,keyword:"",page:1,per_page:10,oj_status:null});var i={discipline_id:t,sub_discipline_id:n,tag_discipline_id:null,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:null,page:1,per_page:10,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(i)})),k(x(e),"settag_discipline_id",(function(t){e.setState({tag_discipline_id:t,keyword:"",page:1,per_page:10,oj_status:null});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:t,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:null,page:1,per_page:10,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"callback",(function(t){e.setState({defaultActiveKey:t,selectallquestionsonthispages:!1,difficulty:null,page:1,oj_status:null});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:t,item_type:e.state.item_type,difficulty:null,page:1,per_page:10,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"getdata",(function(t){e.setState({booljupyterurls:!0,selectionbools:!1}),s.a.get("/item_banks.json",{params:t}).then((function(t){setTimeout((function(){e.setState({booljupyterurls:!1})}),1e3),null!=t&&(403===t.data.status||401===t.data.status||t.data.status,e.setState({Contentdata:t.data,items_count:t.data.items_count}),e.getdataslen(t.data.items))})).catch((function(t){e.setState({booljupyterurls:!1})}))})),k(x(e),"getdatasy",(function(t){e.setState({selectionbools:!1}),s.a.get("/item_banks.json",{params:t}).then((function(t){setTimeout((function(){}),1e3),null!=t&&(403===t.data.status||401===t.data.status||t.data.status,e.setState({Contentdata:t.data,items_count:t.data.items_count}),e.getdataslen(t.data.items))})).catch((function(t){}))})),k(x(e),"getdataslen",(function(t){j=!1;var n,i=0,a=0,o=h(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;"PROGRAM"===r.item_type?!0===r.choosed||(1===r.program_attr.status?i+=1:a+=1):!0===r.choosed||(i+=1)}}catch(t){o.e(t)}finally{o.f()}if(i>0)e.setState({selectionbools:!1,selectallquestionsonthispages:!1});else try{t.length===a?(j=!0,e.setState({selectionbools:!1,selectallquestionsonthispages:!1})):e.setState({selectionbools:!0,selectallquestionsonthispages:!0})}catch(t){e.setState({selectionbools:!0,selectallquestionsonthispages:!0})}})),k(x(e),"paginationonChange",(function(t){e.setState({page:t});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:t,per_page:10,oj_status:e.state.oj_status,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"showDrawer",(function(){!0===e.state.visible?e.setState({visible:!1}):(e.setState({visible:!0}),e.getbasket_listdata())})),k(x(e),"onClose",(function(){e.setState({visible:!1})})),k(x(e),"onChange",(function(t){e.setState({placement:t.target.value})})),k(x(e),"getContainer",(function(){return e.container})),k(x(e),"saveContainer",(function(t){e.container=t})),k(x(e),"showmodels",(function(t){e.setState({modalsType:!0,titilesm:"在平台审核后,所有成员均可使用试题",titiless:"是否设置为公开?",titbool:!0,timuid:t,myqyespull:!0})})),k(x(e),"setasprivates",(function(t){e.setState({modalsType:!0,titilesm:"设为私有后,试题仅您自己可见",titiless:"是否设置为私有?",titbool:!0,timuid:t,myqyespull:!1})})),k(x(e),"showmodelysl",(function(t){e.setState({modalsType:!0,titilesm:"确认删除后,无法撤销",titiless:"是否确认删除?",titbool:!1,timuid:t})})),k(x(e),"modalCancel",(function(){e.setState({modalsType:!1})})),k(x(e),"modalCancels",(function(){e.setState({modalsTypes:!1})})),k(x(e),"showQuestionModals",(function(t){e.setState({modalsTypes:!0,titilesms:t})})),k(x(e),"setDownloads",(function(t){e.Deletebigquestiontype(t),e.setState({modalsTypes:!1})})),k(x(e),"setDownload",(function(){!0===e.state.titbool?!0===e.state.myqyespull?e.publicopentimu(e.state.timuid):e.Setasprivate(e.state.timuid):e.deletetimu(e.state.timuid),e.setState({modalsType:!1})})),k(x(e),"setdifficulty",(function(t){e.setState({difficulty:t,visiblemys:!1,page:1,per_page:10,keyword:"",oj_status:null});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:t,item_type:e.state.item_type,keyword:null,page:1,per_page:10,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"setitem_types",(function(t){e.setState({item_type:t,visiblemyss:!1,page:1,per_page:10,keyword:"",oj_status:null});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:t,page:1,per_page:10,keyword:null,oj_status:null,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"handleVisibleChange",(function(t){!0===e.state.visiblemyss?e.setState({visiblemys:t,visiblemyss:!1}):e.setState({visiblemys:t})})),k(x(e),"showmodelsInaudit",(function(t){e.setState({modalsTypeInaudit:!0,titilesm:"公开申请已提交,请等待管理员的审核",titiless:"我们将在1-2个工作日内完成审核"})})),k(x(e),"modalsTypeInauditbool",(function(){e.setState({modalsTypeInaudit:!1})})),k(x(e),"handleVisibleChanges",(function(t){!0===e.state.visiblemys?e.setState({visiblemyss:t,visiblemys:!1}):e.setState({visiblemyss:t})})),k(x(e),"setdatafunsval",(function(t){e.setState({keyword:t.target.value})})),k(x(e),"setdatafuns",(function(t){e.setState({keyword:t});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:t,page:e.state.page,per_page:10,oj_status:e.state.oj_status,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),k(x(e),"deletetimu",(function(t){var n="/item_banks/".concat(t,".json");s.a.delete(n).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)}})).catch((function(t){}))})),k(x(e),"publicopentimu",(function(t){var n="/item_banks/".concat(t,"/set_public.json");s.a.post(n).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)}})).catch((function(t){}))})),k(x(e),"Setasprivate",(function(t){var n="/item_banks/".concat(t,"/set_private.json");s.a.post(n).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10};e.getdata(n,!0)}})).catch((function(t){}))})),k(x(e),"getbasket_listdata",(function(){s.a.get("/item_baskets/basket_list.json").then((function(t){e.setState({completion_questions_count:t.data.completion_questions_count,judgement_questions_count:t.data.judgement_questions_count,multiple_questions_count:t.data.multiple_questions_count,practical_questions_count:t.data.practical_questions_count,program_questions_count:t.data.program_questions_count,single_questions_count:t.data.single_questions_count,subjective_questions_count:t.data.subjective_questions_count})})).catch((function(t){e.setState({completion_questions_count:0,judgement_questions_count:0,multiple_questions_count:0,practical_questions_count:0,program_questions_count:0,single_questions_count:0,subjective_questions_count:0})}))})),k(x(e),"NOgetitem_baskets",(function(t){s.a.post("/examination_banks/cancel_items.json",t).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdatasy(n),e.getbasket_listdata()}})).catch((function(t){}))})),k(x(e),"getitem_baskets",(function(t){var n="";n=void 0===e.props.exam_id?"/item_baskets.json":"/examination_items.json",s.a.post(n,t).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdatasy(n),e.getbasket_listdata()}})).catch((function(t){}))})),k(x(e),"getitem_basketss",(function(t){var n="";void 0===e.props.exam_id?!0===S&&(S=!1,n="/item_baskets/".concat(t,".json"),s.a.delete(n).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdatasy(n),e.getbasket_listdata()}setTimeout((function(){S=!0}),1e3)})).catch((function(t){setTimeout((function(){S=!0}),1e3)}))):!0===S&&(S=!1,n="/examination_banks/".concat(e.props.exam_id,"/revoke_item.json"),s.a.delete(n,{data:{item_id:void 0===t?"":parseInt(t)}}).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdatasy(n),e.getbasket_listdata()}setTimeout((function(){S=!0}),1e3)})).catch((function(t){setTimeout((function(){S=!0}),1e3)})))})),k(x(e),"selectallquestionsonthispage",(function(t){if(!0!==j){var n,i=[],a=h(e.state.Contentdata.items);try{for(a.s();!(n=a.n()).done;){var o=n.value;"PROGRAM"===o.item_type?(o.choosed,1===o.program_attr.status&&i.push(o.id)):(o.choosed,i.push(o.id))}}catch(t){a.e(t)}finally{a.f()}var r={item_ids:i,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};!1===t?(e.getitem_baskets(r),e.setState({selectallquestionsonthispages:!0})):(e.NOgetitem_baskets(r),e.setState({selectallquestionsonthispages:!1}))}else e.props.showNotification("本页全部试题未发布,不能选择")})),k(x(e),"Deletebigquestiontype",(function(t){s.a.delete("/item_baskets/delete_item_type.json",{data:{item_type:t}}).then((function(t){if(0==t.data.status){var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n),e.getbasket_listdata()}})).catch((function(t){}))})),k(x(e),"gotopaperreview",(function(){e.props.history.replace("/paperreview")})),k(x(e),"setoj_status",(function(t){e.setState({selectallquestionsonthispages:!1,difficulty:null,oj_status:t});var n={discipline_id:e.state.discipline_id,sub_discipline_id:e.state.sub_discipline_id,tag_discipline_id:e.state.tag_discipline_id,public:e.state.defaultActiveKey,difficulty:e.state.difficulty,item_type:e.state.item_type,keyword:e.state.keywords,page:e.state.page,per_page:10,oj_status:t,exam_id:void 0===e.props.exam_id?"":parseInt(e.props.exam_id)};e.getdata(n)})),e.state={count:50,defaultActiveKey:"1",Headertop:"",Footerdown:"",visible:!1,placement:"right",modalsType:!1,modalsTypes:!1,titilesm:"在平台审核后,所有成员均可使用试题",titiless:"是否设置为公开?",titilesms:"单选题",titbool:!1,Contentdata:[],difficulty:null,visiblemys:!1,visiblemyss:!1,item_type:null,keyword:null,timuid:null,items_count:0,basket_list:[],completion_questions_count:0,judgement_questions_count:0,multiple_questions_count:0,practical_questions_count:0,program_questions_count:0,single_questions_count:0,subjective_questions_count:0,page:1,per_page:10,disciplinesdata:[],discipline_id:null,sub_discipline_id:null,tag_discipline_id:null,booljupyterurls:!1,disciplinesdatakc:0,disciplinesdatazsd:0,selectallquestionsonthispages:!1,oj_status:null,isVisible:!1,selectionbools:!1,chakanjiexiboolindex:"无",myqyespull:!0},e}return e=m,(n=[{key:"componentDidMount",value:function(){var t=this,e=!!(this.props&&this.props.current_user&&this.props.current_user.is_teacher)&&this.props.current_user.is_teacher;!!(this.props&&this.props.current_user&&this.props.current_user.professional_certification)&&this.props.current_user.professional_certification,this.props.defaultActiveKey;try{this.props&&this.props.current_user&&(this.props.current_user.admin||this.props.current_user.business),!1===e&&"学生"!==this.props.current_user.user_identity&&(e=!0)}catch(t){}s.a.get("/users/get_navigation_info.json",{}).then((function(e){null!=e&&200===e.status&&t.setState({Headertop:e.data.top,Footerdown:e.data.down})})),this.getbasket_listdata(),s.a.get("/disciplines.json",{params:{source:"question"}}).then((function(e){e&&t.setState({disciplinesdata:e.data.disciplines})}))}},{key:"componentDidUpdate",value:function(t){if(t.current_user!==this.props.current_user){var e=!!(this.props&&this.props.current_user&&this.props.current_user.is_teacher)&&this.props.current_user.is_teacher;!!(this.props&&this.props.current_user&&this.props.current_user.professional_certification)&&this.props.current_user.professional_certification,this.props.defaultActiveKey;try{this.props&&this.props.current_user&&(this.props.current_user.admin||this.props.current_user.business),!1===e&&"学生"!==this.props.current_user.user_identity&&(e=!0)}catch(t){}}}},{key:"render",value:function(){var t=this,e=this.state,n=e.page,a=e.per_page,r=e.items_count,s=(e.Headertop,e.visible),m=(e.placement,e.modalsType),h=e.modalsTypes,b=(e.basket_list,e.completion_questions_count),g=e.judgement_questions_count,_=e.multiple_questions_count,v=e.practical_questions_count,w=e.program_questions_count,x=e.single_questions_count,E=e.subjective_questions_count,k=(e.selectionbools,e.modalsTypeInaudit),S=e.Contentdata,j=b+g+_+v+w+x+E;return o.a.createElement("div",{className:"newMain clearfix ",ref:this.saveContainer},!0===s?o.a.createElement("style",null,"\n\t\t\t\t\t\t.newHeaders{\n\t\t\t\t\t\tposition: fixed;\n\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\tz-index: 999 !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.ant-drawer {\n\t\t\t\t\t\t\t\tz-index: 800 !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.ant-notification{\n\t\t\t\t\t\tposition: fixed;\n\t\t\t\t\t\tz-index: 1500 !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t"):"",!0===s?o.a.createElement("div",{style:{marginTop:"60px"}}):"",!0===h?o.a.createElement(u.a,y({},this.props,this.state,{modalsTypes:h,modalCancels:function(){return t.modalCancels()},setDownloads:function(e){return t.setDownloads(e)}})):"",!0===m?o.a.createElement(c.a,y({},this.props,this.state,{modalsType:m,modalCancel:function(){return t.modalCancel()},setDownload:function(){return t.setDownload()}})):"",!0===k?o.a.createElement(f.a,y({},this.props,this.state,{modalsType:k,modalCancel:function(){return t.modalsTypeInauditbool()},setDownload:function(){return t.modalsTypeInauditbool()}})):"",o.a.createElement("div",{id:"questionid"}),o.a.createElement(l.a,y({disciplinesdata:this.state.disciplinesdata},this.props,this.state,{setdifficulty:function(e){return t.setdifficulty(e)},setitem_types:function(e){return t.setitem_types(e)},setdiscipline_id:function(e){return t.setdiscipline_id(e)},setsub_discipline_id:function(e){return t.setsub_discipline_id(e)},settag_discipline_id:function(e){return t.settag_discipline_id(e)}})),o.a.createElement(p.a,y({},this.state,this.props,{Contentdata:S,exam_id:this.props.exam_id,Isitapopup:"true",Datacount:j,Datacountbool:!0,chakanjiexiboolindex:this.state.chakanjiexiboolindex,chakanjiexibool:function(e){return t.chakanjiexibool(e)},getitem_basketss:function(e){return t.getitem_basketss(e)},selectallquestionsonthispage:function(e){return t.selectallquestionsonthispage(e)},getitem_baskets:function(e){return t.getitem_baskets(e)},setdatafuns:function(e){return t.setdatafuns(e)},setdatafunsval:function(e){return t.setdatafunsval(e)},handleVisibleChanges:function(e){return t.handleVisibleChanges(e)},handleVisibleChange:function(e){return t.handleVisibleChange(e)},showmodels:function(e){return t.showmodels(e)},showmodelysl:function(e){return t.showmodelysl(e)},callback:function(e){return t.callback(e)},setoj_status:function(e){return t.setoj_status(e)},showmodelsInaudit:function(e){return t.showmodelsInaudit(e)},setasprivates:function(e){return t.setasprivates(e)}})),r&&r>10?o.a.createElement("div",{className:"mb30 clearfix educontent mt40 intermediatecenter"},o.a.createElement(i.a,{showQuickJumper:!0,current:n,onChange:this.paginationonChange,pageSize:a,total:r})):o.a.createElement("div",{className:"h30 clearfix educontent mt40 intermediatecenter"}),o.a.createElement(d.a,y({},this.props,this.state,{bottomvalue:"确定",Cohetepaperbool:!0,setCohetepaperbool:function(){return t.props.setnewmyshixunmodelbool(!1)},onSubmits:function(){return t.props.setnewmyshixunmodelbool(!1)},url:"/paperlibrary"})))}}])&&g(e.prototype,n),a&&g(e,a),m}(a.Component);e.a=N},Yeyr:function(t,e,n){"use strict";n("U4At");var i=n("KiF4"),a=(n("rJH4"),n("nKmx")),o=n("xwgP"),r=n.n(o);n("sYIF"),n("91MD"),n("BiRT");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,o,s=u(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),m(d(e=s.call(this,t)),"isNull",(function(t){if(""==t)return!0;var e=new RegExp("^[ ]+$");return console.log(e.test(t)),e.test(t)})),m(d(e),"handleChange",(function(t){e.setState({newkntypeinput:t.target.value,addonAfteronelens3:t.target.value.length,errorestit:"",errores:!1,boolred:!1}),e.props.setboolred(!1)})),m(d(e),"mysinputOnBlur",(function(t){})),m(d(e),"inputOnFocus",(function(t){})),m(d(e),"NewknTypedeltyoedels",(function(){0!==e.state.newkntypeinput.length?!0!==e.isNull(e.state.newkntypeinput)?e.props.NewknTypedeltyoedel(e.state.newkntypeinput):e.setState({errorestit:"不能输入空格",errores:!0,boolred:!0}):e.setState({errorestit:"请输入知识点",errores:!0,boolred:!0})})),e.state={newkntypeinput:"",errores:!1,errorestit:"",addonAfteronelens3:0},e}return e=p,(n=[{key:"render",value:function(){var t=this,e=this.state,n=e.errores,o=e.errorestit,s=e.addonAfteronelens3;return r.a.createElement(i.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"新增知识点",centered:!0,visible:void 0!==this.props.NewknTypedel&&this.props.NewknTypedel,width:"442px"},r.a.createElement("div",{className:"educouddiv"},r.a.createElement("style",null,"\n\t\t\t\t\t\t\t.eduinpus .ant-input{\n\t\t\t\t\t\t\t width: 310px !important;\n\t\t\t\t\t\t\t border-right: 0px solid #FFFFff !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t body{\n width: 100%!important;\n }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"),r.a.createElement("div",{className:!0===this.props.boolred||!0===n?"tabeltext-alignleft mt10 inpustred inpustredysl eduinpus":"tabeltext-alignleft mt10 eduinpus"},r.a.createElement(a.a,{className:"eduinpus",onInput:this.handleChange,maxLength:15,onBlur:this.mysinputOnBlur,addonAfter:String(s)+"/15",onFocus:this.inputOnFocus})),!0===n?r.a.createElement("p",{className:"xingcolor"},o):"",r.a.createElement("div",{className:!0===n?"clearfix mt10 edu-txt-center":"clearfix mt30 edu-txt-center"},r.a.createElement("a",{className:"task-btn mr30 w80",onClick:function(){return t.props.NewknTypedeldel(!1)}},"取消"),r.a.createElement("a",{className:"task-btn task-btn-orange w80",onClick:function(){return t.NewknTypedeltyoedels()}},"确定"))))}}])&&l(e.prototype,n),o&&l(e,o),p}(o.Component);e.a=y},awnt:function(t,e,n){},ebhk:function(t,e,n){"use strict";n("kvrU");var i=n("BPQb"),a=(n("/mds"),n("aLG4")),o=(n("eox1"),n("vW+X")),r=(n("6rnn"),n("d6B9")),s=(n("bHfV"),n("hVGm")),l=(n("HzvR"),n("2n5t")),c=(n("rJH4"),n("nKmx")),u=n("xwgP"),p=n.n(u),d=n("sYIF"),f=n("91MD"),m=n.n(f),y=(n("BiRT"),n("Yeyr"));function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function g(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){s=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw o}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var a=S(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?k(t):e}function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N=c.a.Group,O=l.a.Option,q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(h,t);var e,n,u,f=x(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),j(k(e=f.call(this,t)),"setboolred",(function(t){e.setState({boolred:t})})),j(k(e),"getdatasmys",(function(){if(e.props.disciplinesdata)try{if(e.props.item_banksedit.discipline&&e.props.item_banksedit.sub_discipline){for(var t=e.props.disciplinesdata,n=[],i=0;i<t.length;i++)if(e.props.item_banksedit.discipline.id===t[i].id)for(var a=t[i].sub_disciplines,o=0;o<a.length;o++)if(e.props.item_banksedit.sub_discipline.id===a[o].id)for(var r=a[o].tag_disciplines,s=0;s<r.length;s++)n.push(r[s]);var l=[];n.filter((function(t){-1===e.props.item_banksedit.tag_disciplines.findIndex((function(e){return e.id===t.id}))&&l.push(t)})),e.setState({knowledgepoints:n,knowledgepoints2:l})}}catch(t){}})),j(k(e),"handdisciplinesChange",(function(t,n){e.setState({rbkc:[t.id,n.id]}),e.props.form.setFieldsValue({rbkc:[t.id,n.id]})})),j(k(e),"handleSearch",(function(t){""!=t&&e.props.form.setFieldsValue({classroom:t})})),j(k(e),"handleChange",(function(t){e.props.form.setFieldsValue({classroom:t.target.value}),t.target.value?t.target.value.length>60||0===t.target.value.length?e.setState({bordebool:!0}):e.setState({bordebool:!1}):e.setState({bordebool:!0})})),j(k(e),"handletag_disciplinesChange",(function(t){try{var n=t[t.length-1].name;e.setState({Knowpoints:t}),e.props.form.setFieldsValue({rbzsd:n})}catch(t){}})),j(k(e),"onChange",(function(t){})),j(k(e),"Getdatas",(function(){return e.handleSubmits()})),j(k(e),"handleSubmits",(function(){var t=[];return e.props.form.validateFields((function(n,i){t=[],n||(t.push({rbnd:parseInt(i.rbnd)}),t.push({rbtx:null}),t.push({rbzsd:e.state.Knowpoints}),t.push({rbkc:i.rbkc}),t.push({classroom:i.classroom}),t.push({kssc:i.kssc}))})),t})),j(k(e),"handleSubmit",(function(t){t.preventDefault(),e.props.form.validateFields((function(t,e){}))})),j(k(e),"handleFormLayoutChangeysl",(function(t){e.props.form.setFieldsValue({rbnd:t+""}),e.setState({rbnd:t+""})})),j(k(e),"handleFormLayoutChange",(function(t){e.props.form.setFieldsValue({rbnd:t.target.value+""}),e.setState({rbnd:t.target.value+""})})),j(k(e),"handleFormkechen",(function(t){if(e.state.Knowpoints.length>4)e.props.showNotification("知识点最多选择5个");else{var n=void 0;e.props.form.setFieldsValue({rbzsd:t});var i,a=g(e.state.knowledgepoints);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.id===t&&(e.state.Knowpoints.push(o),n=o.name)}}catch(t){a.e(t)}finally{a.f()}var r=[];e.state.knowledgepoints.filter((function(t){-1===e.state.Knowpoints.findIndex((function(e){return e.id===t.id}))&&r.push(t)})),e.setState({rbzsd:n,Knowpoints:e.state.Knowpoints,knowledgepoints2:r})}})),j(k(e),"handleFormzhishidian",(function(t){e.props.form.setFieldsValue({rbkc:t}),e.setState({rbkc:t});for(var n=e.props.disciplinesdata,i=[],a=0,o=0;o<n.length;o++)if(t[0]===n[o].id){var r=n[o].sub_disciplines;try{a=r.length}catch(t){}for(var s=0;s<r.length;s++)if(t[1]===r[s].id)for(var l=r[s].tag_disciplines,c=0;c<l.length;c++)i.push(l[c])}e.setState({Knowpoints:[],knowledgepoints:i,knowledgepoints2:i,sub_disciplineslength:a}),e.props.form.setFieldsValue({rbzsd:void 0}),e.setState({rbzsd:void 0})})),j(k(e),"handleFormtixing",(function(t){e.setState({rbtx:t+""}),e.props.form.setFieldsValue({rbtx:t+""}),e.props.setitem_type(t)})),j(k(e),"preventDefault",(function(t){t.preventDefault()})),j(k(e),"deletesobject",(function(t,n){for(var i=e.state.Knowpoints,a=0;a<i.length;a++)a===n&&i.splice(a,1);e.props.form.setFieldsValue({rbzsd:e.state.Knowpoints});var o=[];if(e.state.knowledgepoints.filter((function(t){-1===e.state.Knowpoints.findIndex((function(e){return e.id===t.id}))&&o.push(t)})),e.setState({Knowpoints:e.state.Knowpoints,knowledgepoints2:o}),0===e.state.Knowpoints.length)e.setState({rbzsd:void 0});else if(e.state.Knowpoints.length>0)try{var r=e.state.Knowpoints;e.setState({rbzsd:r[e.state.Knowpoints.length-1].name})}catch(t){}})),j(k(e),"NewknTypedeldel",(function(t){void 0!==e.state.rbkc&&null!==e.state.rbkc&&""!==e.state.rbkc?e.setState({NewknTypedel:t}):e.props.showNotification("请选择课程方向")})),j(k(e),"NewknTypedeltyoedel",(function(t){var n,i=g(e.state.knowledgepoints);try{for(i.s();!(n=i.n()).done;){if(n.value.name===t){e.props.showNotification("重复的知识点"),e.setboolred(!0);break}}}catch(t){i.e(t)}finally{i.f()}if(null===t||""===t)return e.props.showNotification("请输入知识点"),void e.setboolred(!0);if(0===t.length)return e.props.showNotification("请输入知识点"),void e.setboolred(!0);var a={name:t,sub_discipline_id:e.state.rbkc[1]};m.a.post("/tag_disciplines.json",a).then((function(n){if(0===n.data.status){var i={id:n.data.tag_discipline_id,name:t};if(e.state.Knowpoints.length>=5){e.state.knowledgepoints.push(i);var a=[];e.state.knowledgepoints.filter((function(t){-1===e.state.Knowpoints.findIndex((function(e){return e.id===t.id}))&&a.push(t)})),e.setState({Knowpoints:e.state.Knowpoints,knowledgepoints:e.state.knowledgepoints,knowledgepoints2:a})}else{e.state.Knowpoints.push(i),e.state.knowledgepoints.push(i);var o=[];e.state.knowledgepoints.filter((function(t){-1===e.state.Knowpoints.findIndex((function(e){return e.id===t.id}))&&o.push(t)})),e.setState({Knowpoints:e.state.Knowpoints,knowledgepoints:e.state.knowledgepoints,knowledgepoints2:o})}}})).catch((function(t){})),e.setState({NewknTypedel:!1})})),e.contentMdRef=p.a.createRef(),e.state={page:1,Knowpoints:[],rbtx:void 0,rbkc:void 0,knowledgepoints:[],knowledgepoints2:[],options:[],NewknTypedel:!1,boolred:!1,sub_disciplineslength:1},e}return e=h,(n=[{key:"componentDidMount",value:function(){try{this.props.getJudquestio(this)}catch(t){}this.setState({options:this.props.disciplmy})}},{key:"componentDidUpdate",value:function(t){var e=this;if(t.disciplmy!==this.props.disciplmy&&this.setState({options:this.props.disciplmy}),t.disciplinesdata!==this.props.disciplinesdata)try{if(this.props.item_banksedit.discipline&&this.props.item_banksedit.sub_discipline){for(var n=this.props.disciplinesdata,i=[],a=0;a<n.length;a++)if(this.props.item_banksedit.discipline.id===n[a].id)for(var o=n[a].sub_disciplines,r=0;r<o.length;r++)if(this.props.item_banksedit.sub_discipline.id===o[r].id)for(var s=o[r].tag_disciplines,l=0;l<s.length;l++)i.push(s[l]);var c=[];i.filter((function(t){-1===e.props.item_banksedit.tag_disciplines.findIndex((function(e){return e.id===t.id}))&&c.push(t)})),this.setState({knowledgepoints:i,knowledgepoints2:c})}}catch(t){}if(t.item_banksedit!==this.props.item_banksedit){this.props.item_banksedit.difficulty&&this.handleFormLayoutChangeysl(this.props.item_banksedit.difficulty),this.props.item_banksedit.tag_disciplines&&this.handletag_disciplinesChange(this.props.item_banksedit.tag_disciplines);try{this.handdisciplinesChange(this.props.item_banksedit.discipline,this.props.item_banksedit.sub_discipline)}catch(t){}try{this.props.item_banksedit.name&&this.props.form.setFieldsValue({classroom:this.props.item_banksedit.name})}catch(t){}try{this.props.item_banksedit.duration&&this.props.form.setFieldsValue({kssc:this.props.item_banksedit.duration})}catch(t){}this.getdatasmys()}}},{key:"render",value:function(){var t=this,e=this.state,n=(e.page,e.options),u=e.NewknTypedel,f=(e.knowledgepoints,e.knowledgepoints2),m=(e.Knowpoints,this.props.form.getFieldDecorator),h=this.state.searchlist&&this.state.searchlist.map((function(t){return p.a.createElement(O,{key:t.name,value:t.name},t.name)})),g=this.props.form&&this.props.form.getFieldValue("classroom"),_=0;return g&&(_=String(g).length),p.a.createElement("div",{className:" clearfix educontent Contentquestionbankstyle w100s w1200fpx mt19"},p.a.createElement("style",null,"\n\t\t\t\t\t\t body{\n width: 100%!important;\n }\n\t\t\t\t\t\t.ant-form-item{\n\t\t\t\t\t\t margin-bottom: 0px !important;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t.ant-form-explain{\n\t\t\t\t\t\tpadding-left:0px !important;\n\t\t\t\t\t\tmargin-top: 3px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t.ant-select-selection{\n\t\t\t\t\theight: 33px !important;\n\t\t\t\t\t}\n\t\t\t\t\t.kechen .ant-input-group{\n\t\t\t\t\t width:258px !important;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\t\t.zsdd .ant-input-group{\n\t\t\t\t\t width:258px !important;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\t.sjmc .ant-input-group{\n\t\t\t\t\t width:258px !important;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\t.kssc .ant-input-group{\n\t\t\t\t\t width:258px !important;\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\t.rbndclass .ant-input-group{\n\t\t\t\t\t width:258px !important;\n\t\t\t\t\t} \n\t\t\t\t\t.ant-input {\n\t\t\t\t\theight: 33px !important;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n outline: 0px solid rgba(24, 144, 255, 0.06) !important;\n}\n \n\t\t\t\t\t\t"),p.a.createElement("div",{className:"h12"}),u?p.a.createElement(y.a,b({},this.state,this.props,{boolred:this.state.boolred,setboolred:function(e){return t.setboolred(e)},NewknTypedeldel:function(e){return t.NewknTypedeldel(e)},NewknTypedeltyoedel:function(e){return t.NewknTypedeltyoedel(e)}})):"",p.a.createElement(r.a,{onSubmit:this.handleSubmit},p.a.createElement("div",{className:"kechen"},p.a.createElement("div",{className:"sortinxdirection"},p.a.createElement(r.a.Item,{label:"课程"},m("rbkc",{initialValue:this.state.rbkc,rules:[{required:!0,message:"请选择课程"}]})(p.a.createElement(s.a,{style:{width:"258px"},options:n,onChange:this.handleFormzhishidian,placeholder:"请选择..."}))))),null===this.state.sub_disciplineslength||void 0===this.state.sub_disciplineslength||0===this.state.sub_disciplineslength?"":p.a.createElement("div",{className:"zsdd"},p.a.createElement(r.a.Item,{label:"知识点"},m("rbzsd")(p.a.createElement("div",{className:"sortinxdirection"},p.a.createElement(N,{compact:!0},p.a.createElement(l.a,{style:{width:"258px"},value:void 0,onChange:this.handleFormkechen,placeholder:"请选择..."},f&&f.map((function(t,e){return p.a.createElement(O,{key:t.id,value:t.id},t.name)})))),p.a.createElement("img",{className:" ml22 zjzsdian xiaoshou",src:Object(d.C)("images/educoder/zjzsd.png"),onClick:function(){return t.NewknTypedeldel(!0)}}))))),void 0===this.state.Knowpoints||null===this.state.Knowpoints?"":this.state.Knowpoints.length>0?p.a.createElement("div",{className:"sortinxdirection huanhan w100s mt15",style:{minHeight:"33px",lineHeight:"28px"}},void 0===this.state.Knowpoints?"":this.state.Knowpoints.map((function(e,n){return p.a.createElement("div",{key:n,className:0===n?"mytags mb20":"mytags",style:{position:"relative"}},p.a.createElement("p",{className:"w100s stestcen lh32"},e.name),p.a.createElement("img",{className:" ml7 zjzsdian xiaoshou icondowncolorssy",onClick:function(){return t.deletesobject(e,n)},src:Object(d.C)("images/educoder/bzucha.png")}))}))):"",p.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t.ml19{\n\t\t\t\t\t\t\t\t\t\t\tmargin-left:19px;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t"),p.a.createElement("div",{className:"stud-class-set "},p.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t.yslzxueshis .ant-input{\n\t\t\t\t\t\t\t\t\t\tborder-right: none !important;\n\t\t\t\t\t\t\t\t\t\theight: 38px !important;\n\t\t\t\t\t\t\t\t\t\twidth: 970px !important;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t .yslzxueshisy span .ant-input-group-addon{\n\t\t\t\t\t\t\t\t\t\t\twidth: 65px !important;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #fafafa!important;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t.yslzxueshisy .ant-input-group-addon{\n\t\t\t\t\t\t\t\t\t\t\twidth: 65px !important;\n\t\t\t\t\t\t\t\t\t\t\tbackground-color: #fafafa!important;\n\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t\t"),p.a.createElement("div",{className:"sjmc"},p.a.createElement(r.a.Item,{label:"试卷名称:"},m("classroom",{rules:[{required:!0,message:"不能为空"}]})(p.a.createElement(o.a,{onSearch:this.handleSearch,className:"fl construction yslzxueshis ",dataSource:h},p.a.createElement(c.a,{className:"yslzxueshisy ",placeholder:"请输入名称,最大限制60个字符",onInput:this.handleChange,addonAfter:String(_)+"/60",maxLength:60}))),p.a.createElement("div",{id:"isclassroom"})))),p.a.createElement("style",null,"\n\t\t\t\t\t\t\t.kssc .ant-form-item-label{\n\t\t\t\t\t\t\t line-height: 38px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"),p.a.createElement("div",{className:"kssc"},p.a.createElement(r.a.Item,{label:"考试时长:"},m("kssc")(p.a.createElement(a.a,{min:0,step:.1})),p.a.createElement("span",{className:"ant-form-text"}," 分钟"))),p.a.createElement("style",null,"\n\t\t\t\t\t\t\t.rbndclass .ant-radio-button-wrapper{\n\t\t\t\t\t\t\twidth:106px !important;\n\t\t\t\t\t\t\theight:33px !important;\n\t\t\t\t\t\t\tbackground:#EEEEEE;\n\t\t\t\t\t\t\tborder-radius:17px !important;\n\t\t\t\t\t\t\tcolor:#333333; \n\t\t\t\t\t\t\ttext-align: center !important;\n\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\tmargin-right: 27px !important;\n\t\t\t\t\t\t\t margin-top: 6px !important;\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.rbndclass .ant-radio-button-wrapper-checked {\n\t\t\t\t\t\t width: 106px !important;\n\t\t\t\t\t\t\t\theight: 33px !important;\n\t\t\t\t\t\t\t\tbackground: #4CACFF !important;\n\t\t\t\t\t\t\t\tborder-radius: 17px !important;\n\t\t\t\t\t\t\t\ttext-align: center !important;\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t\tcolor: #ffffff !important;\n\t\t\t\t\t\t\t\tmargin-right: 27px !important;\n\t\t\t\t\t\t\t\t margin-top: 6px!important;\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.rbndclass .ant-radio-button-wrapper:not(:first-child)::before{\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t\t\twidth:0px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.rbndclass .ant-radio-button-wrapper{\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.rbndclass .ant-radio-group{\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.rbndclass .ant-radio-group label{\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.rbndclass .ant-radio-group span{\n\t\t\t\t\t\t\t\tborder:0px !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tant-radio-button-wrapper:focus-within {\n\t\t\t\t\t\t\t\t\toutline: 0px solid #ffffff;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"),p.a.createElement("div",{className:"rbndclass"},p.a.createElement(r.a.Item,{label:"难度"},m("rbnd",{initialValue:this.state.rbnd,rules:[{required:!0,message:"请选择难度"}]})(p.a.createElement(i.a.Group,{onChange:this.handleFormLayoutChange},p.a.createElement(i.a.Button,{value:"1"},"简单"),p.a.createElement(i.a.Button,{value:"2"},"适中"),p.a.createElement(i.a.Button,{value:"3"},"困难")))))),p.a.createElement("div",{className:"h20"}))}}])&&v(e.prototype,n),u&&v(e,u),h}(u.Component),T=r.a.create({name:"Comthetestpaperst"})(q);e.a=T},hMRu:function(t,e,n){"use strict";n("U4At");var i=n("KiF4"),a=(n("/mds"),n("aLG4")),o=n("xwgP"),r=n.n(o);n("BiRT");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var a=f(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,o,s=u(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),m(d(e=s.call(this,t)),"onChange",(function(t){e.setState({value:t})})),m(d(e),"setDownloadysl",(function(){var t=e.state.value;if(/^[0-9]+.?[0-9]*$/.test(t)){try{if(t<1)return void e.props.showNotification("不能小于0")}catch(t){}console.log("必须为数值s"),e.props.setDownloadys(e.state.value)}else e.props.showNotification("必须为数值")})),e.state={value:0},e}return e=p,(n=[{key:"render",value:function(){var t=this;return r.a.createElement(i.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"设置分数",centered:!0,visible:void 0!==this.props.modalsTypeys&&this.props.modalsTypeys,width:"442px"},r.a.createElement("style",null,"\n\t\t\t\t\t\t.yslzxueshisanfd .ant-input-number{\nheight: 35px !important;\nwidth: 124px !important;\n}\n\t\t\t\t\t\t"),r.a.createElement("div",{className:"educouddiv intermediatecenter"},r.a.createElement("div",{className:"tabeltext-alignleft mt10 sortinxdirection yslzxueshisanfd"},r.a.createElement("p",{className:"titiles lh35"},this.props.titilesm,":"),r.a.createElement(a.a,{min:0,step:.1,onChange:this.onChange}),r.a.createElement("p",{className:"titiles ml5 lh35"},"分/题")),r.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},r.a.createElement("a",{className:"task-btn mr30 w80",onClick:function(){return t.props.Singlemagazines(!1,null)}},"取消"),r.a.createElement("a",{className:"task-btn task-btn-orange w80",onClick:function(){return t.setDownloadysl()}},"确定"))))}}])&&l(e.prototype,n),o&&l(e,o),p}(o.Component);e.a=y},wm8L:function(t,e,n){"use strict";n("U4At");var i=n("KiF4"),a=n("xwgP"),o=n.n(a);n("BiRT");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var a=d(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,t);var e,n,a,r=u(p);function p(){return s(this,p),r.apply(this,arguments)}return e=p,(n=[{key:"render",value:function(){var t=this;return o.a.createElement(i.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"提示",centered:!0,visible:void 0!==this.props.modalsTypedel&&this.props.modalsTypedel,width:"442px"},o.a.createElement("div",{className:"educouddiv"},o.a.createElement("div",{className:"tabeltext-alignleft mt10"},o.a.createElement("p",{className:"titiles"},"删除大题,将删除该大题下所有小题")),o.a.createElement("div",{className:"tabeltext-alignleft mt10"},o.a.createElement("p",{className:"titiles"}," 确认删除该大题?")),o.a.createElement("div",{className:"clearfix mt30 edu-txt-center"},o.a.createElement("a",{className:"task-btn mr30 w80",onClick:function(){return t.props.setmodalsTypedel(!1,1,t.props.titilesms)}},"取消"),o.a.createElement("a",{className:"task-btn task-btn-orange w80",onClick:function(){return t.props.setmodalsTypedel(!1,2,t.props.titilesms)}},"确定"))))}}])&&l(e.prototype,n),a&&l(e,a),p}(a.Component);e.a=f}}]); |