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

5 行
5.4KB

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