(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-controlApp"],{"0906":function(e,t,a){"use strict";var n=a("33f7"),s=a.n(n);s.a},"0de3":function(e,t,a){},"0f83":function(e,t,a){},"19b6":function(e,t,a){},"282f":function(e,t,a){"use strict";var n=a("0f83"),s=a.n(n);s.a},"329c":function(e,t,a){"use strict";var n=a("d04c"),s=a.n(n);s.a},"33f7":function(e,t,a){},"386d":function(e,t,a){"use strict";var n=a("cb7c"),s=a("83a1"),r=a("5f1b");a("214f")("search",1,(function(e,t,a,i){return[function(a){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=i(a,e,this);if(t.done)return t.value;var o=n(e),l=String(this),c=o.lastIndex;s(c,0)||(o.lastIndex=0);var u=r(o,l);return s(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},"47d1":function(e,t){t.yo=function(){alert("Yo Coder!")},t.hello=function(){alert("Hello Coder!")}},"4d3b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"index-area"},[n("el-collapse",{attrs:{accordion:""},model:{value:e.currentSection,callback:function(t){e.currentSection=t},expression:"currentSection"}},e._l(e.paper.sections,(function(t,a){return n("el-collapse-item",{key:a,attrs:{title:"M"+String(a+1),name:a+1}},[n("ul",e._l(e.paper.questions,(function(t,a){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.currentSection==t.section||e.currentSection==-1*t.section,expression:"currentSection == ques.section || currentSection == ques.section * -1"}],key:a,class:{choose:e.currentQuestion==a},on:{click:function(t){return e.changePage(a)}}},[e._v(e._s(a+1))])})),0)])})),1)],1),n("div",{staticClass:"change-area"},[e.paper.sections[e.currentSection-1].hasMaterial?n("div",{staticClass:"material-part"}):e._e(),n("div",{staticClass:"question-part",class:{halfScreen:e.paper.sections[e.currentSection-1].hasMaterial}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paper.questions[e.currentQuestion].content,expression:"paper.questions[currentQuestion].content"}],domProps:{value:e.paper.questions[e.currentQuestion].content},on:{input:function(t){t.target.composing||e.$set(e.paper.questions[e.currentQuestion],"content",t.target.value)}}}),e._l(e.paper.questions[e.currentQuestion].options,(function(t){return n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"answer.content"}],key:t.id,domProps:{value:t.content},on:{input:function(a){a.target.composing||e.$set(t,"content",a.target.value)}}})})),n("br"),n("br"),n("div",[e._v("\n 答案:"),e._l(e.paper.questions[e.currentQuestion].options,(function(t,a){return n("el-checkbox",{key:a,model:{value:t.correct,callback:function(a){e.$set(t,"correct",a)},expression:"answer.correct"}},[e._v(e._s(e.allOptionList[t.oindex]))])}))],2),n("br"),n("br"),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.drawer=!0}}},[e._v("查看")]),n("el-button",{attrs:{type:"danger"},on:{click:e.updateQuestion}},[e._v("保存")])],2)]),""!=e.currentSection?n("el-drawer",{attrs:{visible:e.drawer,size:"900px","show-close":!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{staticClass:"exam"},[e.paper.sections[e.currentSection-1].hasMaterial?n("div",{staticClass:"material-part"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("材")]),n("span",[e._v("料")])]),n("div",[n("div",{staticClass:"material-html",domProps:{innerHTML:e._s(e.paper.sections[e.currentSection-1].material)}})])]):e._e(),n("div",{staticClass:"scroll-part",class:{halfScreen:e.paper.sections[e.currentSection-1].hasMaterial}},[n("div",{staticClass:"content-part"},[n("div",{staticClass:"question-area"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("#"+e._s(e.currentQuestion-e.indexRange[e.currentSection-1].min+1))])]),n("div",{staticClass:"question-html"},[n("div",{staticClass:"content-html",domProps:{innerHTML:e._s(e.paper.questions[e.currentQuestion].content)}})])]),n("div",e._l(e.paper.questions[e.currentQuestion].options,(function(t){return n("div",{key:t.id,staticClass:"answer-area2"},[n("div",{class:{correct:t.choose}},[n("i",{class:{multiChooseType:e.paper.questions[e.currentQuestion].correctNum>1}},[t.choose?n("img",{attrs:{src:a("08d0")}}):e._e()]),n("label",[e._v(e._s(e.allOptionList[t.oindex]))])]),n("div",{ref:"htmlContent",refInFor:!0,staticClass:"answer-html",domProps:{innerHTML:e._s(t.content)}})])})),0)])]),n("div",{staticClass:"page-part"},[n("button",{on:{click:function(t){return e.changePage(e.currentQuestion-1)}}},[n("span",{attrs:{id:"preLeft"}},[n("img",{attrs:{src:a("1d40")}})]),n("label",[e._v("上一题")])]),n("button",{on:{click:function(t){return e.changePage(e.currentQuestion+1)}}},[n("label",[e._v("下一题")]),n("span",{attrs:{id:"nextRight"}},[n("img",{attrs:{src:a("9378")}})])])])])]):e._e(),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"}},[e._v("确 定")])],1)])],1)},s=[],r=(a("ac6a"),a("c5f6"),a("28a5"),a("39f0")),i=a("1aa9"),o={name:"QuestionList",components:{},data:function(){return{paper:{questions:[{}],sections:[{}]},currentQuestion:0,currentSection:1,indexRange:[{min:0,max:1}],allOptionList:i["c"],drawer:!1,visibleDelete:!1}},created:function(){var e=document.createElement("script");e.type="text/javascript",e.src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML",document.body.appendChild(e),this.getQuestion(this.$route.params.pid,0)},methods:{getQuestion:function(e,t){var a=this;Object(r["e"])(e).then((function(e){Object.assign(a.paper,e),a.setIndexRange(),a.changePage(t)}))},setIndexRange:function(){var e=this;this.indexRange=[];var t=this.paper.sectionNums.split(",").map(Number);t.forEach((function(a,n){0!=n&&(t[n]=a+t[n-1]),e.indexRange.push({min:0==n?0:t[n-1],max:t[n]-1})}))},changePage:function(e){e>=0&&e