You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index-9279f416.js 11KB

1
  1. import{_ as st}from"./backIcon-df74c383.js";import{z as tt,E as et,r as c,o as lt,b as at,c as o,d as n,e as s,J as ot,t as l,u as Xs,f as nt,F as it,H as rt,j as p,k as ut,x as dt,n as ct}from"./index-dd5fae99.js";import{d as pt}from"./projectCollectionEnter-718f1371.js";const vt="/assets/title-193f0dd1.png",mt="/assets/centerImg-915b9a88.png",ft="/assets/rotaBase-369a2bb5.png",gt="/assets/rotaBg-3a39e35a.png",bt="/assets/bigBottom-5543bfb5.png",_="/assets/smallCir-0b2f41ca.png",x="/assets/bigCir-66a4e296.png",_t="/assets/bgWave-e275108a.png",m="/assets/tabContentIcon-f6296934.png",xt=j=>tt.get(`/api/v1/dashboard/project-portrait/${j}`);const jt={class:"portraitScreen"},It={class:"content"},Ct={class:"top"},yt={class:"box3"},kt={class:"tit"},Ot={class:"main"},Vt={class:"info flex flex-wrap"},St={class:"info-item w-[100%] flex items-start"},Tt=["title"],Ut={class:"flex w-full"},wt={class:"flex-1"},Dt={class:"info-item w-[100%] flex items-start"},Bt={class:"flex-1"},Rt={class:"w-[100%] flex justify-between"},$t={class:"info-item flex"},Nt={key:0},zt={key:1},At={class:"flex-1"},Et={class:"w-[100%] flex justify-between"},Pt={class:"info-item flex"},Ft={key:0},Jt={key:1},Lt={class:"info-item w-[100%] flex items-start"},Mt={class:"flex-1"},Wt={key:0,class:"customMask"},qt={class:"customDialog customDialog1"},Ht={key:0,class:"box1"},Gt={class:"tag"},Kt={key:0,class:"div15"},Qt={key:1,class:"box2"},Xt={class:"main"},Yt={key:2,class:"box5"},Zt={class:"main"},ht={class:"tabContent"},se={class:"value"},te={class:"value"},ee={class:"value"},le={class:"value"},ae={class:"value"},oe={class:"value"},ne={class:"value"},ie={class:"value"},re={class:"value"},ue={class:"value"},de={class:"value"},ce={class:"value"},pe={class:"value"},ve={class:"value"},me={class:"value"},fe={class:"value"},ge=ut({name:"portraitScreen"}),je=Object.assign(ge,{setup(j){const Ys=dt(),{statusOptions:I}=et.dictStore.globalDicts||{};c(0);const e=c(),Zs=c(),hs=async()=>{var t,r;const i=await xt(Ys.query.projectCode);e.value=i.data,Zs.value=(r=(t=i.data)==null?void 0:t.projectInfo)==null?void 0:r.statusSituation.reverse()},f=c([]),d=c([!1,!1,!1]),g=c(!1),b=i=>{g.value=!0,d.value.forEach((t,r)=>{r===i?d.value[r]=!0:d.value[r]=!1}),console.log(d.value)};return lt(async()=>{var i;hs(),f.value=(await pt()).data,console.log((i=f.value)==null?void 0:i.filter(t=>t.type==="PROJECT_STATUS"))}),(i,t)=>{var C,y,k,O,V,S,T,U,w,D,B,R,$,N,z,A,E,P,F,J,L,M,W,q,H,G,K,Q,X,Y,Z,h,ss,ts,es,ls,as,os,ns,is,rs,us,ds,cs,ps,vs,ms,fs,gs,bs,_s,xs,js,Is,Cs,ys,ks,Os,Vs,Ss,Ts,Us,ws,Ds,Bs,Rs,$s,Ns,zs,As,Es,Ps,Fs,Js,Ls,Ms,Ws,qs,Hs,Gs,Ks,Qs;const r=at("svg-icon");return o(),n("div",jt,[t[42]||(t[42]=s("div",{class:"head"},[s("img",{src:vt,class:"mx-auto"})],-1)),s("div",It,[s("div",Ct,[s("p",{class:"back flex items-center",onClick:t[0]||(t[0]=a=>i.$router.go(-1))},t[7]||(t[7]=[s("img",{src:st,class:"backIcon"},null,-1),s("span",null,"返回首页",-1)])),t[16]||(t[16]=ot('<div class="center"><img src="'+mt+'" class="centerBoxImg"><img src="'+ft+'" class="rotaBaseImg"><img src="'+gt+'" class="rotaBgImg"><img src="'+bt+'" class="bigBottomImg"></div>',1)),s("div",yt,[s("div",kt,l((y=(C=e.value)==null?void 0:C.projectInfo)==null?void 0:y.projectName),1),s("div",Ot,[s("div",Vt,[s("div",St,[t[8]||(t[8]=s("span",{class:"label flex items-center flex-shrink-0"},"系统定位:",-1)),s("span",{class:"flex-1 ellipsis",title:((O=(k=e.value)==null?void 0:k.projectInfo)==null?void 0:O.systemPosition)||((S=(V=e.value)==null?void 0:V.projectInfo)==null?void 0:S.projectIntroduction)},l(((U=(T=e.value)==null?void 0:T.projectInfo)==null?void 0:U.systemPosition)||((D=(w=e.value)==null?void 0:w.projectInfo)==null?void 0:D.projectIntroduction)||"-"),9,Tt)]),s("div",Ut,[s("div",wt,[s("div",Dt,[t[9]||(t[9]=s("span",{class:"label flex items-center flex-shrink-0"},"投资金额:",-1)),s("span",Bt,l(((R=(B=e.value)==null?void 0:B.projectInfo)==null?void 0:R.approvalAmount)||"-")+"万元",1)]),s("div",Rt,[s("div",$t,[t[10]||(t[10]=s("span",{class:"label flex items-center flex-shrink-0"},"项目状态:",-1)),((N=($=e.value)==null?void 0:$.projectInfo)==null?void 0:N.status)*1>100?(o(),n("span",Nt,l(((E=Xs(I)[((A=(z=e.value)==null?void 0:z.projectInfo)==null?void 0:A.status)*1])==null?void 0:E.name)||"-"),1)):(o(),n("span",zt,l(((F=(P=f.value)==null?void 0:P.filter(a=>a.type==="PROJECT_STATUS").find(a=>{var u,v;return a.value===((v=(u=e.value)==null?void 0:u.projectInfo)==null?void 0:v.status)}))==null?void 0:F.label)||"-"),1))])])]),s("div",At,[s("div",Et,[s("div",Pt,[t[11]||(t[11]=s("span",{class:"label flex items-center flex-shrink-0"},"项目状态:",-1)),((L=(J=e.value)==null?void 0:J.projectInfo)==null?void 0:L.status)*1>100?(o(),n("span",Ft,l(((q=Xs(I)[((W=(M=e.value)==null?void 0:M.projectInfo)==null?void 0:W.status)*1])==null?void 0:q.name)||"-"),1)):(o(),n("span",Jt,l(((G=(H=f.value)==null?void 0:H.filter(a=>a.type==="PROJECT_STATUS").find(a=>{var u,v;return a.value===((v=(u=e.value)==null?void 0:u.projectInfo)==null?void 0:v.status)}))==null?void 0:G.label)||"-"),1))])]),s("div",Lt,[t[12]||(t[12]=s("span",{class:"label flex items-center flex-shrink-0"},"部门:",-1)),s("span",Mt,l(((Q=(K=e.value)==null?void 0:K.projectInfo)==null?void 0:Q.buildOrgName)||"-"),1)])])])])])]),s("div",{class:"boxCircle1 flex flex-col items-center justify-center cursor-pointer z-10",onClick:t[1]||(t[1]=a=>b(0))},t[13]||(t[13]=[s("img",{src:_,class:"smallCirImg"},null,-1),s("img",{src:x,class:"bigCirImg"},null,-1),s("p",null,"项目",-1),s("p",null,"简介",-1)])),s("div",{class:"boxCircle2 flex flex-col items-center justify-center cursor-pointer z-10",onClick:t[2]||(t[2]=a=>b(1))},t[14]||(t[14]=[s("img",{src:_,class:"smallCirImg"},null,-1),s("img",{src:x,class:"bigCirImg"},null,-1),s("p",null,"特征",-1),s("p",null,"标签",-1)])),s("div",{class:"boxCircle3 flex flex-col items-center justify-center cursor-pointer z-10",onClick:t[3]||(t[3]=a=>b(2))},t[15]||(t[15]=[s("img",{src:_,class:"smallCirImg"},null,-1),s("img",{src:x,class:"bigCirImg"},null,-1),s("p",null,"产出",-1),s("p",null,"标签",-1)]))])]),t[43]||(t[43]=s("div",{class:"bgWave"},[s("img",{src:_t,class:"img"})],-1)),g.value?(o(),n("div",Wt,[s("div",qt,[nt(r,{name:"dialogClose",class:"closeIcon",onClick:t[4]||(t[4]=a=>g.value=!1)}),d.value[1]?(o(),n("div",Ht,[t[18]||(t[18]=s("div",{class:"mid"},null,-1)),(o(!0),n(it,null,rt((Y=(X=e.value)==null?void 0:X.projectFeatures)==null?void 0:Y.slice(0,14),(a,u)=>(o(),n("div",{key:u,class:ct(`div${u+1}`)},[s("p",Gt,l(a.name),1)],2))),128)),((h=(Z=e.value)==null?void 0:Z.projectFeatures)==null?void 0:h.length)>14?(o(),n("div",Kt,t[17]||(t[17]=[s("p",{class:"tag"},"......",-1)]))):p("",!0)])):p("",!0),d.value[0]?(o(),n("div",Qt,[s("div",Xt,l((ts=(ss=e.value)==null?void 0:ss.projectInfo)==null?void 0:ts.projectIntroduction),1)])):p("",!0),d.value[2]?(o(),n("div",Yt,[s("div",Zt,[p("",!0),s("div",ht,[t[37]||(t[37]=s("div",{class:"tableTit flex items-center"},[s("img",{src:m,alt:""}),s("span",null,"云资源使用情况")],-1)),s("table",null,[s("tr",null,[t[19]||(t[19]=s("td",{class:"label"},"云资源实例使用数",-1)),s("td",se,l((as=(ls=(es=e.value)==null?void 0:es.projectOutput)==null?void 0:ls.项目体征)==null?void 0:as.cloudResourceUsage.instancesNum),1),t[20]||(t[20]=s("td",{class:"label"},"云资源利用率",-1)),s("td",te,l((is=(ns=(os=e.value)==null?void 0:os.projectOutput)==null?void 0:ns.项目体征)==null?void 0:is.cloudResourceUsage.utilizationRate),1)])]),t[38]||(t[38]=s("div",{class:"tableTit flex items-center"},[s("img",{src:m,alt:""}),s("span",null,"数据使用情况")],-1)),s("table",null,[s("tr",null,[t[21]||(t[21]=s("td",{class:"label"},"数据共享申请量",-1)),s("td",ee,l((ds=(us=(rs=e.value)==null?void 0:rs.projectOutput)==null?void 0:us.项目体征)==null?void 0:ds.dataUsage.sharedApplicationVolume),1),t[22]||(t[22]=s("td",{class:"label"},"数据共享使用量",-1)),s("td",le,l((vs=(ps=(cs=e.value)==null?void 0:cs.projectOutput)==null?void 0:ps.项目体征)==null?void 0:vs.dataUsage.sharedUsage),1)]),s("tr",null,[t[23]||(t[23]=s("td",{class:"label"},"数据共享接口调用量",-1)),s("td",ae,l((gs=(fs=(ms=e.value)==null?void 0:ms.projectOutput)==null?void 0:fs.项目体征)==null?void 0:gs.dataUsage.sharedInterfaceCallVolume),1),t[24]||(t[24]=s("td",{class:"label"},"协同接口调用量",-1)),s("td",oe,l((xs=(_s=(bs=e.value)==null?void 0:bs.projectOutput)==null?void 0:_s.项目体征)==null?void 0:xs.dataUsage.collaborativeInterfaceCallVolume),1)])]),t[39]||(t[39]=s("div",{class:"tableTit flex items-center"},[s("img",{src:m,alt:""}),s("span",null,"组件使用情况")],-1)),s("table",null,[s("tr",null,[t[25]||(t[25]=s("td",{class:"label"},"组件申请量",-1)),s("td",ne,l((Cs=(Is=(js=e.value)==null?void 0:js.projectOutput)==null?void 0:Is.项目体征)==null?void 0:Cs.componentUsage.applicationVolume),1),t[26]||(t[26]=s("td",{class:"label"},"组件使用量",-1)),s("td",ie,l((Os=(ks=(ys=e.value)==null?void 0:ys.projectOutput)==null?void 0:ks.项目体征)==null?void 0:Os.componentUsage.useVolume),1)]),s("tr",null,[t[27]||(t[27]=s("td",{class:"label"},"组件调用量",-1)),s("td",re,l(((Ts=(Ss=(Vs=e.value)==null?void 0:Vs.projectOutput)==null?void 0:Ss.项目体征)==null?void 0:Ts.componentUsage.unifyCallolVolume)||"暂无"),1),t[28]||(t[28]=s("td",{class:"label"},"统一组件调用量",-1)),t[29]||(t[29]=s("td",{class:"value"},"暂无",-1))])]),t[40]||(t[40]=s("div",{class:"tableTit flex items-center"},[s("img",{src:m,alt:""}),s("span",null,"产生数据")],-1)),s("table",null,[s("tr",null,[t[30]||(t[30]=s("td",{class:"label"},"产生数据量",-1)),s("td",ue,l(((Ds=(ws=(Us=e.value)==null?void 0:Us.projectOutput)==null?void 0:ws.项目体征)==null?void 0:Ds.generateData.volume)||"暂无"),1),t[31]||(t[31]=s("td",{class:"label"},"产生数据共享申请量",-1)),s("td",de,l((($s=(Rs=(Bs=e.value)==null?void 0:Bs.projectOutput)==null?void 0:Rs.项目体征)==null?void 0:$s.generateData.sharedApplicationVolume)||"暂无"),1)]),s("tr",null,[t[32]||(t[32]=s("td",{class:"label"},"产生数据共享使用量",-1)),s("td",ce,l(((As=(zs=(Ns=e.value)==null?void 0:Ns.projectOutput)==null?void 0:zs.项目体征)==null?void 0:As.generateData.sharedUseVolume)||"暂无"),1),t[33]||(t[33]=s("td",{class:"label"},"产生数据审批通过率",-1)),s("td",pe,l(((Fs=(Ps=(Es=e.value)==null?void 0:Es.projectOutput)==null?void 0:Ps.项目体征)==null?void 0:Fs.generateData.approvalPassRate)||"暂无"),1)]),s("tr",null,[t[34]||(t[34]=s("td",{class:"label"},"数据接口被调用量",-1)),s("td",ve,l(((Ms=(Ls=(Js=e.value)==null?void 0:Js.projectOutput)==null?void 0:Ls.项目体征)==null?void 0:Ms.generateData.dataInterfaceCallsVolume)||"暂无"),1),t[35]||(t[35]=s("td",{class:"label"},"协同接口被调用量",-1)),s("td",me,l(((Hs=(qs=(Ws=e.value)==null?void 0:Ws.projectOutput)==null?void 0:qs.项目体征)==null?void 0:Hs.generateData.collaborativeInterfaceCallVolume)||"暂无"),1)])]),t[41]||(t[41]=s("div",{class:"tableTit flex items-center"},[s("img",{src:m,alt:""}),s("span",null,"试运行报告")],-1)),s("table",null,[s("tr",null,[t[36]||(t[36]=s("td",{class:"label"},"试运行报告通过率",-1)),s("td",fe,l(((Qs=(Ks=(Gs=e.value)==null?void 0:Gs.projectOutput)==null?void 0:Ks.项目体征)==null?void 0:Qs.operationReport.passRate)||"暂无"),1)])])])])])):p("",!0)])])):p("",!0)])}}});export{je as default};