選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index-38522c0e.js 4.4KB

12
  1. import{L as x,i as d}from"./index-b861e656.js";import{z as V,r as i,o as B,b as c,c as S,d as I,f as s,h as l,e as a,t as y,F as W,k as z}from"./index-dd5fae99.js";const G=b=>V.get("/api/v1/statistics/meeting",{params:b}),U={class:"flex justify-center text-center mt-24"},X={class:"flex-1"},q={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=z({name:"expertStatistics"}),te=Object.assign(Z,{setup(b){const p=i({}),w=i(),R=i(),D=i(),Y=i();let u,_,h,g;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:"召开会议数",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;h||(h=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:"不通过率",data:(o=r.value)==null?void 0:o.notPassRegionMeetings.map(e=>e.rate),type:"line"}]};h.setOption(n)},j=()=>{var t,o;g||(g=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:"评审不通过数",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 G({year:p.value.projectYear});r.value=n.data,O()};return B(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 S(),I(W,null,[s(f,{class:"mb-16"},{default:l(()=>{var k,F,E;return[s(M,{ref:"formRef",model:p.value},{default:l(()=>[s(e,{label:"年度"},{default:l(()=>[s(o,{modelValue:p.value.projectYear,"onUpdate:modelValue":t[0]||(t[0]=T=>p.value.projectYear=T),type:"year",placeholder:"全部",format:"YYYY","value-format":"YYYY",style:{width:"200px"},onChange:C},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a("div",U,[a("div",X,[a("p",q,y(((k=r.value)==null?void 0:k.meetingTotal)||0),1),t[1]||(t[1]=a("p",{class:"text-info text-14"},"评审会议召开总数",-1))]),a("div",H,[a("p",J,y(((F=r.value)==null?void 0:F.passReview)||0),1),t[2]||(t[2]=a("p",{class:"text-info text-14"},"评审通过数",-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"},"评审不通过率",-1))])])]}),_:1}),s(N,{gutter:16},{default:l(()=>[s(m,{span:12,class:"mb-16"},{default:l(()=>[s(f,{header:"各区县召开会议总数"},{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:"预审/验收会议情况"},{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:"各区县评审不通过率"},{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:"各区县评审不通过情况TOP10"},{default:l(()=>[a("div",{ref_key:"chart4Ref",ref:Y,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{te as default};