Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
8.8KB

  1. import{L as w,i as u}from"./index.f55de596.js";import{s as K,d as Q,r as f,o as X,c as v,e as Z,f as $,h as i,i as n,g as a,t as h,F as tt}from"./index.88314652.js";const et=R=>K.get("/api/v1/statistics/project",{params:R}),at={class:"flex justify-between text-center mt-24"},ot={class:"flex-1"},rt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},st={class:"flex-1"},lt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},it={class:"flex-1"},nt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},pt={class:"flex-1"},ct={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},mt={class:"flex-1"},ft={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ut=Q({name:"projectStatistics"}),xt=Object.assign(ut,{setup(R){const y=f({}),Y=f(),k=f(),O=f(),F=f(),j=f(),L=f(),E=f();let _,g,b,A,C,T,D;const x=new w(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),W=async()=>{B(),M(),S(),G(),U(),q(),z()},B=()=>{var e,r,s,l;_||(_=u(Y.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((r=(e=o.value)==null?void 0:e.progresses)==null?void 0:r.map(t=>t.name))||["\u8BA1\u5212","\u7533\u62A5","\u7ACB\u9879","\u5EFA\u8BBE","\u9A8C\u6536","\u8FD0\u7EF4","\u7EE9\u6548","\u6CE8\u9500"],axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:x,series:[{name:"\u9879\u76EE\u6570\u91CF",data:((l=(s=o.value)==null?void 0:s.progresses)==null?void 0:l.map(t=>t.num))||[5,2,47,73,61,243,0,0],type:"bar",barWidth:20}]};_.setOption(p)},M=()=>{var r,s,l,t,c,d;g||(g=u(k.value));const p=[new w(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new w(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],e={tooltip:{show:!0,trigger:"axis",valueFormatter:m=>m},grid:{bottom:42,top:10,right:30},xAxis:{type:"category",data:((s=(r=o.value)==null?void 0:r.threeYearsApprovalCycleAvg)==null?void 0:s.map(m=>m.name))||["2021","2022","2023"],axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:p,series:[{name:"\u6279\u590D\u65F6\u95F4",data:((t=(l=o.value)==null?void 0:l.threeYearsApprovalCycleAvg)==null?void 0:t.map(m=>m.num))||[11,12.4,12],type:"line"},{name:"\u5EFA\u8BBE\u65F6\u95F4",data:((d=(c=o.value)==null?void 0:c.threeYearsConstructionCycleAvg)==null?void 0:d.map(m=>m.num))||[11,12,11.4],type:"line"}]};g.setOption(e)},S=()=>{var e,r,s,l;b||(b=u(O.value));const p={tooltip:{show:!0,trigger:"item"},grid:{bottom:20,top:10,right:30},radar:{indicator:((r=(e=o.value)==null?void 0:e.projectTypeDistribution)==null?void 0:r.map(t=>{var c;return{...t,max:Math.max((c=o.value)==null?void 0:c.projectTypeDistribution.map(d=>d.num))}}))||[{name:"\u9996\u6B21\u5EFA\u8BBE",max:385},{name:"\u7ED3\u8F6C\u5EFA\u8BBE",max:385},{name:"\u8FED\u4EE3\u5347\u7EA7",max:385},{name:"\u65B0\u8FD0\u7EF4",max:385},{name:"\u7EED\u8FD0\u7EF4",max:385}]},series:[{name:"\u661F\u7EA7\u5206\u5E03",type:"radar",data:[{value:((l=(s=o.value)==null?void 0:s.projectTypeDistribution)==null?void 0:l.map(t=>t.num))||[385,49,51,0,0]}]}]};b.setOption(p)},G=()=>{var e,r,s,l;A||(A=u(F.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((r=(e=o.value)==null?void 0:e.amountChangeTop10)==null?void 0:r.map(t=>t.name))||["\u6C34\u5229\u5C40","\u53D1\u6539\u59D4","\u7EC4\u7EC7\u90E8","\u516C\u5B89\u5C40","\u7535\u529B\u5C40","\u6797\u4E1A\u5C40","\u533B\u4FDD\u5C40","\u5927\u6570\u636E\u5C40","\u793E\u4FDD\u5C40"],axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:x,series:[{name:"\u53D8\u66F4\u91D1\u989D",data:((l=(s=o.value)==null?void 0:s.amountChangeTop10)==null?void 0:l.map(t=>t.amount))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};A.setOption(p)},U=()=>{var e,r,s,l;C||(C=u(j.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((r=(e=o.value)==null?void 0:e.revokeTop10)==null?void 0:r.map(t=>t.name))||["\u6C34\u5229\u5C40","\u53D1\u6539\u59D4","\u7EC4\u7EC7\u90E8","\u516C\u5B89\u5C40","\u7535\u529B\u5C40","\u6797\u4E1A\u5C40","\u533B\u4FDD\u5C40","\u5927\u6570\u636E\u5C40","\u793E\u4FDD\u5C40"],axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:x,series:[{name:"\u64A4\u9500\u6570",data:((l=(s=o.value)==null?void 0:s.revokeTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};C.setOption(p)},q=()=>{var e,r,s,l;T||(T=u(L.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((r=(e=o.value)==null?void 0:e.terminationTop10)==null?void 0:r.map(t=>t.name))||["\u6C34\u5229\u5C40","\u53D1\u6539\u59D4","\u7EC4\u7EC7\u90E8","\u516C\u5B89\u5C40","\u7535\u529B\u5C40","\u6797\u4E1A\u5C40","\u533B\u4FDD\u5C40","\u5927\u6570\u636E\u5C40","\u793E\u4FDD\u5C40"],axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:x,series:[{name:"\u7EC8\u6B62\u6570",data:((l=(s=o.value)==null?void 0:s.terminationTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};T.setOption(p)},z=()=>{var e,r,s,l;D||(D=u(E.value));const p={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((r=(e=o.value)==null?void 0:e.delayTop10)==null?void 0:r.map(t=>t.name))||["\u6C34\u5229\u5C40","\u53D1\u6539\u59D4","\u7EC4\u7EC7\u90E8","\u516C\u5B89\u5C40","\u7535\u529B\u5C40","\u6797\u4E1A\u5C40","\u533B\u4FDD\u5C40","\u5927\u6570\u636E\u5C40","\u793E\u4FDD\u5C40"],axisLabel:{align:"center",interval:0}},yAxis:{name:"",type:"value"},color:x,series:[{name:"\u5EF6\u671F\u6570",data:((l=(s=o.value)==null?void 0:s.delayTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};D.setOption(p)},o=f(),H=async()=>{const p=await et({year:y.value.projectYear});o.value=p.data,W()};return X(async()=>{H()}),(p,e)=>{const r=v("el-date-picker"),s=v("el-form-item"),l=v("el-form"),t=v("el-card"),c=v("el-col"),d=v("el-row");return Z(),$(tt,null,[i(t,{class:"mb-16"},{default:n(()=>{var m,N,I,P,V;return[i(l,{ref:"formRef",model:y.value},{default:n(()=>[i(s,{label:"\u5E74\u5EA6"},{default:n(()=>[i(r,{modelValue:y.value.projectYear,"onUpdate:modelValue":e[0]||(e[0]=J=>y.value.projectYear=J),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a("div",at,[a("div",ot,[a("p",rt,h(((m=o.value)==null?void 0:m.planTotal)||0),1),e[1]||(e[1]=a("p",{class:"text-info text-14"},"\u9879\u76EE\u8BA1\u5212\u6570",-1))]),a("div",st,[a("p",lt,h(((N=o.value)==null?void 0:N.approvedTotal)||0),1),e[2]||(e[2]=a("p",{class:"text-info text-14"},"\u6279\u590D\u9879\u76EE\u6570",-1))]),a("div",it,[a("p",nt,h(((I=o.value)==null?void 0:I.constructionTotal)||0),1),e[3]||(e[3]=a("p",{class:"text-info text-14"},"\u5728\u5EFA\u9879\u76EE\u6570",-1))]),a("div",pt,[a("p",ct,h(((P=o.value)==null?void 0:P.approvalCycleAvg)||0),1),e[4]||(e[4]=a("p",{class:"text-info text-14"},"\u5E73\u5747\u6279\u590D\u5468\u671F\uFF08\u6708\uFF09",-1))]),a("div",mt,[a("p",ft,h(((V=o.value)==null?void 0:V.constructionCycleAvg)||0),1),e[5]||(e[5]=a("p",{class:"text-info text-14"},"\u5E73\u5747\u5EFA\u8BBE\u5468\u671F\uFF08\u6708\uFF09",-1))])])]}),_:1}),i(d,{gutter:16},{default:n(()=>[i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u5404\u9636\u6BB5\u9879\u76EE\u7EDF\u8BA1"},{default:n(()=>[a("div",{ref_key:"chart1Ref",ref:Y,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u8FD1\u4E09\u5E74\u5E73\u5747\u6279\u590D/\u5EFA\u8BBE\u5468\u671F\uFF08\u6708\uFF09"},{default:n(()=>[a("div",{ref_key:"chart2Ref",ref:k,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u9879\u76EE\u5206\u5E03\u7C7B\u578B"},{default:n(()=>[a("div",{ref_key:"chart3Ref",ref:O,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u91D1\u989D\u53D8\u66F4\u6570\u989D\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[a("div",{ref_key:"chart4Ref",ref:F,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u9879\u76EE\u64A4\u9500\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[a("div",{ref_key:"chart5Ref",ref:j,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u7EC8\u6B62\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[a("div",{ref_key:"chart6Ref",ref:L,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(c,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u5EF6\u671F\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[a("div",{ref_key:"chart7Ref",ref:E,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{xt as default};