lohir
2024-10-17 ac6bbef6786c74e7a86852b1b8bff7f23e8592d8
1
import{_ as I,r as b,o as u,b as v,F as C,h as Q,e,t as m,n as X,a6 as q,s as A,d as a,w as f,g as x,l as P,U as y,V as Y,W as Z,I as H,a8 as ee,Q as W,x as L,y as S,c as M,$ as G,a as se,a1 as te,H as ne,a4 as ie,a5 as ae,f as B}from"./index-Daa5jh-U.js";/* empty css                  */import{E as R}from"./index-Qcw-6caP.js";/* empty css                 */import"./el-tooltip-l0sNRNKZ.js";/* empty css                  */const oe={class:"tag-container flex flex-wrap"},le={class:"tag-item flex items-center"},ce={class:"label text-xs text-gray-500 mr-2"},re={__name:"index",setup(n){const d=b([{name:"正确",bgColor:"#67C23A",borderColor:"#67C23A"},{name:"错误",bgColor:"#F56C6C",borderColor:"#F56C6C"},{name:"当前",bgColor:"#ffffff",borderColor:"#3680fa"}]);return(h,s)=>(u(),v("div",oe,[(u(!0),v(C,null,Q(d.value,t=>(u(),v("div",le,[e("div",ce,m(t.name),1),e("div",{class:"tag flex-shrink-0",style:X({backgroundColor:t.bgColor,borderColor:t.borderColor})},null,4)]))),256))]))}},de=I(re,[["__scopeId","data-v-353cb42c"]]),ue={class:"sheet-container w-full h-full"},_e={class:"sheet-list grid grid-cols-5 gap-4 justify-items-center"},ve=["onClick"],fe={__name:"index",setup(n){const d=q(),{examDetail:h,currentType:s,currentIndex:t,examInfo:i}=A(d),_=b(h.value.map(o=>o.questionType));((o,r)=>{if(Array.isArray(r)&&r.length>0){let g=0;r.forEach(w=>{w.questionList.forEach(T=>{T.isRight=o[g].right,g++})})}})(i.value.navbar,h.value),console.log(h.value);const p=(o,r,g)=>({right:o.isRight===!0,wrong:o.isRight===!1,active:s.value===r&&t.value===g}),l=(o,r)=>{s.value=o,t.value=r};return(o,r)=>{const g=Y,w=Z,T=H;return u(),v("div",ue,[a(T,null,{default:f(()=>[a(w,{modelValue:_.value,"onUpdate:modelValue":r[0]||(r[0]=$=>_.value=$)},{default:f(()=>[(u(!0),v(C,null,Q(x(h),($,k)=>(u(),P(g,{title:$.title,name:$.questionType},{default:f(()=>[e("div",_e,[(u(!0),v(C,null,Q($.questionList,(K,E)=>(u(),v("div",{class:y(["sheet-item cursor-pointer flex justify-center items-center",p(K,$.questionType,E)]),onClick:Ut=>l($.questionType,E)},m(E+1),11,ve))),256))])]),_:2},1032,["title","name"]))),256))]),_:1},8,["modelValue"])]),_:1})])}}},me=I(fe,[["__scopeId","data-v-46ee93dc"]]),he=n=>(L("data-v-8940e6fb"),n=n(),S(),n),pe={class:"grade-container flex justify-center text-white items-center shadow-md"},xe=he(()=>e("div",{class:"label mr-1"},"考试成绩:",-1)),ge={class:"grade font-bold text-3xl text-red-600"},we={__name:"index",setup(n){const d=q(),{examInfo:h}=A(d);return(s,t)=>{const i=W;return u(),v("div",pe,[a(i,{class:"mr-1 text-xl",size:"24"},{default:f(()=>[a(x(ee))]),_:1}),xe,e("div",ge,m(x(h).score),1)])}}},ye=I(we,[["__scopeId","data-v-8940e6fb"]]),U=n=>(L("data-v-618c07c3"),n=n(),S(),n),$e={class:"answer-container w-full h-full flex"},be={class:"answer-content"},Ie={class:"answer-icon flex flex-col justify-center items-center flex-shrink-0"},Te=["innerHTML"],qe={class:"analysis-container"},Ae=U(()=>e("div",{class:"item-label"},"您的答案",-1)),Le={class:"item-info"},Se={class:"analysis-item analysis-right"},Ce=U(()=>e("div",{class:"item-label"},"正确答案",-1)),Qe={class:"item-info"},He={class:"analysis-item text-gray-700"},Me=U(()=>e("div",{class:"item-label"},"解析",-1)),Re=["innerHTML"],ke={__name:"index",setup(n){const d=q(),{currentIndex:h}=A(d),s=b(d.getActiveQuestion),t=_=>{const c=s.value.answer===s.value.questionAnswer;if(_.prefix===s.value.answer)return{right:c,wrong:!c};if(_.prefix===s.value.questionAnswer)return{right:!c,wrong:c}},i=M(()=>({"analysis-right":s.value.isRight,"analysis-wrong":!s.value.isRight}));return(_,c)=>{const p=H;return u(),v("div",$e,[a(p,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(h),activeQuestion:s.value},null,8,["questionIndex","activeQuestion"]),e("div",be,[(u(!0),v(C,null,Q(s.value.questionItemList,(l,o)=>(u(),v("div",{class:y(["answer-item flex",t(l)])},[e("div",Ie,m(l.prefix),1),e("div",{class:"answer-text text-gray-700",innerHTML:l.content},null,8,Te)],2))),256))])]),_:1}),a(p,{class:"flex-1 ml-4"},{default:f(()=>[e("div",qe,[e("div",{class:y(["analysis-item",i.value])},[Ae,e("div",Le,m(s.value.answer),1)],2),e("div",Se,[Ce,e("div",Qe,m(s.value.questionAnswer),1)]),e("div",He,[Me,e("div",{class:"item-info",innerHTML:s.value.analyze},null,8,Re)])])]),_:1})])}}},Ee=I(ke,[["__scopeId","data-v-618c07c3"]]),j=n=>(L("data-v-061d8a9b"),n=n(),S(),n),Ue={class:"answer-container w-full h-full flex"},je={class:"answer-content"},ze={class:"answer-icon flex flex-col justify-center items-center flex-shrink-0"},Ve={class:"answer-text text-gray-700"},De={class:"analysis-container"},Fe=j(()=>e("div",{class:"item-label"},"您的答案",-1)),Oe={class:"item-info"},Be={class:"analysis-item analysis-right"},Ne=j(()=>e("div",{class:"item-label"},"正确答案",-1)),Pe={class:"item-info"},We={class:"analysis-item text-gray-700"},Ge=j(()=>e("div",{class:"item-label"},"解析",-1)),Je=["innerHTML"],Ke={__name:"index",setup(n){const d=q(),{currentIndex:h}=A(d),s=b(d.getActiveQuestion),t=l=>Array.isArray(l)?l:l.split(","),i=t(s.value.answerList),_=t(s.value.questionAnswer),c=l=>{const o=i.includes(l.prefix),r=_.includes(l.prefix);if(o&&r)return{right:!0};if(i.length<_.length){if(!o&&r)return{wrong:!0}}else if(i.length>_.length){if(o&&!r)return{wrong:!0};if(!o&&r)return{right:!0}}else return{right:r,wrong:o}},p=M(()=>({"analysis-right":s.value.isRight,"analysis-wrong":!s.value.isRight}));return(l,o)=>{const r=H;return u(),v("div",Ue,[a(r,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(h),activeQuestion:s.value},null,8,["questionIndex","activeQuestion"]),e("div",je,[(u(!0),v(C,null,Q(s.value.questionItemList,(g,w)=>(u(),v("div",{class:y(["answer-item flex",c(g)])},[e("div",ze,m(g.prefix),1),e("div",Ve,m(g.content),1)],2))),256))])]),_:1}),a(r,{class:"flex-1 ml-4"},{default:f(()=>[e("div",De,[e("div",{class:y(["analysis-item",p.value])},[Fe,e("div",Oe,m(s.value.answerList?s.value.answerList.join(","):"未作答"),1)],2),e("div",Be,[Ne,e("div",Pe,m(s.value.questionAnswer),1)]),e("div",We,[Ge,e("div",{class:"item-info",innerHTML:s.value.analyze},null,8,Je)])])]),_:1})])}}},Xe=I(Ke,[["__scopeId","data-v-061d8a9b"]]),z=n=>(L("data-v-a8dda01e"),n=n(),S(),n),Ye={class:"answer-container w-full h-full flex"},Ze={class:"answer-content"},es={class:"answer-icon flex flex-col justify-center items-center flex-shrink-0"},ss={class:"answer-text text-gray-700"},ts={class:"analysis-container"},ns=z(()=>e("div",{class:"item-label"},"您的答案",-1)),is={class:"item-info"},as={class:"analysis-item analysis-right"},os=z(()=>e("div",{class:"item-label"},"正确答案",-1)),ls={class:"item-info"},cs=z(()=>e("div",{class:"analysis-item text-gray-700"},[e("div",{class:"item-label"},"解析"),e("div",{class:"item-info"},"Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem beatae possimus nostrum facere inventore aliquid vero fuga minus, mollitia temporibus harum commodi, dolores odio nulla aliquam maiores eligendi quis? Ad.")],-1)),rs={__name:"index",setup(n){const d=q(),{currentIndex:h}=A(d),s=b(d.getActiveQuestion),t=_=>{const c=s.value.correct===s.value.right;if(_.prefix===s.value.correct)return{right:c,wrong:!c};if(_.prefix===s.value.right)return{right:!c,wrong:c}},i=M(()=>({"analysis-right":s.value.isRight,"analysis-wrong":!s.value.isRight}));return(_,c)=>{const p=H;return u(),v("div",Ye,[a(p,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(h),activeQuestion:s.value},null,8,["questionIndex","activeQuestion"]),e("div",Ze,[(u(!0),v(C,null,Q(s.value.items,(l,o)=>(u(),v("div",{class:y(["answer-item flex",t(l)])},[e("div",es,m(l.prefix),1),e("div",ss,m(l.content),1)],2))),256))])]),_:1}),a(p,{class:"flex-1 ml-4"},{default:f(()=>[e("div",ts,[e("div",{class:y(["analysis-item",i.value])},[ns,e("div",is,m(s.value.correct?s.value.correct:"未作答"),1)],2),e("div",as,[os,e("div",ls,m(s.value.right),1)]),cs])]),_:1})])}}},ds=I(rs,[["__scopeId","data-v-a8dda01e"]]),V=n=>(L("data-v-65894774"),n=n(),S(),n),us={class:"answer-container w-full h-full flex"},_s={class:"answer-content"},vs={class:"answer-icon flex flex-col justify-center items-center flex-shrink-0"},fs=["innerHTML"],ms={class:"analysis-container"},hs=V(()=>e("div",{class:"item-label"},"您的答案",-1)),ps={class:"item-info"},xs={class:"analysis-item analysis-right"},gs=V(()=>e("div",{class:"item-label"},"正确答案",-1)),ws={class:"item-info"},ys={class:"analysis-item text-gray-700"},$s=V(()=>e("div",{class:"item-label"},"解析",-1)),bs=["innerHTML"],Is={__name:"index",setup(n){const d=q(),{currentType:h,currentIndex:s}=A(d),t=b(d.getActiveQuestion),i=(c,p)=>(Array.isArray(t.value.answerList)&&t.value.answerList[p]&&(c.isActive=!0),{active:c.isActive}),_=M(()=>({"analysis-right":t.value.isRight,"analysis-wrong":!t.value.isRight}));return(c,p)=>{const l=H;return u(),v("div",us,[a(l,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(s),activeQuestion:t.value},null,8,["questionIndex","activeQuestion"]),e("div",_s,[(u(!0),v(C,null,Q(t.value.questionItemList,(o,r)=>(u(),v("div",{class:y(["answer-item flex",i(o)])},[e("div",vs,m(o.prefix),1),e("div",{class:"answer-text text-gray-700",innerHTML:o.content},null,8,fs)],2))),256))])]),_:1}),a(l,{class:"flex-1 ml-4"},{default:f(()=>[e("div",ms,[e("div",{class:y(["analysis-item",_.value])},[hs,e("div",ps,m(t.value.answer),1)],2),e("div",xs,[gs,e("div",ws,m(t.value.questionAnswer),1)]),e("div",ys,[$s,e("div",{class:"item-info",innerHTML:t.value.analyze},null,8,bs)])])]),_:1})])}}},Ts=I(Is,[["__scopeId","data-v-65894774"]]),D=n=>(L("data-v-df8ebbf5"),n=n(),S(),n),qs={class:"answer-container w-full h-full flex"},As={class:"answer-content"},Ls={class:"answer-icon flex flex-col justify-center items-center flex-shrink-0"},Ss=["innerHTML"],Cs={class:"analysis-container"},Qs=D(()=>e("div",{class:"item-label"},"您的答案",-1)),Hs={class:"item-info"},Ms={class:"analysis-item analysis-right"},Rs=D(()=>e("div",{class:"item-label"},"正确答案",-1)),ks={class:"item-info"},Es={class:"analysis-item text-gray-700"},Us=D(()=>e("div",{class:"item-label"},"解析",-1)),js=["innerHTML"],zs={__name:"index",setup(n){const d=q(),{currentType:h,currentIndex:s}=A(d),t=b(d.getActiveQuestion),i=c=>(t.value.answer===c.prefix&&(c.isActive=!0),{active:c.isActive||c.prefix===t.value.answer}),_=M(()=>({"analysis-right":t.value.isRight,"analysis-wrong":!t.value.isRight}));return(c,p)=>{const l=H;return u(),v("div",qs,[a(l,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(s),activeQuestion:t.value},null,8,["questionIndex","activeQuestion"]),e("div",As,[(u(!0),v(C,null,Q(t.value.questionItemList,(o,r)=>(u(),v("div",{class:y(["answer-item flex",i(o)])},[e("div",Ls,m(o.prefix),1),e("div",{class:"answer-text text-gray-700",innerHTML:o.content},null,8,Ss)],2))),256))])]),_:1}),a(l,{class:"flex-1 ml-4"},{default:f(()=>[e("div",Cs,[e("div",{class:y(["analysis-item",_.value])},[Qs,e("div",Hs,m(t.value.answer),1)],2),e("div",Ms,[Rs,e("div",ks,m(t.value.questionAnswer),1)]),e("div",Es,[Us,e("div",{class:"item-info",innerHTML:t.value.analyze},null,8,js)])])]),_:1})])}}},Vs=I(zs,[["__scopeId","data-v-df8ebbf5"]]),F=n=>(L("data-v-6e437204"),n=n(),S(),n),Ds={class:"answer-container w-full h-full flex"},Fs={class:"answer-content"},Os={class:"analysis-container"},Bs=F(()=>e("div",{class:"item-label"},"您的答案",-1)),Ns=["innerHTML"],Ps={class:"analysis-item analysis-right"},Ws=F(()=>e("div",{class:"item-label"},"正确答案",-1)),Gs=["innerHTML"],Js={class:"analysis-item text-gray-700"},Ks=F(()=>e("div",{class:"item-label"},"解析",-1)),Xs=["innerHTML"],Ys={__name:"index",setup(n){const d=q(),h={serverUrl:"/api/path/to/server",UEDITOR_HOME_URL:"/static/UEditorPlus/",UEDITOR_CORS_URL:"/static/UEditorPlus/",initialFrameWidth:"95%",initialFrameHeight:400,toolbars:[["fullscreen","undo","redo","|","fontfamily","fontsize","|","forecolor","backcolor","bold","italic","underline","strikethrough","|","removeformat","formatmatch","autotypeset","blockquote","pasteplain","|","inserttable","deletetable","insertparagraph","insertrow","deleterow","insertcol","deletecol","mergecells","mergerow","mergecol","splittocells","splittorows","splittocols","|","formula"]]},{currentType:s,currentIndex:t}=A(d),i=b(d.getActiveQuestion),_=b(i.value.questionAnswer),c=M(()=>({"analysis-right":i.value.isRight,"analysis-wrong":!i.value.isRight}));return(p,l)=>{const o=G("vue-ueditor-wrap"),r=H;return u(),v("div",Ds,[a(r,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(t),activeQuestion:i.value},null,8,["questionIndex","activeQuestion"]),e("div",Fs,[a(o,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=g=>_.value=g),"editor-id":"editor",config:h,editorDependencies:["ueditor.config.js","ueditor.all.js"]},null,8,["modelValue"])])]),_:1}),a(r,{class:"flex-1 ml-4"},{default:f(()=>[e("div",Os,[e("div",{class:y(["analysis-item",c.value])},[Bs,e("div",{class:"item-info",innerHTML:i.value.answer},null,8,Ns)],2),e("div",Ps,[Ws,e("div",{class:"item-info",innerHTML:i.value.questionAnswer},null,8,Gs)]),e("div",Js,[Ks,e("div",{class:"item-info",innerHTML:i.value.analyze},null,8,Xs)])])]),_:1})])}}},N=I(Ys,[["__scopeId","data-v-6e437204"]]),O=n=>(L("data-v-9cb3dea2"),n=n(),S(),n),Zs={class:"answer-container w-full h-full flex"},et={class:"answer-content"},st={class:"analysis-container"},tt=O(()=>e("div",{class:"item-label"},"您的答案",-1)),nt=["innerHTML"],it={class:"analysis-item analysis-right"},at=O(()=>e("div",{class:"item-label"},"正确答案",-1)),ot=["innerHTML"],lt={class:"analysis-item text-gray-700"},ct=O(()=>e("div",{class:"item-label"},"解析",-1)),rt=["innerHTML"],dt={__name:"index",setup(n){const d=q(),h={serverUrl:"/api/path/to/server",UEDITOR_HOME_URL:"/static/UEditorPlus/",UEDITOR_CORS_URL:"/static/UEditorPlus/",initialFrameWidth:"95%",initialFrameHeight:400,toolbars:[["fullscreen","undo","redo","|","fontfamily","fontsize","|","forecolor","backcolor","bold","italic","underline","strikethrough","|","removeformat","formatmatch","autotypeset","blockquote","pasteplain","|","inserttable","deletetable","insertparagraph","insertrow","deleterow","insertcol","deletecol","mergecells","mergerow","mergecol","splittocells","splittorows","splittocols","|","formula"]]},{currentType:s,currentIndex:t}=A(d),i=b(d.getActiveQuestion),_=b(i.value.questionAnswer),c=M(()=>({"analysis-right":i.value.isRight,"analysis-wrong":!i.value.isRight}));return(p,l)=>{const o=G("vue-ueditor-wrap"),r=H;return u(),v("div",Zs,[a(r,{class:"flex-1 mr-4"},{default:f(()=>[a(R,{class:"mb-5",questionIndex:x(t),activeQuestion:i.value},null,8,["questionIndex","activeQuestion"]),e("div",et,[a(o,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=g=>_.value=g),"editor-id":"editor",config:h,editorDependencies:["ueditor.config.js","ueditor.all.js"]},null,8,["modelValue"])])]),_:1}),a(r,{class:"flex-1 ml-4"},{default:f(()=>[e("div",st,[e("div",{class:y(["analysis-item",c.value])},[tt,e("div",{class:"item-info",innerHTML:i.value.answer},null,8,nt)],2),e("div",it,[at,e("div",{class:"item-info",innerHTML:i.value.questionAnswer},null,8,ot)]),e("div",lt,[ct,e("div",{class:"item-info",innerHTML:i.value.analyze},null,8,rt)])])]),_:1})])}}},ut=I(dt,[["__scopeId","data-v-9cb3dea2"]]),J=n=>(L("data-v-b07b7a5d"),n=n(),S(),n),_t={class:"exam-container w-screen h-screen bg-slate-50 relative overflow-hidden"},vt=J(()=>e("div",{class:"top-bg bg-blue-500"},null,-1)),ft={class:"exam-content"},mt={class:"exam-wrapper container mx-auto h-full flex flex-col"},ht={class:"exam-header flex items-center mt-12 mb-10"},pt={class:"title-container text-3xl font-semibold text-white mr-8"},xt={class:"return-container grow flex justify-end"},gt={class:"exam-main grow flex justify-between"},wt={class:"answer-wrapper answer-left mr-8 shadow-xl p-4 box-border"},yt={class:"wrapper h-full flex flex-col items-center"},$t={class:"title-wrapper w-full flex justify-between items-center mb-5"},bt=J(()=>e("div",{class:"title text-xl font-semibold"},"答题卡",-1)),It={class:"sheet-wrapper w-full grow relative my-5"},Tt={class:"sheet-content absolute top-0 bottom-0 w-full"},qt={class:"answer-wrapper answer-right grow shadow-xl p-4"},At={class:"wrapper h-full flex flex-col"},Lt={class:"title-wrapper w-full flex mb-5"},St={class:"title text-xl font-semibold"},Ct={class:"main-wrapper w-full grow relative my-5"},Qt={class:"main-content absolute top-0 bottom-0 w-full"},Ht={class:"tool-wrapper flex justify-end"},Mt={class:"button-container flex items-center"},Rt={class:"button-item"},kt={class:"button-item"},Et={__name:"index",setup(n){const d=se(),h=q(),{currentType:s,currentIndex:t,examDetail:i,examType:_,examInfo:c}=A(h),p={1:Ee,2:Xe,3:Vs,4:Ts,5:N,6:ds,7:ut,8:N},l=()=>{t.value--,r()},o=()=>{t.value++,r()},r=()=>{let w=0;const T=i.value.find(($,k)=>$.questionType===s.value?(w=k,$):!1);T&&(t.value>=T.questionList.length?(w++,i.value[w]?(s.value=i.value[w].questionType,t.value=0):(s.value=T.questionType,t.value=T.questionList.length-1)):t.value<0&&(w--,i.value[w]?(s.value=i.value[w].questionType,t.value=i.value[w].questionList.length-1):(s.value=T.questionType,t.value=0)))},g=()=>{d.back()};return(w,T)=>{const $=W,k=ne;return u(),v("div",_t,[vt,e("div",ft,[e("div",mt,[e("div",ht,[e("div",pt,m(x(c).examName),1),a(ye),e("div",xt,[a(k,{type:"danger",size:"large",circle:"",onClick:g},{icon:f(()=>[a($,{size:20},{default:f(()=>[a(x(ie))]),_:1})]),_:1})])]),e("div",gt,[e("div",wt,[e("div",yt,[e("div",$t,[bt,a(de)]),e("div",It,[e("div",Tt,[a(me)])])])]),e("div",qt,[e("div",At,[e("div",Lt,[e("div",St,m(x(_)[x(s)])+" ("+m(x(h).getActiveQuestion.score)+"分) ",1)]),e("div",Ct,[e("div",Qt,[a(te,{appear:"",name:"fade-transform",mode:"out-in"},{default:f(()=>[(u(),P(ae(p[x(s)]),{key:x(t)}))]),_:1})])]),e("div",Ht,[e("div",Mt,[e("div",Rt,[a(k,{class:"tool-button",onClick:l},{default:f(()=>[B("上一题")]),_:1})]),e("div",kt,[a(k,{class:"tool-button",type:"primary",onClick:o},{default:f(()=>[B("下一题")]),_:1})])])])])])])])])])}}},Bt=I(Et,[["__scopeId","data-v-b07b7a5d"]]);export{Bt as default};