var H=Object.defineProperty,Q=Object.defineProperties;var Z=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var P=(f,o,r)=>o in f?H(f,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):f[o]=r,T=(f,o)=>{for(var r in o||(o={}))$.call(o,r)&&P(f,r,o[r]);if(N)for(var r of N(o))ee.call(o,r)&&P(f,r,o[r]);return f},V=(f,o)=>Q(f,Z(o));var E=(f,o,r)=>new Promise((w,b)=>{var D=m=>{try{v(r.next(m))}catch(_){b(_)}},R=m=>{try{v(r.throw(m))}catch(_){b(_)}},v=m=>m.done?w(m.value):Promise.resolve(m.value).then(D,R);v((r=r.apply(f,o)).next())});import{A as te,_ as oe,d as ae,r as h,o as se,f as g,g as re,h as le,l,m as c,i as s,t as C,G as ie}from"./index.9fabe127.js";import{L as u,i as x}from"./index.682be1ab.js";const ce=f=>te.get("/api/v1/statistics/performance",{params:f}),ne={class:"flex justify-between text-center mt-24"},fe={class:"flex-1"},de={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},pe=s("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u8BC4\u4EF7\u9879\u76EE\u603B\u6570",-1),me={class:"flex-1"},ue={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},he=s("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u81EA\u8BC4\u603B\u6570",-1),_e={class:"flex-1"},ve={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ye=s("p",{class:"text-info text-14"},"\u5F53\u524D\u5DF2\u5B8C\u6210\u7EE9\u6548\u590D\u8BC4\u603B\u6570",-1),ge={class:"flex-1"},xe={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},be=s("p",{class:"text-info text-14"},"\u5F53\u524D\u9700\u6574\u6539\u9879\u76EE\u603B\u6570",-1),we=ae({name:"performanceStatistics"}),De=Object.assign(we,{setup(f){const o=h({}),r=h(),w=h(),b=h(),D=h(),R=h(),v=h();let m,_,S,F,O,k;const I=new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),X=()=>E(this,null,function*(){M(),G(),U(),W(),z(),J()}),M=()=>{var a,t;const p=[new u(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])];m||(m=x(r.value));const i={legend:{show:!1},tooltip:{show:!0,trigger:"item"},color:p,graphic:[{type:"text",left:"center",top:"center",style:{text:"\u9879\u76EE\u6570\uFF1A250",textAlign:"center",fill:"#333",fontSize:16,fontWeight:500}}],series:[{data:(t=(a=d.value)==null?void 0:a.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}
{c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};m.setOption(i)},G=()=>{var a,t;_||(_=x(w.value));const p=[new u(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],i={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:p,series:[{data:(t=(a=d.value)==null?void 0:a.selfAppraisalProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),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(i)},U=()=>{var i,a;S||(S=x(b.value));const p={tooltip:{show:!0,trigger:"item"},grid:{bottom:20,top:10,right:30},radar:{indicator:(i=d.value)==null?void 0:i.scoreDistribution.map(t=>{var e;return V(T({},t),{max:Math.max((e=d.value)==null?void 0:e.scoreDistribution.map(n=>n.num))})})},series:[{name:"\u661F\u7EA7\u5206\u5E03",type:"radar",data:[{value:(a=d.value)==null?void 0:a.scoreDistribution.map(t=>t.num)}]}]};S.setOption(p)},W=()=>{var a,t;F||(F=x(D.value));const p=[new u(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],i={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:p,series:[{data:(t=(a=d.value)==null?void 0:a.reAppraisalProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
{c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};F.setOption(i)},z=()=>{var i,a,t,e;O||(O=x(R.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:n=>n},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(a=(i=d.value)==null?void 0:i.orgTop10)==null?void 0:a.map(n=>n.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:I,series:[{name:"\u5206\u6570",data:(e=(t=d.value)==null?void 0:t.orgTop10)==null?void 0:e.map(n=>n.score),type:"bar",barWidth:20}]};O.setOption(p)},J=()=>{var a,t;k||(k=x(v.value));const p=[new u(0,0,1,1,[{offset:0,color:"#ccc"},{offset:1,color:"#ccc"}]),new u(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],i={legend:{show:!0,right:0,orient:"vertical"},tooltip:{show:!0,trigger:"item"},color:p,series:[{data:(t=(a=d.value)==null?void 0:a.rectifyProgress)==null?void 0:t.map(e=>({name:e.name,value:e.num})),type:"pie",itemStyle:{borderRadius:4},label:{formatter:`{b}
{c}`,color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};k.setOption(i)},d=h(),Y=()=>E(this,null,function*(){const p=yield ce({year:o.value.projectYear});d.value=p.data,X()});return se(()=>E(this,null,function*(){Y()})),(p,i)=>{const a=g("el-date-picker"),t=g("el-form-item"),e=g("el-form"),n=g("el-card"),y=g("el-col"),K=g("el-row");return re(),le(ie,null,[l(n,{class:"mb-16"},{default:c(()=>{var A,j,B,L;return[l(e,{ref:"formRef",model:o.value},{default:c(()=>[l(t,{label:"\u5E74\u5EA6"},{default:c(()=>[l(a,{modelValue:o.value.projectYear,"onUpdate:modelValue":i[0]||(i[0]=q=>o.value.projectYear=q),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"},onChange:Y},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),s("div",ne,[s("div",fe,[s("p",de,C(((A=d.value)==null?void 0:A.finishedTotal)||0),1),pe]),s("div",me,[s("p",ue,C(((j=d.value)==null?void 0:j.finishedSelf)||0),1),he]),s("div",_e,[s("p",ve,C(((B=d.value)==null?void 0:B.finishedReAppraisal)||0),1),ye]),s("div",ge,[s("p",xe,C(((L=d.value)==null?void 0:L.rectifyTotal)||0),1),be])])]}),_:1}),l(K,{gutter:16},{default:c(()=>[l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u7EE9\u6548\u8BC4\u4EF7"},{default:c(()=>[s("div",{ref_key:"chart1Ref",ref:r,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u81EA\u8BC4\u8FDB\u5EA6"},{default:c(()=>[s("div",{ref_key:"chart2Ref",ref:w,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u661F\u7EA7\u5206\u5E03"},{default:c(()=>[s("div",{ref_key:"chart3Ref",ref:b,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u590D\u8BC4\u8FDB\u5EA6"},{default:c(()=>[s("div",{ref_key:"chart4Ref",ref:D,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u7EE9\u6548TOP10"},{default:c(()=>[s("div",{ref_key:"chart5Ref",ref:R,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(y,{span:12,class:"mb-16"},{default:c(()=>[l(n,{header:"\u6574\u6539\u8FDB\u5EA6"},{default:c(()=>[s("div",{ref_key:"chart6Ref",ref:v,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}}),Se=oe(De,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/statisticAnalysis/performanceStatistics/index.vue"]]);export{Se as default};
