Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 строки
8.7KB

  1. import{L as w,i as f}from"./index.f55de596.js";import{y as K,d as Q,r as d,o as X,c as h,e as Z,f as $,h as i,i as n,g as e,t as v,F as tt}from"./index.d340e473.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"},st={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},rt=e("p",{class:"text-info text-14"},"\u9879\u76EE\u8BA1\u5212\u6570",-1),lt={class:"flex-1"},it={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},nt=e("p",{class:"text-info text-14"},"\u6279\u590D\u9879\u76EE\u6570",-1),ct={class:"flex-1"},pt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},mt=e("p",{class:"text-info text-14"},"\u5728\u5EFA\u9879\u76EE\u6570",-1),dt={class:"flex-1"},ft={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ut=e("p",{class:"text-info text-14"},"\u5E73\u5747\u6279\u590D\u5468\u671F\uFF08\u6708\uFF09",-1),ht={class:"flex-1"},_t={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},vt=e("p",{class:"text-info text-14"},"\u5E73\u5747\u5EFA\u8BBE\u5468\u671F\uFF08\u6708\uFF09",-1),xt=Q({name:"projectStatistics"}),bt=Object.assign(xt,{setup(R){const x=d({}),Y=d(),k=d(),O=d(),F=d(),j=d(),L=d(),E=d();let y,g,b,A,C,T,D;const _=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 o,s,r,l;y||(y=f(Y.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((s=(o=a.value)==null?void 0:o.progresses)==null?void 0:s.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:_,series:[{name:"\u9879\u76EE\u6570\u91CF",data:((l=(r=a.value)==null?void 0:r.progresses)==null?void 0:l.map(t=>t.num))||[5,2,47,73,61,243,0,0],type:"bar",barWidth:20}]};y.setOption(c)},M=()=>{var s,r,l,t,p,u;g||(g=f(k.value));const c=[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"}])],o={tooltip:{show:!0,trigger:"axis",valueFormatter:m=>m},grid:{bottom:42,top:10,right:30},xAxis:{type:"category",data:((r=(s=a.value)==null?void 0:s.threeYearsApprovalCycleAvg)==null?void 0:r.map(m=>m.name))||["2021","2022","2023"],axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:c,series:[{name:"\u6279\u590D\u65F6\u95F4",data:((t=(l=a.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:((u=(p=a.value)==null?void 0:p.threeYearsConstructionCycleAvg)==null?void 0:u.map(m=>m.num))||[11,12,11.4],type:"line"}]};g.setOption(o)},S=()=>{var o,s,r,l;b||(b=f(O.value));const c={tooltip:{show:!0,trigger:"item"},grid:{bottom:20,top:10,right:30},radar:{indicator:((s=(o=a.value)==null?void 0:o.projectTypeDistribution)==null?void 0:s.map(t=>{var p;return{...t,max:Math.max((p=a.value)==null?void 0:p.projectTypeDistribution.map(u=>u.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=(r=a.value)==null?void 0:r.projectTypeDistribution)==null?void 0:l.map(t=>t.num))||[385,49,51,0,0]}]}]};b.setOption(c)},G=()=>{var o,s,r,l;A||(A=f(F.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((s=(o=a.value)==null?void 0:o.amountChangeTop10)==null?void 0:s.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:_,series:[{name:"\u53D8\u66F4\u91D1\u989D",data:((l=(r=a.value)==null?void 0:r.amountChangeTop10)==null?void 0:l.map(t=>t.amount))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};A.setOption(c)},U=()=>{var o,s,r,l;C||(C=f(j.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((s=(o=a.value)==null?void 0:o.revokeTop10)==null?void 0:s.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:_,series:[{name:"\u64A4\u9500\u6570",data:((l=(r=a.value)==null?void 0:r.revokeTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};C.setOption(c)},q=()=>{var o,s,r,l;T||(T=f(L.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((s=(o=a.value)==null?void 0:o.terminationTop10)==null?void 0:s.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:_,series:[{name:"\u7EC8\u6B62\u6570",data:((l=(r=a.value)==null?void 0:r.terminationTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};T.setOption(c)},z=()=>{var o,s,r,l;D||(D=f(E.value));const c={tooltip:{show:!0,trigger:"axis",valueFormatter:t=>t},grid:{bottom:20,top:10,right:30},xAxis:{type:"category",data:((s=(o=a.value)==null?void 0:o.delayTop10)==null?void 0:s.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:_,series:[{name:"\u5EF6\u671F\u6570",data:((l=(r=a.value)==null?void 0:r.delayTop10)==null?void 0:l.map(t=>t.num))||[0,0,0,0,0,0,0,0,0],type:"bar",barWidth:20}]};D.setOption(c)},a=d(),H=async()=>{const c=await et({year:x.value.projectYear});a.value=c.data,W()};return X(async()=>{H()}),(c,o)=>{const s=h("el-date-picker"),r=h("el-form-item"),l=h("el-form"),t=h("el-card"),p=h("el-col"),u=h("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:x.value},{default:n(()=>[i(r,{label:"\u5E74\u5EA6"},{default:n(()=>[i(s,{modelValue:x.value.projectYear,"onUpdate:modelValue":o[0]||(o[0]=J=>x.value.projectYear=J),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e("div",at,[e("div",ot,[e("p",st,v(((m=a.value)==null?void 0:m.planTotal)||0),1),rt]),e("div",lt,[e("p",it,v(((N=a.value)==null?void 0:N.approvedTotal)||0),1),nt]),e("div",ct,[e("p",pt,v(((I=a.value)==null?void 0:I.constructionTotal)||0),1),mt]),e("div",dt,[e("p",ft,v(((P=a.value)==null?void 0:P.approvalCycleAvg)||0),1),ut]),e("div",ht,[e("p",_t,v(((V=a.value)==null?void 0:V.constructionCycleAvg)||0),1),vt])])]}),_:1}),i(u,{gutter:16},{default:n(()=>[i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u5404\u9636\u6BB5\u9879\u76EE\u7EDF\u8BA1"},{default:n(()=>[e("div",{ref_key:"chart1Ref",ref:Y,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{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(()=>[e("div",{ref_key:"chart2Ref",ref:k,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u9879\u76EE\u5206\u5E03\u7C7B\u578B"},{default:n(()=>[e("div",{ref_key:"chart3Ref",ref:O,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u91D1\u989D\u53D8\u66F4\u6570\u989D\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[e("div",{ref_key:"chart4Ref",ref:F,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u9879\u76EE\u64A4\u9500\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[e("div",{ref_key:"chart5Ref",ref:j,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u7EC8\u6B62\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[e("div",{ref_key:"chart6Ref",ref:L,class:"h-[230px]"},null,512)]),_:1})]),_:1}),i(p,{span:12,class:"mb-16"},{default:n(()=>[i(t,{header:"\u5EF6\u671F\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:n(()=>[e("div",{ref_key:"chart7Ref",ref:E,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}});export{bt as default};