pages-examPage-examStart.DcSYvgWC.js 40 KB

1
  1. import{x as e,f as t,c as n,g as s,w as i,F as o,h as a,k as r,o as l,d as u,t as d,s as h,q as c,a as p,j as g,y as x,z as m,M as f,A as y,S as w,b,B as q,I,C as T}from"./index-C3Q1cdHf.js";import{_ as L,l as E,f as v,m as A,n as _,o as k,p as C,b as O,c as S,d as j,e as N}from"./Login.vue_vue_type_style_index_0_scoped_9f3de52b_lang.BX9TobLa.js";import{s as Q,b as M,_ as H,c as B,a as P,d as z}from"./index.AsuR1xI5.js";const D=L({name:"examStart",data:()=>({drag:[],mbvShow:!0,dragItem:{},subDrag:[],disabledDrag:!0,connectionHtml:[],connectionInfo:[],connectionContentALL:[],ctx:null,clickColor:"0px 0px 5px 2px rgba(80, 85, 83, 0.7)",connectionColor:["#ffaa00","#00ff7f","#6ca7ff","#1d00ff","#aa00ff","#ffff00","#550000","#ff0000"],examObject:{},examTopic:{},scantron:"",answer:{},typeThree:"",userExamAnswers:[],user:{},b:!0,canvasWidth:300,canvasHeight:300,userExamPaper:{},examPaperTime:0,papersTime:0,paperTime:"",examTime:"",intervalId:null,windowCheat:0,cheat:null,msgType:"success",messageText:"这是一条成功提示",imgsrc:"",dbclick:"",windowSize:[4,16,4]}),methods:{reload(){this.cacheAnswer(0)},messageToggle(e,t){this.msgType=e,this.messageText=t,this.$refs.message.open()},dialogInputConfirm(e){this.submitExam()},subExam(){this.$refs.inputDialog.open()},submitExam(e){console.log(e),E({examAnswers:this.userExamAnswers,userExamId:sessionStorage.getItem("examId"),paperId:this.userExamPaper.paperId}).then((t=>{null!==t.data.result&&t.data.success?(0!==e&&"cheat"!==e&&(this.drag=[],this.connectionInfo=[],this.connectionContentALL=[],this.messageToggle("success","本试卷提交成功,即将开始下一张试卷······")),this.userExamAnswers=[],clearInterval(this.intervalId),this.examObject=t.data.result,this.scantron=this.examObject.userExamQuestionList[0],this.userExamPaper=this.examObject.userExamPapersList[0],this.examPaperTime=this.addExamPaperTime(new Date(this.userExamPaper.systemTime),new Date(this.userExamPaper.limitTime)),this.papersTime=this.examPapersTime(),this.intervalId=setInterval(this.updateCountDown,1e3),this.examTime=this.paperTime,this.radioScantron(this.scantron.questionIndex)):("cheat"===e?this.messageToggle("error","多次切屏,考试强行终止"):0!==e?this.messageToggle("success","考试已结束,即将退出!"):this.messageToggle("warn","时间已到,已为您自动交卷"),setTimeout((()=>{Q.exit(),window.removeEventListener("blur",this.handleBlur),window.removeEventListener("focus",this.handleFocus),document.getElementById("body").removeEventListener("dblclick",this.dbclick),v()}),2e3)),null!==t.data.result&&t.data.success&&"cheat"===e&&this.handleFocus(0)}))},restart(){this.disabledDrag=!0,this.drag[this.scantron.questionIndex].answer=[],this.drag[this.scantron.questionIndex].option=[];let e=this.stringToHTML(this.scantron.question.content);console.log(e);for(var t=0;t<e.children.length;t++){let n=e.children[t].style.top.toString().replace("px",""),s=e.children[t].style.left.toString().replace("px",""),i=e.children[t].style.width.toString().replace("px",""),o=e.children[t].style.height.toString().replace("px",""),a=e.children[t].style.backgroundColor,r=e.children[t].innerHTML;e.children[t].id.includes("option")&&this.drag[this.scantron.questionIndex].option.push({id:e.children[t].id,x:Number(s),y:Number(n),old:{x:0,y:0,ax:Number(s),by:Number(n)},b:!0,width:i,height:o,backgroundColor:a,innerHTML:r}),e.children[t].id.includes("answer")&&this.drag[this.scantron.questionIndex].answer.push({id:e.children[t].id,x:Number(s),y:Number(n),old:{x:0,y:0},width:i,height:o,backgroundColor:a})}},previousQuestion(){this.scantron.questionIndex>1&&this.radioScantron(this.scantron.questionIndex-1)},nextQuestion(){this.scantron.questionIndex<this.examObject.userExamQuestionList.length?this.radioScantron(this.scantron.questionIndex+1):this.$refs.answerFinal.open()},radioScantron(e){Q.request(),this.scantron=this.examObject.userExamQuestionList[e-1],setTimeout((()=>{7!==this.scantron.questionType&&8!==this.scantron.questionType?document.getElementById("scantronNodes").innerHTML=this.scantron.question.content:document.getElementById("scantronNodes").innerHTML=this.scantron.question.content.split("%||||||||%")[0]}),10);let t=setInterval((()=>{if(6==this.scantron.questionType){for(var e=0;e<this.scantron.subQuestionList.length&&null!==document.getElementById("combinationItemNodes"+e);e++)document.getElementById("combinationItemNodes"+e).innerHTML=this.scantron.subQuestionList[e].question.content;clearInterval(t)}}),10);if(this.cacheAnswer(),7==this.scantron.questionType){if(this.mbvShow=!this.mbvShow,this.disabledDrag=!0,void 0!==this.drag[Number(this.scantron.questionIndex)])return void setTimeout((()=>{for(var e=0;e<this.drag[this.scantron.questionIndex].option.length;e++){let t=this.drag[this.scantron.questionIndex].option[e];console.log(document.getElementById(t.id)),document.getElementById(t.id).innerHTML=t.innerHTML}}),10);this.drag[this.scantron.questionIndex]={},this.drag[this.scantron.questionIndex].answer=[],this.drag[this.scantron.questionIndex].option=[],this.drag[this.scantron.questionIndex].background={};let e=this.stringToHTML(this.scantron.question.content);for(var n=0;n<e.children.length;n++){let t=e.children[n].style.top.toString().replace("px",""),s=e.children[n].style.left.toString().replace("px",""),i=e.children[n].style.width.toString().replace("px",""),o=e.children[n].style.height.toString().replace("px",""),a=e.children[n].style.backgroundColor,r=e.children[n].innerHTML;e.children[n].id.includes("option")&&this.drag[this.scantron.questionIndex].option.push({id:e.children[n].id,x:Number(s),y:Number(t),old:{x:0,y:0,ax:Number(s),by:Number(t)},b:!0,width:i,height:o,backgroundColor:a,innerHTML:r}),e.children[n].id.includes("answer")&&this.drag[this.scantron.questionIndex].answer.push({id:e.children[n].id,x:Number(s),y:Number(t),old:{x:0,y:0},width:i,height:o,backgroundColor:a}),"IMG"===e.children[n].tagName&&(this.drag[this.scantron.questionIndex].background.url=e.children[n].src,this.drag[this.scantron.questionIndex].background.width=e.children[n].style.width.toString().replace("px",""),this.drag[this.scantron.questionIndex].background.height=e.children[n].style.height.toString().replace("px",""))}setTimeout((()=>{for(var e=0;e<this.drag[this.scantron.questionIndex].option.length;e++){let t=this.drag[this.scantron.questionIndex].option[e];console.log(document.getElementById(t.id)),document.getElementById(t.id).innerHTML=t.innerHTML}}),10)}if(8==this.scantron.questionType){this.connectionHtml=[];let t=this.stringToHTML(this.scantron.question.content);for(n=0;n<t.children.length;n++){let e=t.children[n];for(var s=0;s<e.children.length;s++)void 0!==e.children[s].id&&e.children[s].id.includes("option")&&this.connectionHtml.push(e.children[s])}void 0===this.connectionContentALL[e]&&(this.connectionContentALL[e]=[]),this.connectionInfo=[],setTimeout((()=>{this.drawLineWriteContent(),this.drawLineWrite(e)}),100);for(n=0;n<this.connectionHtml.length;n++){let e=this.connectionHtml[n];for(s=0;s<e.children.length;s++){let e="option"+n+"-"+(s+1);null===document.getElementById(e)?setTimeout((()=>{document.getElementById(e).addEventListener("mousedown",(t=>{console.log(t);let n=t.currentTarget.id;console.log(n);let s=Number(n.replace("option","").split("-")[0]),i=Number(n.replace("option","").split("-")[1]),o=t.target.offsetLeft,a=Number(t.target.offsetLeft+t.target.offsetWidth),r=Number(t.target.offsetTop+t.target.offsetHeight/2);this.connectionInfo.length===this.connectionHtml.length&&0===s&&(this.connectionContentALL[this.scantron.questionIndex].push(this.connectionInfo),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[]),console.log(this.connectionContentALL),console.log(this.scantron.questionIndex);let l=[];for(var u=0;u<this.connectionContentALL[this.scantron.questionIndex].length;u++){this.connectionContentALL[this.scantron.questionIndex][u][0].id!==n&&l.push(this.connectionContentALL[this.scantron.questionIndex][u])}this.connectionContentALL[this.scantron.questionIndex]=l;let d=this.connectionInfo.length;if(d<=this.connectionHtml.length)if(0!==d){if(!this.isLine(n,this.scantron.questionIndex))return this.messageToggle("error","这个已经连过了"),void this.drawLineWrite(this.scantron.questionIndex);let t=this.connectionInfo[d-1],l=Number(t.id.replace("option","").split("-")[0]);l+1===s&&this.connectionInfo.push({id:n,left:o,right:a,top:r}),l===s&&s!==this.connectionHtml.length-1?(this.connectionInfo[d-1]={id:n,left:o,right:a,top:r},document.getElementById(e).style.boxShadow=this.clickColor,Number(t.id.replace("option","").split("-")[1])===i&&this.connectionInfo.length===this.connectionHtml.length&&(this.connectionContentALL[this.scantron.questionIndex].push(this.connectionInfo),console.log(this.connectionContentALL[this.scantron.questionIndex]),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[])):s===this.connectionHtml.length-1&&(this.connectionContentALL[this.scantron.questionIndex].push(this.connectionInfo),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[])}else 0===d&&0===s&&(this.connectionInfo.push({id:n,left:o,right:a,top:r}),console.log(document.getElementById(n+"")),document.getElementById(n+"").style.boxShadow=this.clickColor,console.log(document.getElementById(n)));this.shadowClean(),this.drawLineWrite(this.scantron.questionIndex)}))}),10):setTimeout((()=>{this.shadowClean()}),10)}}}},drawLine(t,n,s,i,o){this.ctx=e("lineCanvas"),this.ctx.beginPath();let a=this.connectionColor[o];-1===o?(a="#000000",this.ctx.shadowColor="red",this.ctx.setshadowBlur=100,this.ctx.shadowOffsetX=1,this.ctx.shadowOffsetY=1):(this.ctx.shadowColor="#000000",this.ctx.setshadowBlur=0,this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0),this.ctx.setStrokeStyle(a),this.ctx.lineWidth=3,this.ctx.moveTo(t,n),this.ctx.lineTo(s,i),this.ctx.stroke(),this.ctx.draw(!0)},clearRect(){const t=e("lineCanvas");t.clearRect(0,0,700,700),t.draw(!0)},shadowClean(){for(var e=0;e<this.connectionHtml.length;e++){let n=this.connectionHtml[e];for(var t=0;t<n.children.length;t++){let n="option"+e+"-"+(t+1);document.getElementById(n).style.boxShadow=""}}},isLine(e,t){for(var n=0;n<this.connectionContentALL[t].length;n++){let i=this.connectionContentALL[t][n];for(var s=0;s<i.length;s++){if(i[s].id===e)return!1}}return!0},drawLineWriteContent(){for(var e=0;e<this.connectionHtml.length;e++){let n=this.connectionHtml[e];for(var t=0;t<n.children.length;t++){let s="option"+e+"-"+(t+1);document.getElementById(s).innerHTML=n.children[t].innerHTML}}},drawLineWrite(e){if(this.clearRect(),this.connectionInfo.length>=2)for(var t=0;t<this.connectionInfo.length-1;t++){let e=this.connectionInfo[t],n=this.connectionInfo[t+1];document.getElementById(e.id).style.boxShadow=this.clickColor,document.getElementById(n.id).style.boxShadow=this.clickColor,this.drawLine(e.right,e.top,n.left,n.top,-1)}else 1===this.connectionInfo.length&&(document.getElementById(this.connectionInfo[0].id).style.boxShadow=this.clickColor);for(t=0;t<this.connectionContentALL[e].length;t++){let s=this.connectionContentALL[e][t];for(var n=0;n<s.length-1;n++){let e=s[n],i=s[n+1];document.getElementById(e.id).style.boxShadow="0px 0px 5px 2px "+this.connectionColor[t],document.getElementById(i.id).style.boxShadow="0px 0px 5px 2px "+this.connectionColor[t],this.drawLine(e.right,e.top,i.left,i.top,t)}}},stringToHTML(e){var t=document.createElement("div");return t.innerHTML=e,t},tap(e,t,n){let s=t,i=n;this.drag[this.scantron.questionIndex].option[e].x=this.drag[this.scantron.questionIndex].option[e].old.x,this.drag[this.scantron.questionIndex].option[e].y=this.drag[this.scantron.questionIndex].option[e].old.y,this.$nextTick((function(){this.drag[this.scantron.questionIndex].option[e].x=s,this.drag[this.scantron.questionIndex].option[e].y=i}))},onMousedown(e){this.dragItem=e},onChange:function(e){if(!this.disabledDrag)return;let t=-1;for(var n=0;n<this.drag[this.scantron.questionIndex].option.length;n++){if(this.drag[this.scantron.questionIndex].option[n].id===this.dragItem.id){t=n;break}}this.drag[this.scantron.questionIndex].option[t].old.x=e.detail.x,this.drag[this.scantron.questionIndex].option[t].old.y=e.detail.y;let s=e=>{let n;document.removeEventListener("mouseup",s),this.disabledDrag=!1;let i=!0;for(var o=0;o<this.drag[this.scantron.questionIndex].answer.length;o++){let e=this.drag[this.scantron.questionIndex].answer[o],s=e.x,r=e.y;if(Number(this.drag[this.scantron.questionIndex].option[t].old.x)<=Number(e.x)+Number(e.width)&&Number(this.drag[this.scantron.questionIndex].option[t].old.x)+Number(this.drag[this.scantron.questionIndex].option[t].width)>=e.x&&Number(this.drag[this.scantron.questionIndex].option[t].old.y)<=Number(e.y)+Number(e.height)&&Number(this.drag[this.scantron.questionIndex].option[t].old.y)+Number(this.drag[this.scantron.questionIndex].option[t].height)>=e.y){for(var a=0;a<this.drag[this.scantron.questionIndex].answer.length;a++)void 0!==this.drag[this.scantron.questionIndex].answer[a].op&&this.drag[this.scantron.questionIndex].answer[a].op===t&&(this.drag[this.scantron.questionIndex].answer[a].op=void 0);void 0!==this.drag[this.scantron.questionIndex].answer[o].op?(this.tap(this.drag[this.scantron.questionIndex].answer[o].op,this.drag[this.scantron.questionIndex].option[this.drag[this.scantron.questionIndex].answer[o].op].old.ax,this.drag[this.scantron.questionIndex].option[this.drag[this.scantron.questionIndex].answer[o].op].old.by),this.drag[this.scantron.questionIndex].answer[o].op=t):this.drag[this.scantron.questionIndex].answer[o].op=t,this.tap(t,s,r),n=e,i=!1;break}}i&&this.tap(t,this.drag[this.scantron.questionIndex].option[t].old.ax,this.drag[this.scantron.questionIndex].option[t].old.by),setTimeout((()=>{void 0!==n&&this.radioAdd(this.dragItem,n.id.replace("answer",""),this.scantron),this.disabledDrag=!0}),700)};document.addEventListener("mouseup",s)},answerDisplay(e){this.windowCheat=Number(e.leaveTime),this.userExamAnswers=e.examAnswers;let t=e.examAnswers;for(var n=0;n<t.length;n++){let e=t[n],o=Number(e.index);if(e.index.includes(".")){let t=Number(e.index.split(".")[0]),n=e.index.split(".")[1];this.examObject.userExamQuestionList[t-1].subQuestionList[n]}else if(1===e.questionType||3===e.questionType)console.log(this.examObject.userExamQuestionList[o-1]),this.examObject.userExamQuestionList[o-1].question.isAnswer=!0,this.examObject.userExamQuestionList[o-1].question.answerList[Number(e.answerIndex[0])].isRight=!0;else if(2===e.questionType){this.examObject.userExamQuestionList[o-1].question.isAnswer=!0;for(var s=0;s<e.answerIndex.length;s++)this.examObject.userExamQuestionList[o-1].question.answerList[Number(e.answerIndex[s])].isRight=!0}else if(4===e.questionType)this.examObject.userExamQuestionList[o-1].question.isAnswer=!0,this.examObject.userExamQuestionList[o-1].question.subjectiveAnswer=e.subjectiveAnswer;else if(5===e.questionType){this.examObject.userExamQuestionList[o-1].question.isAnswer=!0;let t=JSON.parse(e.blankAnswer);for(var i=0;i<t.length;i++)for(s=0;s<this.examObject.userExamQuestionList[o-1].question.answerList.length;s++)this.examObject.userExamQuestionList[o-1].question.answerList[s].tag===t[i].tag&&(this.examObject.userExamQuestionList[o-1].question.answerList[s].blankcontent=t[i].content)}else if(7===e.questionType){this.examObject.userExamQuestionList[o-1].question.isAnswer=!0;let t=JSON.parse(e.blankAnswer);for(i=0;i<t.length;i++)for(s=0;s<this.examObject.userExamQuestionList[o-1].question.answerList.length;s++)this.examObject.userExamQuestionList[o-1].question.answerList[s].tag===t[i].tag&&(this.examObject.userExamQuestionList[o-1].question.answerList[s].blankcontent=t[i].content);this.drag[o]=JSON.parse(e.coordinates)}else if(8===e.questionType){console.log(e),this.examObject.userExamQuestionList[o-1].question.isAnswer=!0;let t=JSON.parse(e.blankAnswer);for(i=0;i<t.length;i++)for(s=0;s<this.examObject.userExamQuestionList[o-1].question.answerList.length;s++)this.examObject.userExamQuestionList[o-1].question.answerList[s].tag===t[i].tag&&(this.examObject.userExamQuestionList[o-1].question.answerList[s].blankcontent=t[i].content);this.connectionContentALL[o]=JSON.parse(e.coordinates)}}},radioAdd(e,t,n,s){t+="";let i=n.questionIndex+"",o=[];if(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!0,1===n.questionType||3===n.questionType){for(var a=0;a<n.question.answerList.length;a++)n.question.answerList[a].isRight=!1;n.question.answerList[t].isRight=!0;for(a=0;a<this.userExamAnswers.length;a++)this.userExamAnswers[a].index!==i&&o.push(this.userExamAnswers[a]);o.push({answerIndex:[t],answers:[e.id],index:i,questionType:n.questionType})}else if(2===n.questionType){let s=!0;for(a=0;a<this.userExamAnswers.length;a++)if(this.userExamAnswers[a].index!==i)o.push(this.userExamAnswers[a]);else{s=!1;let l=!0,u=[],d=[],h=this.userExamAnswers[a].answers.length;for(var r=0;r<h;r++)this.userExamAnswers[a].answerIndex[r]!==t?(u.push(this.userExamAnswers[a].answerIndex[r]),d.push(this.userExamAnswers[a].answers[r])):e.isRight||(l=!1);l&&(u.push(t),d.push(e.id)),0!==u.length?o.push({answerIndex:u,answers:d,index:i,questionType:n.questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}s&&o.push({answerIndex:[t],answers:[e.id],index:i,questionType:n.questionType})}else if(4===n.questionType){for(a=0;a<this.userExamAnswers.length;a++)this.userExamAnswers[a].index!==i&&o.push(this.userExamAnswers[a]);null!==n.question.subjectiveAnswer&&""!==n.question.subjectiveAnswer||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),o.push({subjectiveAnswer:n.question.subjectiveAnswer,index:i,questionType:n.questionType})}else if(5===n.questionType){if(void 0===e)return;let s=!0;for(a=0;a<this.userExamAnswers.length;a++)if(this.userExamAnswers[a].index!==i)o.push(this.userExamAnswers[a]);else{s=!1;let l=!0,u=[],d=JSON.parse(this.userExamAnswers[a].blankAnswer),h=d.length;for(r=0;r<h;r++)d[r].tag!==t?u.push({tag:d[r].tag,content:d[r].content}):l=!1;l&&u.push({tag:t,content:e}),0!==u.length?o.push({blankAnswer:JSON.stringify(u),index:i,questionType:n.questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}s&&(null!==e&&""!==e||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:t,content:e}]),index:i,questionType:n.questionType}))}else if(6===n.questionType){if(i=i+"."+s.sort,1===s.questionType||3===s.questionType){for(r=0;r<s.question.answerList.length;r++)s.question.answerList[r].isRight=!1;s.question.answerList[t].isRight=!0;for(r=0;r<this.userExamAnswers.length;r++)this.userExamAnswers[r].index!==i&&o.push(this.userExamAnswers[r]);o.push({answerIndex:[t],answers:[e.id],index:i,questionType:s.questionType})}else if(2===s.questionType){let a=!0;for(r=0;r<this.userExamAnswers.length;r++)if(this.userExamAnswers[r].index!==i)o.push(this.userExamAnswers[r]);else{a=!1;let u=!0,d=[],h=[],c=this.userExamAnswers[r].answers.length;for(var l=0;l<c;l++)this.userExamAnswers[r].answerIndex[l]!==t?(d.push(this.userExamAnswers[r].answerIndex[l]),h.push(this.userExamAnswers[r].answers[l])):e.isRight||(u=!1);u&&(d.push(t),h.push(e.id)),0!==d.length?o.push({answerIndex:d,answers:h,index:i,questionType:s.questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}a&&o.push({answerIndex:[t],answers:[e.id],index:i,questionType:s.questionType})}else if(4===s.questionType){for(r=0;r<this.userExamAnswers.length;r++)this.userExamAnswers[r].index!==i&&o.push(this.userExamAnswers[r]);null!==s.question.subjectiveAnswer&&""!==n.subQuestionList[a].question.subjectiveAnswer||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),o.push({subjectiveAnswer:s.question.subjectiveAnswer,index:i,questionType:s.questionType})}else if(5===s.questionType){if(void 0===e)return;let l=!0;for(r=0;r<this.userExamAnswers.length;r++)if(this.userExamAnswers[r].index!==i)o.push(this.userExamAnswers[r]);else{l=!1;let s=!0,d=[],h=JSON.parse(this.userExamAnswers[r].blankAnswer),c=h.length;for(var u=0;u<c;u++)h[u].tag!==t?d.push({tag:h[u].tag,content:h[u].content}):s=!1;s&&d.push({tag:t,content:e}),0!==d.length?o.push({blankAnswer:JSON.stringify(d),index:i,questionType:n.subQuestionList[a].questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}l&&(null!==e&&""!==e||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),console.log(i),console.log(n),console.log(this.examObject.userExamQuestionList[n.questionIndex-1].subQuestionList[Number(s.sort)]),o.push({blankAnswer:JSON.stringify([{tag:t,content:e}]),index:i,questionType:n.subQuestionList[a].questionType}))}}else if(7===n.questionType){if(void 0===e)return;t=Number(t)+1+"";let s=!0;for(a=0;a<this.userExamAnswers.length;a++)if(this.userExamAnswers[a].index!==i)o.push(this.userExamAnswers[a]);else{s=!1;let l=!0,u=[],d=JSON.parse(this.userExamAnswers[a].blankAnswer),h=d.length;for(r=0;r<h;r++)d[r].tag!==t?u.push({tag:d[r].tag,content:d[r].content}):(u.push({tag:t,content:e.id}),l=!1);l&&u.push({tag:t,content:e.id}),0!==u.length?o.push({blankAnswer:JSON.stringify(u),coordinates:JSON.stringify(this.drag[i]),index:i,questionType:n.questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}s&&(null!==e&&""!==e||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:t,content:e.id}]),coordinates:JSON.stringify(this.drag[i]),index:i,questionType:n.questionType}))}else if(8===n.questionType){console.log(this.connectionContentALL[i]);let s=e;e="";for(a=0;a<s.length;a++)console.log(s),e+=s[a].id.replace("option","").split("-")[1];if(void 0===e)return;let l=!0;for(r=0;r<this.userExamAnswers.length;r++)if(this.userExamAnswers[r].index!==i)o.push(this.userExamAnswers[r]);else{l=!1;let s=!0,a=[],d=JSON.parse(this.userExamAnswers[r].blankAnswer),h=d.length;for(u=0;u<h;u++)d[u].tag!==t?a.push({tag:d[u].tag,content:d[u].content}):s=!1;s&&a.push({tag:t,content:e}),0!==a.length?o.push({blankAnswer:JSON.stringify(a),index:i,coordinates:JSON.stringify(this.connectionContentALL[i]),questionType:n.questionType}):this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1}l&&(null!==e&&""!==e||(this.examObject.userExamQuestionList[n.questionIndex-1].question.isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:t,content:e}]),coordinates:JSON.stringify(this.connectionContentALL[i]),index:i,questionType:n.questionType}))}this.userExamAnswers=o},handleBlur(){if(console.log("作弊监听启动:"+this.examObject.leaveOn),this.examObject.leaveOn){this.windowCheat<2&&this.$refs.cheat.open();let e=this.examObject.leaveTime;this.cheat=setInterval((()=>{this.windowCheat++,this.cacheAnswer(),clearInterval(this.cheat)}),1e3*e)}},handleFocus(e){this.examObject.leaveOn&&(clearInterval(this.cheat),this.windowCheat>=this.examObject.totalLeaveTimes&&this.submitExam("cheat")),0===e&&this.submitExam("cheat")},addExamPaperTime:(e,t)=>(t.getTime()-e.getTime())/1e3,updateCountDown(){var e=this.examPaperTime;if(this.examPaperTime=this.examPaperTime-1,e<0)return clearInterval(this.intervalId),console.log(0),this.messageToggle("warn","时间已到,2秒后为您自动交卷"),void setTimeout((()=>{this.submitExam(0)}),2e3);var t=Math.floor(e%60),n=Math.floor(e%3600/60),s=Math.floor(e/3600);this.paperTime=0!=s?s+":"+(2==n.toString().length?n:"0"+n)+":"+(2==t.toString().length?t:"0"+t):(2==n.toString().length?n:"0"+n)+":"+(2==t.toString().length?t:"0"+t);let i=this.papersTime+e;var o=Math.floor(i%60),a=Math.floor(i%3600/60),r=Math.floor(i/3600);this.examTime=0!=r?r+":"+(2==a.toString().length?a:"0"+a)+":"+(2==t.toString().length?o:"0"+o):(2==a.toString().length?a:"0"+a)+":"+(2==o.toString().length?o:"0"+o)},examPapersTime(){let e=this.examObject.examPapersList,t=0;for(var n=0;n<e.length;n++)e[n].paperId!==this.userExamPaper.paperId&&9===e[n].state&&(t+=60*e[n].paperTime);return t},cacheAnswer(e){A({examAnswers:this.userExamAnswers,userExamId:sessionStorage.getItem("examId"),leaveTime:this.windowCheat,paperId:this.userExamPaper.paperId,limitTime:this.userExamPaper.limitTime}).then((t=>{console.log(t),0==e&&window.location.reload()}))}},mounted(){var e,t=document.getElementById("body");console.log(t),this.dbclick=t.addEventListener("dblclick",(t=>{console.log(t.target.src),console.log(t.target.tagName),void 0!==t.target.src&&"IMG"===t.target.tagName&&(clearTimeout(e),e=setTimeout((()=>{this.imgsrc=t.target.src,this.$refs.imgsss.open(),console.log("Element was double-clicked!")}),300))})),window.addEventListener("unload",(e=>{e.preventDefault(),setTimeout((()=>{this.cacheAnswer()}),100)})),this.user=JSON.parse(sessionStorage.getItem("user"));let n=sessionStorage.getItem("examId");_({userExamId:n,t:(new Date).toString()}).then((e=>{200!==e.data.code&&(sessionStorage.removeItem("examId"),k()),this.examObject=e.data.result,this.scantron=this.examObject.userExamQuestionList[0],this.userExamPaper=this.examObject.userExamPapersList[0],this.examPaperTime=this.addExamPaperTime(new Date(this.userExamPaper.systemTime),new Date(this.userExamPaper.limitTime)),this.papersTime=this.examPapersTime(),this.intervalId=setInterval(this.updateCountDown,1e3),this.examTime=this.paperTime,window.addEventListener("blur",this.handleBlur),window.addEventListener("focus",this.handleFocus),C({userExamId:n}).then((e=>{null!==e.data.result&&this.answerDisplay(e.data.result),this.radioScantron(this.scantron.questionIndex)}))}))}},[["render",function(e,L,E,v,A,_){const k=O(t("uni-popup-message"),S),C=O(t("uni-popup"),j),Q=a,D=r,J=O(t("l-divider"),M),R=q,V=x,F=O(t("uni-card"),N),$=O(t("uni-col"),H),W=m,U=I,Y=T,G=f,X=y,K=O(t("uni-section"),B),Z=w,ee=O(t("uni-row"),P),te=O(t("uni-popup-dialog"),z);return l(),n(o,null,[s(Q,{class:"container"},{default:i((()=>[s(Q,null,{default:i((()=>[s(C,{ref:"message",type:"message"},{default:i((()=>[s(k,{type:A.msgType,message:A.messageText,duration:2e3},null,8,["type","message"])])),_:1},512)])),_:1})])),_:1}),s(Q,{style:{"font-family":"'微软雅黑', serif","font-size":"40px",color:"#7f7f44",height:"30px","text-align":"center",padding:"20px","padding-bottom":"0"}},{default:i((()=>[u(d(A.examObject.examTitle),1)])),_:1}),s(D,{type:"primary",style:{"background-color":"#f0eff0",position:"fixed",top:"20px",right:"20px",width:"20px",height:"20px","line-height":"1",color:"#000000"},onClick:_.reload},{default:i((()=>[u("҉")])),_:1},8,["onClick"]),s(ee,null,{default:i((()=>[s($,{span:A.windowSize[0],style:{"margin-top":"30px"}},{default:i((()=>[s(F,{style:{height:"85vh"}},{default:i((()=>[s(J,{color:"#00a60d"},{default:i((()=>[s(Q,{style:{"font-size":"2vmin"}},{default:i((()=>[u("考生信息")])),_:1})])),_:1}),s(Q,{style:{"font-family":"'微软雅黑' , serif","font-size":"2vmin",color:"#8c8c8c",height:"30px","text-align":"center",padding:"1%"}},{default:i((()=>[u(" 姓名:"+d(A.user.realname),1)])),_:1}),s(Q,{style:{"font-family":"'微软雅黑', serif","font-size":"2vmin",color:"#8c8c8c",height:"30px","text-align":"center",padding:"1%"}},{default:i((()=>[u(" 考号:"+d(A.user.username),1)])),_:1}),s(J,{color:"#00a60d"},{default:i((()=>[s(Q,{style:{"font-size":"2vmin"}},{default:i((()=>[u("试卷名称")])),_:1})])),_:1}),s(V,null,{default:i((()=>[(l(!0),n(o,null,h(A.examObject.examPapersList,((e,t)=>(l(),b(R,{key:e.value},{default:i((()=>[s(Q,null,{default:i((()=>[s(Q,{class:"paperCss",style:p("background-color: "+(0===e.state?"#b5aa09;":9===e.state?"#ececec":"#00f545"))},{default:i((()=>[s(Q,{style:{color:"#000000"}},{default:i((()=>[g("strong",{style:{"font-size":"2vmin"}},d(e.title),1)])),_:2},1024)])),_:2},1032,["style"])])),_:2},1024)])),_:2},1024)))),128))])),_:1}),s(J,{color:"#b3b3b3"}),s(D,{type:"primary",style:{"margin-top":"10px","font-size":"2vmin"},onClick:_.subExam},{default:i((()=>[u("交卷")])),_:1},8,["onClick"])])),_:1})])),_:1},8,["span"]),s($,{span:A.windowSize[1],style:{"margin-top":"30px"}},{default:i((()=>[s(F,{style:{height:"85vh"}},{default:i((()=>[s(Z,{"scroll-y":"true","scroll-x":"true",class:"scroll-Y"},{default:i((()=>[s(K,{title:A.scantron.questionIndex+"、"+A.scantron.questionTypeName,type:"line",padding:""},{default:i((()=>[s(Q,{id:"scantronNodes"}),1===A.scantron.questionType||3===A.scantron.questionType?(l(),n(o,{key:0},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(V,null,{default:i((()=>[(l(!0),n(o,null,h(A.scantron.question.answerList,((e,t)=>(l(),b(R,{key:e},{default:i((()=>[s(Q,null,{default:i((()=>[s(D,{onClick:n=>_.radioAdd(e,t,A.scantron),style:p("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(e.isRight?"#f9ea0d;":"#f0eff0"))},{default:i((()=>[g("strong",{style:{color:"#0072eb"}},d(e.tag+"、"),1),u(d(e.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})],64)):c("",!0),2===A.scantron.questionType?(l(),n(o,{key:1},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(V,null,{default:i((()=>[(l(!0),n(o,null,h(A.scantron.question.answerList,((e,t)=>(l(),b(R,{key:e.value},{default:i((()=>[s(Q,null,{default:i((()=>[s(D,{onClick:n=>{e.isRight=!e.isRight,_.radioAdd(e,t,A.scantron)},style:p("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(e.isRight?"#f9ea0d;":"#f0eff0"))},{default:i((()=>[g("strong",{style:{color:"#0072eb"}},d(e.tag+"、"),1),u(d(e.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})],64)):c("",!0),4===A.scantron.questionType?(l(),n(o,{key:2},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(Q,null,{default:i((()=>[s(Q,{class:"uni-textarea",style:{border:"#8c8c8c solid 2px","border-radius":"5px",height:"20vh"}},{default:i((()=>[s(W,{onBlur:L[0]||(L[0]=e=>_.radioAdd(null,null,A.scantron)),modelValue:A.scantron.question.subjectiveAnswer,"onUpdate:modelValue":L[1]||(L[1]=e=>A.scantron.question.subjectiveAnswer=e),"placeholder-style":"color:#c7c7c7",placeholder:"请输入答案"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})],64)):c("",!0),5===A.scantron.questionType?(l(),n(o,{key:3},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[(l(!0),n(o,null,h(A.scantron.question.answerList,((e,t)=>(l(),b(R,{key:e.value},{default:i((()=>[s(Q,{class:"allceter",style:{"background-color":"#e7f4ff","text-align":"left",padding:"10px","margin-bottom":"10px",border:"#2a7eeb solid 1px","border-radius":"5px"}},{default:i((()=>[s(Q,{style:{display:"inline-block","padding-left":"10px"}},{default:i((()=>[g("strong",{style:{"font-size":"20px",color:"#0072eb"}},d(e.tag),1)])),_:2},1024),s(U,{onBlur:t=>_.radioAdd(e.blankcontent,e.tag,A.scantron),class:"uni-input",style:{display:"inline-block","background-color":"white"},type:"text",modelValue:e.blankcontent,"onUpdate:modelValue":t=>e.blankcontent=t,placeholder:e.tag},null,8,["onBlur","modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})],64)):c("",!0),6===A.scantron.questionType?(l(),n(o,{key:4},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),(l(!0),n(o,null,h(A.scantron.subQuestionList,((t,a)=>(l(),b(Q,{class:""},{default:i((()=>[s(F,null,{default:i((()=>[g("strong",null,d(A.scantron.questionIndex+"."+t.questionIndex+"、"+t.questionTypeName),1),s(Q,{id:"combinationItemNodes"+a,style:{height:"45vh"}},null,8,["id"]),1===t.questionType||3===t.questionType?(l(),n(o,{key:0},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(V,null,{default:i((()=>[(l(!0),n(o,null,h(t.question.answerList,((e,n)=>(l(),b(R,{key:e},{default:i((()=>[s(Q,null,{default:i((()=>[s(D,{onClick:s=>_.radioAdd(e,n,A.scantron,t),style:p("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(e.isRight?"#f9ea0d;":"#f0eff0"))},{default:i((()=>[g("strong",{style:{color:"#0072eb"}},d(e.tag+"、"),1),u(d(e.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)])),_:2},1024)],64)):c("",!0),2===t.questionType?(l(),n(o,{key:1},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(V,null,{default:i((()=>[(l(!0),n(o,null,h(t.question.answerList,((n,o)=>(l(),b(R,{key:n.value},{default:i((()=>[s(Q,null,{default:i((()=>[s(D,{onClick:s=>{n.isRight=!n.isRight,_.radioAdd(n,e.index0,A.scantron,t)},style:p("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(n.isRight?"#f9ea0d;":"#f0eff0"))},{default:i((()=>[g("strong",{style:{color:"#0072eb"}},d(n.tag+"、"),1),u(d(n.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)])),_:2},1024)],64)):c("",!0),4===t.questionType?(l(),n(o,{key:2},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(Q,null,{default:i((()=>[s(Q,{class:"uni-textarea",style:{border:"#8c8c8c solid 2px","border-radius":"5px",height:"20vh"}},{default:i((()=>[s(W,{modelValue:t.question.subjectiveAnswer,"onUpdate:modelValue":e=>t.question.subjectiveAnswer=e,"placeholder-style":"color:#c7c7c7",placeholder:"请输入答案"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024)],64)):c("",!0),5===t.questionType?(l(),n(o,{key:3},[s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[(l(!0),n(o,null,h(t.question.answerList,((e,n)=>(l(),b(R,{key:e.value},{default:i((()=>[s(Q,{class:"allceter",style:{"background-color":"#e7f4ff","text-align":"left",padding:"10px","margin-bottom":"10px",border:"#2a7eeb solid 1px","border-radius":"5px"}},{default:i((()=>[s(Q,{style:{display:"inline-block","padding-left":"10px"}},{default:i((()=>[g("strong",{style:{"font-size":"20px",color:"#0072eb"}},d(e.tag),1)])),_:2},1024),s(U,{onBlur:n=>_.radioAdd(e.blankcontent,e.tag,A.scantron,t),class:"uni-input",style:{display:"inline-block","background-color":"white"},type:"text",modelValue:e.blankcontent,"onUpdate:modelValue":t=>e.blankcontent=t,placeholder:e.tag},null,8,["onBlur","modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)],64)):c("",!0)])),_:2},1024)])),_:2},1024)))),256))],64)):c("",!0),7===A.scantron.questionType?(l(),n(o,{key:5},[s(D,{onClick:_.restart},{default:i((()=>[u("重置")])),_:1},8,["onClick"]),s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,{style:{height:"600px",width:"800","background-color":"#ffffff"}},{default:i((()=>[s(G,{style:p(`height: 500px;width: 700px;background-color: #8c8c8c;margin: auto;background-image: url('${A.drag[this.scantron.questionIndex].background.url}');background-size:${A.drag[this.scantron.questionIndex].background.width}px ${A.drag[this.scantron.questionIndex].background.height}px;background-repeat: no-repeat;`)},{default:i((()=>[(l(!0),n(o,null,h(A.drag[this.scantron.questionIndex].answer,(e=>(l(),b(Q,{style:p(`position: absolute;width: ${e.width}px;height: ${e.height}px;border:solid 1px black;left:${e.x}px;top:${e.y}px;`)},null,8,["style"])))),256)),(l(!0),n(o,null,h(A.drag[this.scantron.questionIndex].option,(e=>(l(),n(o,null,[A.mbvShow?(l(),b(Y,{key:0,id:e.id,disabled:!A.disabledDrag,style:p("width: "+e.width+"px;height: "+e.height+"px;background-color: "+e.backgroundColor+";"),direction:"all",x:e.x,y:e.y,onMousedown:t=>_.onMousedown(e),onChange:_.onChange},null,8,["id","disabled","style","x","y","onMousedown","onChange"])):c("",!0),A.mbvShow?c("",!0):(l(),b(Y,{key:1,id:e.id,disabled:!A.disabledDrag,style:p("width: "+e.width+"px;height: "+e.height+"px;background-color: "+e.backgroundColor+";"),direction:"all",x:e.x,y:e.y,onMousedown:t=>_.onMousedown(e),onChange:_.onChange},null,8,["id","disabled","style","x","y","onMousedown","onChange"]))],64)))),256))])),_:1},8,["style"])])),_:1})],64)):c("",!0),8===A.scantron.questionType?(l(),n(o,{key:6},[s(Q,{style:{height:"5vh"}}),s(Q,null,{default:i((()=>[s(J,{color:"#aaaa7f"})])),_:1}),s(Q,null,{default:i((()=>[s(Q,{style:{height:"800px",width:"800px","background-color":"#8c8c8c",margin:"auto","padding-top":"50px"}},{default:i((()=>[s(G,{style:{height:"700px",width:"700px","background-color":"#f6f6f6",margin:"auto"}},{default:i((()=>[s(X,{"canvas-id":"lineCanvas",style:{width:"700px",height:"750px"}},{default:i((()=>[(l(!0),n(o,null,h(A.connectionHtml,((e,t)=>(l(),b(Q,{style:{display:"inline-block","margin-top":"30px","margin-left":"30px","margin-right":"70px"}},{default:i((()=>[(l(!0),n(o,null,h(e.children,((e,n)=>(l(),b(Q,{key:t},{default:i((()=>[s(Q,{id:"option"+t+"-"+(n+1),style:{width:"90px",height:"100px",padding:"10px","padding-bottom":"0","margin-bottom":"10px","border-radius":"5px",border:"#007aff solid 1px","background-color":"#e0eef9",overflow:"hidden"}},null,8,["id"])])),_:2},1024)))),128))])),_:2},1024)))),256))])),_:1})])),_:1})])),_:1})])),_:1})],64)):c("",!0)])),_:1},8,["title"])])),_:1})])),_:1})])),_:1},8,["span"]),s($,{span:A.windowSize[2],style:{"margin-top":"30px"}},{default:i((()=>[s(F,{style:{height:"85vh"}},{default:i((()=>[s(J,{color:"#8f960c",style:{"margin-top":"2%"}},{default:i((()=>[s(Q,{style:{"font-size":"1vw"}},{default:i((()=>[u("当前试卷时间")])),_:1})])),_:1}),s(Q,{style:{"font-family":"'微软雅黑', serif",color:"#f90005",height:"4vh","text-align":"center",padding:"2%"}},{default:i((()=>[g("strong",{style:{"font-size":"3vmin"}},d(A.paperTime),1)])),_:1}),s(J,{color:"#251e75"},{default:i((()=>[s(Q,{style:{"font-size":"2vmin"}},{default:i((()=>[u("答题卡")])),_:1})])),_:1}),s(Q,null,{default:i((()=>[s(Z,{"scroll-y":"true",style:{height:"50vh"}},{default:i((()=>[(l(!0),n(o,null,h(A.examObject.answerCardList2,((e,t)=>(l(),b(R,{key:e},{default:i((()=>[s(K,{class:"mb-10",title:e.questionTypeName,type:"line"},{default:i((()=>[(l(!0),n(o,null,h(e.indexList,(t=>(l(),b(Q,{style:{display:"inline-block","margin-left":"5px"},onMousedown:e=>_.radioScantron(t)},{default:i((()=>[s(Q,null,{default:i((()=>[s(D,{type:"radio",style:p("width: 30px;height: 30px;padding:0px;color:#FFFFFF;font-size: 12px;text-align: center;background-color: "+(t===A.scantron.questionIndex?"#b5aa09;":this.examObject.userExamQuestionList[t-1].question.isAnswer?"#18da59":"#007aff"))},{default:i((()=>[u(d(t),1)])),_:2},1032,["style"])])),_:2},1024),s(Q,null,{default:i((()=>[u(d(e.questionTypeName.replace("题","")),1)])),_:2},1024)])),_:2},1032,["onMousedown"])))),256))])),_:2},1032,["title"])])),_:2},1024)))),128))])),_:1})])),_:1}),s(J,{color:"#251e75"}),s(Q,null,{default:i((()=>[s(D,{type:"primary",style:{"margin-top":"10px","font-size":"2vmin"},onClick:_.previousQuestion},{default:i((()=>[u("上一题")])),_:1},8,["onClick"]),s(D,{type:"primary",style:{"margin-top":"10px","font-size":"2vmin"},onClick:_.nextQuestion},{default:i((()=>[u("下一题")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["span"])])),_:1}),s(C,{ref:"message",type:"message"},{default:i((()=>[s(k,{type:A.msgType,message:A.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),s(C,{ref:"inputDialog",type:"dialog"},{default:i((()=>[s(te,{ref:"inputClose",title:"提交试卷",onConfirm:_.dialogInputConfirm},{default:i((()=>[s(Q,null,{default:i((()=>[s(Q,null,{default:i((()=>[u("1、提交当前试卷后不可再次作答")])),_:1}),s(Q,null,{default:i((()=>[u("2、本试卷剩余时间不计入下一套")])),_:1}),s(Q,null,{default:i((()=>[u("3、最终试卷提交将结束考试")])),_:1}),s(Q,{style:{"text-align":"center"}},{default:i((()=>[u("确认提交?")])),_:1})])),_:1})])),_:1},8,["onConfirm"])])),_:1},512),s(C,{ref:"cheat",type:"dialog"},{default:i((()=>[s(te,{style:{width:"50vh"},ref:"inputClose",title:"作弊提醒"},{default:i((()=>[s(Q,{style:{color:"red"}},{default:i((()=>[s(Q,null,{default:i((()=>[u("1、鼠标请勿点击窗口之外的地方")])),_:1}),s(Q,null,{default:i((()=>[u("2、如果不小心退出全屏,请按F11恢复到全屏")])),_:1}),s(Q,null,{default:i((()=>[u("3、鼠标多次点击窗口之外的地方将按作弊处理")])),_:1})])),_:1})])),_:1},512)])),_:1},512),s(C,{ref:"answerFinal",type:"dialog"},{default:i((()=>[s(te,{style:{width:"50vh"},ref:"inputClose",title:"当前已经到最后一题"},{default:i((()=>[s(Q,{style:{color:"#0b0ba5"}},{default:i((()=>[s(Q,null,{default:i((()=>[u("请检查是否存在漏答题目,检查无误后,请点击“"),g("strong",{style:{"font-size":"20px",color:"#f00004"}},"交卷"),u("”")])),_:1})])),_:1})])),_:1},512)])),_:1},512),s(C,{ref:"imgsss",type:"dialog"},{default:i((()=>[s(te,{ref:"inputClose",title:"图片放大",style:{width:"80vh"}},{default:i((()=>[s(Z,{style:{height:"70vh",width:"80vh"},"scroll-y":"true","scroll-x":"true",class:"scroll-Y"},{default:i((()=>[g("img",{src:A.imgsrc,style:{height:"70vh"},alt:"图片"},null,8,["src"])])),_:1})])),_:1},512)])),_:1},512)],64)}],["__scopeId","data-v-d24f5f37"]]);export{D as default};