import{a as u}from"./comm.1703796278973.js";import{P as v}from"./consts.1703796278973.js";import{d as p,k as x,p as f,o as a,x as n,z as s,F as h,h as k,D as l,u as i,t as y,A as c,B as C,G as S,H as U}from"./vue.1703796278973.js";import{_ as O}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 P=e=>(S("data-v-2f5c8256"),e=e(),U(),e),V={class:"device-status"},D=P(()=>s("div",{class:"header"},[s("div",{class:"header-title"},"设备运行状态")],-1)),I={class:"item-container"},R=["onClick"],w=["src"],M=["src"],N={class:"desc"},B={class:"desc"},F=p({name:"DeviceRuningStatus"}),T=p({...F,props:{propertyValue:{type:Object,default:()=>{}}},emits:["propertyClick"],setup(e,{emit:d}){const _=x([]),g=o=>{d("propertyClick",o)};return f(()=>{_.value=[{imageUrl:"SF6@2x.png",value:"45.22",unit:"六氟化硫",desc:"PPM",status:0},{imageUrl:"O2@2x.png",value:"45.3%",unit:"VOC",desc:"氧气",status:0},{imageUrl:"PM10@2x.png",value:"55.0",unit:"微克",desc:"",status:0},{imageUrl:"PM2.5@2x.png",value:"46.0",unit:"ug/m³",desc:"PM2.5",status:0},{imageUrl:"tvoc@2x.png",value:"1646.0",unit:"",desc:"TVOC",status:0},{imageUrl:"NO2@2x.png",value:"1127.0",unit:"",desc:"二氧化氮",status:0},{imageUrl:"WD@2x.png",value:"24.8",unit:"℃",desc:"温度",status:1},{imageUrl:"SD@2x.png",value:"24.7",unit:"%RH",desc:"湿度",status:1},{imageUrl:"JQ@2x.png",value:"139.0",unit:"",desc:"甲醛",status:0},{imageUrl:"O3@2x.png",value:"51",unit:"",desc:"臭氧",status:0}]}),(o,b)=>(a(),n("div",V,[D,s("div",I,[(a(!0),n(h,null,k(e.propertyValue,(t,m)=>{var r;return a(),n("div",{key:m,class:l(["item",{"warning-bg":t.status}]),onClick:j=>g(t)},[s("img",{src:i(u)(i(v)[t.id]),alt:""},null,8,w),s("div",null,[s("div",{class:l(["title",{warning:t.status}])},[y(c((r=t==null?void 0:t.value)==null?void 0:r.formatValue)+" "+c(t.unit)+" ",1),t.status?(a(),n("img",{key:0,src:i(u)("/device-overview/kqjc/warning@2x.png"),alt:""},null,8,M)):C("",!0)],2),s("span",N,c(t.name),1),s("span",B,c(t.timeString),1)])],10,R)}),128))])]))}});const $=O(T,[["__scopeId","data-v-2f5c8256"]]);export{$ as default};
