1 |
- import{m as t,o as e,g as s,w as n,a as i,n as o,b as a,t as l,p as r,j as u,k as c,i as d,I as h,q as p,r as g,c as f,F as m,l as y,h as b,d as x,s as w,e as N,u as k,M as A,v as _,S as j,x as L,y as T,z as v}from"./index-CMW5gdnj.js";import{c as C,_ as S,a as I,b as E,d as O}from"./index.CvfIPkg8.js";import{_ as z,c as H,d as B,f as q,h as M,a as V}from"./examRoute.ba8rFKkF.js";import{p as R,_ as D,a as J}from"./uni-popup.tLIel_j8.js";const P={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:$}=t(P);const Q=z({name:"uniPopupDialog",mixins:[R],emits:["confirm","close","update:modelValue","input"],props:{inputType:{type:String,default:"text"},showClose:{type:Boolean,default:!0},modelValue:{type:[Number,String],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},maxlength:{type:Number,default:-1},focus:{type:Boolean,default:!0}},data:()=>({dialogType:"error",val:""}),computed:{okText(){return this.confirmText||$("uni-popup.ok")},closeText(){return this.cancelText||$("uni-popup.cancel")},placeholderText(){return this.placeholder||$("uni-popup.placeholder")},titleText(){return this.title||$("uni-popup.title")}},watch:{type(t){this.dialogType=t},mode(t){"input"===t&&(this.dialogType="info")},value(t){-1!=this.maxlength&&"input"===this.mode?this.val=t.slice(0,this.maxlength):this.val=t},val(t){this.$emit("update:modelValue",t)}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value,this.val=this.modelValue):this.dialogType=this.type},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(t,p,g,f,m,y){const b=c,x=d,w=h;return e(),s(x,{class:"uni-popup-dialog"},{default:n((()=>[i(x,{class:"uni-dialog-title"},{default:n((()=>[i(b,{class:o(["uni-dialog-title-text",["uni-popup__"+m.dialogType]])},{default:n((()=>[a(l(y.titleText),1)])),_:1},8,["class"])])),_:1}),"base"===g.mode?(e(),s(x,{key:0,class:"uni-dialog-content"},{default:n((()=>[r(t.$slots,"default",{},(()=>[i(b,{class:"uni-dialog-content-text"},{default:n((()=>[a(l(g.content),1)])),_:1})]),!0)])),_:3})):(e(),s(x,{key:1,class:"uni-dialog-content"},{default:n((()=>[r(t.$slots,"default",{},(()=>[i(w,{class:"uni-dialog-input",maxlength:g.maxlength,modelValue:m.val,"onUpdate:modelValue":p[0]||(p[0]=t=>m.val=t),type:g.inputType,placeholder:y.placeholderText,focus:g.focus},null,8,["maxlength","modelValue","type","placeholder","focus"])]),!0)])),_:3})),i(x,{class:"uni-dialog-button-group"},{default:n((()=>[g.showClose?(e(),s(x,{key:0,class:"uni-dialog-button",onClick:y.closeDialog},{default:n((()=>[i(b,{class:"uni-dialog-button-text"},{default:n((()=>[a(l(y.closeText),1)])),_:1})])),_:1},8,["onClick"])):u("",!0),i(x,{class:o(["uni-dialog-button",g.showClose?"uni-border-left":""]),onClick:y.onOk},{default:n((()=>[i(b,{class:"uni-dialog-button-text uni-button-color"},{default:n((()=>[a(l(y.okText),1)])),_:1})])),_:1},8,["class","onClick"])])),_:1})])),_:3})}],["__scopeId","data-v-dc2a088f"]]);const U=z({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:{},repositoryType:[],repository:"",subjectTypes:["单选题","多选题","判断题","简答题","填空题","组合题","拖拽题","连线题"],subjectType:1,subjectNum:1,pageNo:1,pageSize:5,writePageNo:1,writePageSize:5,title:"",answerAnalysis:{analysis:"这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析这是一道题的解析",answer:"ABCD",youAnswerState:0},examTopic:{},scantron:"",answer:{},typeThree:"",userExamAnswers:[],user:{},b:!0,count:0,canvasWidth:300,canvasHeight:300,userExamPaper:{},msgType:"success",messageText:"这是一条成功提示"}),methods:{messageToggle(t,e){this.msgType=t,this.messageText=e,this.$refs.message.open()},inspect(){this.pageNo=Number(this.pageNo),this.pageNo<1&&(this.pageNo=1)},restart(){this.disabledDrag=!0,this.drag[this.subjectNum].answer=[],this.drag[this.subjectNum].option=[];let t=this.stringToHTML(this.scantron.content);console.log(t);for(var e=0;e<t.children.length;e++){let s=t.children[e].style.top.toString().replace("px",""),n=t.children[e].style.left.toString().replace("px",""),i=t.children[e].style.width.toString().replace("px",""),o=t.children[e].style.height.toString().replace("px",""),a=t.children[e].style.backgroundColor,l=t.children[e].innerHTML;t.children[e].id.includes("option")&&this.drag[this.subjectNum].option.push({id:t.children[e].id,x:Number(n),y:Number(s),old:{x:0,y:0,ax:Number(n),by:Number(s)},b:!0,width:i,height:o,backgroundColor:a,innerHTML:l}),t.children[e].id.includes("answer")&&this.drag[this.subjectNum].answer.push({id:t.children[e].id,x:Number(n),y:Number(s),old:{x:0,y:0},width:i,height:o,backgroundColor:a})}},previousQuestion(){this.subjectNum>1&&this.radioScantron(--this.subjectNum)},nextQuestion(){this.subjectNum<this.examObject.records.length&&this.radioScantron(++this.subjectNum)},previousPage(){this.pageNo>1?this.pageReplace(this.pageNo,this.pageSize,-1):this.messageToggle("warn","当前在第一页")},nextPage(){this.pageReplace(this.pageNo,this.pageSize,1)},pageReplace(t,e,s){this.drag=[],t=Number(t)+Number(s),e=Number(e),s=H({mode:3,pageNo:t,pageSize:e,questionType:this.subjectType,repositoryId:sessionStorage.getItem("repositoryId")}).then((e=>{0!==e.data.result.records.length?(this.pageNo=t,this.writePageNo=t,console.log(e),this.examObject=e.data.result,this.scantron=this.examObject.records[0],this.radioScantron(1)):this.messageToggle("warn","新页没有数据")}))},radioScantron(t){this.analysisBlank(),document.getElementById("scantronNodes").innerHTML="",this.subjectNum=t,this.scantron=this.examObject.records[t-1],console.log(this.scantron),7!==this.scantron.type&&8!==this.scantron.type?document.getElementById("scantronNodes").innerHTML=this.scantron.content:(console.log(this.scantron.content.split("%||||||||%")[0]),document.getElementById("scantronNodes").innerHTML=this.scantron.content.split("%||||||||%")[0]);let e=setInterval((()=>{if(6===this.scantron.type){for(var t=0;t<this.scantron.subQuestionList.length;t++){if(null===document.getElementById("combinationItemNodes"+t)){console.log("加载中");break}document.getElementById("combinationItemNodes"+t).innerHTML=this.scantron.subQuestionList[t].content}clearInterval(e)}}),10);if(7==this.scantron.type){if(this.mbvShow=!this.mbvShow,this.disabledDrag=!0,console.log(this.drag[this.subjectNum]),void 0!==this.drag[this.subjectNum])return void setTimeout((()=>{for(var t=0;t<this.drag[this.subjectNum].option.length;t++){let e=this.drag[this.subjectNum].option[t];console.log(document.getElementById(e.id)),console.log(e),document.getElementById(e.id).innerHTML=e.innerHTML}}),10);this.drag[this.subjectNum]={},this.drag[this.subjectNum].answer=[],this.drag[this.subjectNum].option=[],this.drag[this.subjectNum].background={};let t=this.stringToHTML(this.scantron.content);for(var s=0;s<t.children.length;s++){console.log(t.children[s]);let e=t.children[s].style.top.toString().replace("px",""),n=t.children[s].style.left.toString().replace("px",""),i=t.children[s].style.width.toString().replace("px",""),o=t.children[s].style.height.toString().replace("px",""),a=t.children[s].style.backgroundColor,l=t.children[s].innerHTML;t.children[s].id.includes("option")&&this.drag[this.subjectNum].option.push({id:t.children[s].id,x:Number(n),y:Number(e),old:{x:0,y:0,ax:Number(n),by:Number(e)},b:!0,width:i,height:o,backgroundColor:a,innerHTML:l}),t.children[s].id.includes("answer")&&this.drag[this.subjectNum].answer.push({id:t.children[s].id,x:Number(n),y:Number(e),old:{x:0,y:0},width:i,height:o,backgroundColor:a}),"IMG"===t.children[s].tagName&&(this.drag[this.subjectNum].background.url=t.children[s].src,this.drag[this.subjectNum].background.width=t.children[s].style.width.toString().replace("px",""),this.drag[this.subjectNum].background.height=t.children[s].style.height.toString().replace("px",""))}console.log(this.drag[this.subjectNum].option.length),setTimeout((()=>{for(var t=0;t<this.drag[this.subjectNum].option.length;t++){let e=this.drag[this.subjectNum].option[t];console.log(document.getElementById(e.id)),document.getElementById(e.id).innerHTML=e.innerHTML}}),10)}if(8==this.scantron.type){this.connectionHtml=[];let e=this.stringToHTML(this.scantron.content);for(s=0;s<e.children.length;s++){let t=e.children[s];for(var n=0;n<t.children.length;n++)void 0!==t.children[n].id&&t.children[n].id.includes("option")&&this.connectionHtml.push(t.children[n])}void 0===this.connectionContentALL[t]&&(this.connectionContentALL[t]=[]),this.connectionInfo=[],setTimeout((()=>{this.drawLineWriteContent(),this.drawLineWrite(t)}),100);for(s=0;s<this.connectionHtml.length;s++){let t=this.connectionHtml[s];for(n=0;n<t.children.length;n++){let t="option"+s+"-"+(n+1);null===document.getElementById(t)?setTimeout((()=>{document.getElementById(t).addEventListener("mousedown",(e=>{console.log(e);let s=e.currentTarget.id;console.log(s);let n=Number(s.replace("option","").split("-")[0]),i=Number(s.replace("option","").split("-")[1]),o=e.target.offsetLeft,a=Number(e.target.offsetLeft+e.target.offsetWidth),l=Number(e.target.offsetTop+e.target.offsetHeight/2);this.connectionInfo.length===this.connectionHtml.length&&0===n&&(this.connectionContentALL[this.subjectNum].push(this.connectionInfo),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[]);let r=[];for(var u=0;u<this.connectionContentALL[this.subjectNum].length;u++){this.connectionContentALL[this.subjectNum][u][0].id!==s&&r.push(this.connectionContentALL[this.subjectNum][u])}this.connectionContentALL[this.subjectNum]=r;let c=this.connectionInfo.length;if(c<=this.connectionHtml.length)if(0!==c){if(!this.isLine(s,this.subjectNum))return this.messageToggle("error","这个已经连过了"),void this.drawLineWrite(this.subjectNum);let e=this.connectionInfo[c-1],r=Number(e.id.replace("option","").split("-")[0]);r+1===n&&this.connectionInfo.push({id:s,left:o,right:a,top:l}),r===n&&n!==this.connectionHtml.length-1?(this.connectionInfo[c-1]={id:s,left:o,right:a,top:l},document.getElementById(t).style.boxShadow=this.clickColor,Number(e.id.replace("option","").split("-")[1])===i&&this.connectionInfo.length===this.connectionHtml.length&&(this.connectionContentALL[this.subjectNum].push(this.connectionInfo),console.log(this.connectionContentALL[this.scantron.sort]),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[])):n===this.connectionHtml.length-1&&(this.connectionContentALL[this.subjectNum].push(this.connectionInfo),console.log(this.connectionContentALL[this.scantron.sort]),this.radioAdd(this.connectionInfo,this.connectionInfo[0].id.replace("option","").split("-")[1],this.scantron),this.connectionInfo=[])}else 0===c&&0===n&&(this.connectionInfo.push({id:s,left:o,right:a,top:l}),console.log(document.getElementById(s+"")),document.getElementById(s+"").style.boxShadow=this.clickColor,console.log(document.getElementById(s)));this.shadowClean(),this.drawLineWrite(this.subjectNum)}))}),10):setTimeout((()=>{this.shadowClean()}),10)}}}},drawLine(t,e,s,n,i){this.ctx=p("lineCanvas"),this.ctx.beginPath();let o=this.connectionColor[i];-1===i?(o="#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(o),this.ctx.lineWidth=3,this.ctx.moveTo(t,e),this.ctx.lineTo(s,n),this.ctx.stroke(),this.ctx.draw(!0)},clearRect(){const t=p("lineCanvas");t.clearRect(0,0,700,500),t.draw(!0)},shadowClean(){for(var t=0;t<this.connectionHtml.length;t++){let s=this.connectionHtml[t];for(var e=0;e<s.children.length;e++){let s="option"+t+"-"+(e+1);document.getElementById(s).style.boxShadow=""}}},isLine(t,e){for(var s=0;s<this.connectionContentALL[e].length;s++){let i=this.connectionContentALL[e][s];for(var n=0;n<i.length;n++){if(i[n].id===t)return!1}}return!0},drawLineWriteContent(){for(var t=0;t<this.connectionHtml.length;t++){let s=this.connectionHtml[t];for(var e=0;e<s.children.length;e++){let n="option"+t+"-"+(e+1);document.getElementById(n).innerHTML=s.children[e].innerHTML}}},drawLineWrite(t){if(this.clearRect(),this.connectionInfo.length>=2)for(var e=0;e<this.connectionInfo.length-1;e++){let t=this.connectionInfo[e],s=this.connectionInfo[e+1];document.getElementById(t.id).style.boxShadow=this.clickColor,document.getElementById(s.id).style.boxShadow=this.clickColor,this.drawLine(t.right,t.top,s.left,s.top,-1)}else 1===this.connectionInfo.length&&(document.getElementById(this.connectionInfo[0].id).style.boxShadow=this.clickColor);for(e=0;e<this.connectionContentALL[t].length;e++){let n=this.connectionContentALL[t][e];for(var s=0;s<n.length-1;s++){let t=n[s],i=n[s+1];document.getElementById(t.id).style.boxShadow="0px 0px 5px 2px "+this.connectionColor[e],document.getElementById(i.id).style.boxShadow="0px 0px 5px 2px "+this.connectionColor[e],this.drawLine(t.right,t.top,i.left,i.top,e)}}},stringToHTML(t){var e=document.createElement("div");return e.innerHTML=t,e},tap(t,e,s){let n=e,i=s;this.drag[this.subjectNum].option[t].x=this.drag[this.subjectNum].option[t].old.x,this.drag[this.subjectNum].option[t].y=this.drag[this.subjectNum].option[t].old.y,this.$nextTick((function(){this.drag[this.subjectNum].option[t].x=n,this.drag[this.subjectNum].option[t].y=i}))},onMousedown(t){console.log(this.drag[this.subjectNum].option.length),this.dragItem=t,this.count=0},onChange:function(t){if(!this.disabledDrag)return;let e=-1;for(var s=0;s<this.drag[this.subjectNum].option.length;s++){if(this.drag[this.subjectNum].option[s].id===this.dragItem.id){e=s;break}}this.drag[this.subjectNum].option[e].old.x=t.detail.x,this.drag[this.subjectNum].option[e].old.y=t.detail.y;let n=t=>{document.removeEventListener("mouseup",n),this.disabledDrag=!1;let s,i=!0;for(var o=0;o<this.drag[this.subjectNum].answer.length;o++){let t=this.drag[this.subjectNum].answer[o],n=t.x,l=t.y;if(Number(this.drag[this.subjectNum].option[e].old.x)<=Number(t.x)+Number(t.width)&&Number(this.drag[this.subjectNum].option[e].old.x)+Number(this.drag[this.subjectNum].option[e].width)>=t.x&&Number(this.drag[this.subjectNum].option[e].old.y)<=Number(t.y)+Number(t.height)&&Number(this.drag[this.subjectNum].option[e].old.y)+Number(this.drag[this.subjectNum].option[e].height)>=t.y){for(var a=0;a<this.drag[this.subjectNum].answer.length;a++)void 0!==this.drag[this.subjectNum].answer[a].op&&this.drag[this.subjectNum].answer[a].op===e&&(this.drag[this.subjectNum].answer[a].op=void 0);void 0!==this.drag[this.subjectNum].answer[o].op?(this.tap(this.drag[this.subjectNum].answer[o].op,this.drag[this.subjectNum].option[this.drag[this.subjectNum].answer[o].op].old.ax,this.drag[this.subjectNum].option[this.drag[this.subjectNum].answer[o].op].old.by),this.drag[this.subjectNum].answer[o].op=e):this.drag[this.subjectNum].answer[o].op=e,this.tap(e,n,l),s=t,i=!1;break}}i&&this.tap(e,this.drag[this.subjectNum].option[e].old.ax,this.drag[this.subjectNum].option[e].old.by),setTimeout((()=>{void 0!==s&&this.radioAdd(this.dragItem,s.id.replace("answer",""),this.scantron),this.disabledDrag=!0}),700)};document.addEventListener("mouseup",n)},radioAdd(t,e,s,n){e+="";let i=this.subjectNum+"",o=[];if(this.examObject.records[this.subjectNum-1].isAnswer=!0,1===this.scantron.type||3===this.scantron.type){for(var a=0;a<s.answerList.length;a++)s.answerList[a].right=!1;s.answerList[e].right=!0,this.answerInspect();for(a=0;a<this.userExamAnswers.length;a++)this.userExamAnswers[a].index!==i&&o.push(this.userExamAnswers[a]);o.push({answerIndex:[e],answers:[t.id],index:i,questionType:this.scantronType})}else if(2===this.scantron.type){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 n=!0,r=[],u=[],c=this.userExamAnswers[a].answers.length;for(var l=0;l<c;l++)this.userExamAnswers[a].answerIndex[l]!==e?(r.push(this.userExamAnswers[a].answerIndex[l]),u.push(this.userExamAnswers[a].answers[l])):t.right||(n=!1);n&&(r.push(e),u.push(t.id)),0!==r.length?o.push({answerIndex:r,answers:u,index:i,questionType:this.scantron.type}):this.examObject.records[this.subjectNum-1].isAnswer=!1}s&&o.push({answerIndex:[e],answers:[t.id],index:i,questionType:this.scantronType})}else if(4===this.scantron.type){for(a=0;a<this.userExamAnswers.length;a++)this.userExamAnswers[a].index!==i&&o.push(this.userExamAnswers[a]);null!==s.subjectiveAnswer&&""!==s.subjectiveAnswer||(this.examObject.records[this.subjectNum-1].isAnswer=!1),o.push({subjectiveAnswer:s.subjectiveAnswer,index:i,questionType:this.scantronType})}else if(5===this.scantron.type){if(void 0===t)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 n=!0,r=[],u=JSON.parse(this.userExamAnswers[a].blankAnswer),c=u.length;for(l=0;l<c;l++)u[l].tag!==e?r.push({tag:u[l].tag,content:u[l].content}):n=!1;n&&r.push({tag:e,content:t}),0!==r.length?o.push({blankAnswer:JSON.stringify(r),index:i,questionType:this.scantronType}):this.examObject.records[this.subjectNum-1].isAnswer=!1}s&&(null!==t&&""!==t||(this.examObject.records[this.subjectNum-1].isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:e,content:t}]),index:i,questionType:this.scantronType}))}else if(6===this.scantron.type){if(i=i+"."+n.sort,1===n.questionType||3===n.questionType){for(l=0;l<n.answerList.length;l++)n.answerList[l].right=!1;n.answerList[e].right=!0;for(l=0;l<this.userExamAnswers.length;l++)this.userExamAnswers[l].index!==i&&o.push(this.userExamAnswers[l]);o.push({answerIndex:[e],answers:[t.id],index:i,questionType:n.questionType})}else if(2===n.questionType){let s=!0;for(l=0;l<this.userExamAnswers.length;l++)if(this.userExamAnswers[l].index!==i)o.push(this.userExamAnswers[l]);else{s=!1;let a=!0,u=[],c=[],d=this.userExamAnswers[l].answers.length;for(var r=0;r<d;r++)this.userExamAnswers[l].answerIndex[r]!==e?(u.push(this.userExamAnswers[l].answerIndex[r]),c.push(this.userExamAnswers[l].answers[r])):t.right||(a=!1);a&&(u.push(e),c.push(t.id)),0!==u.length?o.push({answerIndex:u,answers:c,index:i,questionType:n.questionType}):this.examObject.records[this.subjectNum-1].question.isAnswer=!1}s&&o.push({answerIndex:[e],answers:[t.id],index:i,questionType:n.questionType})}else if(4===n.questionType){for(l=0;l<this.userExamAnswers.length;l++)this.userExamAnswers[l].index!==i&&o.push(this.userExamAnswers[l]);null!==n.subjectiveAnswer&&""!==s.subQuestionList[a].subjectiveAnswer||(this.examObject.records[this.subjectNum-1].isAnswer=!1),o.push({subjectiveAnswer:n.subjectiveAnswer,index:i,questionType:n.questionType})}else if(5===n.questionType){if(void 0===t)return;let n=!0;for(l=0;l<this.userExamAnswers.length;l++)if(this.userExamAnswers[l].index!==i)o.push(this.userExamAnswers[l]);else{n=!1;let r=!0,c=[],d=JSON.parse(this.userExamAnswers[l].blankAnswer),h=d.length;for(var u=0;u<h;u++)d[u].tag!==e?c.push({tag:d[u].tag,content:d[u].content}):r=!1;r&&c.push({tag:e,content:t}),0!==c.length?o.push({blankAnswer:JSON.stringify(c),index:i,questionType:s.subQuestionList[a].questionType}):this.examObject.records[this.subjectNum-1].question.isAnswer=!1}n&&(null!==t&&""!==t||(this.examObject.records[this.subjectNum-1].isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:e,content:t}]),index:i,questionType:s.subQuestionList[a].questionType}))}}else if(7===this.scantron.type){if(void 0===t||this.count>0)return;console.log(this.drag),this.count++,e=Number(e)+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 n=!0,r=[],u=JSON.parse(this.userExamAnswers[a].blankAnswer),c=u.length;for(l=0;l<c;l++)u[l].tag!==e?r.push({tag:u[l].tag,content:u[l].content}):(r.push({tag:e,content:t.id}),this.scantron.answerList[Number(e)-1].blankcontent=t.id,n=!1);console.log(r),n&&(r.push({tag:e,content:t.id}),this.scantron.answerList[Number(e)-1].blankcontent=t.id),0!==r.length?(o.push({blankAnswer:JSON.stringify(r),coordinates:JSON.stringify(this.drag[i]),index:i,questionType:this.scantronType}),this.scantron.answerList[Number(e)-1].blankcontent=t.id):this.examObject.records[this.subjectNum-1].isAnswer=!1}s&&(null!==t&&""!==t||(this.examObject.records[this.subjectNum-1].isAnswer=!1),o.push({blankAnswer:JSON.stringify([{tag:e,content:t.id}]),coordinates:JSON.stringify(this.drag[i]),index:i,questionType:this.scantronType}),this.scantron.answerList[Number(e)-1].blankcontent=t.id)}else if(8===this.scantron.type){console.log(this.connectionContentALL[i]);let s=t;t="";for(a=0;a<s.length;a++)console.log(s),t+=s[a].id.replace("option","").split("-")[1];if(void 0===t)return;let n=!0;console.log(this.userExamAnswers.length),this.scantron.answerList[Number(e)-1].blankcontent=t;for(l=0;l<this.userExamAnswers.length;l++)if(this.userExamAnswers[l].index!==i)o.push(this.userExamAnswers[l]);else{n=!1;let s=!0,a=[],r=JSON.parse(this.userExamAnswers[l].blankAnswer),c=r.length;for(u=0;u<c;u++)r[u].tag!==e?a.push({tag:r[u].tag,content:r[u].content}):(console.log(t),s=!1);s&&(console.log(t),a.push({tag:e,content:t})),0!==a.length?o.push({blankAnswer:JSON.stringify(a),index:i,coordinates:JSON.stringify(this.connectionContentALL[i]),questionType:this.scantronType}):this.examObject.records[this.subjectNum-1].isAnswer=!1}n&&(null!==t&&""!==t||(this.examObject.records[this.subjectNum-1].isAnswer=!1),this.scantron.answerList[Number(e)-1].blankcontent=t,o.push({blankAnswer:JSON.stringify([{tag:e,content:t}]),coordinates:JSON.stringify(this.connectionContentALL[i]),index:i,questionType:this.scantronType}))}this.userExamAnswers=o,console.log(this.scantron.answerList[Number(e)-1]),console.log(this.userExamAnswers)},subjectTypeClick(t){this.repository=t,this.pageNo=1,setTimeout((()=>{this.drag=[],this.shadowClean(),this.clearRect(),this.connectionContentALL=[]}),100),H({mode:3,pageNo:1,pageSize:this.pageSize,questionType:t.type,repositoryId:sessionStorage.getItem("repositoryId")}).then((e=>{if(0!==e.data.result.total){for(var s=0;s<e.data.result.records.length;s++)e.data.result.records[s].disable=!1;this.subjectType=t.type,this.examObject=e.data.result,console.log(this.examObject),console.log(this.subjectNum),this.scantron=this.examObject.records[0],this.radioScantron(1)}else this.messageToggle("warn","该题型数量为空")}))},answerConfirm(){this.answerInspect()},answerInspect(t){if(console.log(this.examObject.records[this.subjectNum-1]),this.examObject.records[this.subjectNum-1].disable)console.log("0");else{if(this.analysisBlank(),this.answerAnalysis.youAnswerState=1,1===this.scantron.type||3===this.scantron.type)for(var e=0;e<this.scantron.answerList.length;e++)this.scantron.answerList[e].isRight&&this.scantron.answerList[e].right&&(this.answerAnalysis.youAnswerState=0),this.scantron.answerList[e].isRight&&!this.scantron.answerList[e].right&&(this.answerAnalysis.youAnswerState=1),this.scantron.answerList[e].isRight&&(this.answerAnalysis.answer+=this.scantron.answerList[e].tag);else if(5===this.scantron.type)if(this.examObject.records[this.subjectNum-1].answerOrder){for(e=0;e<this.scantron.answerList.length;e++){if(this.scantron.answerList[e].isRight){let t=this.scantron.answerList[e].content.split("||");for(n=0;n<t.length;n++)if(t[n]===this.scantron.answerList[e].blankcontent){this.answerAnalysis.youAnswerState=0;break}}if(1===this.answerAnalysis.youAnswerState)break}for(e=0;e<this.scantron.answerList.length;e++)this.scantron.answerList[e].isRight&&(this.answerAnalysis.answer+=e+1+"、"+this.scantron.answerList[e].content+";")}else{console.log(this.scantron.answerList);for(var e=0;e<this.scantron.answerList.length;e++){this.answerAnalysis.youAnswerState=1;for(var s=0;s<this.scantron.answerList.length;s++)if(this.scantron.answerList[e].isRight){let t=this.scantron.answerList[e].content.split("||");for(var n=0;n<t.length;n++)if(t[n]===this.scantron.answerList[s].blankcontent){this.answerAnalysis.youAnswerState=0;break}}if(1===this.answerAnalysis.youAnswerState)break}for(var e=0;e<this.scantron.answerList.length;e++)this.scantron.answerList[e].isRight&&(this.answerAnalysis.answer+=e+1+"、"+this.scantron.answerList[e].content+";")}else if(7===this.scantron.type||8===this.scantron.type){this.answerAnalysis.youAnswerState=0,console.log(this.scantron.answerList);for(e=0;e<this.scantron.answerList.length;e++){let t=1;for(s=0;s<this.scantron.answerList.length;s++)this.scantron.answerList[e].isRight&&this.scantron.answerList[e].content===this.scantron.answerList[s].blankcontent&&(t=0);console.log(this.scantron.answerList),this.scantron.answerList[e].isRight&&(this.answerAnalysis.answer+=e+1+"、"+this.scantron.answerList[e].content+";"),1===t&&(this.answerAnalysis.youAnswerState=1)}}3===t&&(this.answerAnalysis.youAnswerState=t),this.answerAnalysis.analysis=this.scantron.analysis,this.examObject.records[this.subjectNum-1].disable=!0}},analysisBlank(){this.answerAnalysis.analysis="",this.answerAnalysis.answer="",this.answerAnalysis.youAnswerState=-1},backPage(){B()}},mounted(){this.user=JSON.parse(sessionStorage.getItem("user"));let t=sessionStorage.getItem("repositoryId");q({id:t,t:(new Date).toString()}).then((t=>{200!==t.data.code&&(sessionStorage.removeItem("examId"),M()),this.repositoryType=t.data.result.questionDTOList,this.subjectTypeClick(this.repositoryType[0]),console.log(this.repositoryType),this.title=t.data.result.title}))}},[["render",function(t,o,r,c,p,z){const H=d,B=V(g("l-divider"),C),q=V(g("uni-col"),S),M=V(g("uni-row"),I),R=L,P=w,$=N,U=V(g("uni-card"),E),W=k,F=h,Y=T,X=v,G=A,K=_,Z=V(g("uni-section"),O),tt=j,et=V(g("uni-popup-message"),D),st=V(g("uni-popup"),J),nt=V(g("uni-popup-dialog"),Q);return e(),f(m,null,[i(M,null,{default:n((()=>[i(q,{span:5,style:{"margin-top":"30px"}},{default:n((()=>[i(U,{style:{height:"92vh"}},{default:n((()=>[i(B,{color:"#00a60d"},{default:n((()=>[i(H,{style:{"font-size":"20px"}},{default:n((()=>[a("题库名称")])),_:1})])),_:1}),i(H,{style:{"font-family":"'微软雅黑' , serif","font-size":"20px",color:"#8c8c8c",height:"30px","text-align":"center",padding:"5px"}},{default:n((()=>[a(l(p.title),1)])),_:1}),i(B,{color:"#00a60d"},{default:n((()=>[i(H,{style:{"font-size":"20px"}},{default:n((()=>[a("题型")])),_:1})])),_:1}),i(P,null,{default:n((()=>[(e(!0),f(m,null,y(p.repositoryType,((t,o)=>(e(),s(R,{key:t},{default:n((()=>[i(H,null,{default:n((()=>[6!==t.type?(e(),s(H,{key:0,class:"paperCss",style:b("border: #757575 solid 1px;background-color: "+(t.type===p.subjectType?"#b5aa09 ;":"#f9f9f9 ;")),onClick:e=>z.subjectTypeClick(t)},{default:n((()=>[i(H,{style:{color:"#000000"}},{default:n((()=>[i(M,null,{default:n((()=>[i(q,{span:12},{default:n((()=>[x("strong",{style:{"font-size":"20px"}},l(p.subjectTypes[t.type-1]),1)])),_:2},1024),i(q,{span:12},{default:n((()=>[a(" 数量:"+l(t.num),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["style","onClick"])):u("",!0)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),i(B,{color:"#b3b3b3"}),i($,{type:"primary",style:{"margin-top":"10px"},onClick:z.backPage},{default:n((()=>[a("返回")])),_:1},8,["onClick"])])),_:1})])),_:1}),i(q,{span:15,style:{"margin-top":"30px"}},{default:n((()=>[i(U,{style:{height:"92vh"}},{default:n((()=>[i(tt,{"scroll-y":"true",class:"scroll-Y"},{default:n((()=>[i(Z,{title:p.subjectTypes[p.subjectType-1]+"、"+(p.subjectNum+(p.pageNo-1)*p.pageSize),type:"line",padding:""},{default:n((()=>[i(H,{id:"scantronNodes"}),1===p.scantron.type||3===p.scantron.type?(e(),f(m,{key:0},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(P,null,{default:n((()=>[(e(!0),f(m,null,y(p.scantron.answerList,((t,o)=>(e(),s(R,{key:t},{default:n((()=>[i(H,null,{default:n((()=>[i($,{onClick:e=>z.radioAdd(t,o,p.scantron),style:b("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(t.right?"#f9ea0d;":"#f0eff0"))},{default:n((()=>[x("strong",{style:{color:"#0072eb"}},l(t.tag+"、"),1),a(l(t.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})],64)):u("",!0),2===p.scantron.type?(e(),f(m,{key:1},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(P,null,{default:n((()=>[(e(!0),f(m,null,y(p.scantron.answerList,((t,o)=>(e(),s(R,{key:t.value},{default:n((()=>[i(H,null,{default:n((()=>[i($,{onClick:e=>{t.right=!t.right,z.radioAdd(t,o,p.scantron)},style:b("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(t.right?"#f9ea0d;":"#f0eff0"))},{default:n((()=>[x("strong",{style:{color:"#0072eb"}},l(t.tag+"、"),1),a(l(t.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})],64)):u("",!0),4===p.scantron.type?(e(),f(m,{key:2},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(H,null,{default:n((()=>[i(H,{class:"uni-textarea",style:{border:"#8c8c8c solid 2px","border-radius":"5px",height:"20vh"}},{default:n((()=>[i(W,{onBlur:o[0]||(o[0]=t=>z.radioAdd(null,null,p.scantron)),modelValue:p.scantron.subjectiveAnswer,"onUpdate:modelValue":o[1]||(o[1]=t=>p.scantron.subjectiveAnswer=t),"placeholder-style":"color:#c7c7c7",placeholder:"请输入答案"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})],64)):u("",!0),5===p.scantron.type?(e(),f(m,{key:3},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[(e(!0),f(m,null,y(p.scantron.answerList,((t,o)=>(e(),s(R,{key:t.value},{default:n((()=>[i(H,{class:"allceter",style:{"background-color":"#e7f4ff","text-align":"left",padding:"10px","margin-bottom":"10px",border:"#2a7eeb solid 1px","border-radius":"5px"}},{default:n((()=>[i(H,{style:{display:"inline-block","padding-left":"10px"}},{default:n((()=>[x("strong",{style:{"font-size":"20px",color:"#0072eb"}},l(t.tag),1)])),_:2},1024),i(F,{onBlur:e=>z.radioAdd(t.blankcontent,t.tag,p.scantron),class:"uni-input",style:{display:"inline-block","background-color":"white"},type:"text",modelValue:t.blankcontent,"onUpdate:modelValue":e=>t.blankcontent=e,placeholder:t.tag},null,8,["onBlur","modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})],64)):u("",!0),6===p.scantron.type?(e(),f(m,{key:4},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),(e(!0),f(m,null,y(p.scantron.subQuestionList,((o,r)=>(e(),s(H,{class:""},{default:n((()=>[i(U,null,{default:n((()=>[x("strong",null,l(p.subjectNum+"."+o.questionIndex+"、"+o.typeName),1),i(H,{id:"combinationItemNodes"+r,style:{height:"45vh"}},null,8,["id"]),1===o.type||3===o.type?(e(),f(m,{key:0},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(P,null,{default:n((()=>[(e(!0),f(m,null,y(o.answerList,((t,r)=>(e(),s(R,{key:t},{default:n((()=>[i(H,null,{default:n((()=>[i($,{onClick:e=>z.radioAdd(t,r,p.scantron,o),style:b("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(t.right?"#f9ea0d;":"#f0eff0"))},{default:n((()=>[x("strong",{style:{color:"#0072eb"}},l(t.tag+"、"),1),a(l(t.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)])),_:2},1024)],64)):u("",!0),2===o.type?(e(),f(m,{key:1},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(P,null,{default:n((()=>[(e(!0),f(m,null,y(o.answerList,((r,u)=>(e(),s(R,{key:r.value},{default:n((()=>[i(H,null,{default:n((()=>[i($,{onClick:e=>{r.right=!r.right,z.radioAdd(r,t.index0,p.scantron,o)},style:b("margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: "+(r.right?"#f9ea0d;":"#f0eff0"))},{default:n((()=>[x("strong",{style:{color:"#0072eb"}},l(r.tag+"、"),1),a(l(r.content),1)])),_:2},1032,["onClick","style"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)])),_:2},1024)],64)):u("",!0),4===o.type?(e(),f(m,{key:2},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(H,null,{default:n((()=>[i(H,{class:"uni-textarea",style:{border:"#8c8c8c solid 2px","border-radius":"5px",height:"20vh"}},{default:n((()=>[i(W,{modelValue:o.subjectiveAnswer,"onUpdate:modelValue":t=>o.subjectiveAnswer=t,"placeholder-style":"color:#c7c7c7",placeholder:"请输入答案"},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024)])),_:2},1024)])),_:2},1024)],64)):u("",!0),5===o.type?(e(),f(m,{key:3},[i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[(e(!0),f(m,null,y(o.answerList,((t,a)=>(e(),s(R,{key:t.value},{default:n((()=>[i(H,{class:"allceter",style:{"background-color":"#e7f4ff","text-align":"left",padding:"10px","margin-bottom":"10px",border:"#2a7eeb solid 1px","border-radius":"5px"}},{default:n((()=>[i(H,{style:{display:"inline-block","padding-left":"10px"}},{default:n((()=>[x("strong",{style:{"font-size":"20px",color:"#0072eb"}},l(t.tag),1)])),_:2},1024),i(F,{onBlur:e=>z.radioAdd(t.blankcontent,t.tag,p.scantron,o),class:"uni-input",style:{display:"inline-block","background-color":"white"},type:"text",modelValue:t.blankcontent,"onUpdate:modelValue":e=>t.blankcontent=e,placeholder:t.tag},null,8,["onBlur","modelValue","onUpdate:modelValue","placeholder"])])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)],64)):u("",!0),7===o.type?(e(),f(m,{key:4},[i(H,{style:{height:"5vh"}},{default:n((()=>[i(Y,{nodes:o.content},null,8,["nodes"])])),_:2},1024),i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,{style:{height:"500px",width:"700px","background-color":"#ff3807"}},{default:n((()=>[i(G,{style:{height:"500px",width:"700px","background-color":"#8c8c8c"}},{default:n((()=>[i(X,{style:{width:"50px",height:"50px",border:"solid 1px black"},x:t.x,y:t.y},null,8,["x","y"]),i(X,{style:{width:"40px",height:"40px","background-color":"#f90005"},direction:"all",x:t.x,y:t.y,onChange:z.onChange},{default:n((()=>[a(" text ")])),_:1},8,["x","y","onChange"])])),_:1})])),_:1})],64)):u("",!0),8===o.type?(e(),f(m,{key:5},[i(H,{style:{height:"5vh"}},{default:n((()=>[i(Y,{nodes:o.content},null,8,["nodes"])])),_:2},1024),i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(H,{style:{height:"600px",width:"800","background-color":"#8c8c8c"}},{default:n((()=>[i(G,{style:{height:"100%",width:"100%","background-color":"#8c8c8c"}},{default:n((()=>[i(X,{style:{width:"50px",height:"50px",border:"solid 1px black"},x:95,y:95}),i(X,{style:{width:"40px",height:"40px","background-color":"#f90005"},direction:"all",x:t.x,y:t.y,onChange:z.onChange},{default:n((()=>[a(" text ")])),_:1},8,["x","y","onChange"])])),_:1})])),_:1})])),_:1})],64)):u("",!0)])),_:2},1024)])),_:2},1024)))),256))],64)):u("",!0),7===p.scantron.type?(e(),f(m,{key:5},[i($,{onClick:z.restart},{default:n((()=>[a("重置")])),_:1},8,["onClick"]),i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,{style:{height:"600px",width:"800","background-color":"#ffffff"}},{default:n((()=>[i(G,{style:b(`height: 500px;width: 700px;background-color: #8c8c8c;margin: auto;background-image: url('${p.drag[p.subjectNum].background.url}');background-size:${p.drag[p.subjectNum].background.width}px ${p.drag[p.subjectNum].background.height}px;background-repeat: no-repeat;`)},{default:n((()=>[(e(!0),f(m,null,y(p.drag[p.subjectNum].answer,(t=>(e(),s(H,{style:b(`position: absolute;width: ${t.width}px;height: ${t.height}px;border:solid 1px black;left:${t.x}px;top:${t.y}px;`)},{default:n((()=>[a(l(Number(t.id.replace("answer",""))+1),1)])),_:2},1032,["style"])))),256)),(e(!0),f(m,null,y(p.drag[p.subjectNum].option,(t=>(e(),f(m,null,[p.mbvShow?(e(),s(X,{key:0,id:t.id,disabled:!p.disabledDrag,style:b("width: "+t.width+"px;height: "+t.height+"px;background-color: "+t.backgroundColor+";"),direction:"all",x:t.x,y:t.y,onMousedown:e=>z.onMousedown(t),onChange:z.onChange},null,8,["id","disabled","style","x","y","onMousedown","onChange"])):u("",!0),p.mbvShow?u("",!0):(e(),s(X,{key:1,id:t.id,disabled:!p.disabledDrag,style:b("width: "+t.width+"px;height: "+t.height+"px;background-color: "+t.backgroundColor+";"),direction:"all",x:t.x,y:t.y,onMousedown:e=>z.onMousedown(t),onChange:z.onChange},null,8,["id","disabled","style","x","y","onMousedown","onChange"]))],64)))),256))])),_:1},8,["style"])])),_:1})],64)):u("",!0),8===p.scantron.type?(e(),f(m,{key:6},[i(H,{style:{height:"5vh"}}),i(H,null,{default:n((()=>[i(B,{color:"#aaaa7f"})])),_:1}),i(H,null,{default:n((()=>[i(H,{style:{height:"600px",width:"800px","background-color":"#8c8c8c",margin:"auto","padding-top":"50px"}},{default:n((()=>[i(G,{style:{height:"550px",width:"700px","background-color":"#f6f6f6",margin:"auto"}},{default:n((()=>[i(K,{"canvas-id":"lineCanvas",style:{width:"700px",height:"500px"}},{default:n((()=>[(e(!0),f(m,null,y(p.connectionHtml,((t,o)=>(e(),s(H,{style:{display:"inline-block","margin-top":"30px","margin-left":"30px","margin-right":"70px"}},{default:n((()=>[(e(!0),f(m,null,y(t.children,((t,a)=>(e(),s(H,{key:o},{default:n((()=>[i(H,{id:"option"+o+"-"+(a+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)):u("",!0)])),_:1},8,["title"]),p.examObject.records[p.subjectNum-1].disable?(e(),s(H,{key:0,style:{position:"absolute",top:"0","background-color":"rgb(255, 255, 255,0)",width:"100%",height:"140%"}})):u("",!0)])),_:1}),i(H,{style:{padding:"1vh"}},{default:n((()=>[1!==p.scantron.type&&3!==p.scantron.type?(e(),s($,{key:0,disabled:!p.disabledDrag,type:"primary",style:{width:"20%",display:"inline-block","margin-right":"1%"},onClick:z.answerConfirm},{default:n((()=>[a("答案确认 ")])),_:1},8,["disabled","onClick"])):u("",!0),i($,{type:"primary",style:{width:"20%",display:"inline-block"},onClick:o[2]||(o[2]=t=>z.answerInspect(3))},{default:n((()=>[a("答案解析 ")])),_:1})])),_:1}),i(tt,{"scroll-y":"true",style:{height:"22vh",border:"#a7a7a7 solid 1px","border-radius":"10px"}},{default:n((()=>[i(H,{style:{padding:"1%"}},{default:n((()=>[i(H,{style:{height:"20px"}},{default:n((()=>[0===p.answerAnalysis.youAnswerState?(e(),s(H,{key:0,style:{"font-size":"20px",color:"#00ff00"}},{default:n((()=>[x("strong",null,"恭喜你,做对了!")])),_:1})):u("",!0),1===p.answerAnalysis.youAnswerState?(e(),s(H,{key:1,style:{"font-size":"20px",color:"#c10003"}},{default:n((()=>[x("strong",null,"很遗憾,做错了!")])),_:1})):u("",!0)])),_:1}),i(H,{style:{"font-family":"'黑体'","font-size":"20px","padding-top":"10px"}},{default:n((()=>[x("strong",null,"答案:")])),_:1}),i(H,{style:{"font-family":"'楷体'","font-size":"20px","padding-top":"10px"}},{default:n((()=>[a(l(" "+p.answerAnalysis.answer),1)])),_:1}),i(H,{style:{"font-family":"'黑体'","font-size":"20px","padding-top":"10px"}},{default:n((()=>[x("strong",null,"解析:")])),_:1}),null!==p.answerAnalysis.analysis?(e(),s(H,{key:0,style:{"font-family":"'楷体'","font-size":"20px","padding-top":"10px"}},{default:n((()=>[a(l(" "+p.answerAnalysis.analysis),1)])),_:1})):u("",!0)])),_:1})])),_:1}),i(H,null,{default:n((()=>[i($,{type:"primary",style:{"margin-top":"10px",width:"48%",display:"inline-block"},onClick:z.previousQuestion},{default:n((()=>[a("上一题")])),_:1},8,["onClick"]),i($,{type:"primary",style:{"margin-left":"1%","margin-top":"10px",width:"48%",display:"inline-block"},onClick:z.nextQuestion},{default:n((()=>[a("下一题")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1}),i(q,{span:4,style:{"margin-top":"30px"}},{default:n((()=>[i(U,{style:{height:"92vh"}},{default:n((()=>[i(B,{color:"#8f960c",style:{"margin-top":"20px"}},{default:n((()=>[i(H,{style:{"font-size":"20px"}},{default:n((()=>[a("当前题型数量")])),_:1})])),_:1}),i(H,{style:{"font-family":"'微软雅黑', serif","font-size":"20px",color:"#000000",height:"30px","text-align":"center",padding:"10px"}},{default:n((()=>[x("strong",null,"共"+l(this.repository.num)+"题",1)])),_:1}),i(B,{color:"#251e75"},{default:n((()=>[i(H,{style:{"font-size":"20px"}},{default:n((()=>[a("答题卡")])),_:1})])),_:1}),i(H,null,{default:n((()=>[i(tt,{"scroll-y":"true",style:{height:"50vh"}},{default:n((()=>[(e(!0),f(m,null,y(p.examObject.records,((t,o)=>(e(),s(R,{key:t},{default:n((()=>[i(H,{style:{display:"inline-block","margin-left":"5px"},onMousedown:t=>z.radioScantron(o+1)},{default:n((()=>[i(H,null,{default:n((()=>[i($,{type:"radio",style:b("width: 30px;height: 30px;padding:0px;color:#FFFFFF;font-size: 12px;text-align: center;background-color: "+(o+1===p.subjectNum?"#b5aa09;":this.examObject.records[o].isAnswer?"#18da59":"#007aff"))},{default:n((()=>[a(l(o+1+(p.pageNo-1)*p.pageSize),1)])),_:2},1032,["style"])])),_:2},1024),i(H,null,{default:n((()=>[a(l(t.level_dictText),1)])),_:2},1024)])),_:2},1032,["onMousedown"])])),_:2},1024)))),128))])),_:1})])),_:1}),i(H,{style:{"text-align":"center",display:"flex","align-items":"center","font-size":"15px",width:"200px"}},{default:n((()=>[a(" 当前"),i(F,{style:{display:"inline-block",width:"40px",border:"#c1c1c1 solid 1px","border-radius":"3px","font-size":"20px","padding-top":"3px"},modelValue:p.writePageNo,"onUpdate:modelValue":o[3]||(o[3]=t=>p.writePageNo=t),type:"number",min:"1",max:"100",onInput:z.inspect,onBlur:o[4]||(o[4]=t=>z.pageReplace(p.writePageNo,p.pageSize,0))},null,8,["modelValue","onInput"]),a("页,每页"),i(F,{style:{display:"inline-block",width:"40px",border:"#c1c1c1 solid 1px","border-radius":"3px","font-size":"20px","padding-top":"3px"},modelValue:p.pageSize,"onUpdate:modelValue":o[5]||(o[5]=t=>p.pageSize=t),type:"number",onBlur:o[6]||(o[6]=t=>{p.writePageNo=1,z.pageReplace(1,p.pageSize,0)})},null,8,["modelValue"]),a("条 ")])),_:1}),i(B,{color:"#251e75"}),i(H,null,{default:n((()=>[i($,{type:"primary",style:{"margin-top":"10px"},onClick:z.previousPage},{default:n((()=>[a("上一页")])),_:1},8,["onClick"]),i($,{type:"primary",style:{"margin-top":"10px"},onClick:z.nextPage},{default:n((()=>[a("下一页")])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1})])),_:1}),i(st,{ref:"message",type:"message"},{default:n((()=>[i(et,{type:p.msgType,message:p.messageText,duration:2e3},null,8,["type","message"])])),_:1},512),i(st,{ref:"inputDialog",type:"dialog"},{default:n((()=>[i(nt,{ref:"inputClose",title:"提交试卷",onConfirm:t.dialogInputConfirm},{default:n((()=>[i(H,null,{default:n((()=>[i(H,null,{default:n((()=>[a("1、提交当前试卷后不可再次作答")])),_:1}),i(H,null,{default:n((()=>[a("2、本试卷剩余时间不计入下一套")])),_:1}),i(H,null,{default:n((()=>[a("3、最终试卷提交将结束考试")])),_:1}),i(H,{style:{"text-align":"center"}},{default:n((()=>[a("确认提交?")])),_:1})])),_:1})])),_:1},8,["onConfirm"])])),_:1},512),i(st,{ref:"cheat",type:"dialog"},{default:n((()=>[i(nt,{style:{width:"50vh"},ref:"inputClose",title:"作弊提醒"},{default:n((()=>[i(H,{style:{color:"red"}},{default:n((()=>[i(H,null,{default:n((()=>[a("1、鼠标请勿点击窗口之外的地方")])),_:1}),i(H,null,{default:n((()=>[a("2、如果不小心退出全屏,请按F11恢复到全屏")])),_:1}),i(H,null,{default:n((()=>[a("3、鼠标多次点击窗口之外的地方将按作弊处理")])),_:1})])),_:1})])),_:1},512)])),_:1},512)],64)}],["__scopeId","data-v-54e284db"]]);export{U as default};
|