test_lgq/niucloud/public/admin/assets/detection-5fea33fd.js
2024-01-24 17:36:08 +08:00

2 lines
3.6 KiB
JavaScript

import{d as S,O as k,r as C,n as B,a1 as x,h as r,c as d,e,w as n,a as s,t as _,u as t,N as a,y as u,I as v,B as E,ah as N,aj as z,a2 as D,$ as I,a0 as V}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{v as j}from"./tools-123d2a10.js";const T={key:0,class:"main-container attachment-container"},A={class:"flex justify-between items-center"},L={class:"text-[20px]"},O={class:"bg-[#fff] pb-[20px] mb-3"},R={class:"pt-[20px] pb-[10px] text-sm"},$={class:"text-[14px]"},q={class:"bg-[#fff] pb-[20px] mb-3"},F={class:"py-[20px] text-sm"},G={class:"text-[14px]"},H={class:"bg-[#fff] pb-[20px] mb-3"},J={class:"py-[20px] text-sm"},K={class:"text-[14px]"},M={key:0},P={key:1},Q={class:"bg-[#fff] pb-[20px] mb-3"},U={class:"py-[20px] text-sm"},W={class:"text-[14px]"},X={key:0},Y={key:1},ue=S({__name:"detection",setup(Z){const y=k().meta.title,i=C([]),l=B({server_load:!0,server_version_load:!0,system_variables_load:!0,process_load:!0});return(()=>{l.server_load=!0,l.server_version_load=!0,l.system_variables_load=!0,l.process_load=!0,j().then(b=>{i.value=b.data,l.server_load=!1,l.server_version_load=!1,l.system_variables_load=!1,l.process_load=!1})})(),(b,ae)=>{const o=N,c=z,h=x("Select"),p=D,g=x("CloseBold"),w=I,m=V;return i.value?(r(),d("div",T,[e(w,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[s("div",A,[s("span",L,_(t(y)),1)]),s("div",O,[s("p",R,_(t(a)("serverInformation")),1),s("div",$,[u((r(),v(c,{data:i.value.server,size:"large"},{default:n(()=>[e(o,{prop:"name",label:t(a)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(o,{prop:"server",label:t(a)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[m,l.server_load]])])]),s("div",q,[s("p",F,_(t(a)("systemDemand")),1),s("div",G,[u((r(),v(c,{data:i.value.server_version,size:"large"},{default:n(()=>[e(o,{prop:"name",label:t(a)("environment"),align:"left","min-width":"200"},null,8,["label"]),e(o,{prop:"demand",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(o,{prop:"server",label:t(a)("version"),align:"left","min-width":"140"},null,8,["label"])]),_:1},8,["data"])),[[m,l.server_version_load]])])]),s("div",H,[s("p",J,_(t(a)("authorityStatus")),1),s("div",K,[u((r(),v(c,{data:i.value.system_variables,size:"large"},{default:n(()=>[e(o,{prop:"name",label:t(a)("name"),align:"left","min-width":"200"},null,8,["label"]),e(o,{prop:"need",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(o,{label:t(a)("status"),align:"left","min-width":"140"},{default:n(({row:f})=>[f.status?(r(),d("span",M,[e(p,{color:"green"},{default:n(()=>[e(h)]),_:1})])):(r(),d("span",P,[e(p,{color:"red"},{default:n(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[m,l.system_variables_load]])])]),s("div",Q,[s("p",U,_(t(a)("process")),1),s("div",W,[u((r(),v(c,{data:i.value.process,size:"large"},{default:n(()=>[e(o,{prop:"name",label:t(a)("name"),align:"left","min-width":"200"},null,8,["label"]),e(o,{prop:"need",label:t(a)("demand"),align:"left","min-width":"140"},null,8,["label"]),e(o,{label:t(a)("status"),align:"left","min-width":"140"},{default:n(({row:f})=>[f.status?(r(),d("span",X,[e(p,{color:"green"},{default:n(()=>[e(h)]),_:1})])):(r(),d("span",Y,[e(p,{color:"red"},{default:n(()=>[e(g)]),_:1})]))]),_:1},8,["label"])]),_:1},8,["data"])),[[m,l.process_load]])])])]),_:1})])):E("",!0)}}});export{ue as default};