import{k as e,U as t,V as r,W as a,a3 as s,al as l,F as u,O as o}from"./vue.js?v=1753954525509";import{e as n}from"./page_layout.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./public.js?v=1753954525509";const i={key:0,class:"server-sec-summary"},p={class:"server-sec-list"},c=["item"],d={key:0,class:"pagination-note"},m=n(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 n=e;return(e,m)=>{var v,_,y,g;return t(),r("div",null,[(null==(v=n.reportData)?void 0:v.server_security)?(t(),r("div",i,[a("div",null,"Check Items Total："+s((null==(_=n.reportData.server_security.server_security_count)?void 0:_.security_count)||0),1),a("div",null,"Risk Items Number："+s((null==(g=null==(y=n.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,o(n.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))])]),n.totalPages>1?(t(),r("div",d," Total "+s(n.totalPages)+" pages, current page "+s(n.pageIndex+1)+". ",1)):l("",!0)])])}}}),[["__scopeId","data-v-f322e76a"]]);export{m as default};
