import{E as _,a as f,b as v,c as g,d as x,e as $}from"./ExamDetailsMistakesPercent.7c60de8f.js";import{C as o}from"./index.bb5f1b0a.js";import{f as i}from"./index.2adbb9ac.js";import{n}from"./vueComponentNormalizer.9ef17bb1.js";/* empty css *//* empty css */import{T as y}from"./TableLayout.05a39499.js";import{D as w}from"./DialogLayout.e3af3567.js";/* empty css */import"./index.f5168bf8.js";/* empty css */import"./ActionBar.1725b1a3.js";/* empty css */var b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart",attrs:{"data-title":"\u7B54\u5377\u6210\u7EE9\u7EDF\u8BA1"}})},k=[];const P={methods:{async findData(){const t=await i("paper-score-pass-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`
\u6211\u7684\u7B54\u5377
${t[0].count+t[1].count}\u6B21
`,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new o({padding:[30,0],container:this.$el,autoFit:!0,height:300}),this.chart.scale("percent",{formatter:t=>(t=t*100+"%",t)}),this.chart.coordinate("theta",{radius:.75,innerRadius:.6}),this.chart.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'
  • {name}: {value}
  • '}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${t*100}%`})).tooltip("item*percent*count",(t,e,a)=>(e=a,{name:t,value:e+"\u6B21"})),this.chart.interaction("element-active")}},c={};var D=n(P,b,k,!1,F,null,null,null);function F(t){for(let e in c)this[e]=c[e]}const S=function(){return D.exports}();var E=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart",attrs:{"data-title":"\u7B54\u5377\u96BE\u5EA6\u7EDF\u8BA1"}})},C=[];const T={methods:{async findData(){const t=await i("paper-difficulty-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`
    \u6211\u7684\u7B54\u9898
    ${t.reduce((e,a)=>e+parseInt(a.count),0)}\u9053
    `,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new o({padding:[30,0],container:this.$el,autoFit:!0,height:300}),this.chart.scale("percent",{formatter:t=>(t=(t*100).toFixed(2)+"%",t)}),this.chart.coordinate("theta",{radius:.75,innerRadius:.6}),this.chart.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'
  • {name}\u9898\u578B: {value}
  • '}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${(t*100).toFixed(2)}%`})).tooltip("item*percent*count",(t,e,a)=>(e=a,{name:t,value:e+"\u9053"})),this.chart.interaction("element-active")}},l={};var z=n(T,E,C,!1,I,null,null,null);function I(t){for(let e in l)this[e]=l[e]}const M=function(){return z.exports}();var j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart",attrs:{"data-title":"\u7B54\u5377\u51FA\u9898\u7EDF\u8BA1"}})},R=[];const L={methods:{async findData(){const t=await i("paper-is-fixed-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`
    \u6211\u7684\u7B54\u9898
    ${t.reduce((e,a)=>e+parseInt(a.count),0)}\u9053
    `,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new o({padding:[30,0],container:this.$el,autoFit:!0,height:300}),this.chart.scale("percent",{formatter:t=>(t=(t*100).toFixed(2)+"%",t)}),this.chart.coordinate("theta",{radius:.75,innerRadius:.6}),this.chart.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'
  • {name}\u9898\u578B: {value}
  • '}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${(t*100).toFixed(2)}%`})).tooltip("item*percent*count",(t,e,a)=>(e=a,{name:t,value:e+"\u9053"})),this.chart.interaction("element-active")}},p={};var X=n(L,j,R,!1,Y,null,null,null);function Y(t){for(let e in p)this[e]=p[e]}const H=function(){return X.exports}();var B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart",attrs:{"data-title":"\u7B54\u5377\u4E22\u5206\u7EDF\u8BA1"}})},q=[];const A={methods:{async findData(){const t=await i("paper-mistakes-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`
    \u6211\u7684\u9519\u9898
    ${t.reduce((e,a)=>e+parseInt(a.count),0)}\u9053
    `,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new o({padding:[30,0],container:this.$el,autoFit:!0,height:300}),this.chart.scale("percent",{formatter:t=>(t=(t*100).toFixed(2)+"%",t)}),this.chart.coordinate("theta",{radius:.75,innerRadius:.6}),this.chart.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'
  • {name}: {value}

    \u9898\u578B\u5360\u6BD4:{percent}

  • '}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${(t*100).toFixed(2)}%`})).tooltip("item*percent*count",(t,e,a)=>({name:t,value:a+"\u9053",percent:`${(e*100).toFixed(2)}%`})),this.chart.interaction("element-active")}},u={};var W=n(A,B,q,!1,G,null,null,null);function G(t){for(let e in u)this[e]=u[e]}const J=function(){return W.exports}();var K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"gy-chart chart",attrs:{"data-title":"\u7B54\u5377\u96BE\u5EA6\u7EDF\u8BA1"}})},N=[];const O={props:{exam:{}},watch:{exam:{deep:!0,immediate:!0,handler(t){t&&this.$nextTick(()=>{this.findData(t.historyId)})}}},methods:{async findData(t){this.chart=new o({padding:[30,0],container:this.$el,autoFit:!0,height:300}),this.chart.scale("percent",{formatter:a=>(a=(a*100).toFixed(2)+"%",a)}),this.chart.coordinate("theta",{radius:.75,innerRadius:.6}),this.chart.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'
  • {name}\u9898\u578B: {value}
  • '}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",a=>({content:r=>`${(a*100).toFixed(2)}%`})).tooltip("item*percent*count",(a,r,s)=>(r=s,{name:a,value:r+"\u9053"})),this.chart.interaction("element-active");const e=await i("paper-difficulty-by-history",{historyId:t});this.chart.data(e),this.chart.annotation().html({position:["50%","50%"],html:`
    \u8BD5\u9898\u6570
    ${e.reduce((a,r)=>a+parseInt(r.count),0)}\u9053
    `,alignX:"middle",alignY:"middle"}),this.chart.render()}}},h={};var Q=n(O,K,N,!1,U,null,null,null);function U(t){for(let e in h)this[e]=h[e]}const V=function(){return Q.exports}();var Z=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("TableLayout",{attrs:{column:t.column,data:t.table_data,pageInfo:t.pageInfo,height:300},on:{"current-change":function(r){return t.pagingChange({currentPage:r})},"size-change":function(r){return t.pagingChange({pageSize:r})}},scopedSlots:t._u([{key:"action",fn:function(r){return[a("el-button",{attrs:{type:"text"},on:{click:function(s){return t.lookPaper(r.row)}}},[t._v("\u67E5\u770B")])]}}])}),a("DialogLayout",{attrs:{visible:t.show,width:"900px",title:"\u8BE6\u60C5"},on:{onCancel:t.onCancel,onConfirm:t.onCancel}},[a("div",{staticClass:"chart-layout"},[a("ExamDetailsScorePercent",{attrs:{exam:t.currentExam}}),a("ExamDetailsMistakesPercent",{attrs:{exam:t.currentExam}}),a("PaperDifficultyByHistoryPercent",{attrs:{exam:t.currentExam}})],1)])],1)},tt=[];const et={components:{TableLayout:y,DialogLayout:w,ExamDetailsScorePercent:_,ExamDetailsMistakesPercent:f,PaperDifficultyByHistoryPercent:V},data:t=>({column:[{prop:"historyId",label:"\u5E8F\u53F7",align:"center","show-overflow-tooltip":!0},{prop:"title",label:"\u7B54\u5377\u540D\u79F0",align:"center","show-overflow-tooltip":!0},{prop:"paperType",label:"\u7B54\u5377\u7C7B\u578B",align:"center","show-overflow-tooltip":!0},{prop:"classify",label:"\u7B54\u5377\u5206\u7C7B",align:"center","show-overflow-tooltip":!0},{prop:"score",label:"\u8BD5\u5377\u603B\u5206",align:"center","show-overflow-tooltip":!0},{prop:"qCount",label:"\u8BD5\u9898\u603B\u6570",align:"center","show-overflow-tooltip":!0},{prop:"examScore",label:"\u8003\u8BD5\u603B\u5206",width:150,align:"center","show-overflow-tooltip":!0},{prop:"isPass",label:"\u7B54\u5377\u6210\u7EE9",width:150,align:"center","show-overflow-tooltip":!0},{prop:"action",label:"\u64CD\u4F5C",minWidth:100,align:"center","show-overflow-tooltip":!0}],table_data:[],pageInfo:{currentPage:1,pageSize:5,total:0,layout:"total, prev, pager, next, jumper"},show:!1,currentExam:null}),mounted(){this.findData()},methods:{onCancel(){this.show=!1},lookPaper(t){this.currentExam=t,this.show=!0},async findData(){const t=await i("paper-details-table",{...this.pageInfo});this.table_data=t.data,this.pageInfo.total=t.total,this.pageInfo.currentPage=t.currentPage,this.pageInfo.pageSize=t.pageSize},pagingChange(t){typeof t.currentPage!="number"&&typeof t.pageSize!="number"||(this.pageInfo={...this.pageInfo,...t},this.findData())}}},d={};var at=n(et,Z,tt,!1,rt,null,null,null);function rt(t){for(let e in d)this[e]=d[e]}const nt=function(){return at.exports}(),it={render(t){return t("div",[[v,g,x,$,S,M,H,J],[nt]][this.$store.statistic_tab_active].map(t))}};let ot,st;const m={};var ct=n(it,ot,st,!1,lt,null,null,null);function lt(t){for(let e in m)this[e]=m[e]}const bt=function(){return ct.exports}();export{bt as default};