import{r as n,o as m,y as h,q as r,v as b,p as l,n as p,s as _,cp as v,cq as f,bv as g}from"./index.8d733f79.js";import{g as T}from"./deviceHealth.f8ad4f4a.js";const V={style:{"margin-bottom":"20px"}},B={__name:"detail",setup($,{expose:u}){const a=n(!1),s=n([]);return u({showTarget:e=>{a.value=!0,T({deviceId:e.deviceId}).then(t=>{s.value=t.data})}}),(e,t)=>{const o=v,d=f,i=g;return m(),h(i,{title:e.$t("healthDetail"),modelValue:p(a),"onUpdate:modelValue":t[0]||(t[0]=c=>_(a)?a.value=c:null),"append-to-body":!0},{default:r(()=>[b("div",V,[l(d,{data:p(s)},{default:r(()=>[l(o,{label:e.$t("healthGroup"),prop:"deviceHealthGroupName"},null,8,["label"]),l(o,{label:e.$t("healthLevel"),prop:"healthLevelName"},null,8,["label"]),l(o,{label:e.$t("healthScore"),prop:"healthScore"},null,8,["label"]),l(o,{label:e.$t("updateTime"),prop:"updateTime"},null,8,["label"])]),_:1},8,["data"])])]),_:1},8,["title","modelValue"])}}};export{B as default};
