import{g}from"./system-1492a7d7.js";import{t as _}from"./table-fedd62e5.js";import{T as m,j as x,b as y}from"./ui-ba7aaa7e.js";import{e as v,P as b,Q as K,f as l,a4 as c,I as e}from"./vue-bf422dc1.js";import"./index-c2dd6a24.js";import"./libs-51817cd7.js";import"./plugins-ca970193.js";import"./others-9f318174.js";import"./echarts-bf9d612c.js";import"./icons-a8498fb6.js";import"./global-0d825ba6.js";const k={name:"Environment"},F=v({...k,setup(T){const u=[{title:"服务器信息",colKey:"param"},{title:"服务器值",colKey:"value"}],f=[{title:"选项",colKey:"option"},{title:"要求",colKey:"require"},{title:"状态",colKey:"status",cell:(o,{row:a})=>o(m,{variant:"light",theme:a.status===!0?"success":"danger"},()=>a.status===!0?"正常":"禁用")},{title:"说明",colKey:"remark"}],p=[{title:"目录",colKey:"dir"},{title:"要求",colKey:"require"},{colKey:"status",title:"状态",cell:(o,{row:a})=>o(m,{variant:"light",theme:a.status===!0?"success":"danger"},()=>a.status===!0?"可写":"不可写")},{title:"说明",colKey:"remark"}],{fetchData:h,dataLoading:i,headerAffixedTop:r,lists:s}=_({fetchFun:g});return h(),(o,a)=>{const d=x,n=y;return b(),K("div",null,[l(n,{title:"服务器信息",bordered:!1},{default:c(()=>{var t;return[l(d,{size:"small",data:(t=e(s))==null?void 0:t.server,"row-key":"id",columns:u,"vertical-align":"middle",loading:e(i),"header-affixed-top":e(r),"table-layout":"fixed","max-height":"100%"},null,8,["data","loading","header-affixed-top"])]}),_:1}),l(n,{title:"PHP环境要求",bordered:!1},{default:c(()=>{var t;return[l(d,{size:"small",data:(t=e(s))==null?void 0:t.env,"row-key":"id",columns:f,"vertical-align":"middle",loading:e(i),"header-affixed-top":e(r),"table-layout":"fixed","max-height":"100%"},null,8,["data","loading","header-affixed-top"])]}),_:1}),l(n,{title:"目录权限",bordered:!1},{default:c(()=>{var t;return[l(d,{size:"small",data:(t=e(s))==null?void 0:t.auth,"row-key":"id",columns:p,"vertical-align":"middle",loading:e(i),"header-affixed-top":e(r),"table-layout":"fixed","max-height":"100%"},null,8,["data","loading","header-affixed-top"])]}),_:1})])}}});export{F as default};
