import{C as c}from"./index.bb5f1b0a.js";import{f as l}from"./index.70d38b82.js";import{n as r}from"./vueComponentNormalizer.9ef17bb1.js";import p from"./index.d462c08d.js";import"./index.51e15757.js";/* empty css                                                              */import"./FormLayout.c7820bdd.js";/* empty css                                                                   */import"./TableLayout.05a39499.js";/* empty css                                                    */import"./DialogLayout.e3af3567.js";import"./ActionBar.1725b1a3.js";/* empty css                                                     */import"./QueryInput.7afa399e.js";/* empty css                                                               *//* empty css                */import"./mistake.821630f8.js";import"./data-report.1a365133.js";var u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chart",attrs:{"data-title":"\u9519\u9898\u9898\u578B\u7EDF\u8BA1"}})},d=[];const m={methods:{async findData(){const t=await l("paper-mistakes-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`<div style="color:#8c8c8c;font-size: 14px;text-align: center;width: 10em;">\u9519\u9898\u6570<br><span style="color:#8c8c8c;font-size:20px">${t.reduce((e,n)=>e+parseInt(n.count),0)}</span>\u9053</div>`,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new c({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:'<li class="g2-tooltip-list-item">{name}: {value}<br /><p style="margin-top:5px"><span style="background-color:{color};" class="g2-tooltip-marker"></span>\u9898\u578B\u5360\u6BD4:{percent}</p></li>'}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${(t*100).toFixed(2)}%`})).tooltip("item*percent*count",(t,e,n)=>({name:t,value:n+"\u9053",percent:`${(e*100).toFixed(2)}%`})),this.chart.interaction("element-active")}},i={};var h=r(m,u,d,!1,_,null,null,null);function _(t){for(let e in i)this[e]=i[e]}const v=function(){return h.exports}();var f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chart",attrs:{"data-title":"\u9519\u9898\u603B\u6570\u7EDF\u8BA1"}})},$=[];const x={methods:{async findData(){const t=await l("mistakes-is-pass-percent");this.chart.data(t),this.chart.annotation().html({position:["50%","50%"],html:`<div style="color:#8c8c8c;font-size: 14px;text-align: center;width: 10em;">\u6240\u6709\u9519\u9898<br><span style="color:#8c8c8c;font-size:20px">${t.reduce((e,n)=>e+parseInt(n.count),0)}</span>\u9053</div>`,alignX:"middle",alignY:"middle"}),this.chart.render()}},mounted(){this.findData(),this.chart=new c({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:'<li class="g2-tooltip-list-item">{name}\u9519\u9898\u6570: {value}<br /><p style="margin-top:5px"><span style="background-color:{color};" class="g2-tooltip-marker"></span>\u9898\u578B\u5360\u6BD4:{percent}</p></li>'}),this.chart.interval().adjust("stack").position("percent").color("item").label("percent",t=>({content:e=>`${(t*100).toFixed(2)}%`})).tooltip("item*percent*count",(t,e,n)=>({name:t,value:n+"\u9053",percent:`${(e*100).toFixed(2)}%`})),this.chart.interaction("element-active")}},a={};var g=r(x,f,$,!1,k,null,null,null);function k(t){for(let e in a)this[e]=a[e]}const y=function(){return g.exports}();var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"block"},[n("MistakeTable",{attrs:{isMountedLoad:!0}})],1)},F=[];const M={components:{MistakeTable:p},methods:{}},s={};var w=r(M,b,F,!1,T,null,null,null);function T(t){for(let e in s)this[e]=s[e]}const j=function(){return w.exports}(),C={render(t){return t("div",[[y,v],[j]][this.$store.statistic_tab_active].map(t))}};let D,R;const o={};var z=r(C,D,R,!1,S,null,null,null);function S(t){for(let e in o)this[e]=o[e]}const W=function(){return z.exports}();export{W as default};
