(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e7c7aa50"],{"299f":function(t,e,a){},"3d59":function(t,e,a){"use strict";var s=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(a){return[e("div",{staticClass:"question-content"},[t._v(t._s(t.property(a.row.id,"title")))]),t.questionTags(a.row).length?e("div",{staticClass:"tag-list"},[e("span",{staticClass:"caption"},[t._v("题目标签")]),t._l(t.questionTags(a.row),(function(a,s){return e("el-tooltip",{key:t.tagKey(a,s),attrs:{content:t.tagTooltip(a),placement:"top"}},[e("el-tag",{attrs:{size:"mini",type:"success",effect:"plain"}},[t._v(t._s(t.tagLabel(a)))])],1)}))],2):t._e()]}}])}),e("el-table-column",{attrs:{label:"选项及标签",align:"left","min-width":"360"},scopedSlots:t._u([{key:"default",fn:function(a){return t._l(t.property(a.row.id,"options"),(function(s,n){return e("div",{key:n,staticClass:"option",class:{selected:t.isSelected(a.row,s,n)}},[e("div",{staticClass:"option-text"},[t._v(t._s(t.optionText(s)))]),t.optionTags(a.row.id,s,n).length?e("div",{staticClass:"tag-list"},t._l(t.optionTags(a.row.id,s,n),(function(a,s){return e("el-tooltip",{key:t.tagKey(a,s),attrs:{content:t.tagTooltip(a),placement:"top"}},[e("el-tag",{attrs:{size:"mini",type:"warning",effect:"plain"}},[t._v(t._s(t.tagLabel(a)))])],1)})),1):t._e()])}))}}])}),e("el-table-column",{attrs:{label:"参考答案",align:"center",width:"110"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{staticClass:"ref-answer"},[t._v(" "+t._s(t.property(a.row.id,"standardAnswer")||t.property(a.row.id,"answer")||"--")+" ")])]}}])}),e("el-table-column",{attrs:{label:"学员答案",align:"center","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"student-answer",class:{empty:!a.row.answer}},[t._v(" "+t._s(a.row.answer||"未答")+" ")]),t._l(t.selectedGroups(a.row),(function(a,s){return e("div",{key:s,staticClass:"selected-group"},[e("span",{staticClass:"caption"},[t._v(t._s(a.optionKey||"所选项")+" 命中")]),t._l(t.normalizeTags(a.tags),(function(a,s){return e("el-tag",{key:t.tagKey(a,s),attrs:{size:"mini",type:"warning"}},[t._v(t._s(t.tagLabel(a)))])}))],2)}))]}}])}),e("el-table-column",{attrs:{label:"答题结果",align:"center",width:"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{class:!0===a.row.isCorrect?"correct":"wrong"},[t._v(" "+t._s(!0===a.row.isCorrect?"正确":"错误")+" ")])]}}])}),t.neutral?t._e():e("el-table-column",{attrs:{label:"扣分",align:"center",width:"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{class:a.row.deductScore>0?"wrong":""},[t._v(" "+t._s(a.row.deductScore>0?"-"+a.row.deductScore+" 分":"0")+" ")])]}}],null,!1,245762671)})],1)],1)},n=[],i=(a("e9f5"),a("910d"),a("f665"),a("ab43"),a("9204")),r={name:"AnswerDetailPanel",filters:{dateFormat2:i["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",a=this.questions&&this.questions.versions||{},s=a[e]||a[this.questions.activeVersion]||a["v1.0"];return s&&s.questions?s.questions[t]:null},property(t,e){const a=this.config(t);return a&&a[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 a=this.config(t&&t.id);return this.normalizeTags(a&&(a.questionTags||a.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,a){const s=this.config(t),n=s&&s.optionTags,i=e&&"object"===typeof e?e.tags:null;if(!n)return this.normalizeTags(i);const r=this.optionKey(e,a),l=this.optionText(e);return this.normalizeTags(n[r]||n[String(a)]||n[l]||i)},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,a){return this.answerKeys(t&&t.answer).indexOf(this.optionKey(e,a))>=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||"",a=t&&t.description||"";return e&&a?`${e}：${a}`:a||e||"标签快照"},tagKey(t,e){return`${t&&(t.id||t.tagId||t.name)||"tag"}_${e}`}}},l=r,o=(a("c5cf"),a("2877")),c=Object(o["a"])(l,s,n,!1,null,"5e44b340",null);e["a"]=c.exports},"61f3":function(t,e,a){"use strict";a("ba05")},"657b":function(t,e,a){},7684:function(t,e,a){"use strict";a("299f")},9204:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"d",(function(){return r})),a.d(e,"c",(function(){return o}));var s=a("cf45");const n=(t,e)=>{if(t){let a="yyyy/MM/dd HH:mm";return e&&(a=e),Object(s["f"])(t,a)}return""},i=(t,e)=>{if(t){let a="yyyy-MM-dd HH:mm:ss";return e&&(a=e),Object(s["f"])(t,a)}return""},r=(t,e)=>{if(t||0===t){let a=0;return e&&(a=e),t.toFixed(a)}return""};function l(t){return t<10&&(t="0"+t),t}const o=function(t){t=Math.round(t/1e3);let e=0,a=0;return t<60?e=Number(t).toFixed(0):(a=Math.floor(t/60),e=Math.floor(t-60*a)),`${l(a)}分${l(e)}秒`}},"9c13":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-container paper-result"},[t.selectedAssignment?e("div",[e("div",{staticClass:"title-row title-row-l2"},[e("el-page-header",{attrs:{content:`${t.selectedAssignment.paperName} / ${t.selectedAssignment.clazzName}`},on:{back:t.backToL1}})],1),e("list-search-filter",{attrs:{"search-filter":t.studentSearchFilter},on:{clickSearchFilterBtn:e=>t.clickStudentSearchBtn(e)}}),e("div",{staticClass:"summary-bar"},[e("span",[t._v("应提交 "),e("b",[t._v(t._s(t.selectedAssignment.expectedCount))]),t._v(" 人")]),e("span",{staticClass:"dot"},[t._v("·")]),e("span",[t._v("已提交 "),e("b",[t._v(t._s(t.selectedAssignment.submittedCount))]),t._v(" 人")]),e("span",{staticClass:"dot"},[t._v("·")]),e("span",[t._v("提交率 "),e("b",{class:t.rateClass(t.selectedAssignment.submitRate)},[t._v(t._s(t.selectedAssignment.submitRate)+"%")])])]),e("div",{staticClass:"table-container"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.studentLoading,expression:"studentLoading"}],staticStyle:{width:"100%"},attrs:{data:t.students,"element-loading-text":"加载中","header-cell-style":{background:"#fafafa",color:"#555"},fit:""}},[e("el-table-column",{attrs:{prop:"studentName",label:"姓名","min-width":"100","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"studentAccount",label:"学号","min-width":"120","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{label:"状态",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{attrs:{size:"small",type:"SUBMITTED"===a.row.submitStatus?"success":"info"}},[t._v(" "+t._s("SUBMITTED"===a.row.submitStatus?"已提交":"未提交")+" ")])]}}])}),e("el-table-column",{attrs:{label:"提交时间","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[a.row.submittedAt?e("span",[t._v(t._s(t._f("dateFormat2")(a.row.submittedAt)))]):e("span",{staticClass:"muted"},[t._v("--")])]}}])}),e("el-table-column",{attrs:{prop:"attemptCount",label:"作答次数",width:"100",align:"center"}}),e("el-table-column",{attrs:{label:"答对 / 总题数",width:"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return["SUBMITTED"===a.row.submitStatus?e("span",{staticClass:"count-pair"},[e("em",[t._v(t._s(a.row.correctCount))]),e("span",{staticClass:"sep"},[t._v("/")]),t._v(" "+t._s(a.row.questionCount||t.selectedAssignment.questionCount)+" ")]):e("span",{staticClass:"muted"},[t._v("--")])]}}])}),e("el-table-column",{attrs:{label:"操作",width:"110",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"mini",disabled:!a.row.attemptId},on:{click:function(e){return t.showDetail(a.row.attemptId)}}},[t._v("查看详情")])]}}])})],1),t.studentLoading||t.students.length?t._e():e("el-empty",{attrs:{description:"暂无学生数据"}})],1),t.studentPage.totalElements>0?e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{background:"","current-page":t.studentPage.number,"page-size":t.studentPage.size,layout:"total,prev, pager, next,sizes,jumper",total:t.studentPage.totalElements,"page-count":t.studentPage.totalPage},on:{"current-change":e=>t.studentPageChange(e),"update:currentPage":function(e){return t.$set(t.studentPage,"number",e)},"update:current-page":function(e){return t.$set(t.studentPage,"number",e)},"update:pageSize":function(e){return t.$set(t.studentPage,"size",e)},"update:page-size":function(e){return t.$set(t.studentPage,"size",e)},"size-change":e=>t.studentSizeChange(e)}})],1):t._e()],1):e("div",[e("list-search-filter",{attrs:{"search-filter":t.paperSearchFilter},on:{clickSearchFilterBtn:e=>t.clickPaperSearchBtn(e)}},[e("div",{attrs:{slot:"right-container"},slot:"right-container"},[e("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:t.loadPapers}},[t._v("刷新")])],1)]),e("div",{staticClass:"table-container"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.papers,"element-loading-text":"加载中","header-cell-style":{background:"#fafafa",color:"#555"},fit:""}},[e("el-table-column",{attrs:{prop:"paperName",label:"题单","min-width":"200","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"clazzName",label:"教学班","min-width":"120","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{label:"作答时间","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("dateFormat2")(e.row.startTime))+" 至 "+t._s(t._f("dateFormat2")(e.row.endTime))+" ")]}}],null,!1,3801638028)}),e("el-table-column",{attrs:{label:"已提交 / 应提交",width:"130",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",{staticClass:"count-pair"},[e("em",[t._v(t._s(a.row.submittedCount))]),e("span",{staticClass:"sep"},[t._v("/")]),t._v(" "+t._s(a.row.expectedCount)+" ")])]}}],null,!1,3744213661)}),e("el-table-column",{attrs:{label:"提交率",width:"140",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"rate-cell"},[e("span",{class:t.rateClass(a.row.submitRate)},[t._v(t._s(a.row.submitRate)+"%")]),e("div",{staticClass:"rate-bar"},[e("i",{style:{width:Math.min(100,Number(a.row.submitRate)||0)+"%"}})])])]}}],null,!1,2011514026)}),e("el-table-column",{attrs:{label:"状态",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tag",{attrs:{size:"small",type:t.statusTagType(a.row.status)}},[t._v(" "+t._s(t.statusText(a.row.status))+" ")])]}}],null,!1,2364722611)}),e("el-table-column",{attrs:{label:"操作",width:"110",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(e){return t.openStudents(a.row)}}},[t._v("学生列表")])]}}],null,!1,2360010345)})],1),t.loading||t.papers.length?t._e():e("el-empty",{attrs:{description:"暂无题单下发记录"}})],1),t.paperPage.totalElements>0?e("div",{staticClass:"pagination-container"},[e("el-pagination",{attrs:{background:"","current-page":t.paperPage.number,"page-size":t.paperPage.size,layout:"total,prev, pager, next,sizes,jumper",total:t.paperPage.totalElements,"page-count":t.paperPage.totalPage},on:{"current-change":e=>t.paperPageChange(e),"update:currentPage":function(e){return t.$set(t.paperPage,"number",e)},"update:current-page":function(e){return t.$set(t.paperPage,"number",e)},"update:pageSize":function(e){return t.$set(t.paperPage,"size",e)},"update:page-size":function(e){return t.$set(t.paperPage,"size",e)},"size-change":e=>t.paperSizeChange(e)}})],1):t._e()],1),e("el-dialog",{attrs:{title:"题单答题详情",visible:t.detail.visible,width:"92%","append-to-body":"","custom-class":"tag-paper-detail-dialog","close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.detail,"visible",e)}}},[t.detail.timeline.length?e("div",{staticClass:"history"},[e("span",{staticClass:"history-label"},[t._v("作答历史：")]),e("el-select",{staticStyle:{width:"280px"},attrs:{size:"small"},on:{change:t.showDetail},model:{value:t.detail.attemptId,callback:function(e){t.$set(t.detail,"attemptId",e)},expression:"detail.attemptId"}},t._l(t.detail.timeline,(function(a){return e("el-option",{key:a.attemptId,attrs:{label:t.timelineLabel(a),value:a.attemptId}})})),1)],1):t._e(),e("div",{staticClass:"detail-scroll"},[e("answer-detail-panel",{attrs:{answers:t.detail.answers,questions:t.detail.questions,"score-info":t.detail.attempt,neutral:""}})],1)])],1)},n=[],i=(a("e9f5"),a("910d"),a("ab43"),a("c8a1")),r=a("3d59"),l=a("9204"),o=a("e2f9"),c={name:"teacherTagPaperResult",components:{AnswerDetailPanel:r["a"],ListSearchFilter:o["a"]},filters:{dateFormat2:l["b"]},data(){return{loading:!1,studentLoading:!1,papers:[],students:[],selectedAssignment:null,paperQuery:{},paperSearchFilter:{search:[{type:"input",label:"请输入题单名称",key:"keyword",value:""}],filter:[{type:"select",label:"教学班",key:"clazzId",value:"",data:[]},{type:"select",label:"状态",key:"status",value:"",data:[{label:"未开始",value:"NOT_STARTED"},{label:"进行中",value:"IN_PROGRESS"},{label:"已截止",value:"EXPIRED"}]}]},studentQuery:{},studentSearchFilter:{search:[{type:"input",label:"请输入学生姓名 / 学号",key:"keyword",value:""}],filter:[{type:"select",label:"提交状态",key:"submitStatus",value:"",data:[{label:"已提交",value:"SUBMITTED"},{label:"未提交",value:"UNSUBMITTED"}]}]},paperPage:{number:1,size:20,totalElements:0,totalPage:0},studentPage:{number:1,size:20,totalElements:0,totalPage:0},detail:{visible:!1,attemptId:"",answers:[],questions:[],attempt:{},timeline:[]}}},created(){this.loadPapers(),this.loadClazzFilter()},methods:{async loadClazzFilter(){try{const t=await i["a"].teacherClazzList()||[];this.$set(this.paperSearchFilter.filter[0],"data",t.map(t=>({label:t.name,value:t.id})))}catch(t){console.error("教学班筛选选项加载失败",t)}},clickPaperSearchBtn(t){this.paperQuery=t,this.paperPage.number=1,this.loadPapers()},clickStudentSearchBtn(t){this.studentQuery=t,this.studentPage.number=1,this.loadStudents()},async loadPapers(){this.loading=!0;try{const[t,e]=await i["a"].teacherPaperList(this.paperPage.number,this.paperPage.size,this.paperQuery);this.papers=t||[],this.paperPage=Object.assign({},this.paperPage,e)}finally{this.loading=!1}},paperPageChange(t){this.paperPage.number=t,this.loadPapers()},paperSizeChange(t){this.paperPage.size=t,this.paperPage.number=1,this.loadPapers()},statusText(t){return{NOT_STARTED:"未开始",IN_PROGRESS:"进行中",EXPIRED:"已截止"}[t]||t},statusTagType(t){return void 0!=={NOT_STARTED:"info",IN_PROGRESS:"",EXPIRED:"warning"}[t]?{NOT_STARTED:"info",IN_PROGRESS:"",EXPIRED:"warning"}[t]:"info"},rateClass(t){const e=Number(t)||0;return e>=80?"rate-high":e>=50?"rate-mid":"rate-low"},openStudents(t){this.selectedAssignment=t,this.studentSearchFilter.search[0].value="",this.studentSearchFilter.filter[0].value="",this.studentQuery={},this.studentPage={number:1,size:20,totalElements:0,totalPage:0},this.loadStudents()},backToL1(){this.selectedAssignment=null},async loadStudents(){this.studentLoading=!0;try{const[t,e]=await i["a"].assignmentStudents({assignmentId:this.selectedAssignment.assignmentId,keyword:this.studentQuery.keyword||"",submitStatus:this.studentQuery.submitStatus||""},this.studentPage.number,this.studentPage.size);this.students=t||[],this.studentPage=Object.assign({},this.studentPage,e)}finally{this.studentLoading=!1}},studentPageChange(t){this.studentPage.number=t,this.loadStudents()},studentSizeChange(t){this.studentPage.size=t,this.studentPage.number=1,this.loadStudents()},async showDetail(t){const e=await i["a"].teacherAttemptDetail(t);this.detail={visible:!0,attemptId:t,answers:e.answers||[],questions:e.questions||[],attempt:e.attempt||{},timeline:e.scoreTimeline||[]}},timelineLabel(t){const e=t.attemptNo;return t.submittedAt?`第 ${e} 次 · ${Object(l["b"])(t.submittedAt)}`:`第 ${e} 次 · ${t.status||""}`}}},u=c,d=(a("db6f2"),a("61f3"),a("2877")),p=Object(d["a"])(u,s,n,!1,null,"54dc1177",null);e["default"]=p.exports},ab43:function(t,e,a){"use strict";var s=a("23e7"),n=a("c65b"),i=a("59ed"),r=a("825a"),l=a("46c4"),o=a("c5cc"),c=a("9bdd"),u=a("2a62"),d=a("2baa"),p=a("f99f"),h=a("c430"),m=!h&&!d("map",(function(){})),f=!h&&!m&&p("map",TypeError),g=h||m||f,b=o((function(){var t=this.iterator,e=r(n(this.next,t)),a=this.done=!!e.done;if(!a)return c(t,this.mapper,[e.value,this.counter++],!0)}));s({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(t){r(this);try{i(t)}catch(e){u(this,"throw",e)}return f?n(f,this,t):new b(l(this),{mapper:t})}})},ba05:function(t,e,a){},c5cf:function(t,e,a){"use strict";a("657b")},c8a1:function(t,e,a){"use strict";a.d(e,"a",(function(){return _}));a("d9e2");var s=a("8ce4"),n=a("7b67");const i=t=>n["c"]+"consumer/tagQuestion/"+t,r=(t={})=>Object(s["a"])(i("assignment/myList"),"get",t),l=t=>Object(s["a"])(i("attempt/start"),"post_json",{assignmentId:t}),o=t=>Object(s["a"])(i("attempt/"+t),"get",{}),c=(t,e)=>Object(s["a"])(i(`attempt/${t}/draft`),"put",{answers:e}),u=(t,e)=>Object(s["a"])(i(`attempt/${t}/submit`),"post_json",e),d=(t={})=>Object(s["a"])(i("teacher/paperList"),"get",t),p=t=>Object(s["a"])(i("teacher/assignmentStudents"),"get",t),h=t=>Object(s["a"])(i("teacher/attemptDetail"),"get",{attemptId:t}),m=()=>Object(s["a"])(i("teacher/clazzList"),"get",{}),f=()=>Object(s["a"])(i("teacher/publishedPapers"),"get",{}),g=t=>Object(s["a"])(i("teacher/assignment/save"),"post_json",t),b=t=>Object(s["a"])(i("teacher/assignment/update"),"post_json",t),v=t=>Object(s["a"])(i("teacher/assignment/delete"),"post_json",{id:t});var y=a("2ca2");class _{static async call(t){const[e]=await t;if(!e||2e4!==e.code)throw new Error(e&&e.msg||"请求失败");return e.data}static async myAssignments(t=1,e=20,a=""){const s=await this.call(r({page:t,size:e,status:a}));return y["a"].generateListMybatisPlus(s)}static start(t){return this.call(l(t))}static attempt(t){return this.call(o(t))}static saveDraft(t,e){return this.call(c(t,e))}static submit(t,e){return this.call(u(t,e))}static async teacherPaperList(t=1,e=20,a={}){const s=await this.call(d(Object.assign({page:t,size:e},a)));return y["a"].generateListMybatisPlus(s)}static async assignmentStudents(t={},e=1,a=20){const s=await this.call(p(Object.assign({},t,{page:e,size:a})));return y["a"].generateListMybatisPlus(s)}static teacherAttemptDetail(t){return this.call(h(t))}static teacherClazzList(){return this.call(m())}static teacherPublishedPapers(){return this.call(f())}static teacherSaveAssignment(t){return this.call(g(t))}static teacherUpdateAssignment(t){return this.call(b(t))}static teacherDeleteAssignment(t){return this.call(v(t))}}},d55b:function(t,e,a){},db6f2:function(t,e,a){"use strict";a("d55b")},e2f9:function(t,e,a){"use strict";a("e9f5"),a("910d");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"list-filter"},[e("div",{staticClass:"flex flex-start"},[t.searchFilter.search.length>0?e("div",{staticClass:"search-container flex flex-start"},[e("span",{staticClass:"title"}),e("div",{staticClass:"flex flex-start"},[t._l(t.searchFilter.search,(function(a,s){return[e("div",{staticClass:"fl"},["input"===a.type?e("el-input",{staticClass:"search-item",staticStyle:{width:"200px"},attrs:{size:"small",placeholder:a.label},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"item.value"}}):t._e()],1)]}))],2)]):t._e(),t.searchFilter.filter.length>0?e("div",{staticClass:"filter-container flex flex-start"},[e("span",{staticClass:"title"}),e("div",{staticClass:"flex flex-start flex-wrap"},[t._l(t.searchFilter.filter,(function(a,s){return a.hidden?t._e():["select"===a.type?e("div",{staticClass:"filter-item"},[a.hideTitle?t._e():e("span",{staticClass:"title"},[t._v(t._s(a.label)+":")]),e("el-select",{staticClass:"select",attrs:{size:"small"},on:{change:t=>a.change(a.data[t])},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"item.value"}},t._l(a.data,(function(t,a){return e("el-option",{key:a,attrs:{value:t.value,label:t.label}})})),1)],1):t._e(),"timeRange"===a.type?e("div",{staticClass:"filter-item"},[e("el-date-picker",{attrs:{type:"daterange","end-placeholder":a.label[1],"start-placeholder":a.label[0],"default-time":["00:00:00","23:59:59"]},on:{change:a.change},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"item.value"}})],1):t._e()]}))],2)]):t._e()]),e("div",{staticClass:"search-bottom flex flex-around"},[e("div",{staticClass:"flex flex-start"},[e("el-button",{staticClass:"button",attrs:{plain:"",icon:"el-icon-delete",type:"default",size:"small"},on:{click:t.clickCleanBtn}},[t._v("重置 ")]),e("el-button",{staticClass:"button",attrs:{icon:"el-icon-search",type:"primary",size:"small"},on:{click:t.clickSearchBtn}},[t._v("查询 ")])],1)]),e("div",{staticClass:"flex flex-end"},[t._t("right-container")],2)])},n=[],i=(a("7d54"),{name:"listSearchFilter",props:{searchFilter:{type:Object,default:{search:[],filter:[]}}},data(){return{document:{}}},methods:{clickSearchBtn(){let t={};this.searchFilter.search.forEach(e=>{(0===e.value||e.value)&&(e.format?t[e.key]=e.format(e.value):t[e.key]=e.value)}),this.searchFilter.filter.forEach(e=>{(0===e.value||e.value)&&(e.format?t=Object.assign(t,e.format(e.value)):t[e.key]=e.value)}),this.$emit("clickSearchFilterBtn",t)},clickCleanBtn(){this.searchFilter.search.forEach(t=>{(0===t.value||t.value)&&(t.value="")}),this.searchFilter.filter.forEach(t=>{(0===t.value||t.value)&&(t.value="")}),this.clickSearchBtn()}}}),r=i,l=(a("7684"),a("2877")),o=Object(l["a"])(r,s,n,!1,null,"0c385262",null);e["a"]=o.exports},f665:function(t,e,a){"use strict";var s=a("23e7"),n=a("c65b"),i=a("2266"),r=a("59ed"),l=a("825a"),o=a("46c4"),c=a("2a62"),u=a("f99f"),d=u("find",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(t){l(this);try{r(t)}catch(s){c(this,"throw",s)}if(d)return n(d,this,t);var e=o(this),a=0;return i(e,(function(e,s){if(t(e,a++))return s(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})}}]);