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.

6 lines
6.7KB

  1. import{L as f,i as m}from"./index.f55de596.js";import{s as G,d as U,r as p,o as q,c as u,e as H,f as J,h as s,i as l,g as r,t as _,F as K}from"./index.a2494fc2.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={class:"flex-1"},oe={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ae={class:"flex-1"},re={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},se={class:"flex-1"},le={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ie=U({name:"performanceStatistics"}),fe=Object.assign(ie,{setup(D){const h=p({}),R=p(),E=p(),C=p(),F=p(),O=p(),S=p();let v,y,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 a,o;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"}])];v||(v=m(R.value));const e={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:(o=(a=n.value)==null?void 0:a.isPerformance)==null?void 0:o.filter(t=>t.name!=="\u9879\u76EE\u603B\u6570").map(t=>({name:t.name,value:t.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)"}}}]};v.setOption(e)},T=()=>{var a,o;y||(y=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"}])],e={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(o=(a=n.value)==null?void 0:a.selfAppraisalProgress)==null?void 0:o.map(t=>({name:t.name,value:t.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)"}}}]};y.setOption(e)},V=()=>{var e,a;g||(g=m(C.value));const c={tooltip:{show:!0,trigger:"item"},grid:{bottom:20,top:10,right:30},radar:{indicator:(e=n.value)==null?void 0:e.scoreDistribution.map(o=>{var t;return{...o,max:Math.max((t=n.value)==null?void 0:t.scoreDistribution.map(i=>i.num))}})},series:[{name:"\u661F\u7EA7\u5206\u5E03",type:"radar",data:[{value:(a=n.value)==null?void 0:a.scoreDistribution.map(o=>o.num)}]}]};g.setOption(c)},I=()=>{var a,o;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"}])],e={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(o=(a=n.value)==null?void 0:a.reAppraisalProgress)==null?void 0:o.map(t=>({name:t.name,value:t.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(e)},X=()=>{var e,a,o,t;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:(a=(e=n.value)==null?void 0:e.orgTop10)==null?void 0:a.map(i=>i.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:N,series:[{name:"\u5206\u6570",data:(t=(o=n.value)==null?void 0:o.orgTop10)==null?void 0:t.map(i=>i.score),type:"bar",barWidth:20}]};b.setOption(c)},M=()=>{var a,o;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"}])],e={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:c,series:[{data:(o=(a=n.value)==null?void 0:a.rectifyProgress)==null?void 0:o.map(t=>({name:t.name,value:t.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(e)},n=p(),Y=async()=>{const c=await Q({year:h.value.projectYear});n.value=c.data,j()};return q(async()=>{Y()}),(c,e)=>{const a=u("el-date-picker"),o=u("el-form-item"),t=u("el-form"),i=u("el-card"),d=u("el-col"),W=u("el-row");return H(),J(K,null,[s(i,{class:"mb-16"},{default:l(()=>{var k,B,L,A;return[s(t,{ref:"formRef",model:h.value},{default:l(()=>[s(o,{label:"\u5E74\u5EA6"},{default:l(()=>[s(a,{modelValue:h.value.projectYear,"onUpdate:modelValue":e[0]||(e[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"]),r("div",Z,[r("div",$,[r("p",ee,_(((k=n.value)==null?void 0:k.finishedTotal)||0),1),e[1]||(e[1]=r("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u8BC4\u4EF7\u9879\u76EE\u603B\u6570",-1))]),r("div",te,[r("p",oe,_(((B=n.value)==null?void 0:B.finishedSelf)||0),1),e[2]||(e[2]=r("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u81EA\u8BC4\u603B\u6570",-1))]),r("div",ae,[r("p",re,_(((L=n.value)==null?void 0:L.finishedReAppraisal)||0),1),e[3]||(e[3]=r("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u590D\u8BC4\u603B\u6570",-1))]),r("div",se,[r("p",le,_(((A=n.value)==null?void 0:A.rectifyTotal)||0),1),e[4]||(e[4]=r("p",{class:"text-info text-14"},"\u5F53\u524D\u9700\u6574\u6539\u9879\u76EE\u603B\u6570",-1))])])]}),_:1}),s(W,{gutter:16},{default:l(()=>[s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u7EE9\u6548\u8BC4\u4EF7"},{default:l(()=>[r("div",{ref_key:"chart1Ref",ref:R,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u81EA\u8BC4\u8FDB\u5EA6"},{default:l(()=>[r("div",{ref_key:"chart2Ref",ref:E,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u661F\u7EA7\u5206\u5E03"},{default:l(()=>[r("div",{ref_key:"chart3Ref",ref:C,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u590D\u8BC4\u8FDB\u5EA6"},{default:l(()=>[r("div",{ref_key:"chart4Ref",ref:F,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u7EE9\u6548TOP10"},{default:l(()=>[r("div",{ref_key:"chart5Ref",ref:O,class:"h-[230px]"},null,512)]),_:1})]),_:1}),s(d,{span:12,class:"mb-16"},{default:l(()=>[s(i,{header:"\u6574\u6539\u8FDB\u5EA6"},{default:l(()=>[r("div",{ref_key:"chart6Ref",ref:S,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{fe as default};