import{a as l}from"./comm.1703796278973.js";import{d as p,k as i,p as m,o as d,x as _,z as t,A as n,u as e,B as u,t as f}from"./vue.1703796278973.js";import{_ as g}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";const h={class:"device-status"},y={class:"header"},x={class:"header-title"},k={class:"item-container"},I=["src"],w={class:"status"},D={key:0,class:"desc-tips"},B={key:1,class:"desc-tips warning"},N=["src"],S=p({name:"DeviceRuningStatus"}),V=p({...S,props:{typeId:{type:[Number],default:1401}},setup(v){const r=v,o=i(""),s=i(0),c=i(""),a=i("");return m(()=>{r.typeId==1201&&(o.value="运行状态",s.value=0,c.value="正常",a.value="烟雾报警"),r.typeId==1211&&(o.value="运行状态",s.value=0,c.value="正常",a.value="消防报警"),r.typeId==1401&&(o.value="漏水状态",s.value=1,c.value="漏水",a.value="漏水状态")}),(z,C)=>(d(),_("div",h,[t("div",y,[t("div",x,n(e(o)),1)]),t("div",k,[t("img",{src:e(l)("/device-overview/lszt@2x.png"),alt:""},null,8,I),t("span",w,n(e(c)),1),e(s)==0?(d(),_("div",D,n(e(a)),1)):u("",!0),e(s)==1?(d(),_("div",B,[t("img",{src:e(l)("/device-overview/kqjc/warning@2x.png"),alt:""},null,8,N),f(" "+n(e(a)),1)])):u("",!0)])]))}});const H=g(V,[["__scopeId","data-v-8c51d268"]]);export{H as default};
