Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / index.81ea2f2c.js
import{B as rt,_ as it,r as u,C as ut,e as j,D as _t,F as q,o as s,c as o,m as a,G as f,H as v,h as d,f as T,w as m,p as c,z as l,l as y,n,I as z,J as $,K as M,L as st,s as pt,t as mt}from"./index.82404a61.js";import yt from"./footLeft.43e48000.js";import lt from"./top.9f0593f7.js";import ht from"./footCenter.e8e8c86e.js";import ft from"./footRight.e7edd865.js";import vt from"./centerRight.c2cc8cd3.js";import{f as X,a as ot,b as F,r as Y,L as gt,c as Dt,d as xt}from"./index.vue_vue_type_style_index_0_scoped_b097b331_lang.9961f03f.js";/* empty css                                                                 *//* empty css                                                            */import"./liquidFillView.8441c1fb.js";/* empty css                                                                   *//* empty css                                                                  *//* empty css                                                                    */const bt=b=>rt({url:"/sponge/performanceEvaluate/three_year_statics",method:"get",params:b}),St=b=>rt({url:`/sponge/performanceEvaluateItem/statistic/${b}`,method:"get"}),h=b=>(pt("data-v-b097b331"),b=b(),mt(),b),kt={"element-loading-text":"\u6570\u636E\u52A0\u8F7D\u4E2D...","element-loading-background":"rgba(122, 122, 122, 0.8)",class:"app-container flex",id:"container"},Tt={class:"top flex flex_center"},zt=["onClick"],Ft={key:0,style:{"margin-right":"50px"}},Ct={class:"time flex"},Lt={key:0,class:"khtime"},Vt={key:1,class:"defen flex"},wt={class:"total"},Ut=h(()=>a("div",{class:"fenshu khtime"},"\u603B\u5F97\u5206",-1)),It={class:"center flex"},qt={class:"cont top flex"},Bt=h(()=>a("span",{class:"span"},null,-1)),Et={class:"name"},Nt={class:"fz"},Rt={class:"total"},jt={class:"cont dfFlx"},$t={class:"fz"},Mt={style:{color:"#4285F4"}},At={class:"cont dfFlx"},Jt=h(()=>a("div",{class:"fz"},"\u8003\u6838\u8FDB\u5C55 ",-1)),Pt={class:"three flex"},Gt={class:"left flex flexClass",style:{"overflow-y":"auto"}},Ht={class:"nnfzbz"},Kt={style:{margin:"10px 0"}},Xt={class:"span"},Yt={class:"tittle"},Zt={class:"tittle"},Ot={key:0,class:"racal"},Qt={key:1,style:{color:"#30dc7f"}},Wt={class:"dbqk"},te=h(()=>a("div",{class:"dffz"},"\u5F97\u5206/\u5206\u503C",-1)),ee={class:"dffzqk"},ae={class:"nnfzbz"},se={style:{margin:"10px 0"}},le={class:"span"},oe={class:"tittle"},re={class:"tittle"},ne={key:0,class:"racal"},ce={class:"dbqk"},de=h(()=>a("div",{class:"dffz"},"\u5F97\u5206/\u5206\u503C",-1)),ie={class:"dffzqk"},ue={class:"nnfzbz otherzb"},_e={style:{margin:"10px 0"}},pe={class:"span"},me={class:"tittle"},ye={class:"tittle",style:{display:"block"}},he={key:0,class:"racal"},fe=h(()=>a("span",{style:{margin:"0 8px"}}," \u5206\u503C/\u5F97\u5206",-1)),ve={key:1,style:{color:"#30dc7f"}},ge={class:"dbqk",style:{width:"32%",display:"inline-block","text-align":"center"}},De=h(()=>a("div",{class:"dffz"},"\u5F97\u5206/\u5206\u503C",-1)),xe={class:"dffzqk"},be={class:"jsgcgl nnfzbz",style:{display:"flex"}},Se=h(()=>a("div",{style:{margin:"18px 0"}},null,-1)),ke={key:0,class:"tittle flex tittle_foot",style:{"align-self":"self-start"}},Te={key:0,class:"racal"},ze={key:1,class:"bzqk"},Fe={key:2,class:"tittle flex tittle_fs"},Ce={class:"df"},Le={style:{color:"#30dc7f","text-align":"center",margin:"10px 0"}},Ve={class:"foot flex"},we={class:"right"},Ue=h(()=>a("div",{style:{margin:"10px 0"}},[a("span",{class:"span"}),a("span",{class:"tittle"},"\u8D44\u91D1\u7EE9\u6548")],-1)),Ie={class:"left flex flexClass"},qe={style:{position:"relative"}},Be=h(()=>a("div",{style:{margin:"10px 0"}},null,-1)),Ee={key:0,class:"tittle flex tittle_foot"},Ne={class:"span"},Re={class:"tittle"},je={class:"tittle",style:{"font-size":"14px"}},$e={key:0,class:"racal"},Me={class:"bzqk"},Ae={key:0,class:"df",style:{margin:"0 1%"}},Je={key:2,class:"footTable"},Pe={class:"right"},Ge=h(()=>a("div",{style:{margin:"10px 0"}},[a("span",{class:"span"}),a("span",{class:"tittle"},"\u7FA4\u4F17\u6EE1\u610F\u5EA6\u66F2\u7EBF")],-1)),He={class:"flex",style:{"align-items":"center","justify-content":"space-between"}},Ke=h(()=>a("span",{class:"dw"},"\u5355\u4F4D%",-1)),Xe={class:"tittle df"},Ye={style:{color:"#30dc7f",margin:"0 11px"}},Ze={__name:"index",setup(b){const S=u(!1),A=u({}),J=u([]),P=u(!0),Z=u(),U=u({}),G=u([{name:"\u5E74\u5EA6\u7EE9\u6548\u8003\u6838\u5F97\u5206",score:0,bg:"image4.png"}]),O=u([]),H=u([]),K=u([]),B=u({}),Q=u({}),E=u({}),N=u([{itemScore:[],realScore:[],xData:[],yData:[],yData2:[],all:"",itemUnit:[],itemTarget:[],realValue:[]}]);function nt(g){g.year&&(A.value=g,S.value=!1,et(g.year))}function ct(g){return`${g} %`}async function dt(g){let{data:C}=await bt(g);C.length>0&&(C.map((x,p)=>{G.value.push({year:x.year,name:x.year+"\u5E74\u5EA6\u7EE9\u6548\u8003\u6838\u5F97\u5206",bg:p+1+"bg.png",score:x.score||0,datetime:x.datetime})}),A.value=G.value[2],et(C[1].year))}const W=u(0),tt=u(0);async function et(g){P.value=!0;let{data:{typeStaticsList:C,chanChuStaticsList:x,ziJinStaticsList:p,otherStaticsList:R,liFaStaticsList:L,qunZongStaticsList:I,projectStatics:t}}=await St(g);O.value=C,J.value=p,console.log("tableDatatableDatatableData",J),Z.value=R,U.value=I,ot.value.yData=[I.lastYearSatisfyPercent,I.satisfyPercent],F.value.xData=L,W.value=L.reduce((e,i)=>e+=i.itemScore,0),tt.value=L.reduce((e,i)=>e+=Number(i.itemScore),0),N.value=[{itemScore:[],realScore:[],xData:[],yData:[],yData2:[],all:"",itemUnit:[],itemTarget:[],realValue:[]}],X.value.map((e,i)=>{e.value=="jsgcgl"&&(e.itemScore=(t==null?void 0:t.itemScore)||0,e.realScore=t.realScore||0,e.standardFlag=t.standardFlag,e.xData=[],e.yData=[],t.projectTypeStatisticsList.forEach(_=>{e.xData.push(_.typeName),e.yData.push(_.typeCount)}))});let r=[];x.forEach(e=>{switch(e.itemTypeContent){case"\u5176\u4ED6\u76F8\u5173\u6307\u6807":r=e.chanChuItemList,E.value=e;break;case"\u96E8\u6C34\u6536\u96C6\u4E0E\u5229\u7528\u76F8\u5173\u6307\u6807":K.value=e.chanChuItemList,Q.value=e;break;case"\u5185\u6D9D\u9632\u6CBB\u76F8\u5173\u6307\u6807":H.value=e.chanChuItemList,B.value=e;break}}),H.value.map((e,i)=>{e.xData=[e.itemContent],e.yData=[e.realValue||0],e.yData2=[e.itemTarget||0],e.realValue=[e.realValue],e.itemTarget=[e.itemTarget],e.itemUnit=[e.itemUnit],e.all=B.value.totalScore,i==0&&(e.allname="\u4EA7\u51FA\u7EE9\u6548",e.tittle="\u5185\u6D9D\u9632\u6CBB")}),K.value.map((e,i)=>{e.xData=[e.itemContent],e.yData=[e.realValue||0],e.yData2=[e.itemTarget||0],e.realValue=[e.realValue],e.itemTarget=[e.itemTarget],e.itemUnit=[e.itemUnit],e.all=Q.value.totalScore,i==0&&(e.tittle="\u96E8\u6C34\u6536\u96C6\u4E0E\u5229\u7528",e.isBorder=1)}),N.value.map((e,i)=>{r.forEach((_,D)=>{e.xData.push(_.itemContent),e.yData.push(_.realValue||0),e.yData2.push(_.itemTarget),e.itemUnit.push(_.itemUnit||""),e.itemTarget.push(_.itemTarget||0),e.realValue.push(_.realValue||0),e.all=E.value.totalScore||0,e.itemScore.push(_.itemScore),e.realScore.push(_.realScore)}),i==0&&(e.tittle="\u5176\u4ED6\u76F8\u5173\u6307\u6807",e.isBorder=1)}),console.log("threeLeftDate2",N),S.value=!0,P.value=!1}return ut(()=>{dt()}),(g,C)=>{const x=j("el-progress"),p=j("el-tag"),R=j("el-table-column"),L=j("el-table"),I=_t("loading");return q((s(),o("div",kt,[a("div",Tt,[(s(!0),o(f,null,v(G.value,(t,r)=>(s(),o("div",{class:z(["flex astic",{flexClass:r==0,astic_border:A.value==t}]),key:t.bg,onClick:e=>nt(t),style:$({background:`url(${t.bg})`})},[r>0?(s(),o("div",Ft)):n("",!0),a("div",Ct,[a("div",{class:z(["year",{year_one:r==0}])},l(t.name),3),r>0?(s(),o("div",Lt,"\u8003\u6838\u65F6\u95F4\uFF1A "+l(t.datetime),1)):n("",!0)]),r>0?(s(),o("div",Vt,[a("div",wt,l(t.score)+"\u5206",1),Ut])):n("",!0)],14,zt))),128))]),a("div",It,[(s(!0),o(f,null,v(O.value,(t,r)=>(s(),o("div",{key:t.itemTypeContent,class:z(["flex astic",{flexClass:r==0}])},[a("div",qt,[a("div",null,[Bt,a("span",Et,l(t.itemTypeContent),1)]),a("div",Nt,[c(" \u5206\u503C "),a("span",Rt,l(t.totalScore),1)])]),a("div",jt,[a("div",$t,[c("\u5F97\u5206 "),a("span",Mt,l(t.realScore),1)]),T(x,{class:"progress","text-inside":"",striped:"",color:"#4285F4",format:ct,percentage:(t.realScore/t.totalScore*100).toFixed(2)||0,"stroke-width":15},null,8,["percentage"])]),a("div",At,[Jt,T(x,{class:"progress","text-inside":"",color:"#45E28D",percentage:t.progress,"stroke-width":15,striped:""},null,8,["percentage"])])],2))),128))]),a("div",Pt,[a("div",Gt,[(s(!0),o(f,null,v(H.value,(t,r)=>{var e,i;return s(),o("div",Ht,[a("div",Kt,[q(a("span",Xt,null,512),[[M,t.allname]]),a("span",Yt,l(t.allname),1)]),a("div",Zt,[t.tittle?(s(),o("span",Ot)):n("",!0),c(" "+l(t.tittle)+" ",1),t.tittle?(s(),o("span",Qt,[c(l((e=B.value)==null?void 0:e.realScore),1),a("span",null,"/ "+l((i=B.value)==null?void 0:i.totalScore),1)])):n("",!0)]),a("div",Wt,[T(p,{round:"",type:t.realScore-t.itemScore>=0?"success":"error"},{default:m(()=>[c(l(t.realScore-t.itemScore>=0?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]),te,a("div",ee,l(t.realScore||0)+"/"+l(t.itemScore),1)]),a("div",{class:z({dashbord:t.isBorder?!0:""})},null,2),S.value?(s(),y(d(lt),{key:0,style:$({margin:t.tittle?"-13px 0":0}),yData:t.yData,yData2:t.yData2,xData:t.xData,realValue:t.realValue,itemUnit:t.itemUnit,bottom:t.bottom,data:d(Y),itemTarget:t.itemTarget,all:t.all},null,8,["style","yData","yData2","xData","realValue","itemUnit","bottom","data","itemTarget","all"])):n("",!0)])}),256)),(s(!0),o(f,null,v(K.value,(t,r)=>(s(),o("div",ae,[a("div",se,[q(a("span",le,null,512),[[M,t.allname]]),a("span",oe,l(t.allname),1)]),a("div",re,[t.tittle?(s(),o("span",ne)):n("",!0),c(" "+l(t.tittle),1)]),a("div",ce,[T(p,{round:"",type:t.realScore-t.itemScore>=0?"success":"error"},{default:m(()=>[c(l(t.realScore-t.itemScore>=0?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]),de,a("div",ie,l(t.realScore||0)+"/"+l(t.itemScore),1)]),a("div",{class:z({dashbord:t.isBorder?!0:""})},null,2),S.value?(s(),y(d(lt),{key:0,style:$({margin:t.tittle?"-4px -4px 0  4px":0}),yData:t.yData,yData2:t.yData2,xData:t.xData,realValue:t.realValue,itemUnit:t.itemUnit,bottom:t.bottom,data:d(Y),itemTarget:t.itemTarget,all:t.all},null,8,["style","yData","yData2","xData","realValue","itemUnit","bottom","data","itemTarget","all"])):n("",!0)]))),256)),(s(!0),o(f,null,v(N.value,(t,r)=>{var e,i;return s(),o("div",ue,[a("div",_e,[q(a("span",pe,null,512),[[M,t.allname]]),a("span",me,l(t.allname),1)]),a("div",ye,[t.tittle?(s(),o("span",he)):n("",!0),c(" "+l(t.tittle)+" ",1),fe,t.tittle?(s(),o("span",ve,[c(l((e=E.value)==null?void 0:e.realScore),1),a("span",null,"/"+l((i=E.value)==null?void 0:i.totalScore),1)])):n("",!0)]),(s(!0),o(f,null,v(t.itemScore,(_,D)=>(s(),o("div",ge,[T(p,{round:"",type:t.realScore[D]-t.itemScore[D]>=0?"success":"error"},{default:m(()=>[c(l(t.realScore[D]-t.itemScore[D]>=0?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]),De,a("div",xe,l(t.realScore[D])+"/"+l(t.itemScore[D]),1)]))),256)),a("div",{class:z({dashbord:t.isBorder?!0:""})},null,2),S.value?(s(),y(d(vt),{key:0,style:$({margin:t.tittle?"1px 0":0}),yData:t.yData,yData2:t.yData2,xData:t.xData,bottom:t.bottom,data:d(Y),realValue:t.realValue,itemUnit:t.itemUnit,itemTarget:t.itemTarget,all:t.all},null,8,["style","yData","yData2","xData","bottom","data","realValue","itemUnit","itemTarget","all"])):n("",!0)])}),256)),(s(!0),o(f,null,v(d(X),(t,r)=>(s(),o("div",be,[Se,r==0?(s(),o("div",ke,[t.tittle?(s(),o("div",Te)):n("",!0),c(" "+l(t.tittle),1)])):n("",!0),r==0?(s(),o("div",ze,[t.value!="other"?(s(),y(p,{key:0,round:"",type:t.standardFlag===""?"warning":t.standardFlag==="1"?"success":"error"},{default:m(()=>[c(l(t.standardFlag===""?"\u672A\u586B\u62A5":t.standardFlag==="1"?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])):n("",!0)])):n("",!0),t.value=="jsgcgl"&&r==0?(s(),o("div",Fe,[a("span",Ce,[c("\u5F97\u5206/\u5206\u503C "),a("div",Le,l(t.realScore)+" / "+l(t.itemScore),1)])])):n("",!0),a("div",{style:{left:"-6px"},class:z({dashbord:r==0?!0:""})},null,2),S.value&&r==0?(s(),y(d(yt),{key:3,xData:t.xData,yData:t.yData,data:d(gt)},null,8,["xData","yData","data"])):n("",!0)]))),256))])]),a("div",Ve,[a("div",we,[Ue,a("div",null,[T(L,{data:J.value,border:"",style:{width:"410px",height:"100%","overflow-y":"scroll"}},{default:m(()=>[(s(!0),o(f,null,v(d(Dt),(t,r)=>(s(),y(R,{"show-overflow-tooltip":"",key:r,prop:t.prop,label:t.label,align:"center"},st({_:2},[t.prop=="standardFlag"?{name:"default",fn:m(({row:e})=>[e.standardFlag===""?(s(),y(p,{key:0,type:"warning"},{default:m(()=>[c("\u672A\u586B\u62A5")]),_:1})):(s(),y(p,{key:1,type:e.standardFlag==="1"?"success":"error"},{default:m(()=>[c(l(e.standardFlag===1?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]))]),key:"0"}:void 0]),1032,["prop","label"]))),128))]),_:1},8,["data"])])]),a("div",Ie,[(s(!0),o(f,null,v(d(X),(t,r)=>{var e,i,_,D;return s(),o("div",qe,[Be,r==1||r==2?(s(),o("div",Ee,[a("div",null,[q(a("span",Ne,null,512),[[M,t.name]]),a("span",Re,l(t.name),1)]),a("div",je,[t.tittle?(s(),o("span",$e)):n("",!0),c(" "+l(t.tittle),1)]),a("span",Me,[t.value!="other"?(s(),y(p,{key:0,round:"",type:((i=(e=d(F))==null?void 0:e.xData[0])==null?void 0:i.standardFlag)=="1"&&((D=(_=d(F))==null?void 0:_.xData[1])==null?void 0:D.standardFlag)=="1"?"success":"error"},{default:m(()=>{var k,V,w,at;return[c(l(((V=(k=d(F))==null?void 0:k.xData[0])==null?void 0:V.standardFlag)=="1"&&((at=(w=d(F))==null?void 0:w.xData[1])==null?void 0:at.standardFlag)=="1"?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]}),_:1},8,["type"])):n("",!0)])])):n("",!0),(s(!0),o(f,null,v(d(F).xData,(k,V)=>(s(),o("div",{class:"tittle flex tittle_fs",style:{display:"inline-block"},key:k},[r==1&&V==1?(s(),o("div",Ae,[c("\u5F97\u5206/\u5206\u503C "),a("span",null,l(tt.value)+" / "+l(W.value),1)])):n("",!0)]))),128)),r==1&&S.value?(s(),y(d(ht),{key:1,data:d(F)},null,8,["data"])):n("",!0),a("div",{class:z({dashbord:r==2?!0:""})},null,2),r==2?(s(),o("div",Je,[T(L,{data:Z.value,border:"",style:{width:"380px",height:"89%","overflow-y":"scroll"}},{default:m(()=>[(s(!0),o(f,null,v(d(xt),(k,V)=>(s(),y(R,{"show-overflow-tooltip":"",key:V,prop:k.prop,label:k.label,align:"center"},st({_:2},[k.prop=="standardFlag"?{name:"default",fn:m(({row:w})=>[w.standardFlag===""?(s(),y(p,{key:0,type:"warning"},{default:m(()=>[c("\u672A\u586B\u62A5")]),_:1})):(s(),y(p,{key:1,type:w.standardFlag==="1"?"success":"error"},{default:m(()=>[c(l(w.standardFlag==1?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"]))]),key:"0"}:void 0]),1032,["prop","label"]))),128))]),_:2},1032,["data"])])):n("",!0)])}),256))]),a("div",Pe,[Ge,a("div",He,[Ke,a("div",null,[a("span",Xe,[c("\u5F97\u5206/\u5206\u503C"),a("span",Ye,l(U.value.realScore)+"/"+l(U.value.itemScore),1)]),T(p,{type:U.value.realValue=="\u6709\u6240\u63D0\u5347"?"success":"warning",round:"",style:{float:"right"}},{default:m(()=>[c(l(U.value.realValue),1)]),_:1},8,["type"])])]),S.value?(s(),y(d(ft),{key:0,data:d(ot)},null,8,["data"])):n("",!0)])])])),[[I,P.value]])}}},ia=it(Ze,[["__scopeId","data-v-b097b331"]]);export{ia as default};