!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,s,i){var a;return a=function(e,s){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,s||"default");if("object"!=t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(s,"string"),(s="symbol"==t(a)?a:String(a))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}System.register(["./index-legacy.a130dba2.js","./TestQuestionsServers-legacy.439bf0a5.js","./TestQuestionOptions-legacy.c86f1da7.js","./LJFlexBox-legacy.f9c3d416.js","./composables-legacy.0c6ce36a.js","./index-legacy.faeb5b7f.js","./LJWWData-legacy.844c3ebc.js","./sortable.esm-legacy.19def5ad.js"],(function(t,s){"use strict";var i,a,n,r,o,u,l,c,d,p,f,v,_=document.createElement("style");return _.textContent=".test-question-results .results-status[data-v-d84b3c41]{height:32px;border-radius:36px;padding:0 5px;background-color:#f6f6f6}.test-question-results .results-status i[data-v-d84b3c41]{font-size:1.4em}.test-question-results .results-status.success[data-v-d84b3c41]{color:#67c23a;background-color:#efffe8}.test-question-results .results-status.error[data-v-d84b3c41]{color:#ff5a59;background-color:#fff7f7}.test-question-results .test-question-explain[data-v-d84b3c41]{margin-top:10px;border-radius:10px;padding:12px;background-color:#f8f8fa}.test-question-results .test-question-explain .answer-label[data-v-d84b3c41]{color:#444242;font-size:14px}.test-question-results .test-question-explain .answer-label span[data-v-d84b3c41]{color:#4284f4}.test-question-results .test-question-explain .analysis-label[data-v-d84b3c41]{margin-top:10px;margin-left:-6px;font-size:12px;color:#7f7f7f}.test-question-results .test-question-explain .answer[data-v-d84b3c41],.test-question-results .test-question-explain .analysis[data-v-d84b3c41]{margin-top:4px;font-size:12px;color:#7f7f7f}.view-the-test-paper-views .test-name[data-v-6dd13c93]{text-align:center;font-size:24px;margin-bottom:30px;width:100%;height:70px;line-height:70px;background-color:#1651ee;color:#fff;border-radius:4px 4px 0 0}.view-the-test-paper-views .test-header[data-v-6dd13c93]{width:60%;margin:20px auto 0}.view-the-test-paper-views .test-header .test-info[data-v-6dd13c93]{border:1px #ccc solid}.view-the-test-paper-views .test-header .test-info .user-info[data-v-6dd13c93]{border-bottom:1px #ccc solid;display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;height:50px;padding:0 15px}.view-the-test-paper-views .test-header .test-info .user-info .user-content[data-v-6dd13c93]{display:flex;justify-content:flex-start;align-items:center;flex-wrap:nowrap;gap:10px}.view-the-test-paper-views .test-header .test-info .statistics[data-v-6dd13c93]{height:90px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;text-align:center}.view-the-test-paper-views .test-header .test-info .statistics .item .value[data-v-6dd13c93]{padding-bottom:6px}.view-the-test-paper-views .test-header .test-info .statistics .item:nth-child(3) .value[data-v-6dd13c93]{color:#fda41a;padding-bottom:6px}.view-the-test-paper-views .test-questions-lists[data-v-6dd13c93]{width:60%;margin:20px auto 0}.test-questions-lists div .lj-test-question-options.details{padding:5px 20px!important}.test-questions-lists div .lj-test-question-options.details .test-question-option-item{padding-left:0}.test-questions-lists div .lj-test-question-options.details .test-question-option-item .iconfont{color:#1651ee}.test-questions-lists div .test-question-results{margin-left:-32px!important}.test-questions-lists div .test-question-results .lj-flex-box.results-status,.test-questions-lists div .test-question-results .test-question-explain{border-radius:4px}\n",document.head.appendChild(_),{setters:[function(t){i=t.n,a=t.b,n=t.r,r=t.o},function(t){o=t.u},function(t){u=t.b,l=t.T,c=t.a},function(t){d=t.L},function(t){p=t.a},function(t){f=t.c},function(t){v=t.L},function(){}],execute:function(){var s={__name:"TestQuestionResults",props:{padding:{type:String,default:"16px 0"},answer:{type:String},user_answer:{type:String},options:{type:Array,default:function(){return[]}},analysis:{type:String}},setup:function(t){var e=t,s=a((function(){return e.answer&&e.user_answer&&e.answer===e.user_answer?"success":"error"})),i=a((function(){var t=e.options.findIndex((function(t){return t.optionName===e.user_answer}));return t>-1?e.options[t].optionContent:""}));return{__sfc:!0,props:e,RESULTS_STATUS:{success:{icon:"el-icon-success",text:"回答正确"},error:{icon:"el-icon-error",text:"回答错误"}},results_status:s,successAnswerContent:i,LJFlexBox:d}}},_=function(){var t=this,s=t._self._c,i=t._self._setupProxy;return s("div",{staticClass:"test-question-results",style:{padding:t.padding}},[s(i.LJFlexBox,{staticClass:"results-status",class:e({},i.results_status,i.results_status)},[s("i",{class:i.RESULTS_STATUS[i.results_status].icon,staticStyle:{"font-size":"16px","margin-left":"5px"}}),s("div",{staticClass:"label",staticStyle:{"font-size":"14px","margin-top":"-2px"}},[t._v(t._s(i.RESULTS_STATUS[i.results_status].text))])]),"error"===i.results_status?s("div",{staticClass:"test-question-explain"},[s("div",{staticClass:"answer-label"},[t._v("正确答案:"),s("span",[t._v(t._s(t.answer)+"、"+t._s(i.successAnswerContent))])]),s("div",{staticClass:"analysis-label"},[t._v("【答案解析】")]),s("div",{staticClass:"analysis"},[t._v(t._s(t.analysis))])]):t._e()],1)},m=[];_._withStripped=!0;var x=i(s,_,m,!1,null,"d84b3c41",null,null);x.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/components/TestQuestions/TestQuestionResults.vue";var g=x.exports,b={__name:"viewTheTestPaperViews",setup:function(t){var e=p(),s=n(e.query.id||null),i=n({}),d=n(e.query.test_paper),_=n({}),m=n([]),x=a((function(){return i.value.id?i.value.test_paper.total_num:0})),b=a((function(){return i.value.id?i.value.test_paper.name:0})),w=a((function(){return i.value.id?f(i.value.right_count,x.value):0}));function y(){HTTP.getReadById("test_record",s.value).then((function(t){i.value=t.data,h()})).catch((function(t){console.log("error:",t)}))}var h=function(){HTTP.getReadById("test_paper",d.value).then((function(t){_.value=t.data;var e=t.data.test_paper_Questions.map((function(t){return t.options=JSON.parse(t.option),t.user_answer="",t}));o(e,t.data.total_score),m.value=JSON.parse(JSON.stringify(e)),q()})).catch((function(t){console.log("error:",t)}))};function q(){HTTP.get("test_question_record",{test_record:s.value,fields:"id,test_record,test_question,answer"}).then((function(t){0===t.code&&t.data.results.map((function(t){var e=m.value.findIndex((function(e){return e.id===t.test_question}));e>-1&&(m.value[e].user_answer=t.answer)}))})).catch((function(t){console.log("error:",t)}))}return r((function(){y()})),{__sfc:!0,route:e,testRecordId:s,testRecordObj:i,testPaperId:d,testPaperObj:_,test_questions_list:m,total_num:x,test_paper_name:b,correctRate:w,getTestRecord:y,getTestQuestions:h,getTestQuestionRecord:q,TestQuestionOptions:u,TestQuestions:l,TestQuestionTitle:c,TestQuestionResults:g,LJWWData:v}}},w=function(){var t=this,e=t._self._c,s=t._self._setupProxy;return e("div",{staticClass:"view-the-test-paper-views"},[e("div",{staticClass:"test-name"},[t._v(t._s(s.test_paper_name))]),e("div",{staticClass:"test-header"},[e("div",{staticClass:"test-info"},[e("div",{staticClass:"user-info"},[e("div",{staticClass:"user-content"},[e("div",{staticClass:"user-name"},[e(s.LJWWData,{attrs:{type:"2",openid:s.testRecordObj.name}})],1),e("div",{staticClass:"user-department"},[e(s.LJWWData,{attrs:{type:"1",openid:s.testRecordObj.dept_name}})],1)]),e("div",{staticClass:"time"},[t._v(t._s(s.testRecordObj.commit_time))])]),e("div",{staticClass:"statistics"},[e("div",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v(t._s(s.total_num))]),e("div",{staticClass:"label"},[t._v("题数")])]),e("div",{staticClass:"item"},[e("div",{staticClass:"value"},[t._v(t._s(s.testRecordObj.right_count))]),e("div",{staticClass:"label"},[t._v("答对")])]),e("div",{staticClass:"item"},[e("div",{staticClass:"value",staticStyle:{color:"#4284F4"}},[t._v(t._s(s.correctRate)+"%")]),e("div",{staticClass:"label"},[t._v("正确率")])])])])]),e("div",{staticClass:"test-questions-lists"},t._l(s.test_questions_list,(function(i,a){return e(s.TestQuestions,{key:i.id,attrs:{padding:"15px 0",item:a}},[e(s.TestQuestionTitle,{attrs:{type:"details",score:i.score,index:a},model:{value:i.content,callback:function(e){t.$set(i,"content",e)},expression:"item.content"}}),e(s.TestQuestionOptions,{attrs:{type:"details",options:i.options,"show-answer":!1,padding:"5px 2em"},model:{value:i.user_answer,callback:function(e){t.$set(i,"user_answer",e)},expression:"item.user_answer"}}),e(s.TestQuestionResults,{attrs:{answer:i.answer,user_answer:i.user_answer,options:i.options,analysis:i.analysis,padding:"5px 2em"}})],1)})),1)])},y=[];w._withStripped=!0;var h=i(b,w,y,!1,null,"6dd13c93",null,null);h.options.__file="E:/十二科技/项目/九号同事/salary-management-web/src/views/personnelRoot/myExam/viewTheTestPaperViews.vue";t("default",h.exports)}}}))}();