import{i as v}from"./dashboard.62cdb0f4.js";import{_ as m,a5 as u,r as h,Z as p,o as A,c as f,v as e,x as t,n as c,O as g,a0 as b,a1 as w}from"./index.8d733f79.js";const O=""+new URL("dashboard-device-care.3f25aea5.png",import.meta.url).href,d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABMUlEQVR4AWzOvUvDQBgG8MubpEJbAxYRv3AQxUH8QMEiVFwy6OQs6iI4OQmKON2duHRQRwfBTf0D3EpAF2kLQhURETqJ7SQl1jZgcs2Zu0Kw0oO7F37Pw/HC9FFhDf077Qy4U0mZ6Xv8t6v8VFJLp9kWg1inYZXLJbJ+lg+DeNSwPms23rx+CQ0iEMkDaOjx7Z3sXhZkoAamBFasOpjelqTB3f7Uh6bryGMNlHkokuObZyxN1RTmc5S1PXz+WscgdlOQIoa8vi9H8+G8GQQtWE4/Dbqei3RNRebMMNlbmaDCGPOQpgKfS+h0ayxG4ct3k9xnaHJ0iJxszFLxVU0YZ3zEiNLDxQFpUP+umv29feRqOylBFh3bTMS76MXqeGjAO7pz1sFCCKLY0HpymZ35FvsFAAD//12wn/IAAAAGSURBVAMA4v500yHHg5sAAAAASUVORK5CYII=";const a=i=>(b("data-v-dbf32576"),i=i(),w(),i),C={class:"device-care"},N={class:"care-top"},Q=a(()=>e("img",{class:"care-img",src:O},null,-1)),S={class:"care-overview"},y={class:"overview-item"},D={class:"overview-item-label"},F={class:"overview-item-value"},R={class:"overview-item"},E={class:"overview-item-label"},U={class:"overview-item-value"},M={class:"overview-item"},x={class:"overview-item-label"},B={class:"overview-item-value"},H={class:"care-record"},I={class:"record-item"},Z={class:"record-item-label"},k=a(()=>e("img",{class:"icon-care-record",src:d,alt:""},null,-1)),G={class:"record-item-content"},V={class:"record-value"},J=a(()=>e("span",{class:"record-unit"},"\u6B21",-1)),K={class:"record-item"},L={class:"record-item-label"},z=a(()=>e("img",{class:"icon-care-record",src:d,alt:""},null,-1)),T={class:"record-item-content"},Y={class:"record-value"},$=a(()=>e("span",{class:"record-unit"},"\u6B21",-1)),j={class:"record-item"},q={class:"record-item-label"},P=a(()=>e("img",{class:"icon-care-record",src:d,alt:""},null,-1)),X={class:"record-item-content"},W={class:"record-value"},ee=a(()=>e("span",{class:"record-unit"},"\u6B21",-1)),se=u({name:"MonitorScope"}),te=Object.assign(se,{setup(i,{expose:r}){const o=h({}),n=p(()=>{const s={};return o.value&&o.value.status&&(o.value.status.indexOf("\u7F3A\u9677")!==-1?s.color="#EE5454":o.value.status.indexOf("\u62A5\u8B66")!==-1?s.color="#F4E002":s.color="#46D102"),s});function _(s){v({deviceId:s}).then(l=>{o.value=l.data||{}}).catch(()=>{})}return r({getData:_}),(s,l)=>(A(),f("div",C,[e("div",N,[Q,e("div",S,[e("div",y,[e("div",D,t(s.$t("deviceCareTime"))+"\uFF1A",1),e("div",F,t(c(o).timeStr||"-"),1)]),e("div",R,[e("div",E,t(s.$t("deviceStatus"))+"\uFF1A",1),e("div",U,[e("span",{style:g(c(n))},t(c(o).status||"-"),5)])]),e("div",M,[e("div",x,t(s.$t("diagnosticReportsNum"))+"\uFF1A",1),e("div",B,t(c(o).reportNum||0),1)])])]),e("div",H,[e("div",I,[e("div",Z,[k,e("div",null,t(s.$t("noCloseAlarmNum")),1)]),e("div",G,[e("span",V,t(c(o).notCloseAlarmNum||0),1),J])]),e("div",K,[e("div",L,[z,e("div",null,t(s.$t("alarmCount")),1)]),e("div",T,[e("span",Y,t(c(o).alarmNum||0),1),$])]),e("div",j,[e("div",q,[P,e("div",null,t(s.$t("defectCount")),1)]),e("div",X,[e("span",W,t(c(o).defectNum||0),1),ee])])])]))}}),ae=m(te,[["__scopeId","data-v-dbf32576"]]);export{ae as default};
