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

1 line
25 KiB

5 years ago
webpackJsonp([156],{1308:function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"a",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return s}),n.d(t,"f",function(){return c});var r=0,a=2,o=3,i=4,s=5,c=["单选题","多选题","判断题","填空题","简答题","实训题"]},1441:function(e,t,n){"use strict";var r=n(165),a=(n.n(r),n(164)),d=n.n(a),o=n(296),i=(n.n(o),n(291)),s=n.n(i),c=n(30),l=(n.n(c),n(31)),p=n.n(l),u=n(66),m=(n.n(u),n(67)),f=n.n(m),h=n(0),b=n.n(h),y=n(12),_=(n.n(y),n(1308)),g=n(5),x=function(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e};function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}f.a.TextArea,p.a.confirm,window.$,s.a.Option;var w=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(A,h.Component),x(A,[{key:"render",value:function(){var e=this,t=this.props,n=t.question_title,r=t.question_score,a=t.question_type,o=(t.question_choices,t.standard_answer,t.question_id),i=(t.question_number,t.index),s=t.displayCount,c=t.topRight,l=t.showActionButton,p=t.exerciseIsPublish,u=(this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,_.f[a]);return b.a.createElement(b.a.Fragment,null,b.a.createElement("div",{className:"new_li"},b.a.createElement("style",null,"\n .actionBtns {\n height: 28px\n }\n "),b.a.createElement("div",{className:"font-16 fl"},b.a.createElement("span",{className:"color-blue"},i+1,"、",u),b.a.createElement("span",{className:"color-grey-9"},"",r,"分)")),b.a.createElement("div",{className:"fr actionBtns"},c,0!=l&&b.a.createElement(b.a.Fragment,null,!p&&b.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onQestionDelete(o)}},b.a.createElement(d.a,{title:"删除"},b.a.createElement("i",{className:"color-grey-cd font-16 iconfont icon-shanchu"}))),0===i?"":b.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onSortUp(i,o)}},b.a.createElement(d.a,{title:"上移"},b.a.createElement("i",{className:"color-green font-18 iconfont icon-xiangshangyi"}))),i===s-1?"":b.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onSortDown(i,o)}},b.a.createElement(d.a,{title:"下移"},b.a.createElement("i",{className:"color-green font-18 iconfont icon-xiangxiayi"}))),!p&&b.a.createElement("a",{className:"mr30",onClick:function(){return e.props.addQuestion(o,a)}},b.a.createElement(d.a,{title:"(向下插入"+u+")"},b.a.createElement("i",{className:"color-green font-18 iconfont icon-roundaddfill"}))),b.a.createElement("a",{onClick:function(){return e.props.editQestion(i)}},b.a.createElement(d.a,{title:"编辑"},b.a.createElement("i",{className:"color-green font-18 iconfont icon-bianjidaibeijing"})))))),n&&b.a.createElement(g.s,{content:n,selector:"qtitle_"+(i+1),style:{display:"inline-block",width:"100%",margin:"10px 0px 15px"}}))}}]),A);function A(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,e));return t.componentDidMount=function(){},t.state={},t}t.a=w},1665:function(e,t,n){var r=n(1753);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!1,transform:void 0};n(289)(r,a);r.locals&&(e.exports=r.locals)},1753:function(e,t,n){(e.exports=n(288)(!0)).push([e.i,".editorWrapDiv{border:1px solid #4cacff;padding:6px 10px}.questionSection{border-bottom:1px solid #eaeaea;padding:8px 0}.questionSection:last-child{border-bottom:none}.judge-item.option-item{display:inline-block;margin-