|
- var tt=Object.defineProperty,et=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var M=(d,i,c)=>i in d?tt(d,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):d[i]=c,S=(d,i)=>{for(var c in i||(i={}))ot.call(i,c)&&M(d,c,i[c]);if(B)for(var c of B(i))st.call(i,c)&&M(d,c,i[c]);return d},U=(d,i)=>et(d,at(i));var R=(d,i,c)=>new Promise((T,A)=>{var w=u=>{try{y(c.next(u))}catch(v){A(v)}},j=u=>{try{y(c.throw(u))}catch(v){A(v)}},y=u=>u.done?T(u.value):Promise.resolve(u.value).then(w,j);y((c=c.apply(d,i)).next())});import{y as rt,_ as lt,d as it,r as h,o as nt,c as b,e as ct,f as pt,i as n,j as p,g as e,t as D,F as mt}from"./index.eb58a47a.js";import{L as E,i as x}from"./index.682be1ab.js";const dt=d=>rt.get("/api/v1/statistics/project",{params:d}),ft={class:"flex justify-between text-center mt-24"},ut={class:"flex-1"},_t={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},ht=e("p",{class:"text-info text-14"},"\u9879\u76EE\u8BA1\u5212\u6570",-1),vt={class:"flex-1"},xt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},yt=e("p",{class:"text-info text-14"},"\u6279\u590D\u9879\u76EE\u6570",-1),gt={class:"flex-1"},bt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},At=e("p",{class:"text-info text-14"},"\u5728\u5EFA\u9879\u76EE\u6570",-1),Ct={class:"flex-1"},Dt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Tt=e("p",{class:"text-info text-14"},"\u5E73\u5747\u6279\u590D\u5468\u671F\uFF08\u6708\uFF09",-1),wt={class:"flex-1"},jt={class:"text-primary text-32 font-bold",style:{"font-family":"DIN"}},Rt=e("p",{class:"text-info text-14"},"\u5E73\u5747\u5EFA\u8BBE\u5468\u671F\uFF08\u6708\uFF09",-1),kt=it({name:"projectStatistics"}),Yt=Object.assign(kt,{setup(d){const i=h({}),c=h(),T=h(),A=h(),w=h(),j=h(),y=h(),u=h();let v,k,Y,O,F,L,N;const C=new E(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}]),G=()=>R(this,null,function*(){J(),K(),q(),z(),H(),Q(),X()}),J=()=>{var o,s,r,l;v||(v=x(c.value));const m={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:C,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}]};v.setOption(m)},K=()=>{var s,r,l,t,f,g;k||(k=x(T.value));const m=[new E(0,0,1,1,[{offset:0,color:"rgba(32, 183, 96, 1)"},{offset:1,color:"rgba(32, 183, 96, 0.5)"}]),new E(0,0,1,1,[{offset:0,color:"#20DEEF"},{offset:1,color:"#007FED"}])],o={tooltip:{show:!0,trigger:"axis",valueFormatter:_=>_},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(_=>_.name))||["2021","2022","2023"],axisLabel:{interval:0,hideOverlap:!1}},yAxis:{name:"",type:"value"},color:m,series:[{name:"\u6279\u590D\u65F6\u95F4",data:((t=(l=a.value)==null?void 0:l.threeYearsApprovalCycleAvg)==null?void 0:t.map(_=>_.num))||[11,12.4,12],type:"line"},{name:"\u5EFA\u8BBE\u65F6\u95F4",data:((g=(f=a.value)==null?void 0:f.threeYearsConstructionCycleAvg)==null?void 0:g.map(_=>_.num))||[11,12,11.4],type:"line"}]};k.setOption(o)},q=()=>{var o,s,r,l;Y||(Y=x(A.value));const m={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 f;return U(S({},t),{max:Math.max((f=a.value)==null?void 0:f.projectTypeDistribution.map(g=>g.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]}]}]};Y.setOption(m)},z=()=>{var o,s,r,l;O||(O=x(w.value));const m={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:C,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}]};O.setOption(m)},H=()=>{var o,s,r,l;F||(F=x(j.value));const m={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:C,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}]};F.setOption(m)},Q=()=>{var o,s,r,l;L||(L=x(y.value));const m={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:C,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}]};L.setOption(m)},X=()=>{var o,s,r,l;N||(N=x(u.value));const m={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:C,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}]};N.setOption(m)},a=h(),Z=()=>R(this,null,function*(){const m=yield dt({year:i.value.projectYear});a.value=m.data,G()});return nt(()=>R(this,null,function*(){Z()})),(m,o)=>{const s=b("el-date-picker"),r=b("el-form-item"),l=b("el-form"),t=b("el-card"),f=b("el-col"),g=b("el-row");return ct(),pt(mt,null,[n(t,{class:"mb-16"},{default:p(()=>{var _,P,I,V,W;return[n(l,{ref:"formRef",model:i.value},{default:p(()=>[n(r,{label:"\u5E74\u5EA6"},{default:p(()=>[n(s,{modelValue:i.value.projectYear,"onUpdate:modelValue":o[0]||(o[0]=$=>i.value.projectYear=$),type:"year",placeholder:"\u5168\u90E8",format:"YYYY","value-format":"YYYY",style:{width:"200px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),e("div",ft,[e("div",ut,[e("p",_t,D(((_=a.value)==null?void 0:_.planTotal)||0),1),ht]),e("div",vt,[e("p",xt,D(((P=a.value)==null?void 0:P.approvedTotal)||0),1),yt]),e("div",gt,[e("p",bt,D(((I=a.value)==null?void 0:I.constructionTotal)||0),1),At]),e("div",Ct,[e("p",Dt,D(((V=a.value)==null?void 0:V.approvalCycleAvg)||0),1),Tt]),e("div",wt,[e("p",jt,D(((W=a.value)==null?void 0:W.constructionCycleAvg)||0),1),Rt])])]}),_:1}),n(g,{gutter:16},{default:p(()=>[n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u5404\u9636\u6BB5\u9879\u76EE\u7EDF\u8BA1"},{default:p(()=>[e("div",{ref_key:"chart1Ref",ref:c,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u8FD1\u4E09\u5E74\u5E73\u5747\u6279\u590D/\u5EFA\u8BBE\u5468\u671F\uFF08\u6708\uFF09"},{default:p(()=>[e("div",{ref_key:"chart2Ref",ref:T,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u9879\u76EE\u5206\u5E03\u7C7B\u578B"},{default:p(()=>[e("div",{ref_key:"chart3Ref",ref:A,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u91D1\u989D\u53D8\u66F4\u6570\u989D\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:p(()=>[e("div",{ref_key:"chart4Ref",ref:w,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u9879\u76EE\u64A4\u9500\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:p(()=>[e("div",{ref_key:"chart5Ref",ref:j,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u7EC8\u6B62\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:p(()=>[e("div",{ref_key:"chart6Ref",ref:y,class:"h-[230px]"},null,512)]),_:1})]),_:1}),n(f,{span:12,class:"mb-16"},{default:p(()=>[n(t,{header:"\u5EF6\u671F\u60C5\u51B5\u7EDF\u8BA1TOP10"},{default:p(()=>[e("div",{ref_key:"chart7Ref",ref:u,class:"h-[230px]"},null,512)]),_:1})]),_:1})]),_:1})],64)}}}),Nt=lt(Yt,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/statisticAnalysis/projectStatistics/index.vue"]]);export{Nt as default};
|