import{k as e,R as t,S as r,U as a,a4 as s,an as l,F as u,O as n}from"./vue.js?v=1763625242172";import{p as o}from"./page_layout.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./public.js?v=1763625242172";const i={key:0,class:"server-sec-summary"},p={class:"server-sec-list"},c=["item"],d={key:0,class:"pagination-note"},m=o(e({__name:"ServerSecSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const o=e;return(e,m)=>{var v,_,y,g;return t(),r("div",null,[(null==(v=o.reportData)?void 0:v.server_security)?(t(),r("div",i,[a("div",null,"Check Items Total："+s((null==(_=o.reportData.server_security.server_security_count)?void 0:_.security_count)||0),1),a("div",null,"Risk Items Number："+s((null==(g=null==(y=o.reportData.server_security.server_security_count)?void 0:y.risk_count)?void 0:g.warning)||0),1)])):l("",!0),a("div",p,[a("table",null,[m[0]||(m[0]=a("thead",null,[a("tr",null,[a("th",null,"Name"),a("th",null,"Status"),a("th",null,"Suggestion")])],-1)),a("tbody",null,[(t(!0),r(u,null,n(o.data,(e=>(t(),r("tr",{key:e.topic+e.item,item:e},[a("td",null,s(e.name),1),a("td",null,s(2===e.status?"Risk":"Normal"),1),a("td",null,s(e.info),1)],8,c)))),128))])]),o.totalPages>1?(t(),r("div",d," Total "+s(o.totalPages)+" pages, current page "+s(o.pageIndex+1)+". ",1)):l("",!0)])])}}}),[["__scopeId","data-v-f322e76a"]]);export{m as default};
