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.

5 lines
5.7KB

  1. var k=(y,R,m)=>new Promise((g,h)=>{var b=i=>{try{p(m.next(i))}catch(u){h(u)}},w=i=>{try{p(m.throw(i))}catch(u){h(u)}},p=i=>i.done?g(i.value):Promise.resolve(i.value).then(b,w);p((m=m.apply(y,R)).next())});import{y as J,_ as K,d as W,r as d,o as q,c as f,e as z,f as H,i as l,j as o,h as Q,g as t,t as N,k as F,F as Z}from"./index.47f2a3eb.js";import{L as j,i as x}from"./index.682be1ab.js";const ee=y=>J.get("/api/v1/statistics/expert",{params:y}),te={class:"flex justify-center text-center mt-24"},ae={class:"flex-1"},oe={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},se=t("p",{class:"text-info text-14"},"\u5165\u9A7B\u4E13\u5BB6",-1),le={class:"flex-1"},re={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ne=t("p",{class:"text-info text-14"},"\u8FD1\u4E00\u5E74\u65B0\u589E\u4E13\u5BB6",-1),ie={class:"flex-1"},ce={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},de=t("p",{class:"text-info text-14"},"\u6D3B\u8DC3\u4E13\u5BB6",-1),fe={class:"flex items-center justify-between"},me=t("p",null,"\u4E13\u5BB6\u7C7B\u578B\u5206\u5E03-\u64C5\u957F\u65B9\u5411",-1),pe=W({name:"expertStatistics"}),ue=Object.assign(pe,{setup(y){const R=d({}),m=d(),g=d(),h=d(),b=d(),w=d();let p,i,u,Y,V;const B=new j(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),L=()=>k(this,null,function*(){I(),U(),E(),$(),M()}),I=()=>{var a,s;p||(p=x(m.value));const r={tooltip:{show:!0,trigger:"axis",valueFormatter:e=>e},grid:{bottom:25,top:10,right:30},xAxis:{type:"category",data:(a=c.value)==null?void 0:a.regionExpert.map(e=>e.name),axisLabel:{align:"center",interval:0,rotate:20}},yAxis:{name:"",type:"value"},color:B,series:[{name:"\u5165\u9A7B\u4E13\u5BB6\u6570",data:(s=c.value)==null?void 0:s.regionExpert.map(e=>e.num),type:"bar",barWidth:20}]};p.setOption(r)},U=()=>{var a,s,e,_;i||(i=x(g.value));const r={tooltip:{show:!0,trigger:"axis",valueFormatter:n=>n},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:(s=(a=c.value)==null?void 0:a.threeYearsAdded)==null?void 0:s.map(n=>n.name),axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:B,series:[{name:"\u65B0\u589E\u4E13\u5BB6\u6570",data:(_=(e=c.value)==null?void 0:e.threeYearsAdded)==null?void 0:_.map(n=>n.num),type:"line"}]};i.setOption(r)},D=d("\u7701\u7EF4\u5EA6"),X=r=>{D.value=r,E()},E=()=>{var a,s;u||(u=x(h.value));const r={legend:{show:!1},tooltip:{show:!0,trigger:"item"},series:[{data:(s=(a=c.value)==null?void 0:a.typeDistribution[D.value])==null?void 0:s.map(e=>({name:e.name,value:e.num})),radius:["45%","80%"],type:"pie",itemStyle:{borderRadius:4},label:{formatter:function(e){return e.name+`
  2. `+e.value+`${e.name==="\u8D22\u52A1\u4E13\u5BB6"?"+2":""}`},color:"#333333"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};u.setOption(r)},$=()=>{var s,e;Y||(Y=x(b.value));const r=[new j(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new j(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],a={tooltip:{show:!0,trigger:"item"},color:r,series:[{radius:["45%","80%"],data:(e=(s=c.value)==null?void 0:s.types)==null?void 0:e.map(_=>({name:_.name,value:_.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(a)},M=()=>{var a,s;V||(V=x(w.value));const r={legend:{show:!1},tooltip:{show:!0,trigger:"item"},series:[{data:(s=(a=c.value)==null?void 0:a.levels)==null?void 0:s.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)"}}}]};V.setOption(r)},c=d(),P=()=>k(this,null,function*(){const r=yield ee({year:R.value.projectYear});c.value=r.data,L()});return q(()=>k(this,null,function*(){P()})),(r,a)=>{const s=f("el-date-picker"),e=f("el-form-item"),_=f("el-form"),n=f("el-card"),v=f("el-col"),O=f("el-radio-button"),T=f("el-radio-group"),G=f("el-row");return z(),H(Z,null,[l(n,{class:"mb-16"},{default:o(()=>{var C,S,A;return[Q("v-if",!0),t("div",te,[t("div",ae,[t("p",oe,N(((C=c.value)==null?void 0:C.total)||0),1),se]),t("div",le,[t("p",re,N(((S=c.value)==null?void 0:S.thisYearAdded)||0),1),ne]),t("div",ie,[t("p",ce,N(((A=c.value)==null?void 0:A.active)||0),1),de])])]}),_:1}),l(G,{gutter:16},{default:o(()=>[l(v,{span:12,class:"mb-16"},{default:o(()=>[l(n,{header:"\u5404\u533A\u53BF\u4E13\u5BB6\u6570\u91CF"},{default:o(()=>[t("div",{ref_key:"chart1Ref",ref:m,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(v,{span:12,class:"mb-16"},{default:o(()=>[l(n,{header:"\u8FD1\u4E09\u5E74\u65B0\u589E\u4E13\u5BB6\u6570"},{default:o(()=>[t("div",{ref_key:"chart2Ref",ref:g,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(v,{span:12,class:"mb-16"},{default:o(()=>[l(n,null,{header:o(()=>[t("div",fe,[me,l(T,{modelValue:D.value,"onUpdate:modelValue":a[1]||(a[1]=C=>D.value=C),onChange:X},{default:o(()=>[l(O,{label:"\u7701\u7EF4\u5EA6"},{default:o(()=>[F("\u7701\u7EF4\u5EA6")]),_:1}),l(O,{label:"\u5E02\u7EF4\u5EA6"},{default:o(()=>[F("\u5E02\u7EF4\u5EA6")]),_:1})]),_:1},8,["modelValue"])])]),default:o(()=>[t("div",{ref_key:"chart3Ref",ref:h,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(v,{span:12,class:"mb-16"},{default:o(()=>[l(n,{header:"\u4E13\u5BB6\u7C7B\u578B"},{default:o(()=>[t("div",{ref_key:"chart4Ref",ref:b,class:"h-[230px]"},null,512)]),_:1})]),_:1}),l(v,{span:12,class:"mb-16"},{default:o(()=>[l(n,{header:"\u4E13\u5BB6\u7B49\u7EA7"},{default:o(()=>[t("div",{ref_key:"chart5Ref",ref:w,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}}),ge=K(ue,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/statisticAnalysis/expertStatistics/index.vue"]]);export{ge as default};