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.

2 lines
10KB

  1. import{_ as te}from"./index.6c474ce6.js";import{N as j}from"./index.55746278.js";import{i as B}from"./index.f55de596.js";import{d as se,r as v,o as oe,N as ne,c as _,e as u,I as g,i as l,g as r,h as t,f as A,F as V,J as O,j as o,t as c,k as E}from"./index.cfb2717e.js";const ce=r("div",{class:"collapse-title"},"\u5173\u8054\u7684\u5E94\u7528\u4FE1\u606F",-1),ie={class:"pb-24"},re={class:"pl-24"},pe={class:"font-semibold text-14 mb-16"},ue={class:"text-primary"},de=r("p",{class:"font-semibold text-14"},"\u8D44\u6E90\u6982\u89C8",-1),fe={class:"p-16"},_e=r("p",{class:"mb-8"},"\u4E91\u8D44\u6E90\u4F7F\u7528\u60C5\u51B5",-1),me=r("p",{class:"mb-8"},"\u6570\u636E\u4F7F\u7528\u60C5\u51B5",-1),be=r("p",{class:"mb-31"},null,-1),he=r("p",{class:"mb-8"},"\u7EC4\u4EF6\u4F7F\u7528\u60C5\u51B5",-1),ve=r("p",{class:"mb-31"},null,-1),ge=r("p",{class:"mb-8"},"\u4EA7\u751F\u6570\u636E",-1),ye=r("p",{class:"mb-31"},null,-1),Ie=r("p",{class:"mb-8"},"\u8BD5\u8FD0\u884C\u62A5\u544A",-1);const Ae=r("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1),ke={class:"collapse-title"},Ce=se({name:"finalInfo"}),De=Object.assign(Ce,{props:{detailData:Object,isShowApp:{type:Boolean,default:!0}},setup(L){const S=["1","2","3","4","5","6","7"],f=L,h=v(),z=async()=>{var i,p,m,s;h.value={isCompletedLogCollection:(i=f.detailData)==null?void 0:i.isCompletedLogCollection,actualPerformanceIndicators:((p=f.detailData)==null?void 0:p.actualPerformanceIndicators)&&JSON.parse((m=f.detailData)==null?void 0:m.actualPerformanceIndicators)||[],finalAcceptanceMaterials:f.detailData.finalAcceptanceMaterials?JSON.parse(f.detailData.finalAcceptanceMaterials):void 0,finalIrsApps:(s=f.detailData)==null?void 0:s.finalIrsApps}},J=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u6750\u6599\u540D\u79F0",key:"name",prop:"name"},{label:"\u662F\u5426\u6709\u6750\u6599",key:"isHave",slot:"isHave",width:100},{label:"\u9644\u4EF6/\u8BF4\u660E\uFF08\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf\uFF09",key:"files",slot:"files"}],T=[{label:"\u6838\u5FC3\u4E1A\u52A1",prop:"businessName",key:"businessName"},{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",prop:"name",key:"name"},{label:"\u6570\u503C",prop:"nums",key:"nums"},{label:"\u5355\u4F4D",prop:"unit",key:"unit"}],y=v([{name:"\u5E94\u75281",status:"\u8FD0\u884C\u4E2D",memoryRate:11,cpuRate:33,cpRate:44},{name:"\u5E94\u75282",status:"\u8FD0\u884C\u4E2D",memoryRate:68,cpuRate:43,cpRate:30}]),n=v({});let R,N,x;const $=v(),W=v(),q=v(),D=(i,p,m)=>{const s=[p,"rgba(0, 0, 0, 0.1)"];return{legend:{show:!1},graphic:[{type:"text",left:"center",top:"48%",style:{text:`${i}%`,fill:"#333333",fontSize:16,fontWeight:"bold",fontFamily:"DINAlternate-Bold, DINAlternate"}},{type:"text",left:"center",bottom:"0",style:{text:`${m}`,fill:"#333333",fontSize:12}}],series:[{type:"pie",radius:["58%","75%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[{value:i},{value:100-i}],itemStyle:{color:function(d){return s[d.dataIndex]}},labelLine:{show:!1}}]}},G=()=>{R||(R=B($.value));const i=D(n.value.memoryRate,"#5ADE92","\u8FD1\u4E09\u4E2A\u6708\u5185\u5B58\u5E73\u5747\u4F7F\u7528\u7387");R.setOption(i)},K=()=>{N||(N=B(W.value));const i=D(n.value.cpuRate,"#0967FD","\u8FD1\u4E09\u4E2A\u6708CPU\u5E73\u5747\u4F7F\u7528\u7387");N.setOption(i)},Q=()=>{x||(x=B(q.value));const i=D(n.value.cpRate,"#ffae00","\u8FD1\u4E09\u4E2A\u6708\u78C1\u76D8\u5E73\u5747\u4F7F\u7528\u7387");x.setOption(i)},X=()=>{G(),K(),Q()},w=v(0),Y=i=>{w.value=i,n.value=y.value[i],X()},Z=i=>{console.log(i)};return oe(async()=>{var i;z(),y.value=((i=f==null?void 0:f.detailData.projectApplications)==null?void 0:i.map((p,m)=>({name:p.applicationName||p.relatedExistsApplication,status:"\u8FD0\u884C\u4E2D",finalIrsApps:h.value.finalIrsApps[m]})))||[],n.value=y.value[0],await ne()}),(i,p)=>{const m=_("el-tab-pane"),s=_("el-descriptions-item"),d=_("el-descriptions"),b=_("el-col"),M=_("el-row"),ee=_("el-tabs"),U=_("el-collapse-item"),P=_("table-list"),ae=_("el-collapse");return h.value?(u(),g(ae,{key:0,modelValue:S,"onUpdate:modelValue":p[1]||(p[1]=k=>S=k),onChange:Z},{default:l(()=>{var k;return[L.isShowApp&&((k=y.value)==null?void 0:k.length)?(u(),g(U,{key:0,name:"1",class:"mb-16"},{title:l(()=>[ce]),default:l(()=>[r("div",ie,[t(ee,{modelValue:w.value,"onUpdate:modelValue":p[0]||(p[0]=e=>w.value=e),"tab-position":"left",onTabChange:Y},{default:l(()=>[(u(!0),A(V,null,O(y.value,(e,a)=>(u(),g(m,{key:a,label:e.name,name:a},null,8,["label","name"]))),128)),r("div",re,[r("p",pe,[o("\u5E94\u7528\u72B6\u6001\uFF1A"),r("span",ue,c(n.value.status),1)]),de,r("div",fe,[t(M,{class:"mb-16"},{default:l(()=>[t(b,{span:12},{default:l(()=>[_e,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u4E91\u8D44\u6E90\u5B9E\u4F8B\u4F7F\u7528\u6570"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.cloudResourceUsage.instancesNum),1)]}),_:1}),t(s,{label:"\u4E91\u8D44\u6E90\u4EA7\u54C1"},{default:l(()=>[o(" \u6682\u65E0 ")]),_:1}),t(s,{label:"\u4E91\u8D44\u6E90\u5229\u7528\u7387"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.cloudResourceUsage.utilizationRate),1)]}),_:1})]),_:1})]),_:1})]),_:1}),t(M,{gutter:24},{default:l(()=>[t(b,{span:12,class:"mb-16"},{default:l(()=>[me,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u6570\u636E\u5171\u4EAB\u7533\u8BF7\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedApplicationVolume),1)]}),_:1}),t(s,{label:"\u6570\u636E\u5171\u4EAB\u4F7F\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedUsage),1)]}),_:1})]),_:1})]),_:1}),t(b,{span:12,class:"mb-16"},{default:l(()=>[be,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u534F\u540C\u63A5\u53E3\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.collaborativeInterfaceCallVolume),1)]}),_:1}),t(s,{label:"\u6570\u636E\u5171\u4EAB\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.dataUsage.sharedInterfaceCallVolume),1)]}),_:1})]),_:1})]),_:1}),t(b,{span:12,class:"mb-16"},{default:l(()=>[he,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u7EC4\u4EF6\u7533\u8BF7\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.applicationVolume),1)]}),_:1}),t(s,{label:"\u7EC4\u4EF6\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.callVolume),1)]}),_:1}),t(s,{label:"\u7EC4\u4EF6\u4F7F\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.useVolume),1)]}),_:1})]),_:1})]),_:1}),t(b,{span:12,class:"mb-16"},{default:l(()=>[ve,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u7EDF\u4E00\u7EC4\u4EF6\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.componentUsage.unifyCallolVolume),1)]}),_:1}),t(s,{label:"\u4F7F\u7528\u7EC4\u4EF6"},{default:l(()=>[o(" \u6682\u65E0 ")]),_:1}),t(s,{label:"\u4F7F\u7528\u5F3A\u5236\u7C7B\u7EC4\u4EF6"},{default:l(()=>[o(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),t(b,{span:12,class:"mb-16"},{default:l(()=>[ge,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u4EA7\u751F\u6570\u636E\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.volume),1)]}),_:1}),t(s,{label:"\u4EA7\u751F\u6570\u636E\u5171\u4EAB\u4F7F\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.sharedUseVolume),1)]}),_:1}),t(s,{label:"\u6570\u636E\u63A5\u53E3\u88AB\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.dataInterfaceCallsVolume),1)]}),_:1}),t(s,{label:"\u4F7F\u7528\u6279\u91CF\u6570\u636E"},{default:l(()=>[o(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),t(b,{span:12,class:"mb-16"},{default:l(()=>[ye,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u4EA7\u751F\u6570\u636E\u5171\u4EAB\u7533\u8BF7\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.sharedApplicationVolume),1)]}),_:1}),t(s,{label:"\u4EA7\u751F\u6570\u636E\u5BA1\u6279\u901A\u8FC7\u7387"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.approvalPassRate),1)]}),_:1}),t(s,{label:"\u534F\u540C\u63A5\u53E3\u88AB\u8C03\u7528\u91CF"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.generateData.collaborativeInterfaceCallVolume),1)]}),_:1}),t(s,{label:"\u4F7F\u7528\u5171\u4EAB\u63A5\u53E3"},{default:l(()=>[o(" \u6682\u65E0 ")]),_:1})]),_:1})]),_:1}),t(b,{span:12},{default:l(()=>[Ie,t(d,{column:1,border:""},{default:l(()=>[t(s,{label:"\u8BD5\u8FD0\u884C\u62A5\u544A\u901A\u8FC7\u7387"},{default:l(()=>{var e,a;return[o(c((a=(e=n.value)==null?void 0:e.finalIrsApps)==null?void 0:a.operationReport.passRate),1)]}),_:1})]),_:1})]),_:1})]),_:1})]),E("",!0)])]),_:1},8,["modelValue"])])]),_:1})):E("",!0),t(U,{name:"7",class:"mb-16"},{title:l(()=>[Ae]),default:l(()=>{var e,a;return[(a=(e=h.value)==null?void 0:e.actualPerformanceIndicators)!=null&&a.length?(u(),g(d,{key:0,column:2,border:"",class:"mb-8"},{default:l(()=>[t(s,{label:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6",span:2},{default:l(()=>[o(c(h.value.isCompletedLogCollection?"\u662F":"\u5426"),1)]),_:1}),t(s,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",span:2},{default:l(()=>[t(P,{pagination:!1,style:{width:"100%"},column:T,data:h.value.actualPerformanceIndicators,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(u(),g(j,{key:1}))]}),_:1}),(u(!0),A(V,null,O(h.value.finalAcceptanceMaterials,(e,a)=>(u(),g(U,{key:e.title,name:a+2+"",class:"mb-16"},{title:l(()=>[r("div",ke,c(e.title),1)]),default:l(()=>[t(P,{ref_for:!0,ref:"tableListRef",column:J,data:e.data,pagination:!1,"empty-temp":!1},{isHave:l(({scope:I})=>[r("span",null,c(I.row.isHave?"\u662F":"\u5426"),1)]),files:l(({scope:I})=>[I.row.isHave?(u(!0),A(V,{key:0},O(I.row.files,(C,le)=>{var F,H;return u(),A("p",{key:le,class:"mb-4"},[t(te,{"file-name":C.name,"file-id":(H=(F=C==null?void 0:C.response)==null?void 0:F.data)==null?void 0:H.id},null,8,["file-name","file-id"])])}),128)):(u(),A(V,{key:1},[o(c(I.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]}),_:1})):(u(),g(j,{key:1}))}}});export{De as default};