You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 2 месеца
преди 2 месеца
12
  1. import{L as x,i as d}from"./index.f55de596.js";import{s 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 a,t as y,F as G}from"./index.766d5891.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={class:"flex-1"},J={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},K={class:"flex-1"},Q={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Z=B({name:"expertStatistics"}),te=Object.assign(Z,{setup(b){const p=i({}),w=i(),R=i(),D=i(),Y=i();let u,_,g,h;const v=new x(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),O=async()=>{A(),L(),P(),j()},A=()=>{var t,o;u||(u=d(w.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(t=r.value)==null?void 0:t.regionMeetings.map(e=>e.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{type:"value"},color:v,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;_||(_=d(R.value));const n=[new x(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new x(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],t={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}
  2. {c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};_.setOption(t)},P=()=>{var t,o;g||(g=d(D.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(t=r.value)==null?void 0:t.notPassRegionMeetings.map(e=>e.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{type:"value"},color:v,series:[{name:"\u4E0D\u901A\u8FC7\u7387",data:(o=r.value)==null?void 0:o.notPassRegionMeetings.map(e=>e.rate),type:"line"}]};g.setOption(n)},j=()=>{var t,o;h||(h=d(Y.value));const n={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(t=r.value)==null?void 0:t.notPassTop10.map(e=>e.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:v,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}]};h.setOption(n)},r=i(),C=async()=>{const n=await U({year:p.value.projectYear});r.value=n.data,O()};return S(async()=>{C()}),(n,t)=>{const o=c("el-date-picker"),e=c("el-form-item"),M=c("el-form"),f=c("el-card"),m=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":t[0]||(t[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"]),a("div",X,[a("div",q,[a("p",z,y(((F=r.value)==null?void 0:F.meetingTotal)||0),1),t[1]||(t[1]=a("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u4F1A\u8BAE\u53EC\u5F00\u603B\u6570",-1))]),a("div",H,[a("p",J,y(((k=r.value)==null?void 0:k.passReview)||0),1),t[2]||(t[2]=a("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u901A\u8FC7\u6570",-1))]),a("div",K,[a("p",Q,y(((E=r.value)==null?void 0:E.notPassRate)||0)+"%",1),t[3]||(t[3]=a("p",{class:"text-info text-14"},"\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u7387",-1))])])]}),_:1}),s(N,{gutter:16},{default:l(()=>[s(m,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u53EC\u5F00\u4F1A\u8BAE\u603B\u6570"},{default:l(()=>[a("div",{ref_key:"chart1Ref",ref:w,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(m,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u9884\u5BA1/\u9A8C\u6536\u4F1A\u8BAE\u60C5\u51B5"},{default:l(()=>[a("div",{ref_key:"chart2Ref",ref:R,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(m,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u7387"},{default:l(()=>[a("div",{ref_key:"chart3Ref",ref:D,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(m,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"\u5404\u533A\u53BF\u8BC4\u5BA1\u4E0D\u901A\u8FC7\u60C5\u51B5TOP10"},{default:l(()=>[a("div",{ref_key:"chart4Ref",ref:Y,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{te as default};