import{k as e,R as t,V as r,an as a,S as s,a4 as l,F as u,O as n}from"./vue.js?v=1764830988434";import{p as o}from"./page_layout.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./public.js?v=1764830988434";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 r(),t("div",null,[(null==(v=o.reportData)?void 0:v.server_security)?(r(),t("div",i,[s("div",null,"Check Items Total："+l((null==(_=o.reportData.server_security.server_security_count)?void 0:_.security_count)||0),1),s("div",null,"Risk Items Number："+l((null==(g=null==(y=o.reportData.server_security.server_security_count)?void 0:y.risk_count)?void 0:g.warning)||0),1)])):a("",!0),s("div",p,[s("table",null,[m[0]||(m[0]=s("thead",null,[s("tr",null,[s("th",null,"Name"),s("th",null,"Status"),s("th",null,"Suggestion")])],-1)),s("tbody",null,[(r(!0),t(u,null,n(o.data,e=>(r(),t("tr",{key:e.topic+e.item,item:e},[s("td",null,l(e.name),1),s("td",null,l(2===e.status?"Risk":"Normal"),1),s("td",null,l(e.info),1)],8,c))),128))])]),o.totalPages>1?(r(),t("div",d," Total "+l(o.totalPages)+" pages, current page "+l(o.pageIndex+1)+". ",1)):a("",!0)])])}}}),[["__scopeId","data-v-f322e76a"]]);export{m as default};
