Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

6 lignes
6.7KB

  1. import{L as f,i as m}from"./index.f55de596.js";import{y as G,d as U,r as d,o as q,c as u,e as H,f as J,h as r,i as l,g as a,t as _,F as K}from"./index.d340e473.js";const Q=D=>G.get("/api/v1/statistics/performance",{params:D}),Z={class:"flex justify-between text-center mt-24"},$={class:"flex-1"},ee={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},te=a("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u8BC4\u4EF7\u9879\u76EE\u603B\u6570",-1),oe={class:"flex-1"},ae={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},re=a("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u81EA\u8BC4\u603B\u6570",-1),se={class:"flex-1"},le={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ie=a("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u590D\u8BC4\u603B\u6570",-1),ne={class:"flex-1"},ce={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},fe=a("p",{class:"text-info text-14"},"\u5F53\u524D\u9700\u6574\u6539\u9879\u76EE\u603B\u6570",-1),de=U({name:"performanceStatistics"}),ue=Object.assign(de,{setup(D){const h=d({}),R=d(),E=d(),C=d(),F=d(),O=d(),S=d();let y,v,g,x,b,w;const N=new f(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),j=async()=>{P(),T(),V(),I(),X(),M()},P=()=>{var o,t;const c=[new f(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new f(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])];y||(y=m(R.value));const s={legend:{show:!1},tooltip:{show:!0,trigger:"item"},color:c,graphic:[{type:"text",left:"center",top:"center",style:{text:"\u9879\u76EE\u6570\uFF1A250",textAlign:"center",fill:"#333",fontSize:16,fontWeight:500}}],series:[{data:(t=(o=n.value)==null?void 0:o.isPerformance)==null?void 0:t.filter(e=>e.name!=="\u9879\u76EE\u603B\u6570").map(e=>({name:e.name,value:e.num})),radius:["45%","80%"],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)"}}}]};y.setOption(s)},T=()=>{var o,t;v||(v=m(E.value));const c=[new f(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new f(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],s={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(t=(o=n.value)==null?void 0:o.selfAppraisalProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
  3. {c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};v.setOption(s)},V=()=>{var s,o;g||(g=m(C.value));const c={tooltip:{show:!0,trigger:"item"},grid:{bottom:20,top:10,right:30},radar:{indicator:(s=n.value)==null?void 0:s.scoreDistribution.map(t=>{var e;return{...t,max:Math.max((e=n.value)==null?void 0:e.scoreDistribution.map(i=>i.num))}})},series:[{name:"\u661F\u7EA7\u5206\u5E03",type:"radar",data:[{value:(o=n.value)==null?void 0:o.scoreDistribution.map(t=>t.num)}]}]};g.setOption(c)},I=()=>{var o,t;x||(x=m(F.value));const c=[new f(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new f(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],s={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(t=(o=n.value)==null?void 0:o.reAppraisalProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
  4. {c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};x.setOption(s)},X=()=>{var s,o,t,e;b||(b=m(O.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:i=>i},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(o=(s=n.value)==null?void 0:s.orgTop10)==null?void 0:o.map(i=>i.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:N,series:[{name:"\u5206\u6570",data:(e=(t=n.value)==null?void 0:t.orgTop10)==null?void 0:e.map(i=>i.score),type:"bar",barWidth:20}]};b.setOption(c)},M=()=>{var o,t;w||(w=m(S.value));const c=[new f(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new f(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],s={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(t=(o=n.value)==null?void 0:o.rectifyProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
  5. {c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};w.setOption(s)},n=d(),Y=async()=>{const c=await Q({year:h.value.projectYear});n.value=c.data,j()};return q(async()=>{Y()}),(c,s)=>{const o=u("el-date-picker"),t=u("el-form-item"),e=u("el-form"),i=u("el-card"),p=u("el-col"),W=u("el-row");return H(),J(K,null,[r(i,{class:"mb-16"},{default:l(()=>{var k,B,L,A;return[r(e,{ref:"formRef",model:h.value},{default:l(()=>[r(t,{label:"\u5E74\u5EA6"},{default:l(()=>[r(o,{modelValue:h.value.projectYear,"onUpdate:modelValue":s[0]||(s[0]=z=>h.value.projectYear=z),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"},onChange:Y},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a("div",Z,[a("div",$,[a("p",ee,_(((k=n.value)==null?void 0:k.finishedTotal)||0),1),te]),a("div",oe,[a("p",ae,_(((B=n.value)==null?void 0:B.finishedSelf)||0),1),re]),a("div",se,[a("p",le,_(((L=n.value)==null?void 0:L.finishedReAppraisal)||0),1),ie]),a("div",ne,[a("p",ce,_(((A=n.value)==null?void 0:A.rectifyTotal)||0),1),fe])])]}),_:1}),r(W,{gutter:16},{default:l(()=>[r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u7EE9\u6548\u8BC4\u4EF7"},{default:l(()=>[a("div",{ref_key:"chart1Ref",ref:R,class:"h-[230px]"},null,512)]),_:1})]),_:1}),r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u81EA\u8BC4\u8FDB\u5EA6"},{default:l(()=>[a("div",{ref_key:"chart2Ref",ref:E,class:"h-[230px]"},null,512)]),_:1})]),_:1}),r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u661F\u7EA7\u5206\u5E03"},{default:l(()=>[a("div",{ref_key:"chart3Ref",ref:C,class:"h-[230px]"},null,512)]),_:1})]),_:1}),r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u590D\u8BC4\u8FDB\u5EA6"},{default:l(()=>[a("div",{ref_key:"chart4Ref",ref:F,class:"h-[230px]"},null,512)]),_:1})]),_:1}),r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u7EE9\u6548TOP10"},{default:l(()=>[a("div",{ref_key:"chart5Ref",ref:O,class:"h-[230px]"},null,512)]),_:1})]),_:1}),r(p,{span:12,class:"mb-16"},{default:l(()=>[r(i,{header:"\u6574\u6539\u8FDB\u5EA6"},{default:l(()=>[a("div",{ref_key:"chart6Ref",ref:S,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{ue as default};