!function(){function t(t,a){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,a){if(!t)return;if("string"==typeof t)return e(t,a);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return e(t,a)}(t))||a&&t&&"number"==typeof t.length){s&&(t=s);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,p=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return o=t.done,t},e:function(t){p=!0,i=t},f:function(){try{o||null==s.return||s.return()}finally{if(p)throw i}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,s=new Array(e);a<e;a++)s[a]=t[a];return s}System.register(["./vendor-legacy-2701520b.js","./TestQuestionOptions-legacy-a61236af.js","./LJDivider-legacy-83f0bf23.js","./TestQuestionsServers-legacy-0812c467.js","./index-legacy-2b663974.js","./LJDivider.vue_vue_type_style_index_0_scoped_b367bc80_lang-legacy-45b10d3a.js"],(function(e,a){"use strict";var s,n,r,i,o,p,u,l,d,c,f,v,b=document.createElement("style");return b.textContent=".back[data-v-b8ab498a]{display:flex;justify-content:flex-end;padding:10px 10px 0 0}.test-paper-details[data-v-b8ab498a]{font-size:15px;background-color:#fff;border-radius:5px}.test-paper-details .test-paper-header[data-v-b8ab498a],.test-paper-details .test-questions-lists[data-v-b8ab498a]{max-width:80%;margin:0 auto}.test-paper-details .test-paper-header[data-v-b8ab498a]{white-space:nowrap;padding-top:20px}.test-paper-details .test-paper-header .test-paper-name[data-v-b8ab498a],.test-paper-details .test-paper-header .test-paper-info[data-v-b8ab498a]{width:fit-content;margin:0 auto}.test-paper-details .test-paper-header .test-paper-name[data-v-b8ab498a]{font-size:26px;margin-bottom:10px}.test-paper-details .test-paper-header .test-paper-info[data-v-b8ab498a]{display:grid;grid-template-columns:auto auto auto;gap:20px}.test-paper-details .test-questions-lists[data-v-b8ab498a]{margin-top:20px}\n",document.head.appendChild(b),{setters:[function(t){s=t.g,n=t.u,r=t.r,i=t.o,o=t.e},function(t){p=t.a,u=t.T,l=t.b},function(t){d=t.T,c=t.L},function(t){f=t.u},function(t){v=t.n},function(){}],execute:function(){e("default",v({__name:"testPaperDetails",setup:function(e){var a=s(),v=n(),b=r(a.query.id||null),y=r({}),_=r([]),m=function(){if(!b.value)return o.exports.Message.error("缺失试卷ID");HTTP.getReadById("test_paper",b.value).then((function(e){var a,s=e.data,n=t(s.test_paper_Questions);try{for(n.s();!(a=n.n()).done;){var r=a.value;r.options=JSON.parse(r.option)}}catch(i){n.e(i)}finally{n.f()}f(s.test_paper_Questions,s.total_score),_.value=s.test_paper_Questions,y.value=s})).catch((function(t){console.log("error:",t)}))};return i((function(){m()})),{__sfc:!0,route:a,router:v,testPaperId:b,testPapers:y,test_paper_Questions:_,getTestQuestions:m,back:function(){v.back(-1)},TestQuestionTitle:p,TestQuestions:u,TestQuestionOptions:l,TestQuestionAnalysis:d,LJDivider:c}}},(function(){var t=this,e=t._self._c,a=t._self._setupProxy;return e("div",{staticClass:"test-paper-details"},[e("div",{staticClass:"back"},[e("el-button",{attrs:{type:"primary",plain:""},on:{click:a.back}},[t._v("关闭")])],1),e("div",{staticClass:"test-paper-header"},[e("div",{staticClass:"test-paper-name"},[t._v(t._s(a.testPapers.name))]),e("div",{staticClass:"test-paper-info"},[e("div",[t._v("总分"+t._s(a.testPapers.total_score))]),e("div",[t._v("共"+t._s(a.testPapers.total_num)+"题")]),e("div",[t._v(" 考试时间："+t._s(a.testPapers.start_date)+" ~ "+t._s(a.testPapers.end_date)+" ")])])]),e(a.LJDivider,{attrs:{padding:"24px 0"}}),e("div",{staticClass:"test-questions-lists"},t._l(a.test_paper_Questions,(function(s,n){return e(a.TestQuestions,{key:s.id,attrs:{item:n}},[e(a.TestQuestionTitle,{attrs:{type:"details",score:s.score,index:n},model:{value:s.content,callback:function(e){t.$set(s,"content",e)},expression:"item.content"}}),e(a.TestQuestionOptions,{attrs:{type:"details",options:s.options,padding:"5px 2em"},model:{value:s.answer,callback:function(e){t.$set(s,"answer",e)},expression:"item.answer"}}),e(a.TestQuestionAnalysis,{attrs:{type:"details",value:s.analysis}}),e(a.LJDivider,{attrs:{padding:"24px 0"}})],1)})),1)],1)}),[],!1,null,"b8ab498a",null,null).exports)}}}))}();
