import{o as a,c as t,w as e,d as l,R as s,e as o,v as r,i,j as n,b as d,r as c,t as u,k as p,m as f,f as g,F as b,g as h}from"./index-IX2tYR8R.js";import{_ as C}from"./qiun-data-charts.CVWuWAeL.js";import{r as m}from"./uni-app.es.Bc5t55A8.js";import{_}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{_ as y}from"./oneBtn.DSZ3NLjD.js";const F=_({},[["render",function(d,c){const u=r,p=i,f=n;return a(),t(p,{class:"noDate"},{default:e((()=>[l(p,{class:"img"},{default:e((()=>[l(u,{src:"/h5/assets/nodata-CKhNPYNs.png",mode:""})])),_:1}),l(p,{class:"text"},{default:e((()=>[s(d.$slots,"default",{},(()=>[l(f,null,{default:e((()=>[o("暂无数据")])),_:1})]),!0)])),_:3})])),_:3})}],["__scopeId","data-v-b27f0ca7"]]);const x=_({props:["chartData"],data:()=>({opts:{timing:"easeOut",duration:1e3,rotate:!1,rotateLock:!1,color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],padding:[15,15,0,5],fontSize:13,fontColor:"#1989FA",dataLabel:!0,dataPointShape:!0,dataPointShapeType:"solid",touchMoveLimit:60,enableScroll:!0,enableMarkLine:!1,legend:{show:!1,position:"bottom",float:"center",padding:5,margin:5,backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,fontSize:13,fontColor:"#666666",lineHeight:11,hiddenColor:"#CECECE",itemGap:10},xAxis:{disableGrid:!0,disabled:!1,axisLine:!0,axisLineColor:"#E8E9EC",calibration:!1,fontColor:"#686B73",fontSize:12,lineHeight:20,marginTop:0,rotateLabel:!1,rotateAngle:45,itemCount:6,boundaryGap:"center",splitNumber:5,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,gridEval:1,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF",title:"",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666",format:""},yAxis:{data:[{min:0}],disabled:!0,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:8,gridColor:"#E8E9EC",padding:10,showTitle:!1},extra:{column:{type:"group",width:9,activeBgColor:"#000000",activeBgOpacity:.08,seriesGap:2,categoryGap:3,barBorderCircle:!1,linearType:"none",linearOpacity:1,colorStop:0,meterBorder:1,meterFillColor:"#FFFFFF",labelPosition:"outside"},tooltip:{showBox:!1,showArrow:!0,showCategory:!1,borderWidth:0,borderRadius:0,borderColor:"#000000",borderOpacity:.7,bgColor:"#000000",bgOpacity:.7,gridType:"solid",dashLength:4,gridColor:"#CCCCCC",boxPadding:3,fontSize:12,lineHeight:20,fontColor:"#FFFFFF",legendShow:!0,legendShape:"auto",splitLine:!0,horizentalLine:!1,xAxisLabel:!1,yAxisLabel:!1,labelBgColor:"#FFFFFF",labelBgOpacity:.7,labelFontColor:"#666666"},markLine:{type:"solid",dashLength:4,data:[]}}}}),mounted(){},methods:{getServerData(){setTimeout((()=>{this.chartData=JSON.parse(JSON.stringify({categories:["08/01","08/02","08/03","08/04","08/05","08/06"],series:[{name:"目标值",data:[35,16,31,33,35,36]}]}))}),500)}}},[["render",function(s,o,r,n,c,u){const p=m(d("qiun-data-charts"),C),f=i;return a(),t(f,{class:"charts-box"},{default:e((()=>[l(p,{type:"line",opts:c.opts,chartData:r.chartData,ontouch:!0},null,8,["opts","chartData"])])),_:1})}],["__scopeId","data-v-e852e54a"]]),S=_({__name:"statistics",props:{tit:{type:String,default:""},chartData:{type:Object,default:{}},listData:{type:Array,default:[]},subject:{type:Number,default:1},url:{type:String,default:"/pages/exercises/examSubjiect1/examSubjiect1"}},setup(s){const r=c(1);function n(a){r.value=a}return(c,C)=>{const _=i,S=m(d("columnChart"),x),E=m(d("nodata"),F),D=m(d("oneBtn"),y);return a(),t(_,{class:"card card2"},{default:e((()=>[l(_,{class:"chartTab"},{default:e((()=>[l(_,{class:"h3"},{default:e((()=>[o(u(s.tit),1)])),_:1}),l(_,{class:"btn_row"},{default:e((()=>[l(_,{class:p(["btn",{bg:1==r.value}]),onClick:C[0]||(C[0]=a=>n(1))},{default:e((()=>[o("曲线")])),_:1},8,["class"]),l(_,{class:p(["btn",{bg:2==r.value}]),onClick:C[1]||(C[1]=a=>n(2))},{default:e((()=>[o("明细")])),_:1},8,["class"])])),_:1})])),_:1}),l(_,{class:"tip"},{default:e((()=>[o("近30次科目"+u(1==s.subject?"一":"四")+"模拟考试成绩",1)])),_:1}),s.listData.length?(a(),t(_,{key:0,class:""},{default:e((()=>[1==r.value?(a(),t(_,{key:0,class:"con"},{default:e((()=>[(a(),t(S,{chartData:s.chartData,key:s.tit},null,8,["chartData"])),l(_,{class:"tips"},{default:e((()=>[o("按住可左右滑动查看更多成绩")])),_:1})])),_:1})):f("",!0),2==r.value?(a(),t(_,{key:1,class:"con"},{default:e((()=>[l(_,{class:"tables"},{default:e((()=>[l(_,{class:"fristTab li"},{default:e((()=>[l(_,{class:"item"},{default:e((()=>[o("考试成绩")])),_:1}),l(_,{class:"item"},{default:e((()=>[o("考试用时")])),_:1}),l(_,{class:"item"},{default:e((()=>[o("考试时间")])),_:1})])),_:1}),(a(!0),g(b,null,h(s.listData,((s,r)=>(a(),t(_,{class:"li",key:r},{default:e((()=>[l(_,{class:"item"},{default:e((()=>[o(u(s.score)+"分",1)])),_:2},1024),l(_,{class:"item"},{default:e((()=>[o(u(s.useTime),1)])),_:2},1024),l(_,{class:"item"},{default:e((()=>[o(u(s.startTime),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})):f("",!0)])),_:1})):(a(),t(_,{key:1,class:""},{default:e((()=>[l(E,null,{default:e((()=>[o("暂无考试记录")])),_:1}),l(_,{class:"btnE"},{default:e((()=>[l(D,{text:"去考试",onOneBtnClick:C[2]||(C[2]=a=>c.$goPage(s.url))})])),_:1})])),_:1}))])),_:1})}}},[["__scopeId","data-v-225c2e0e"]]);export{S as s};