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.

finalInfo-37de53a6.js 9.6KB

pirms 1 mēnesi
1
  1. import{_ as te}from"./index-33a0e6e3.js";import{N as F}from"./index-be0b3801.js";import{i as B}from"./index-b861e656.js";import{r as g,o as se,C as oe,b as m,c as d,L as y,h as l,e as r,f as t,d as I,F as x,H as O,i as n,t as i,j as z,k as ne}from"./index-dd5fae99.js";const pe={class:"pb-24"},ie={class:"pl-24"},ue={class:"font-semibold text-14 mb-16"},re={class:"text-primary"},de={class:"p-16"},fe={class:"collapse-title"},ce=ne({name:"finalInfo"}),ge=Object.assign(ce,{props:{detailData:Object,isShowApp:{type:Boolean,default:!0}},setup(E){const L=["1","2","3","4","5","6","7"],c=E,v=g(),T=async()=>{var u,s,b,o;v.value={isCompletedLogCollection:(u=c.detailData)==null?void 0:u.isCompletedLogCollection,beseExpectedResults:((s=c.detailData)==null?void 0:s.beseExpectedResults)&&JSON.parse((b=c.detailData)==null?void 0:b.beseExpectedResults)||[],finalAcceptanceMaterials:c.detailData.finalAcceptanceMaterials?JSON.parse(c.detailData.finalAcceptanceMaterials):void 0,finalIrsApps:(o=c.detailData)==null?void 0:o.finalIrsApps}},$=[{label:"序号",type:"index",width:"60"},{label:"材料名称",key:"name",prop:"name"},{label:"是否有材料",key:"isHave",slot:"isHave",width:100},{label:"附件/说明(支持扩展名:.doc .docx .pdf)",key:"files",slot:"files"}],J=[{label:"项目主要内容",prop:"mainContent",key:"mainContent"},{label:"业务对象",prop:"businessObject",key:"businessObject"}],A=g([{name:"应用1",status:"运行中",memoryRate:11,cpuRate:33,cpRate:44},{name:"应用2",status:"运行中",memoryRate:68,cpuRate:43,cpRate:30}]),p=g({});let k,D,N;const P=g(),W=g(),q=g(),h=(u,s,b)=>{const o=[s,"rgba(0, 0, 0, 0.1)"];return{legend:{show:!1},graphic:[{type:"text",left:"center",top:"48%",style:{text:`${u}%`,fill:"#333333",fontSize:16,fontWeight:"bold",fontFamily:"DINAlternate-Bold, DINAlternate"}},{type:"text",left:"center",bottom:"0",style:{text:`${b}`,fill:"#333333",fontSize:12}}],series:[{type:"pie",radius:["58%","75%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[{value:u},{value:100-u}],itemStyle:{color:function(f){return o[f.dataIndex]}},labelLine:{show:!1}}]}},G=()=>{k||(k=B(P.value));const u=h(p.value.memoryRate,"#5ADE92","近三个月内存平均使用率");k.setOption(u)},K=()=>{D||(D=B(W.value));const u=h(p.value.cpuRate,"#0967FD","近三个月CPU平均使用率");D.setOption(u)},Q=()=>{N||(N=B(q.value));const u=h(p.value.cpRate,"#ffae00","近三个月磁盘平均使用率");N.setOption(u)},X=()=>{G(),K(),Q()},w=g(0),Y=u=>{w.value=u,p.value=A.value[u],X()},Z=u=>{console.log(u)};return se(async()=>{var u;T(),A.value=((u=c==null?void 0:c.detailData.projectApplications)==null?void 0:u.map((s,b)=>({name:s.applicationName||s.relatedExistsApplication,status:"运行中",finalIrsApps:v.value.finalIrsApps[b]})))||[],p.value=A.value[0],await oe()}),(u,s)=>{const b=m("el-tab-pane"),o=m("el-descriptions-item"),f=m("el-descriptions"),_=m("el-col"),S=m("el-row"),ee=m("el-tabs"),U=m("el-collapse-item"),M=m("table-list"),ae=m("el-collapse");return v.value?(d(),y(ae,{key:0,modelValue:L,"onUpdate:modelValue":s[1]||(s[1]=R=>L=R),onChange:Z},{default:l(()=>{var R;return[E.isShowApp&&((R=A.value)!=null&&R.length)?(d(),y(U,{key:0,name:"1",class:"mb-16"},{title:l(()=>s[2]||(s[2]=[r("div",{class:"collapse-title"},"关联的应用信息",-1)])),default:l(()=>[r("div",pe,[t(ee,{modelValue:w.value,"onUpdate:modelValue":s[0]||(s[0]=e=>w.value=e),"tab-position":"left",onTabChange:Y},{default:l(()=>[(d(!0),I(x,null,O(A.value,(e,a)=>(d(),y(b,{key:a,label:e.name,name:a},null,8,["label","name"]))),128)),r("div",ie,[r("p",ue,[s[3]||(s[3]=n("应用状态:")),r("span",re,i(p.value.status),1)]),s[18]||(s[18]=r("p",{class:"font-semibold text-14"},"资源概览",-1)),r("div",de,[t(S,{class:"mb-16"},{default:l(()=>[t(_,{span:12},{default:l(()=>[s[5]||(s[5]=r("p",{class:"mb-8"},"云资源使用情况",-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"云资源实例使用数"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.cloudResourceUsage.instancesNum),1)]}),_:1}),t(o,{label:"云资源产品"},{default:l(()=>s[4]||(s[4]=[n(" 暂无 ")])),_:1}),t(o,{label:"云资源利用率"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.cloudResourceUsage.utilizationRate),1)]}),_:1})]),_:1})]),_:1})]),_:1}),t(S,{gutter:24},{default:l(()=>[t(_,{span:12,class:"mb-16"},{default:l(()=>[s[6]||(s[6]=r("p",{class:"mb-8"},"数据使用情况",-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"数据共享申请量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedApplicationVolume),1)]}),_:1}),t(o,{label:"数据共享使用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedUsage),1)]}),_:1})]),_:1})]),_:1}),t(_,{span:12,class:"mb-16"},{default:l(()=>[s[7]||(s[7]=r("p",{class:"mb-31"},null,-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"协同接口调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.collaborativeInterfaceCallVolume),1)]}),_:1}),t(o,{label:"数据共享调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedInterfaceCallVolume),1)]}),_:1})]),_:1})]),_:1}),t(_,{span:12,class:"mb-16"},{default:l(()=>[s[8]||(s[8]=r("p",{class:"mb-8"},"组件使用情况",-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"组件申请量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.applicationVolume),1)]}),_:1}),t(o,{label:"组件调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.callVolume),1)]}),_:1}),t(o,{label:"组件使用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.useVolume),1)]}),_:1})]),_:1})]),_:1}),t(_,{span:12,class:"mb-16"},{default:l(()=>[s[11]||(s[11]=r("p",{class:"mb-31"},null,-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"统一组件调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.unifyCallolVolume),1)]}),_:1}),t(o,{label:"使用组件"},{default:l(()=>s[9]||(s[9]=[n(" 暂无 ")])),_:1}),t(o,{label:"使用强制类组件"},{default:l(()=>s[10]||(s[10]=[n(" 暂无 ")])),_:1})]),_:1})]),_:1}),t(_,{span:12,class:"mb-16"},{default:l(()=>[s[13]||(s[13]=r("p",{class:"mb-8"},"产生数据",-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"产生数据量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.volume),1)]}),_:1}),t(o,{label:"产生数据共享使用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.sharedUseVolume),1)]}),_:1}),t(o,{label:"数据接口被调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.dataInterfaceCallsVolume),1)]}),_:1}),t(o,{label:"使用批量数据"},{default:l(()=>s[12]||(s[12]=[n(" 暂无 ")])),_:1})]),_:1})]),_:1}),t(_,{span:12,class:"mb-16"},{default:l(()=>[s[15]||(s[15]=r("p",{class:"mb-31"},null,-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"产生数据共享申请量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.sharedApplicationVolume),1)]}),_:1}),t(o,{label:"产生数据审批通过率"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.approvalPassRate),1)]}),_:1}),t(o,{label:"协同接口被调用量"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.collaborativeInterfaceCallVolume),1)]}),_:1}),t(o,{label:"使用共享接口"},{default:l(()=>s[14]||(s[14]=[n(" 暂无 ")])),_:1})]),_:1})]),_:1}),t(_,{span:12},{default:l(()=>[s[16]||(s[16]=r("p",{class:"mb-8"},"试运行报告",-1)),t(f,{column:1,border:""},{default:l(()=>[t(o,{label:"试运行报告通过率"},{default:l(()=>{var e,a;return[n(i((a=(e=p.value)==null?void 0:e.finalIrsApps)==null?void 0:a.operationReport.passRate),1)]}),_:1})]),_:1})]),_:1})]),_:1})]),z("",!0)])]),_:1},8,["modelValue"])])]),_:1})):z("",!0),t(U,{name:"7",class:"mb-16"},{title:l(()=>s[19]||(s[19]=[r("div",{class:"collapse-title"},"实施信息",-1)])),default:l(()=>{var e,a;return[(a=(e=v.value)==null?void 0:e.beseExpectedResults)!=null&&a.length?(d(),y(f,{key:0,column:2,border:"",class:"mb-8"},{default:l(()=>[t(o,{label:"是否完成日志数据归集",span:2},{default:l(()=>[n(i(v.value.isCompletedLogCollection?"是":"否"),1)]),_:1}),t(o,{label:"项目内容与预期成效",span:2},{default:l(()=>[t(M,{pagination:!1,style:{width:"100%"},column:J,data:v.value.beseExpectedResults,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(d(),y(F,{key:1}))]}),_:1}),(d(!0),I(x,null,O(v.value.finalAcceptanceMaterials,(e,a)=>(d(),y(U,{key:e.title,name:a+2+"",class:"mb-16"},{title:l(()=>[r("div",fe,i(e.title),1)]),default:l(()=>[t(M,{ref_for:!0,ref:"tableListRef",column:$,data:e.data,pagination:!1,"empty-temp":!1},{isHave:l(({scope:C})=>[r("span",null,i(C.row.isHave?"是":"否"),1)]),files:l(({scope:C})=>[C.row.isHave?(d(!0),I(x,{key:0},O(C.row.files,(V,le)=>{var j,H;return d(),I("p",{key:le,class:"mb-4"},[t(te,{"file-name":V.name,"file-id":(H=(j=V==null?void 0:V.response)==null?void 0:j.data)==null?void 0:H.id},null,8,["file-name","file-id"])])}),128)):(d(),I(x,{key:1},[n(i(C.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]}),_:1})):(d(),y(F,{key:1}))}}});export{ge as default};