(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-doTest"],{"035e":function(t,e,i){t.exports=i.p+"img/pointGuide2.ae3455be.png"},"0fb2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAtCAYAAAApzaJuAAAACXBIWXMAABcSAAAXEgFnn9JSAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5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UVVVhT6amJLCaw+HYyQ9PRAe3eX6AiLRb478HAPzYrK+QXZikAAAAAElFTkSuQmCC"},"19c5":function(t,e,i){t.exports=i.p+"img/group9Y.ece84757.png"},"22b2":function(t,e,i){"use strict";var a=i("c024"),n=i.n(a);n.a},3704:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"rest"},[a("div",{staticClass:"rest-page"},[a("img",{attrs:{src:i("e47a")}}),a("p",[t._v("下一模块很快就要开始,先休息一下吧")]),a("p",[t._v(t._s(t.breakTimeSec))]),a("button",{staticClass:"bt-type3",on:{click:function(e){return t.jump()}}},[t._v("跳过休息")])]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"提示",visible:t.dialogVisible,width:"300px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("span",[t._v(t._s(t.tempModeName[t.paper.currentSection])+"开始!")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleClose}},[t._v("确 定")])],1)])],1)},n=[],s=(i("a481"),i("28a5"),{name:"RestPage",components:{},data:function(){return{interval:{},breakTimeSec:60,paper:{},dialogVisible:!1,tempModeName:{1:"A卷",2:"B卷",3:"C卷"}}},created:function(){var t=this;this.$route.params.examId&&localStorage.getItem("testPaper%"+this.$store.state.loginUser.id+"%"+this.$route.params.examId)&&(this.paper=JSON.parse(localStorage.getItem("testPaper%"+this.$store.state.loginUser.id+"%"+this.$route.params.examId)),this.paper.breakTimeSec?this.breakTimeSec=this.paper.breakTimeSec:(this.breakTimeSec=60*parseInt(this.paper.sectionRests.split(",")[this.paper.currentSection-2]),Object.assign(this.paper,{breakTimeSec:this.breakTimeSec})),this.interval=setInterval((function(){t.paper.breakTimeSec-=1,t.breakTimeSec-=1}),1e3))},methods:{jumpOver:function(){clearInterval(this.interval),delete this.paper.breakTimeSec,localStorage.setItem("testPaper%"+this.$store.state.loginUser.id+"%"+this.paper.id,JSON.stringify(this.paper)),this.handleClose()},jump:function(){var t=this;this.$confirm("确认跳过休息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.jumpOver()})).catch((function(){}))},handleClose:function(){this.$router.replace({path:"/app/doTest/"+this.paper.id})}},watch:{breakTimeSec:function(t){0==t?this.jumpOver():this.paper.id&&localStorage.setItem("testPaper%"+this.$store.state.loginUser.id+"%"+this.paper.id,JSON.stringify(this.paper))}},beforeDestroy:function(){clearInterval(this.interval)}}),r=s,c=(i("86ef"),i("2877")),p=Object(c["a"])(r,a,n,!1,null,"7c63ee6e",null);e["default"]=p.exports},3786:function(t,e,i){t.exports=i.p+"img/TestTitle.9ab6a31d.png"},"3f4a":function(t,e,i){t.exports=i.p+"img/pointGuide.498a11aa.png"},4983:function(t,e,i){t.exports=i.p+"img/guide4.38173501.png"},"4cf9":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"exam"},[a("div",{staticClass:"top-part"},[a("div",[a("button",{staticClass:"quit-bt",on:{click:t.quitTest}},[t._v("放弃")])]),a("div",[a("label",[t._v("模块"+t._s(t.tempModeName2[t.paper.currentSection]))]),a("i",{staticClass:"split-line"}),a("label",[t._v(t._s(t.paper.questions[t.paper.currentQuestion].correctNum>1?"多选题":"单选题"))])]),a("div",{staticClass:"time-count"},[a("span",[t._v("考试时间:")]),a("br"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.data.noBlink,expression:"data.noBlink"}]},[t._v(t._s(t.leftTimeShow))])]),a("div",{staticClass:"mark-flag"},[t.paper.sections[t.paper.currentSection-1].material?a("div",[a("img",{attrs:{src:i("d8fd")},on:{click:function(e){t.data.showCalculator=!t.data.showCalculator}}}),a("br"),a("span",[t._v("计算器")])]):t._e(),t.paper.sections[t.paper.currentSection-1].material?a("div",[a("img",{attrs:{src:i("0fb2")}}),a("br"),a("span",[t._v("记号笔")])]):t._e(),a("div",{on:{click:function(e){return t.$set(t.paper.questions[t.paper.currentQuestion],"flag",!t.paper.questions[t.paper.currentQuestion].flag)}}},[t.paper.questions[t.paper.currentQuestion].flag?a("img",{attrs:{src:i("5451")}}):t._e(),t.paper.questions[t.paper.currentQuestion].flag?t._e():a("img",{attrs:{src:i("501c")}}),a("br"),a("span",{style:{color:t.paper.questions[t.paper.currentQuestion].flag?"#f39f00":"#ffffff"}},[t._v("标记  ")])])]),a("div",{staticClass:"answer-list",class:{openCard:t.data.cardOpen}},[t._m(0),t._m(1),a("div",{staticClass:"answer-card"},[a("p",[t._v("模块"+t._s(t.tempModeName2[t.paper.currentSection]))]),t._l(t.paper.questions,(function(e,i){return a("button",{directives:[{name:"show",rawName:"v-show",value:t.paper.currentSection==e.section||t.paper.currentSection==-1*e.section,expression:"paper.currentSection == item.section || paper.currentSection == item.section * -1"}],class:{hasAns:null!=t.paper.questions[i].ans&&""!=t.paper.questions[i].ans,flagColor:t.paper.questions[i].flag},on:{click:function(e){return t.changePage(i)}}},[t._v("\n "+t._s(i-t.paper.indexRange[t.paper.currentSection-1].min+1)+"\n ")])})),a("div",[a("button",{on:{click:function(e){return t.submitAnswer()}}},[t._v("提交答案")])])],2)])]),t.paper.sections[t.paper.currentSection-1].hasMaterial?a("div",{staticClass:"material-part"},[t._m(2),a("div",[a("div",{staticClass:"material-html",domProps:{innerHTML:t._s(t.paper.sections[t.paper.currentSection-1].material)}})])]):t._e(),a("div",{staticClass:"scroll-part",class:{halfScreen:t.paper.sections[t.paper.currentSection-1].hasMaterial}},[a("div",{staticClass:"progress-part"},[a("span",[t._v("答题进度")]),a("div",[a("div"),a("div",{style:{width:t.completePercent+"%"}}),a("i"),a("i"),a("i",{style:{left:t.completePercent+"%"}}),t._l(t.paper.questions,(function(e,i){return t.paper.currentSection!=e.section&&t.paper.currentSection!=-1*e.section||!t.paper.questions[i].flag?t._e():a("i",{staticClass:"flag-signal",style:{left:"calc("+100*(i-t.paper.indexRange[t.paper.currentSection-1].min+1)/(t.paper.indexRange[t.paper.currentSection-1].max-t.paper.indexRange[t.paper.currentSection-1].min+1)+"% + 4px)"},on:{click:function(e){return t.changePage(i)}}})})),a("span",{style:{left:"calc("+t.completePercent+"% - 7px)"}},[t._v(t._s(t.completePercent)+"%")])],2),a("span",[t._v(t._s(t.paper.currentQuestion-t.paper.indexRange[t.paper.currentSection-1].min+1)+"/"+t._s(t.paper.indexRange[t.paper.currentSection-1].max-t.paper.indexRange[t.paper.currentSection-1].min+1))])]),a("div",{staticClass:"content-part"},[a("div",{staticClass:"question-area"},[a("div",{staticClass:"triangle-top"},[a("span",[t._v("#"+t._s(t.paper.currentQuestion-t.paper.indexRange[t.paper.currentSection-1].min+1))])]),a("div",{staticClass:"question-html"},[a("div",{staticClass:"content-html",domProps:{innerHTML:t._s(t.paper.questions[t.paper.currentQuestion].content)}})])]),a("div",t._l(t.paper.questions[t.paper.currentQuestion].options,(function(e){return a("div",{staticClass:"answer-area2",class:{backChoose:e.choose},on:{click:function(i){return t.chooseCorrect(e,t.paper.questions[t.paper.currentQuestion].options)}}},[a("div",{class:{correct:e.choose}},[a("i",{class:{multiChooseType:t.paper.questions[t.paper.currentQuestion].correctNum>1}},[e.choose?a("img",{attrs:{src:i("08d0")}}):t._e()]),a("label",[t._v(t._s(t.allOptionList[e.oindex]))])]),a("div",{ref:"htmlContent",refInFor:!0,staticClass:"answer-html",domProps:{innerHTML:t._s(e.content)}})])})),0)]),a("div",{staticClass:"page-part"},[a("button",{on:{click:function(e){return t.changePage(t.paper.currentQuestion-1)}}},[t._m(3),a("label",[t._v("上一题")])]),a("button",{on:{click:function(e){return t.changePage(t.paper.currentQuestion+1,"",e)}}},[a("label",[t._v(t._s(t.paper.currentQuestion==t.paper.indexRange[t.paper.currentSection-1].max?"提交":"下一题"))]),t._m(4)])])]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"提示",visible:t.dialogVisible1,width:"300px","before-close":t.handleClose1},on:{"update:visible":function(e){t.dialogVisible1=e}}},[t.dialog1Flag?t._e():a("span",[t._v("模块"+t._s(t.tempModeName2[t.paper.currentSection])+"结束!")]),t.dialog1Flag?a("span",[t._v("时间结束,停止作答!")]):t._e(),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleClose1}},[t._v("确 定")])],1)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"提示",visible:t.dialogVisible2,width:"440px","before-close":t.handleClose2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("span",[t._v("您已完成此次测试,请耐心等待我们的专业老师与您沟通测试结果,助您进步!")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.handleClose2}},[t._v(t._s(t.loading?"请稍等":"确 定"))])],1)])],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("p",[t._v("答题卡")]),i("span")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("p",{staticStyle:{background:"white",color:"black",border:"solid 1px black"}},[t._v("未做题")]),i("p",{staticStyle:{background:"#4EB9E3",color:"white",border:"solid 1px #1C7CA2"}},[t._v("已回答")]),i("p",{staticStyle:{background:"#F39B77",color:"white",border:"solid 1px black"}},[t._v("标记")])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"triangle-top"},[i("span",[t._v("材")]),i("span",[t._v("料")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{attrs:{id:"preLeft"}},[a("img",{attrs:{src:i("1d40")}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{attrs:{id:"nextRight"}},[a("img",{attrs:{src:i("9378")}})])}],s=(i("7f7f"),i("c5f6"),i("ac6a"),i("28a5"),i("a481"),i("39f0")),r=i("1aa9"),c={name:"DoTest",components:{},data:function(){return{leftTimeSec:3600,data:{showCalculator:!1,cardOpen:!1,noBlink:!0},interval:{},singleInterval:{},allOptionList:r["c"],paper:{questions:[{}],sections:[{}],currentQuestion:0,currentSection:1,indexRange:[{min:0,max:1}],leftTimeSec:3600},largestHeight:60,dialogVisible1:!1,dialogVisible2:!1,dialog1Flag:!1,loading:!1,tempModeName:{1:"A卷",2:"B卷",3:"C卷",4:"D卷",5:"E卷"},tempModeName2:{1:"一",2:"二",3:"三",4:"四",5:"五"}}},created:function(){var t=this,e=document.createElement("script");e.type="text/javascript",e.src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML",document.body.appendChild(e),this.$route.params.examId&&Object(s["b"])(this.$route.params.examId,this.$store.state.loginUser.id).then((function(e){e.result?t.$router.replace({path:"/app/mainPage/abilityTest"}):t.loadPaper(t.$route.params.examId)}))},mounted:function(){var t=this;document.addEventListener("click",(function(){t.data.cardOpen=!1}))},computed:{completePercent:function(){return Math.floor(100*(this.paper.currentQuestion-this.paper.indexRange[this.paper.currentSection-1].min+1)/(this.paper.indexRange[this.paper.currentSection-1].max-this.paper.indexRange[this.paper.currentSection-1].min+1))},leftTimeShow:function(){var t=Math.floor(this.leftTimeSec/3600),e=Math.floor((this.leftTimeSec-3600*t)/60),i=this.leftTimeSec-3600*t-60*e;return(t<10?"0"+t:t)+":"+(e<10?"0"+e:e)+":"+(i<10?"0"+i:i)}},methods:{loadPaper:function(t){var e=this;if(localStorage.getItem("testPaper%"+this.$store.state.loginUser.id+"%"+t)){this.paper=JSON.parse(localStorage.getItem("testPaper%"+this.$store.state.loginUser.id+"%"+t)),this.leftTimeSec=this.paper.leftTimeSec,this.interval=setInterval((function(){e.leftTimeSec-=1,e.paper.leftTimeSec-=1}),1e3);var i=this.paper.questions[this.paper.currentQuestion].ans?this.paper.questions[this.paper.currentQuestion].ans.split(","):[];this.paper.questions[this.paper.currentQuestion].options.forEach((function(t){e.$set(t,"choose",-1!=i.indexOf(String(t.id)))})),this.changePage(this.paper.currentQuestion,"first"),this.data.cardOpen=!1}else Object(s["e"])(t).then((function(t){Object.assign(e.paper,t),e.paper.currentSection=1,e.paper.currentQuestion=0,e.paper.beginTime=(new Date).getTime(),e.setIndexRange(),e.leftTimeSec=60*parseInt(e.paper.sectionDurations.split(",")[e.paper.currentSection-1]),e.paper.leftTimeSec=e.leftTimeSec,e.interval=setInterval((function(){e.leftTimeSec-=1,e.paper.leftTimeSec-=1}),1e3),e.changePage(0,"first")}))},chooseCorrect:function(t,e){var i=this;this.paper.questions[this.paper.currentQuestion].ans="",this.paper.questions[this.paper.currentQuestion].correctNum>1?this.$set(t,"choose",!t.choose):(e.forEach((function(t){i.$set(t,"choose",!1)})),this.$set(t,"choose",!0)),e.forEach((function(t){t.choose&&(i.paper.questions[i.paper.currentQuestion].ans+=""===i.paper.questions[i.paper.currentQuestion].ans?t.id:","+t.id)}))},submitAnswer:function(){var t=this;this.paper.questions.filter((function(e,i){return i>=t.paper.indexRange[t.paper.currentSection-1].min&&i<=t.paper.indexRange[t.paper.currentSection-1].max&&!e.ans})).length>0?this.$confirm("未全部作答,确认提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.postAnswer()})).catch((function(){})):this.$confirm("确认提交?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.postAnswer()})).catch((function(){}))},changePage:function(t,e,i){var a=this;i&&this.paper.currentQuestion==this.paper.indexRange[this.paper.currentSection-1].max&&(this.data.cardOpen=!0,i.stopPropagation()),t>=this.paper.indexRange[this.paper.currentSection-1].min&&t<=this.paper.indexRange[this.paper.currentSection-1].max&&(this.paper.currentQuestion=t,"first"!=e&&clearInterval(this.singleInterval),this.singleInterval=setInterval((function(){a.paper.questions[a.paper.currentQuestion].usetime?a.paper.questions[a.paper.currentQuestion].usetime++:a.paper.questions[a.paper.currentQuestion].usetime=1}),1e3),setTimeout((function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub])}),100))},quitTest:function(){var t=this;this.$confirm("确认放弃?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){clearInterval(t.interval),clearInterval(t.singleInterval),localStorage.removeItem("testPaper%"+t.$store.state.loginUser.id+"%"+t.$route.params.examId),t.$router.replace({path:"/app/mainPage/abilityTest"})})).catch((function(){}))},postAnswer:function(t){clearInterval(this.interval),clearInterval(this.singleInterval),this.paper.currentSection