(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fc721f36"],{"2d48":function(t,e,s){"use strict";s.d(e,"a",(function(){return m}));var a=s("8ce4"),i=s("7b67");async function n(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_index_1","post_json",t)}async function o(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_index_2","post_json",t)}async function r(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_index_3","post_json",t)}async function l(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_index_all_clazz_list","post_json",t)}async function c(t){return Object(a["a"])(i["b"]+"admin/experiment/oneSchoolExperimentInfoList?schoolId="+t,"get",{})}async function d(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_clazz_1","post_json",t)}async function u(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_clazz_2","post_json",t)}async function p(t){return Object(a["a"])(i["c"]+"consumer/statistic/dashboard_clazz_3","post_json",t)}async function g(t){return Object(a["a"])(i["c"]+"consumer/statistic/getClazzAnswersAnalysis","get",t)}class m{static async dashboard_index_all_clazz_list(t){let[e]=await l({schoolId:t});return 2e4===e.code&&e.data}static async getOneSchoolExperimentInfoList(t){let[e]=await c(t);return 2e4===e.code&&e.data}static async dashboard_index_1(t,e,s,a,i){let[o]=await n({schoolId:t,clazzId:e,startTime:s,endTime:a,experimentId:i});return 2e4===o.code&&o.data}static async dashboard_index_2(t,e,s,a,i){let[n]=await o({schoolId:t,clazzId:e,startTime:s,endTime:a,experimentId:i});return 2e4===n.code&&n.data}static async dashboard_index_3(t,e,s,a){let[i]=await r({schoolId:t,clazzId:e,startTime:s,endTime:a});return 2e4===i.code&&i.data}static async getDashboardClazzExperiments(t){let[e]=await d({clazzId:t});return 2e4===e.code&&e.data}static async getDashboardClazzOneStudentOverview(t){let[e]=await u({studentId:t,startTime:null,endTime:null,experimentId:null});return 2e4===e.code&&e.data}static async getOneStudentOneExperimentRankOfClass(t,e,s,a){let[i]=await p({studentId:t,clazzId:e,experimentId:s,schoolId:a});return 2e4===i.code&&i.data}static async getClazzAnswersAnalysis(t){let[e]=await g({scheduleId:t});return 2e4===e.code&&e.data}}},"3d59":function(t,e,s){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"answer-detail-panel"},[t.scoreInfo&&Object.keys(t.scoreInfo).length?e("el-descriptions",{staticClass:"score-summary",attrs:{column:4,size:"small",border:""}},[t.neutral||void 0===t.scoreInfo.score?t._e():e("el-descriptions-item",{attrs:{label:"分数"}},[t._v(t._s(t.scoreInfo.score))]),e("el-descriptions-item",{attrs:{label:"答对题数"}},[t._v(" "+t._s(void 0===t.scoreInfo.correctCount?"--":t.scoreInfo.correctCount)+" / "+t._s(void 0===t.scoreInfo.questionCount?t.answers.length:t.scoreInfo.questionCount)+" ")]),e("el-descriptions-item",{attrs:{label:"提交时间"}},[t._v(t._s(t.submitTimeText()))]),e("el-descriptions-item",{attrs:{label:"用时"}},[t._v(t._s(t.durationText))])],1):t._e(),e("el-table",{staticClass:"detail-table",attrs:{"header-cell-style":{background:"#fafafa",color:"#555"},data:t.answers,fit:""}},[e("el-table-column",{attrs:{label:"题目及标签",align:"left","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"question-content"},[t._v(t._s(t.property(s.row.id,"title")))]),t.questionTags(s.row).length?e("div",{staticClass:"tag-list"},[e("span",{staticClass:"caption"},[t._v("题目标签")]),t._l(t.questionTags(s.row),(function(s,a){return e("el-tooltip",{key:t.tagKey(s,a),attrs:{content:t.tagTooltip(s),placement:"top"}},[e("el-tag",{attrs:{size:"mini",type:"success",effect:"plain"}},[t._v(t._s(t.tagLabel(s)))])],1)}))],2):t._e()]}}])}),e("el-table-column",{attrs:{label:"选项及标签",align:"left","min-width":"360"},scopedSlots:t._u([{key:"default",fn:function(s){return t._l(t.property(s.row.id,"options"),(function(a,i){return e("div",{key:i,staticClass:"option",class:{selected:t.isSelected(s.row,a,i)}},[e("div",{staticClass:"option-text"},[t._v(t._s(t.optionText(a)))]),t.optionTags(s.row.id,a,i).length?e("div",{staticClass:"tag-list"},t._l(t.optionTags(s.row.id,a,i),(function(s,a){return e("el-tooltip",{key:t.tagKey(s,a),attrs:{content:t.tagTooltip(s),placement:"top"}},[e("el-tag",{attrs:{size:"mini",type:"warning",effect:"plain"}},[t._v(t._s(t.tagLabel(s)))])],1)})),1):t._e()])}))}}])}),e("el-table-column",{attrs:{label:"参考答案",align:"center",width:"110"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{staticClass:"ref-answer"},[t._v(" "+t._s(t.property(s.row.id,"standardAnswer")||t.property(s.row.id,"answer")||"--")+" ")])]}}])}),e("el-table-column",{attrs:{label:"学员答案",align:"center","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"student-answer",class:{empty:!s.row.answer}},[t._v(" "+t._s(s.row.answer||"未答")+" ")]),t._l(t.selectedGroups(s.row),(function(s,a){return e("div",{key:a,staticClass:"selected-group"},[e("span",{staticClass:"caption"},[t._v(t._s(s.optionKey||"所选项")+" 命中")]),t._l(t.normalizeTags(s.tags),(function(s,a){return e("el-tag",{key:t.tagKey(s,a),attrs:{size:"mini",type:"warning"}},[t._v(t._s(t.tagLabel(s)))])}))],2)}))]}}])}),e("el-table-column",{attrs:{label:"答题结果",align:"center",width:"90"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{class:!0===s.row.isCorrect?"correct":"wrong"},[t._v(" "+t._s(!0===s.row.isCorrect?"正确":"错误")+" ")])]}}])}),t.neutral?t._e():e("el-table-column",{attrs:{label:"扣分",align:"center",width:"90"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{class:s.row.deductScore>0?"wrong":""},[t._v(" "+t._s(s.row.deductScore>0?"-"+s.row.deductScore+" 分":"0")+" ")])]}}],null,!1,245762671)})],1)],1)},i=[],n=(s("e9f5"),s("910d"),s("f665"),s("ab43"),s("9204")),o={name:"AnswerDetailPanel",filters:{dateFormat2:n["b"]},props:{answers:{type:Array,default:()=>[]},questions:{type:[Object,Array],default:()=>({})},scoreInfo:{type:Object,default:()=>({})},neutral:{type:Boolean,default:!1}},computed:{durationText(){const t=void 0!==this.scoreInfo.durationSeconds?this.scoreInfo.durationSeconds:Number(this.scoreInfo.usedTime||0);return t?`${Math.floor(t/60)} 分 ${Math.floor(t%60)} 秒`:"--"}},methods:{submitTimeText(){const t=this.scoreInfo.submittedAt||this.scoreInfo.updatetime;return t?this.$options.filters.dateFormat2(t):"--"},config(t){if(Array.isArray(this.questions))return this.questions.find(e=>(e.questionId||e.id)===t)||null;let e=this.scoreInfo.questionVersion||this.questions&&this.questions.activeVersion||"v1.0",s=this.questions&&this.questions.versions||{},a=s[e]||s[this.questions.activeVersion]||s["v1.0"];return a&&a.questions?a.questions[t]:null},property(t,e){const s=this.config(t);return s&&s[e]||("options"===e?[]:"")},normalizeTags(t){return t?(Array.isArray(t)?t:[t]).filter(Boolean):[]},questionTags(t){const e=this.normalizeTags(t&&t.questionTags);if(e.length)return e;const s=this.config(t&&t.id);return this.normalizeTags(s&&(s.questionTags||s.tags))},optionKey(t,e){return t&&"object"===typeof t?String(t.key||t.label||String.fromCharCode(65+e)).trim().toUpperCase():String.fromCharCode(65+e)},optionText(t){return t&&"object"===typeof t?t.text||t.title||t.label||"":void 0===t||null===t?"":String(t)},optionTags(t,e,s){const a=this.config(t),i=a&&a.optionTags,n=e&&"object"===typeof e?e.tags:null;if(!i)return this.normalizeTags(n);const o=this.optionKey(e,s),r=this.optionText(e);return this.normalizeTags(i[o]||i[String(s)]||i[r]||n)},answerKeys(t){return String(t||"").replace(/[，,;；|]/g,"、").split("、").map(t=>t.trim()).filter(Boolean).map(t=>/^[a-z]/i.test(t)?t.charAt(0).toUpperCase():t)},isSelected(t,e,s){return this.answerKeys(t&&t.answer).indexOf(this.optionKey(e,s))>=0},selectedGroups(t){return Array.isArray(t&&t.selectedOptionTags)?t.selectedOptionTags.filter(t=>this.normalizeTags(t&&t.tags).length):[]},tagLabel(t){const e=t&&(t.name||t.tagName||t.id||t.tagId)||"未命名标签";return t&&t.dimension?`${t.dimension} · ${e}`:e},tagTooltip(t){const e=t&&Array.isArray(t.dimensionPathNames)?t.dimensionPathNames.filter(Boolean).join(" / "):t&&t.dimension||"",s=t&&t.description||"";return e&&s?`${e}：${s}`:s||e||"标签快照"},tagKey(t,e){return`${t&&(t.id||t.tagId||t.name)||"tag"}_${e}`}}},r=o,l=(s("c5cf"),s("2877")),c=Object(l["a"])(r,a,i,!1,null,"5e44b340",null);e["a"]=c.exports},4694:function(t,e,s){},"657b":function(t,e,s){},6920:function(t,e,s){},"8aee":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-container"},[e("div",{staticClass:"page-title flex flex-between"},[e("div",{staticClass:"left"},[e("span",{staticClass:"dot"}),e("span",{staticClass:"title"},[t._v(t._s(t.title))])]),e("div",{staticClass:"right"},[e("el-button",{attrs:{type:"primary",size:"small",loading:t.exportLearnLogLoading},on:{click:function(e){t.ListMethods().clickExportLearnLogBtn()}}},[t._v("导出学习记录")]),e("el-button",{attrs:{type:"success",size:"small",loading:t.exportScoreLoading},on:{click:function(e){t.ListMethods().clickExportScoreBtn()}}},[t._v("导出成绩")]),t.experiment.questions&&t.experiment.questions.activeVersion?e("el-button",{attrs:{type:"warning",size:"small"},on:{click:function(e){t.AnswersMethods().clickShowClazzAnswerAnalysis()}}},[t._v("查看答题分析")]):t._e()],1)]),e("div",{staticClass:"filter-container clearFix"},[e("list-search-filter",{attrs:{"search-filter":t.lists.searchFilter},on:{clickSearchFilterBtn:e=>t.ListMethods().clickSearchFilterBtn(e)}},[e("div",{attrs:{slot:"right-container"},slot:"right-container"})])],1),e("div",{staticClass:"table-container"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lists.loading,expression:"lists.loading"}],staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#fafafa",color:"#555"},data:t.lists.list,"element-loading-text":"加载中",fit:""},on:{"sort-change":e=>t.ListMethods().sortChange(e)}},[e("el-table-column",{attrs:{label:"账号",prop:"studentaccount",align:"center",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.studentaccount))])]}}])}),e("el-table-column",{attrs:{label:"姓名",align:"center"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.studentname))])]}}])}),e("el-table-column",{attrs:{label:"行政班级",align:"center"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",[t._v(t._s(s.row.gradeName)+" - "+t._s(s.row.administrationClazzName))])]}}])}),e("el-table-column",{attrs:{align:"center",prop:"experimentscore",sortable:"custom",width:"200"},scopedSlots:t._u([{key:"header",fn:function(s){return[e("span",[t._v("实验分数 "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"若多次实验，显示最高分",placement:"top"}},[e("i",{staticClass:"el-icon-warning"})])],1)]}},{key:"default",fn:function(s){return[e("div",{staticClass:"experiment-score"},[s.row.isfinishexp?e("span",[t._v(t._s(t._f("numberFormat")(s.row.experimentscore)))]):t._e(),s.row.studentScoreEntities.length>0?e("el-dropdown",[e("span",{staticClass:"el-dropdown-link"},[e("span",{staticStyle:{color:"#0e77d1","margin-left":"10px",display:"inline-block",cursor:"pointer"}},[t._v(" "+t._s(s.row.studentScoreEntities.length)+"次 "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})])]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(s.row.studentScoreEntities,(function(a,i){return e("el-dropdown-item",{key:i},[e("span",{class:a.score==s.row.experimentscore?"light":"",on:{click:function(e){t.AnswersMethods().clickShowAnswerBtn(a)}}},[t._v(" "+t._s(t._f("dateFormat")(a.updatetime))+" 提交的实验分数 "+t._s(t._f("numberFormat")(a.score))+"分 "),t.experiment.questions&&t.experiment.questions.activeVersion?e("el-button",{staticStyle:{cursor:"pointer","margin-left":"5px"},attrs:{type:"text",size:"mini"}},[t._v("查看答题详情")]):t._e()],1)])})),1)],1):t._e()],1),s.row.isfinishexp?t._e():e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{label:"学习次数",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("span",{},[e("span",[t._v(t._s(s.row.loginNum)+"次")]),e("span",[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.clickViewLoginLog(s.row)}}},[t._v("查看")])],1)])]}}])}),e("el-table-column",{attrs:{align:"center",prop:"labreportscore",sortable:"custom",width:"200"},scopedSlots:t._u([{key:"header",fn:function(s){return[e("span",[t._v("实验报告 "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"",placement:"top"}},[e("i",{staticClass:"el-icon-warning"})])],1)]}},{key:"default",fn:function(s){return[s.row.labreportstatus?e("span",[t._v(t._s(t._f("numberFormat")(s.row.labreportscore)))]):t._e(),!s.row.labreportstatus&&s.row.labreportcontent?e("span",[t._v("待批改")]):t._e(),s.row.labreportcontent?t._e():e("span",[t._v("未提交")])]}}])}),e("el-table-column",{attrs:{align:"center",prop:"totalscore",sortable:"custom",width:"200"},scopedSlots:t._u([{key:"header",fn:function(s){return[e("span",[t._v("综合分数 "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"综合分数=实验分*0.4+实验报告分*0.6",placement:"top"}},[e("i",{staticClass:"el-icon-warning"})])],1)]}},{key:"default",fn:function(s){return[s.row.isfinishexp?e("span",[t._v(t._s(t._f("numberFormat")(s.row.totalscore)))]):t._e(),s.row.isfinishexp?t._e():e("span",[t._v("--")])]}}])}),e("el-table-column",{attrs:{align:"center",label:"操作",width:"250","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.labreportcontent?e("el-button",{attrs:{type:"text",size:"mini",round:""},on:{click:e=>t.ListMethods().clickViewBtn(s.row,s.$index)}},[t._v("批改实验报告 ")]):t._e()]}}])})],1)],1),e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{background:"","current-page":t.lists.pages.number,"page-size":t.lists.pages.size,layout:"total,prev, pager, next,sizes,jumper",total:t.lists.pages.totalElements,"page-count":t.lists.pages.totalPages},on:{"current-change":e=>t.ListMethods().pageChange(e),"update:currentPage":function(e){return t.$set(t.lists.pages,"number",e)},"update:current-page":function(e){return t.$set(t.lists.pages,"number",e)},"update:pageSize":function(e){return t.$set(t.lists.pages,"size",e)},"update:page-size":function(e){return t.$set(t.lists.pages,"size",e)},"size-change":e=>t.ListMethods().pageLimitChange(e)}})],1),e("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,title:t.entityInfo.title,visible:t.entityInfo.dialog,width:"1000px",center:""},on:{"update:visible":function(e){return t.$set(t.entityInfo,"dialog",e)}}},[e("div",{staticClass:"dialog-container report-container"},[e("div",{staticClass:"header flex flex-between"},[e("div",{staticClass:"li"},[e("span",{staticClass:"title"},[t._v("姓名：")]),e("span",{staticClass:"content"},[t._v(t._s(t.entityInfo.edit.studentname))])]),e("div",{staticClass:"li"},[e("span",{staticClass:"title"},[t._v("账号：")]),e("span",{staticClass:"content"},[t._v(t._s(t.entityInfo.edit.studentaccount))])]),e("div",{staticClass:"li"},[e("span",{staticClass:"title"},[t._v("教学班：")]),e("span",{staticClass:"content"},[t._v(t._s(t.clazzName))])]),e("div",{staticClass:"li"},[e("span",{staticClass:"title"},[t._v("报告提交时间：")]),e("span",{staticClass:"content"},[t._v(t._s(t._f("dateFormat")(t.entityInfo.edit.labreportTime)))])])]),e("div",{staticClass:"text-container html-view limit-height",domProps:{innerHTML:t._s(t.entityInfo.edit.labreportcontent)}}),e("div",{staticClass:"footer flex flex-between"},[e("div",{staticClass:"left flex flex-start"},[e("span",{staticClass:"title"},[t._v("分数(0到100)：")]),e("el-input",{staticStyle:{width:"200px"},attrs:{type:"number"},model:{value:t.entityInfo.edit.labreportscore,callback:function(e){t.$set(t.entityInfo.edit,"labreportscore",t._n(e))},expression:"entityInfo.edit.labreportscore"}})],1),e("div",{staticClass:"right flex flex-end"},[e("div",{staticStyle:{color:"#999"}},[t._v(" 批阅教师:"),t.entityInfo.edit.labreportcheckman?e("span",[t._v(" "+t._s(t.entityInfo.edit.labreportcheckman)+t._s(" ")+t._s(t._f("dateFormat")(t.entityInfo.edit.labreportchecktime))+" ")]):e("span",[t._v(" "+t._s(t.userInfo.username)+t._s(" ")+t._s(t._f("dateFormat")(new Date))+" ")])])])])]),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("div",{staticClass:"flex flex-around"},[e("div",[e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.EntityInfoMethods().clickReportPrevBtn()}}},[t._v("上一个报告 ")]),e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.EntityInfoMethods().clickNoReportPrevBtn()}}},[t._v("上一个未批改的报告 ")])],1),e("div",[e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.entityInfo.dialog=!1}}},[t._v("取 消 ")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.EntityInfoMethods().clickSureBtn()}}},[t._v("确认批改 ")])],1),e("div",[e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.EntityInfoMethods().clickNoReportNextBtn()}}},[t._v("下一个未批改的报告 ")]),e("el-button",{attrs:{type:"default",size:"small"},on:{click:function(e){t.EntityInfoMethods().clickReportNextBtn()}}},[t._v("下一个报告 ")])],1)])])]),e("input",{staticStyle:{display:"none"},attrs:{id:"importFile",type:"file"},on:{change:e=>{t.ListMethods().importFileChange(e)}}}),e("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:"学习记录",visible:t.loginLogDialog.visible,"close-on-click-modal":!1,width:"1020px",center:""},on:{"update:visible":function(e){return t.$set(t.loginLogDialog,"visible",e)}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loginLogDialog.loading,expression:"loginLogDialog.loading"}],staticClass:"login-log-dialog-content"},[e("div",{staticClass:"student-info"},[e("div",{staticClass:"info-item"},[e("span",{staticClass:"label"},[t._v("姓名:")]),e("span",[t._v(t._s(t.loginLogDialog.studentInfo.studentname))])]),e("div",{staticClass:"info-item"},[e("span",{staticClass:"label"},[t._v("账号:")]),e("span",[t._v(t._s(t.loginLogDialog.studentInfo.studentaccount))])]),e("div",{staticClass:"info-item"},[e("span",{staticClass:"label"},[t._v("教学班:")]),e("span",[t._v(t._s(this.clazzName))])]),e("div",{staticClass:"info-item"},[e("span",{staticClass:"label"},[t._v("行政班:")]),e("span",[t._v(t._s(t.loginLogDialog.studentInfo.gradeName)+" - "+t._s(t.loginLogDialog.studentInfo.administrationClazzName))])]),e("div",{staticClass:"info-item"},[e("span",{staticClass:"label"},[t._v("实验项目:")]),e("span",[t._v(t._s(this.experimentName))])])]),e("div",{staticClass:"login-log-table-wrapper"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.loginLogDialog.list,"header-cell-style":{background:"#fafafa",color:"#555"},border:""}},[e("el-table-column",{attrs:{prop:"createTime",label:"登录时间",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("dateFormat")(e.row.createTime))+" ")]}}])}),e("el-table-column",{attrs:{prop:"createTime",label:"是否完成学习",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.scoreTime?e("span",[t._v("是")]):e("span",[t._v("否")])]}}])}),e("el-table-column",{attrs:{prop:"scoreTime",label:"传分时间",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.scoreTime?e("span",[t._v(" "+t._s(t._f("dateFormat")(s.row.scoreTime)))]):e("span",[t._v("-")])]}}])}),e("el-table-column",{attrs:{prop:"score",align:"center",label:"本次得分"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.scoreTime?e("span",[t._v(" "+t._s(t._f("numberFormat")(s.row.score)))]):e("span",[t._v("-")])]}}])}),e("el-table-column",{attrs:{prop:"usedTime",align:"center",label:"学习用时"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.row.scoreTime?e("span",[t._v(" "+t._s(t._f("minuteSecondFilter")(1e3*s.row.usedTime))+" ")]):e("span",[t._v("-")])]}}])}),e("el-table-column",{attrs:{align:"center",label:"答题记录",width:"120"},scopedSlots:t._u([{key:"default",fn:function(s){return[t.experiment.questions&&t.experiment.questions.activeVersion&&s.row.scoreTime?e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.clickShowLoginLogAnswer(s.row)}}},[t._v(" 查看答题详情 ")]):e("span",[t._v("-")])]}}])})],1)],1)])]),e("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,title:"导出学习记录",visible:t.exportLearnLogDialog.visible,width:"500px",center:""},on:{"update:visible":function(e){return t.$set(t.exportLearnLogDialog,"visible",e)}}},[e("div",{staticClass:"dialog-container"},[t.exportLearnLogDialog.result.length?e("div",{staticClass:"statistics-container"},[e("div",{staticClass:"statistics-info"},[t._v(" 共查询到 "),e("span",{staticClass:"highlight"},[t._v(t._s(t.exportLearnLogDialog.result.length))]),t._v(" 条学习记录 ")])]):t._e(),e("div",{staticClass:"search-btn-container"},[e("el-button",{attrs:{type:"primary",loading:t.exportLearnLogDialog.loading},on:{click:function(e){t.LearnLogMethods().search()}}},[t._v(" 查询 ")]),e("el-button",{attrs:{type:"success",disabled:!t.exportLearnLogDialog.result.length,loading:t.exportLearnLogDialog.exportLoading},on:{click:function(e){t.LearnLogMethods().exportExcel()}}},[t._v(" 导出表格 ")]),e("el-button",{attrs:{type:"warning",disabled:!t.exportLearnLogDialog.result.length},on:{click:function(e){t.LearnLogMethods().analyzeData()}}},[t._v(" 数据分析 ")])],1)])]),e("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!1,title:"学习记录数据分析",visible:t.analysisDialog.visible,width:"1200px",center:""},on:{"update:visible":function(e){return t.$set(t.analysisDialog,"visible",e)}}},[e("div",{staticClass:"analysis-container"},[e("div",{staticClass:"statistics-cards"},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:8}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticClass:"stat-item"},[e("div",{staticClass:"stat-title"},[t._v("学生数量")]),e("div",{staticClass:"stat-value"},[t._v(t._s(t.analysisDialog.stats.studentCount))])])])],1),e("el-col",{attrs:{span:8}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticClass:"stat-item"},[e("div",{staticClass:"stat-title"},[t._v("行政班数量")]),e("div",{staticClass:"stat-value"},[t._v(t._s(t.analysisDialog.stats.adminClazzCount))])])])],1),e("el-col",{attrs:{span:8}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticClass:"stat-item"},[e("div",{staticClass:"stat-title"},[t._v("完成学习数 / 总记录数 ")]),e("div",{staticClass:"stat-value"},[t._v(" "+t._s(t.analysisDialog.stats.finishedCount)+" / "+t._s(t.analysisDialog.stats.totalCount))]),e("div",{staticClass:"stat-sub"},[t._v("完成率: "+t._s(t.analysisDialog.stats.finishRate)+"%")])])])],1)],1),e("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticClass:"stat-item"},[e("div",{staticClass:"stat-title"},[t._v("得分统计")]),e("div",{staticClass:"stat-value"},[t._v("平均 "+t._s(t.analysisDialog.stats.avgScore)+" 分")]),e("div",{staticClass:"stat-sub"},[t._v("最高: "+t._s(t.analysisDialog.stats.maxScore)+"分 / 最低: "+t._s(t.analysisDialog.stats.minScore)+"分")])])])],1),e("el-col",{attrs:{span:12}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticClass:"stat-item"},[e("div",{staticClass:"stat-title"},[t._v("用时统计")]),e("div",{staticClass:"stat-value"},[t._v("平均: "+t._s(t.analysisDialog.stats.avgTime))]),e("div",{staticClass:"stat-sub"},[t._v("最长: "+t._s(t.analysisDialog.stats.maxTime))]),e("div",{staticClass:"stat-sub"},[t._v("最短: "+t._s(t.analysisDialog.stats.minTime))]),e("div",{staticClass:"stat-sub"},[t._v("总计: "+t._s(t.analysisDialog.stats.totalTime))])])])],1)],1)],1),e("div",{staticClass:"chart-container",staticStyle:{"margin-top":"30px"}},[e("div",{ref:"learningChart",staticStyle:{width:"100%",height:"400px"}})])])]),e("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{"close-on-click-modal":!0,title:t.answers.title,visible:t.answers.dialog,"append-to-body":"","modal-append-to-body":"",width:"92%","custom-class":"answer-detail-dialog",center:""},on:{"update:visible":function(e){return t.$set(t.answers,"dialog",e)}}},[e("div",{staticClass:"dialog-container report-container answer-detail-scroll"},[e("answer-detail-panel",{attrs:{answers:t.answers.answers,questions:t.experiment.questions,"score-info":t.answers.scoreInfo}})],1)])],1)},i=[],n=(s("14d9"),s("13d5"),s("e9f5"),s("910d"),s("f665"),s("7d54"),s("ab43"),s("9485"),s("1e70"),s("79a4"),s("c1a1"),s("8b00"),s("a4e7"),s("1e5a"),s("72c3"),s("e2f9")),o=s("d808"),r=s("a888"),l=s("5c8a"),c=s("cf45"),d=s("2f62"),u=s("cab8"),p=s("9204"),g=s("1fcd"),m=s("2ca2"),f=s("ed33"),h=s("cd77"),y=s("22b4"),b=s("1be7"),v=s("4cb5"),_=s("3620"),w=s("9394"),x=s("2da7"),C=s("4b2a"),z=s("ff32"),L=s("ee29"),I=s("f95e"),k=s("7b75"),S=(s("2d48"),s("a5cf")),T=s("3d59");y["a"]([v["a"],_["a"],w["a"],x["a"],C["a"],z["a"],L["a"],I["a"]]);var O={name:"teacherScoreInfo",components:{ListSearchFilter:n["a"],AnswerDetailPanel:T["a"]},directives:{elDragDialog:r["a"]},filters:{dateFormat:p["b"],numberFormat:p["d"],minuteSecondFilter:p["c"]},computed:{...Object(d["b"])({userInfo:t=>t.user})},data(){return{clazzId:this.$route.query["clazzid"],clazzName:this.$route.query["clazzname"],experimentId:this.$route.query["experimentid"],experimentName:this.$route.query["experimentname"],semesterId:this.$route.query["semesterid"],scheduleId:this.$route.query["scheduleId"],title:this.$route.query["title"],date_format:c["f"],enums:o["a"],lists:{list:[],loading:!1,query:{labreportstatus:""},queryBase:{},pages:{size:20},searchFilter:{search:[{type:"input",label:"请输入学生姓名、账号",key:"search",value:""}],filter:[{type:"select",label:"行政班",key:"administrationClazzId",value:"",data:[],dataObject:{},dataOrigin:[],change:function(t){}},{type:"select",label:"实验报告",key:"labreportstatus",value:"",data:[{label:"全部",value:""},{label:"未批改",value:"false"},{label:"已批改",value:"true"}],dataObject:{},dataOrigin:[],change:function(t){}}]}},entityInfo:{dialog:!1,scoreChange:!1,edit:{labreportscore:""},formRules:{labreportscore:{required:!0}}},loginLogDialog:{visible:!1,loading:!1,studentInfo:{},list:[]},exportLearnLogLoading:!1,exportScoreLoading:!1,exportLearnLogDialog:{visible:!1,loading:!1,exportLoading:!1,result:[]},analysisDialog:{visible:!1,stats:{studentCount:0,adminClazzCount:0,totalCount:0,finishedCount:0,finishRate:"0.0",maxScore:0,minScore:0,avgScore:0,maxTime:"-",minTime:"-",avgTime:"-",totalTime:"-"},chart:null},experiment:{info:{},questions:{}},answers:{dialog:!1,title:"答题详情",scoreInfo:{},answers:[]}}},async mounted(){this.getExperimentInfo(),this.clazzId&&(this.lists.queryBase={clazzid:this.clazzId,experimentid:this.experimentId,semesterid:this.semesterId,scheduleid:this.scheduleId},await this.ListMethods().getAdministrationClazzFilterList()),this.ListMethods().getList(1,this.lists.pages.size,this.lists.query),this.ListMethods().initFilter()},methods:{async getExperimentInfo(){try{this.experiment.info=await k["a"].getOneExperimentInfo(this.experimentId),this.experiment.info&&this.experiment.info.questions&&(this.experiment.questions=JSON.parse(this.experiment.info.questions))}catch(t){console.error("加载题目配置出错:",t)}},getQuestionConfig(t){const e=this.answers;if(!e||!e.scoreInfo)return null;let s=e.scoreInfo.questionVersion;const a=this.experiment.questions;if(!a)return null;if(s||(s=a.activeVersion||"v1.0"),a.versions&&a.versions[s]){const e=a.versions[s].questions;if(e&&e[t])return e[t]}if(a.activeVersion&&a.versions&&a.versions[a.activeVersion]){const e=a.versions[a.activeVersion].questions;if(e&&e[t])return e[t]}if(a.versions&&a.versions["v1.0"]){const e=a.versions["v1.0"].questions;if(e&&e[t])return e[t]}return null},getQuestionProperty(t,e){const s=this.getQuestionConfig(t);return s&&s[e]||("options"===e?[]:"")},normalizeTags(t){return t?Array.isArray(t)?t.filter(Boolean):[t]:[]},getQuestionTags(t){const e=this.normalizeTags(t&&t.questionTags);if(e.length)return e;const s=this.getQuestionConfig(t&&t.id);return this.normalizeTags(s&&(s.questionTags||s.tags))},getOptionKey(t,e){return t&&"object"===typeof t?String(t.key||t.label||String.fromCharCode(65+e)).trim().toUpperCase():String.fromCharCode(65+e)},getOptionText(t){return t&&"object"===typeof t?t.text||t.title||t.label||"":void 0===t||null===t?"":String(t)},getOptionTags(t,e,s){const a=this.getQuestionConfig(t),i=a&&a.optionTags;if(!i)return[];const n=this.getOptionKey(e,s),o=this.getOptionText(e);return this.normalizeTags(i[n]||i[String(s)]||i[o])},getSelectedOptionTagGroups(t){return Array.isArray(t&&t.selectedOptionTags)?t.selectedOptionTags.filter(t=>this.normalizeTags(t&&t.tags).length):[]},normalizeAnswerKeys(t){return void 0===t||null===t?[]:String(t).replace(/[，,;；|]/g,"、").split("、").map(t=>t.trim()).filter(Boolean).map(t=>/^[a-z]/i.test(t)?t.charAt(0).toUpperCase():t)},isSelectedOption(t,e,s){return this.normalizeAnswerKeys(t&&t.answer).indexOf(this.getOptionKey(e,s))>=0},tagLabel(t){if(!t)return"";const e=t.name||t.tagName||t.id||t.tagId||"未命名标签",s=t.dimension||"";return s?`${s} · ${e}`:e},tagTooltip(t){if(!t)return"";const e=Array.isArray(t.dimensionPathNames)?t.dimensionPathNames.filter(Boolean):[],s=e.length?e.join(" / "):t.dimension||"",a=t.description||"";return s&&a?`${s}：${a}`:a||s},tagKey(t,e){return`${t&&(t.id||t.tagId||t.name||t.tagName)||"tag"}_${e}`},AnswersMethods(){let t=this;return{clickShowAnswerBtn(e){if(t.$set(t.answers,"scoreInfo",e),e.answers)try{const s="string"===typeof e.answers?JSON.parse(e.answers):e.answers;t.$set(t.answers,"answers",Array.isArray(s)?s:[]),Array.isArray(s)||Object(l["f"])("答题详情数据格式异常，未找到答题列表")}catch(s){t.$set(t.answers,"answers",[]),Object(l["f"])("答题详情数据格式异常，暂时无法解析")}else t.$set(t.answers,"answers",[]);t.$set(t.answers,"dialog",!0)},clickShowClazzAnswerAnalysis(){S["a"].routerPush(t,`/teacher/statistic?clazzName=${encodeURI(t.clazzName)}&scheduleId=${t.scheduleId}&experimentId=${t.experimentId}`,"成绩管理 / 班级实验和答题分析",{},"4",[{name:"成绩管理",path:"/teacher/statistic",index:"4"},{name:"班级实验和答题分析"}])}}},ListMethods(){let t=this;return{async getAdministrationClazzFilterList(){let e=await g["a"].getAdministrationClazzOptions(t.lists.queryBase),s=[{label:"全部",value:""}],a={"":"全部"};e.forEach(t=>{let e=t.gradeName?t.gradeName+" - "+t.name:t.name;s.push({label:t.studentCount?e+" ("+t.studentCount+"人)":e,value:t.id}),a[t.id]=e}),t.$set(t.lists.searchFilter.filter[0],"data",s),t.$set(t.lists.searchFilter.filter[0],"dataObject",a)},async getList(e,s,a){console.log(a),a=Object.assign(a,t.lists.queryBase),t.lists.loading=!0,a.sort||(a.sort="studentaccount,asc"),[t.lists.list,t.lists.pages]=await g["a"].getInfoList(e,s,a),t.lists.loading=!1},async pageChange(e){await this.getList(e,t.lists.pages.size,t.lists.query)},async pageLimitChange(e){this.getList(t.lists.pages.number,e,t.lists.query)},async sortChange(e){let s=t.lists.query.sort;s=m["a"].elementTableSort(e),t.$set(t.lists.query,"sort",s),this.getList(1,t.lists.pages.size,t.lists.query)},async initFilter(t){},clickSearchFilterBtn(e){this.getList(1,t.lists.pages.size,e),t.lists.query=e},async clickDeleteBtn(e,s){await Object(l["a"])("确认要删除该学生吗？")&&(await u["a"].remove([e.id],t.clazzId)?(Object(l["e"])("删除成功"),t.ListMethods().getList(t.lists.pages.number,t.lists.pages.size,t.lists.query)):Object(l["d"])("删除失败"))},clickViewBtn(e,s){e.labreportcontent?(t.entityInfo.title=t.experimentName+"实验报告",t.entityInfo.edit=JSON.parse(JSON.stringify(e)),t.entityInfo.edit.labreportscoreOld=t.entityInfo.edit.labreportscore,t.entityInfo.dialog=!0,t.entityInfo.$index=s):Object(l["d"])("该学生尚未提交实验报告")},async clickExportBtn(){let e=t.lists.query.search,s=t.lists.query.labreportstatus,a=t.lists.query.administrationClazzId;g["a"].export(t.scheduleId,e,s,a,t.title)},async labStatusChange(e){t.lists.query.labreportstatus=!e,this.getList(1,t.lists.pages.size,t.lists.query)},async clickExportScoreBtn(){Object(l["f"])("导出时间较长，请耐心等待，不要关闭窗口！"),t.exportScoreLoading=!0;try{let e=t.lists.query.search,s=t.lists.query.labreportstatus,a=t.lists.query.administrationClazzId;await g["a"].export(t.scheduleId,e,s,a,t.title)}finally{t.exportScoreLoading=!1}},async clickExportLearnLogBtn(){t.exportLearnLogDialog.visible=!0}}},EntityInfoMethods(){let t=this;return{async clickSureBtn(){let e=t.entityInfo.edit.labreportscore,s=!0;if(e<0&&(Object(l["d"])("请输入0-100内正整数作为分数"),s=!1),""===e&&(Object(l["d"])("请输入0-100内正整数作为分数"),s=!1),e>100&&(Object(l["d"])("请输入0-100正整数作为分数"),s=!1),e!==t.entityInfo.edit.labreportscoreOld||0===e){if(s){let s=await g["a"].modifyLapScore({id:t.entityInfo.edit.id,labreportscore:e});s&&(Object(l["e"])("修改实验分数成功"),t.$set(t.lists.list[t.entityInfo.$index],"labreportscore",s.labreportscore),t.$set(t.lists.list[t.entityInfo.$index],"labreportstatus",!0),t.$set(t.lists.list[t.entityInfo.$index],"totalscore",s.totalscore))}}else Object(l["d"])("分数未做修改！")},async clickNoReportPrevBtn(){let e=t.lists.list,s={},a=t.entityInfo.$index;for(let t=a-1;t>=0;t--){let i=e[t];if(!i.labreportstatus&&i.labreportcontent){s=i,a=t;break}}s.hasOwnProperty("labreportcontent")?t.ListMethods().clickViewBtn(s,a):t.lists.pages.number>1?(await t.ListMethods().pageChange(t.lists.pages.number-1),t.entityInfo.$index=t.lists.pages.size,this.clickNoReportPrevBtn()):Object(l["d"])("没有上一个未批改的报告了！")},async clickReportPrevBtn(){let e=t.lists.list,s={},a=t.entityInfo.$index;for(let t=a-1;t>=0;t--){let i=e[t];if(i.labreportcontent){s=i,a=t;break}}s.hasOwnProperty("labreportcontent")?t.ListMethods().clickViewBtn(s,a):t.lists.pages.number>1?(await t.ListMethods().pageChange(t.lists.pages.number-1),t.entityInfo.$index=t.lists.pages.size,this.clickReportPrevBtn()):Object(l["d"])("没有上一个报告了！")},async clickNoReportNextBtn(){let e=t.lists.list,s={},a=t.entityInfo.$index;for(let t=a+1;t<e.length;t++){let i=e[t];if(!i.labreportstatus&&i.labreportcontent){s=i,a=t;break}}s.hasOwnProperty("labreportcontent")?t.ListMethods().clickViewBtn(s,a):t.lists.pages.number<t.lists.pages.totalPage?(await t.ListMethods().pageChange(t.lists.pages.number+1),t.entityInfo.$index=-1,this.clickNoReportNextBtn()):Object(l["d"])("没有下一个未批改的报告了！")},async clickReportNextBtn(){let e=t.lists.list,s={},a=t.entityInfo.$index;for(let t=a+1;t<e.length;t++){let i=e[t];if(i.labreportcontent){s=i,a=t;break}}s.hasOwnProperty("labreportcontent")?t.ListMethods().clickViewBtn(s,a):t.lists.pages.number<t.lists.pages.totalPage?(await t.ListMethods().pageChange(t.lists.pages.number+1),t.entityInfo.$index=-1,this.clickReportNextBtn()):Object(l["d"])("没有下一个报告了！")}}},async clickViewLoginLog(t){this.loginLogDialog.studentInfo=t,this.loginLogDialog.visible=!0,this.loginLogDialog.loading=!0,this.$nextTick(()=>{const t=this.$el.querySelector(".login-log-table-wrapper");t&&(t.scrollTop=0)}),this.loginLogDialog.list=await f["a"].getList({scheduleId:this.scheduleId,studentExperimentId:t.id,status:0,type:2}),this.loginLogDialog.loading=!1},normalizeTimeMs(t){if(void 0===t||null===t||""===t)return null;if("number"===typeof t)return t<1e12?1e3*t:t;const e=new Date(t).getTime();return Number.isNaN(e)?null:e},findScoreEntityByLoginLog(t){const e=this.loginLogDialog.studentInfo&&this.loginLogDialog.studentInfo.studentScoreEntities||[];if(!e.length||!t)return null;const s=t.studentScoreId||t.student_score_id;if(s){const t=e.find(t=>t&&t.id===s);if(t)return t}const a=this.normalizeTimeMs(t.scoreTime||t.score_time),i=t.score;if(null==a)return null;let n=null,o=1/0;return e.forEach(t=>{if(!t)return;if(void 0!==i&&null!==i&&void 0!==t.score&&null!==t.score&&Number(t.score)!==Number(i))return;const e=this.normalizeTimeMs(t.updatetime||t.updateTime);if(null==e)return;const s=Math.abs(e-a);s<=3e3&&s<o&&(n=t,o=s)}),n},clickShowLoginLogAnswer(t){if(!t||!t.scoreTime)return void Object(l["f"])("该次学习尚未传分，暂无答题记录");const e=this.findScoreEntityByLoginLog(t);e?this.AnswersMethods().clickShowAnswerBtn(e):Object(l["f"])("未匹配到对应成绩记录，暂无法查看答题详情")},LearnLogMethods(){let t=this;return{async search(){t.exportLearnLogDialog.loading=!0;try{let e=await f["a"].getExportList({scheduleId:t.scheduleId,status:0,type:2}),[s]=await g["a"].getInfoList(1,-1,t.lists.queryBase),a={};s.forEach(e=>{a[e.id]={studentname:e.studentname,studentaccount:e.studentaccount,clazzName:t.clazzName,experimentName:t.experimentName,administrationClazzName:e.gradeName+" - "+e.administrationClazzName}}),t.exportLearnLogDialog.result=e.map(t=>({...t,...a[t.studentExperimentId]||{}}))}catch(e){console.error("查询失败:",e),Object(l["d"])("查询失败")}finally{t.exportLearnLogDialog.loading=!1}},async exportExcel(){if(t.exportLearnLogDialog.result.length){t.exportLearnLogDialog.exportLoading=!0,Object(l["c"])("正在导出学习记录，请稍等...");try{const s=["学生账号","学生姓名","教学班级","行政班级","实验项目","登录时间","是否完成学习","传分时间","本次得分","学习用时"],a=["studentaccount","studentname","clazzName","administrationClazzName","experimentName","createTime","hasScore","scoreTime","score","usedTime"];function e(t,e){return e.map(e=>t.map(t=>{let s="";switch(t){case"createTime":case"scoreTime":s=e[t]?Object(c["f"])(e[t],"yyyy-MM-dd HH:mm:ss"):"-";break;case"hasScore":s=e.scoreTime?"是":"否";break;case"score":s=e.scoreTime?e[t]:"-";break;case"usedTime":s=e.scoreTime?Object(p["c"])(1e3*e[t]):"-";break;default:s=e[t]||"-"}return s}))}Object(h["a"])(t.exportLearnLogDialog.result,s,a,e,t.title+"-学习记录-"+Object(c["f"])(new Date,"yyyy-MM-dd HH:mm:ss"))}finally{t.exportLearnLogDialog.exportLoading=!1}}else Object(l["d"])("没有可导出的数据")},analyzeData(){const e=t.exportLearnLogDialog.result;if(!e||0===e.length)return void Object(l["d"])("没有可分析的数据");const s={studentCount:new Set(e.map(t=>t.studentaccount)).size,adminClazzCount:new Set(e.map(t=>t.administrationClazzName)).size,totalCount:e.length,finishedCount:e.filter(t=>t.scoreTime).length};s.finishRate=(s.finishedCount/s.totalCount*100).toFixed(1);const a=e.filter(t=>t.scoreTime);if(a.length>0){s.maxScore=Math.max(...a.map(t=>t.score)),s.minScore=Math.min(...a.map(t=>t.score)),s.avgScore=(a.reduce((t,e)=>t+e.score,0)/a.length).toFixed(1);const t=t=>{const e=Math.floor(t/3600),s=Math.floor(t%3600/60),a=t%60;return`${e}小时${s}分${a}秒`},e=a.map(t=>t.usedTime);s.maxTime=t(Math.max(...e)),s.minTime=t(Math.min(...e)),s.avgTime=t(Math.floor(e.reduce((t,e)=>t+e,0)/e.length)),s.totalTime=t(e.reduce((t,e)=>t+e,0))}t.analysisDialog.stats=s,t.analysisDialog.visible=!0,t.$nextTick(()=>{t.analysisDialog.chart&&t.analysisDialog.chart.dispose(),t.analysisDialog.chart=b["b"](t.$refs.learningChart);const s=new Map;e.forEach(t=>{const e=Object(c["f"])(t.createTime,"yyyyMMdd");s.has(e)||s.set(e,{total:0,finished:0}),s.get(e).total++,t.scoreTime&&s.get(e).finished++});const a=Array.from(s.keys()).sort(),i={title:{text:"每日学习情况统计",left:"center"},tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},legend:{data:["学习人数","完成人数"],bottom:10},xAxis:{type:"category",data:a.map(t=>t.replace(/(\d{4})(\d{2})(\d{2})/,"$1-$2-$3")),axisPointer:{type:"shadow"}},yAxis:{type:"value",name:"人数",minInterval:1},series:[{name:"学习人数",type:"bar",data:a.map(t=>s.get(t).total),barMaxWidth:50},{name:"完成人数",type:"line",data:a.map(t=>s.get(t).finished)}]};t.analysisDialog.chart.setOption(i)})}}}},watch:{"analysisDialog.visible"(t){!t&&this.analysisDialog.chart&&(this.analysisDialog.chart.dispose(),this.analysisDialog.chart=null)}}},D=O,q=(s("c10f"),s("d698"),s("2877")),$=Object(q["a"])(D,a,i,!1,null,"0a19579a",null);e["default"]=$.exports},c10f:function(t,e,s){"use strict";s("4694")},c5cf:function(t,e,s){"use strict";s("657b")},d698:function(t,e,s){"use strict";s("6920")}}]);