import{L as v,i as m}from"./index.f55de596.js";import{y as V,d as B,r as i,o as S,c,e as I,f as W,h as s,i as l,g as t,t as x,F as G}from"./index.5bb861d3.js";const U=b=>V.get("/api/v1/statistics/meeting",{params:b}),X={class:"flex justify-center text-center mt-24"},q={class:"flex-1"},z={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},H=t("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u4F1A\u8BAE\u53EC\u5F00\u603B\u6570",-1),J={class:"flex-1"},K={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Q=t("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u901A\u8FC7\u6570",-1),Z={class:"flex-1"},$={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ee=t("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u7387",-1),te=B({name:"expertStatistics"}),se=Object.assign(te,{setup(b){const p=i({}),w=i(),R=i(),D=i(),Y=i();let u,_,h,g;const y=new v(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),O=async()=>{A(),L(),P(),j()},A=()=>{var a,o;u||(u=m(w.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(a=r.value)==null?void 0:a.regionMeetings.map(e=>e.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{type:"value"},color:y,series:[{name:"\u53EC\u5F00\u4F1A\u8BAE\u6570",data:(o=r.value)==null?void 0:o.regionMeetings.map(e=>e.num),type:"bar",barWidth:20}]};u.setOption(n)},L=()=>{var o;_||(_=m(R.value));const n=[new v(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new v(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],a={legend:{show:!1},tooltip:{show:!0,trigger:"item"},color:n,series:[{data:(o=r.value)==null?void 0:o.meetingTypes.map(e=>({value:e.num,name:e.name})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
{c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};_.setOption(a)},P=()=>{var a,o;h||(h=m(D.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(a=r.value)==null?void 0:a.notPassRegionMeetings.map(e=>e.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{type:"value"},color:y,series:[{name:"\u4E0D\u901A\u8FC7\u7387",data:(o=r.value)==null?void 0:o.notPassRegionMeetings.map(e=>e.rate),type:"line"}]};h.setOption(n)},j=()=>{var a,o;g||(g=m(Y.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(a=r.value)==null?void 0:a.notPassTop10.map(e=>e.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:y,series:[{name:"\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u6570",data:(o=r.value)==null?void 0:o.notPassTop10.map(e=>e.rate),type:"bar",barWidth:20}]};g.setOption(n)},r=i(),C=async()=>{const n=await U({year:p.value.projectYear});r.value=n.data,O()};return S(async()=>{C()}),(n,a)=>{const o=c("el-date-picker"),e=c("el-form-item"),M=c("el-form"),f=c("el-card"),d=c("el-col"),N=c("el-row");return I(),W(G,null,[s(f,{class:"mb-16"},{default:l(()=>{var F,k,E;return[s(M,{ref:"formRef",model:p.value},{default:l(()=>[s(e,{label:"\u5E74\u5EA6"},{default:l(()=>[s(o,{modelValue:p.value.projectYear,"onUpdate:modelValue":a[0]||(a[0]=T=>p.value.projectYear=T),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"},onChange:C},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),t("div",X,[t("div",q,[t("p",z,x(((F=r.value)==null?void 0:F.meetingTotal)||0),1),H]),t("div",J,[t("p",K,x(((k=r.value)==null?void 0:k.passReview)||0),1),Q]),t("div",Z,[t("p",$,x(((E=r.value)==null?void 0:E.notPassRate)||0)+"%",1),ee])])]}),_:1}),s(N,{gutter:16},{default:l(()=>[s(d,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u53EC\u5F00\u4F1A\u8BAE\u603B\u6570"},{default:l(()=>[t("div",{ref_key:"chart1Ref",ref:w,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u9884\u5BA1/\u9A8C\u6536\u4F1A\u8BAE\u60C5\u51B5"},{default:l(()=>[t("div",{ref_key:"chart2Ref",ref:R,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u7387"},{default:l(()=>[t("div",{ref_key:"chart3Ref",ref:D,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u60C5\u51B5TOP10"},{default:l(()=>[t("div",{ref_key:"chart4Ref",ref:Y,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{se as default};
