1 |
- var s=(r,M,m)=>new Promise((C,w)=>{var g=u=>{try{x(m.next(u))}catch(p){w(p)}},T=u=>{try{x(m.throw(u))}catch(p){w(p)}},x=u=>u.done?C(u.value):Promise.resolve(u.value).then(g,T);x((m=m.apply(r,M)).next())});import{F as I,d as Pt,f as Gt,bG as j,r as U,n as Rt,o as N,l as P,a as t,e as n,w as f,u as i,bm as G,S as Yt,t as a,C as R,af as St,N as kt,O as Ft,__tla as Ot}from"./index-b5895273.js";import{__tla as qt}from"./index-42fa3364.js";import{t as It}from"./data.config-76f5e4f3.js";import{_ as jt,__tla as zt}from"./Gauge.vue_vue_type_script_setup_true_lang-d6531650.js";import{__tla as At}from"./useECharts-1cf5809c.js";import"./installSVGRenderer-a67ecca0.js";let Ut,Bt=Promise.all([(()=>{try{return Ot}catch(r){}})(),(()=>{try{return qt}catch(r){}})(),(()=>{try{return zt}catch(r){}})(),(()=>{try{return At}catch(r){}})()]).then(()=>s(void 0,null,function*(){function r(h,l="modal"){return s(this,null,function*(){return I.get({url:"/statistics/student-statistics",params:h},{errorMessageMode:l})})}function M(h,l="modal"){return s(this,null,function*(){return I.get({url:"/statistics/teacher-statistics",params:h},{errorMessageMode:l})})}function m(h,l="modal"){return s(this,null,function*(){return I.get({url:"/statistics/visitor-list",params:h},{errorMessageMode:l})})}let C,w,g,T,x,u,p,S,k,F,O,q,z,A,B,E,H,J,K,L,Q,V,W,X,Z,$,tt,et,lt,at,st,nt,it,ut,dt,vt,ot,rt,ct,ft,mt,xt,pt,ht,wt,yt,_t;C={class:"flex m-4"},w={class:"w-1/2"},g={class:"flex flex-1 justify-between"},T=t("div",null,"\u6559\u5E08\u51FA\u52E4\u7EDF\u8BA1",-1),x={class:"flex items-center"},u={class:"flex-1 m-4"},p={class:"flex justify-between"},S={class:"text-2xl font-bold"},k=t("div",null,"\u6559\u5E08\u603B\u4EBA\u6570",-1),F={class:"text-2xl font-bold"},O=t("div",null,"\u5B9E\u5230\u4EBA\u6570",-1),q={class:"flex justify-between mt-4"},z={class:"text-2xl font-bold"},A=t("div",null,"\u8BF7\u5047\u4EBA\u6570",-1),B={class:"text-2xl font-bold"},E=t("div",null,"\u8FDF\u5230\u4EBA\u6570",-1),H={class:"text-2xl font-bold"},J=t("div",null,"\u7F3A\u52E4\u4EBA\u6570",-1),K={class:"flex flex-1 justify-between"},L=t("div",null,"\u5B66\u751F\u51FA\u52E4\u7EDF\u8BA1",-1),Q={class:"flex items-center"},V={class:"flex-1 m-4"},W={class:"flex justify-between"},X={class:"text-2xl font-bold"},Z=t("div",null,"\u5B66\u751F\u603B\u4EBA\u6570",-1),$={class:"text-2xl font-bold"},tt=t("div",null,"\u5B9E\u5230\u4EBA\u6570",-1),et={class:"text-2xl font-bold"},lt=t("div",null,"\u8BF7\u5047\u4EBA\u6570",-1),at={class:"flex justify-between mt-4"},st={class:"text-2xl font-bold"},nt=t("div",null,"\u8FDF\u5230\u4EBA\u6570",-1),it={class:"text-2xl font-bold"},ut=t("div",null,"\u65F7\u8BFE\u4EBA\u6570",-1),dt={class:"text-2xl font-bold"},vt=t("div",null,"\u7F3A\u52E4\u4EBA\u6570",-1),ot={class:"w-1/2 ml-4"},rt={class:"flex flex-1 justify-between"},ct={class:"h-full"},ft={class:"flex justify-between items-center"},mt={class:"text-[18px] font-bold"},xt={class:"text-[10px] text-[#aaa]"},pt={class:"flex mt-2"},ht={class:"w-1/2"},wt={class:"flex mt-2"},yt={class:"w-1/2"},_t={class:"mt-2"},Ut=Pt({__name:"index",setup(h){const l=Gt({teacherDate:j(new Date),teacherTimeInterval:1,studentDate:j(new Date),studentTimeInterval:1,visitorDate:j(new Date)}),c=U(),o=U(),Y=U([]),bt=()=>s(this,null,function*(){l.teacherDate&&l.teacherTimeInterval&&(c.value=yield M({date:l.teacherDate,timePeriod:l.teacherTimeInterval}))}),Dt=()=>s(this,null,function*(){l.studentDate&&l.studentTimeInterval&&(o.value=yield r({date:l.studentDate,timePeriod:l.studentTimeInterval}))}),Ct=()=>s(this,null,function*(){Y.value=yield m({date:l.visitorDate})}),gt=()=>s(this,null,function*(){yield bt()}),Tt=()=>s(this,null,function*(){yield Dt()}),Nt=()=>s(this,null,function*(){yield Ct()});return Rt(()=>s(this,null,function*(){yield bt(),yield Dt(),yield Ct()})),(Et,d)=>(N(),P("div",C,[t("div",w,[n(i(R),null,{title:f(()=>[t("div",g,[T,t("div",null,[n(i(G),{style:{width:"180px"},value:l.teacherDate,"onUpdate:value":d[0]||(d[0]=e=>l.teacherDate=e),placeholder:"\u65F6\u95F4",onChange:gt,"value-format":"YYYY-MM-DD",allowClear:!1},null,8,["value"]),n(i(Yt),{value:l.teacherTimeInterval,"onUpdate:value":d[1]||(d[1]=e=>l.teacherTimeInterval=e),options:i(It).filter(e=>e.value===1||e.value===2),style:{width:"180px","margin-left":"8px"},placeholder:"\u65F6\u95F4\u6BB5",onChange:gt},null,8,["value","options"])])])]),default:f(()=>{var e,v,y,_,b,D;return[t("div",x,[n(jt,{width:"300px",height:"300px",value:((e=c.value)==null?void 0:e.attendanceRate)||0},null,8,["value"]),t("div",u,[t("div",p,[t("div",null,[t("div",S,a(((v=c.value)==null?void 0:v.allCount)||0),1),k]),t("div",null,[t("div",F,a(((y=c.value)==null?void 0:y.actualCount)||0),1),O])]),t("div",q,[t("div",null,[t("div",z,a(((_=c.value)==null?void 0:_.leaveCount)||0),1),A]),t("div",null,[t("div",B,a(((b=c.value)==null?void 0:b.lateCount)||0),1),E]),t("div",null,[t("div",H,a(((D=c.value)==null?void 0:D.absenteeismCount)||0),1),J])])])])]}),_:1}),n(i(R),{class:"!mt-4"},{title:f(()=>[t("div",K,[L,t("div",null,[n(i(G),{style:{width:"180px"},value:l.studentDate,"onUpdate:value":d[2]||(d[2]=e=>l.studentDate=e),placeholder:"\u65F6\u95F4",onChange:Tt,"value-format":"YYYY-MM-DD",allowClear:!1},null,8,["value"]),n(i(Yt),{value:l.studentTimeInterval,"onUpdate:value":d[3]||(d[3]=e=>l.studentTimeInterval=e),options:i(It),style:{width:"180px","margin-left":"8px"},placeholder:"\u65F6\u95F4\u6BB5",onChange:Tt},null,8,["value","options"])])])]),default:f(()=>{var e,v,y,_,b,D,Mt;return[t("div",Q,[n(jt,{width:"300px",height:"300px",color:"#0066ff",value:((e=o.value)==null?void 0:e.attendanceRate)||0},null,8,["value"]),t("div",V,[t("div",W,[t("div",null,[t("div",X,a(((v=o.value)==null?void 0:v.allCount)||0),1),Z]),t("div",null,[t("div",$,a(((y=o.value)==null?void 0:y.actualCount)||0),1),tt]),t("div",null,[t("div",et,a(((_=o.value)==null?void 0:_.leaveCount)||0),1),lt])]),t("div",at,[t("div",null,[t("div",st,a(((b=o.value)==null?void 0:b.lateCount)||0),1),nt]),t("div",null,[t("div",it,a(((D=o.value)==null?void 0:D.playTruantCount)||0),1),ut]),t("div",null,[t("div",dt,a(((Mt=o.value)==null?void 0:Mt.absenteeismCount)||0),1),vt])])])])]}),_:1})]),t("div",ot,[n(i(R),null,{title:f(()=>{var e;return[t("div",rt,[t("div",null,"\u8BBF\u5BA2\u7EDF\u8BA1("+a((e=Y.value)==null?void 0:e.length)+")",1),t("div",null,[n(i(G),{style:{width:"180px"},value:l.visitorDate,"onUpdate:value":d[4]||(d[4]=v=>l.visitorDate=v),placeholder:"\u65F6\u95F4","value-format":"YYYY-MM-DD",onChange:Nt,allowClear:!1},null,8,["value"])])])]}),default:f(()=>[t("div",ct,[n(i(St),null,{default:f(()=>[(N(!0),P(kt,null,Ft(Y.value,(e,v)=>(N(),P("div",{key:v,class:"mt-4"},[t("div",ft,[t("div",mt,a(e.name)+"("+a(e.identityCard)+") ",1),t("div",xt,a(e.createDate),1)]),t("div",pt,[t("div",ht," \u8FDB\u6821\u4E8B\u7531\uFF1A"+a(e.reason),1),t("div",null," \u5230\u8BBF\u90E8\u95E8\uFF1A"+a(e.deptName),1)]),t("div",wt,[t("div",yt," \u624B\u673A\u53F7\u7801\uFF1A"+a(e.phone),1),t("div",null," \u88AB\u8BBF\u4EBA\uFF1A"+a(e.respondentUserName),1)]),t("div",_t,[t("div",null,a(e.startTime)+" \u81F3 "+a(e.endTime),1)])]))),128))]),_:1})])]),_:1})])]))}})}));export{Bt as __tla,Ut as default};
|