(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0de696"],{8613:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"exampage exam-comprehensive exam-preview",attrs:{"element-loading-text":"","element-loading-spinner":"icon-loading","element-loading-background":"rgba(0, 0, 0, 0.6)"}},[s("div",{staticClass:"nav-box",class:e.examInfo.IsShowScore?"":"mini"},[s("div",{staticClass:"fixed-warp"},[s("div",{staticClass:"exam-overview"},[s("div",{staticClass:"exam-score"},[e._v("\n          考试总览\n          "),e.examInfo.IsShowScore?s("div",[s("span",[e._v(e._s(e.examInfo.MySocre))]),e._v("分\n            "),s("p",[e._v("本次考试成绩")])]):e._e()]),s("div",{staticClass:"exam-result"},[s("p",[s("span",[e._v("考试时长：")]),e._v("\n            "+e._s(e._f("formatMinuteTime")(e.examInfo.Duration))+"\n          ")]),s("p",[s("span",[e._v("考试用时：")]),e._v("\n            "+e._s(e._f("formatSecondTime")(e.examInfo.MyDuration))+"\n          ")]),s("p",{staticClass:"ell",attrs:{title:"考试分值："+e.examInfo.Score+"分"}},[s("span",[e._v("总分值：")]),e._v("\n            "+e._s(e.examInfo.Score)+"分\n          ")]),s("p",{staticClass:"ell",attrs:{title:"总题量："+e.examInfo.QuestionTotal+"题"}},[s("span",[e._v("总题量：")]),e._v("\n            "+e._s(e.examInfo.QuestionTotal)+"题\n          ")])])]),s("div",{staticClass:"nav-item-title"},[e._v("考生信息")]),s("div",{staticClass:"user-info"},[s("p",{staticClass:"ell",attrs:{title:"姓名："+e.examInfo.StuName}},[s("label",[e._v("姓名：")]),e._v("\n          "+e._s(e.examInfo.StuName)+"\n        ")]),s("p",{staticClass:"ell",attrs:{title:"学号："+e.examInfo.UserObject}},[s("label",[e._v("学号：")]),e._v("\n          "+e._s(e.examInfo.UserObject)+"\n        ")])]),s("div",{staticClass:"nav-item-title"},[e._v("试题列表")])]),s("div",{staticStyle:{overflow:"auto",position:"relative","z-index":"2",background:"#f1f1f1"},style:{height:e.navHeight+"px"}},[s("el-collapse",{staticClass:"module-warp",model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.examInfo.Modules,(function(t){return s("el-collapse-item",{key:t.ObjectID,attrs:{name:t.ObjectID}},[s("template",{slot:"title"},[s("div",{staticClass:"ell module-name",attrs:{title:t.Name}},[e._v(e._s(t.Name))])]),s("ul",{staticClass:"unit-list"},e._l(t.Units,(function(t){return s("li",{key:t.ObjectID,staticClass:"unit-item"},[s("p",[e._v(e._s(t.Name))]),s("ul",{staticClass:"qustion-list"},e._l(t.Questions,(function(t,i){return s("li",{key:t.ObjectID,class:{over:t.IsOver,active:t.IsActive,green:e.examInfo.IsShowScore&1==t.ScoreResult,yellow:e.examInfo.IsShowScore&2==t.ScoreResult,red:e.examInfo.IsShowScore&3==t.ScoreResult},on:{click:function(s){return e.toThisQuestion(t,i+1)}}},[e._v(e._s(t.index=i+1))])})),0),s("div",{staticClass:"clearfix"})])})),0)],2)})),1)],1)]),s("div",{staticClass:"warp-box",style:{height:e.pageHeight+"px"}},[s("div",{staticClass:"content-box",style:{height:e.contentHeight+"px"}},[0==e.pageType?s("no-program",{ref:"noProgram",attrs:{question:e.currentQuestion,index:e.currentIndex,"is-over":!0,"show-score":e.examInfo.IsShowScore}}):e._e(),1==e.pageType?s("program",{ref:"Program",attrs:{height:e.contentHeight,question:e.currentQuestion,index:e.currentIndex,"is-over":!0,"show-score":e.examInfo.IsShowScore}}):e._e(),2==e.pageType?s("project",{ref:"Project",attrs:{height:e.contentHeight,question:e.currentQuestion,index:e.currentIndex,"is-over":!0,"show-score":e.examInfo.IsShowScore}}):e._e()],1),s("div",{staticClass:"opp-box"},[s("div",{staticClass:"btn-box"},[s("el-button",{attrs:{size:"small",type:"primary",disabled:e.prevIsdisable},on:{click:e.prev}},[e._v("上一题")]),s("el-button",{attrs:{size:"small",type:"primary",disabled:e.nextIsdisable},on:{click:e.next}},[e._v("下一题")])],1)])])])},n=[],a=(s("96cf"),s("3b8d")),o=(s("ac6a"),s("c8cb")),r=s("bb13"),l=s("7038"),c={components:{program:o["a"],noProgram:r["a"],project:l["a"]},filters:{formatSecondTime:function(e){return window.app.$util.timeToMinute(e)},formatMinuteTime:function(e){return window.app.$util.timeToMinute(60*e)}},data:function(){return{examInfo:{Duration:0,MyDuration:0,Name:"",UserObject:"",Modules:[]},prevIsdisable:!0,nextIsdisable:!0,pageHeight:0,pageType:-1,currentQuestion:{},prevQuestion:{},currentIndex:0,moduleList:[],activeNames:"",fullscreenLoading:!1}},computed:{allQestionList:function(){var e=[];return this.examInfo.Modules.forEach((function(t){null!=t.Units&&t.Units.forEach((function(s){null!=s.Questions&&s.Questions.forEach((function(s){s.MyModuleID=t.ObjectID,e.push(s)}))}))})),e},navHeight:function(){return this.examInfo.IsShowScore?this.pageHeight-330:this.pageHeight-240},contentHeight:function(){return this.pageHeight-60}},created:function(){var e=this;this.pageHeight=document.documentElement.clientHeight,window.addEventListener("resize",(function(){e.pageHeight=document.documentElement.clientHeight}))},mounted:function(){this.getExamOverview()},methods:{openNotify:function(){this.$notify({title:"",message:'<span class="iflysseui-notify-icon"></span>注意：1、当前查看试卷内容与考生考试试卷内容一致；2、考生考试时试题排序以及答案排序为当前试卷随机乱序生成；',customClass:"iflysseui-notify",dangerouslyUseHTMLString:!0,duration:0})},getExamStuInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={ExamID:this.$route.query.id},e.next=3,this.$api.getExamStuInfo(t);case 3:s=e.sent,1==s.data.status&&(this.stuInfo=s.data.data);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),buttonIsdisable:function(){if(0==this.allQestionList.length)return this.prevIsdisable=!0,void(this.nextIsdisable=!0);this.allQestionList[0].IsActive?this.prevIsdisable=!0:this.prevIsdisable=!1,this.allQestionList[this.allQestionList.length-1].IsActive?this.nextIsdisable=!0:this.nextIsdisable=!1},findQuestion:function(e){for(var t=0;t<this.allQestionList.length;t++){var s=this.allQestionList[t];if(s.IsActive){if(-1==e)return 0==t?null:this.allQestionList[t-1];if(1==e)return t==this.allQestionList.length-1?null:this.allQestionList[t+1]}}return null},next:function(){var e=this.findQuestion(1);null!=e&&this.toThisQuestion(e,e.index)},prev:function(){var e=this.findQuestion(-1);null!=e&&this.toThisQuestion(e,e.index)},getExamOverview:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={MyExamId:this.$route.query.id},e.next=3,this.$api.getMockExamOverview(t);case 3:s=e.sent,1==s.data.status&&(this.examInfo=s.data.data,this.examInfo.Modules.length>0&&(this.activeNames=this.examInfo.Modules[0].ObjectID),this.allQestionList.length>0&&this.toThisQuestion(this.allQestionList[0],1));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),toThisQuestion:function(e,t){this.fullscreenLoading=!0,this.activeNames=e.MyModuleID,this.currentQuestion=e,this.allQuestionRemoveActive(),e.IsActive=!0,this.currentIndex=t,e.IsProject?this.pageType=2:this.pageType=this.$enum.getIsProgram(e.Type)?1:0,0==this.pageType&&void 0!=this.$refs.noProgram&&this.$refs.noProgram.getQuestionInfo(e,t),1==this.pageType&&void 0!=this.$refs.Program&&this.$refs.Program.getQuestionInfo(e,t),2==this.pageType&&void 0!=this.$refs.Project&&this.$refs.Project.getQuestionInfo(e,t),this.buttonIsdisable()},allQuestionRemoveActive:function(){this.allQestionList.forEach((function(e){e.IsActive=!1}))}}},u=c,h=s("2877"),f=Object(h["a"])(u,i,n,!1,null,null,null);t["default"]=f.exports}}]);