import{a}from"./comm.1703796278973.js";import{J as m,d as l,p as g,o as t,x as s,z as n,t as x,F as o,u as i,A as r,G as h,H as _}from"./vue.1703796278973.js";import{_ as f}from"./_plugin-vue_export-helper.1703796278973.js";const I=m("deviceInfo",{state:()=>({deviceInfo:{name:"",code:"",serverAddr:"",custodian:"",brand:"",phone:"",tag:[""],imgUrl:"",communicationStatus:0,runStatus:0}}),actions:{updateDeviceInfo(e){e==1921&&(this.deviceInfo={name:"精密空调",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/jmkt.png",communicationStatus:0,runStatus:1}),e==1911&&(this.deviceInfo={name:"恒湿一体机",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/hsytj.png",communicationStatus:0,runStatus:1}),e==1901&&(this.deviceInfo={name:"新风机",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/xfj.png",communicationStatus:0,runStatus:1}),e==1421&&(this.deviceInfo={name:"温湿度传感器",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/wdcgq.png",communicationStatus:0,runStatus:1}),e==1411&&(this.deviceInfo={name:"空气质量监测",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/kqzljc.png",communicationStatus:0,runStatus:1}),e==1401&&(this.deviceInfo={name:"漏水监测",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/lsjc.png",communicationStatus:0,runStatus:1}),e==1301&&(this.deviceInfo={name:"门禁一体机",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/mj.png",communicationStatus:0,runStatus:1}),e==1211&&(this.deviceInfo={name:"消防系统",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/xfxt.png",communicationStatus:0,runStatus:1}),e==1201&&(this.deviceInfo={name:"烟雾探测",code:"S2ER2",serverAddr:"6号楼1320xxxxxxxx",custodian:"张三",brand:"",phone:"028-xxx-xxx",tag:["标签","标签"],imgUrl:"/device-overview/ywbj.png",communicationStatus:0,runStatus:1})}}}),c=e=>(h("data-v-c03f31ce"),e=e(),_(),e),S={class:"device-image"},p={key:0,class:"header"},w=["src"],b={class:"normal"},k=["src"],y={class:"warning"},U=["src"],A=c(()=>n("span",{class:"normal"},"正常",-1)),j=["src"],E={class:"warning"},D={key:1,class:"header"},R=["src"],z=c(()=>n("span",{class:"normal"},"正常",-1)),B=["src"],N=c(()=>n("span",{class:"warning"},"告警",-1)),O=["src"],q=c(()=>n("span",{class:"normal"},"正常",-1)),F=["src"],M=c(()=>n("span",{class:"warning"},"告警",-1)),T={class:"main-image"},V=["src"],C=["src"],G={class:"name"},H=l({name:"DeviceImage"}),J=l({...H,props:{typeId:{type:[Number],default:1921},devIns:{type:Object,default:null}},setup(e){const u=e,v=I();v.updateDeviceInfo(u.typeId);const d=v.deviceInfo;return g(()=>{}),($,K)=>(t(),s("div",S,[e.devIns&&e.devIns.state?(t(),s("div",p,[n("div",null,[x(" 通讯状态: "),e.devIns.state.value=="online"?(t(),s(o,{key:0},[n("img",{src:i(a)("/device-overview/normal.png"),alt:""},null,8,w),n("span",b,r(e.devIns.state.text),1)],64)):(t(),s(o,{key:1},[n("img",{src:i(a)("/device-overview/warning.png"),alt:""},null,8,k),n("span",y,r(e.devIns.state.text),1)],64))]),n("div",null,[x(" 运行状态: "),e.devIns.state.value=="online"?(t(),s(o,{key:0},[n("img",{src:i(a)("/device-overview/normal.png"),alt:""},null,8,U),A],64)):(t(),s(o,{key:1},[n("img",{src:i(a)("/device-overview/warning.png"),alt:""},null,8,j),n("span",E,r(e.devIns.state.text),1)],64))])])):(t(),s("div",D,[n("div",null,[x(" 通讯状态: "),i(d).communicationStatus?(t(),s(o,{key:0},[n("img",{src:i(a)("/device-overview/normal.png"),alt:""},null,8,R),z],64)):(t(),s(o,{key:1},[n("img",{src:i(a)("/device-overview/warning.png"),alt:""},null,8,B),N],64))]),n("div",null,[x(" 运行状态: "),i(d).runStatus?(t(),s(o,{key:0},[n("img",{src:i(a)("/device-overview/normal.png"),alt:""},null,8,O),q],64)):(t(),s(o,{key:1},[n("img",{src:i(a)("/device-overview/warning.png"),alt:""},null,8,F),M],64))])])),n("div",T,[e.devIns&&e.devIns.photoUrl?(t(),s("img",{key:0,src:e.devIns.photoUrl,alt:""},null,8,V)):(t(),s("img",{key:1,src:i(a)(i(d).imgUrl),alt:""},null,8,C))]),n("div",G,r(e.devIns?e.devIns.name:i(d).name),1)]))}});const P=f(J,[["__scopeId","data-v-c03f31ce"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));export{P as D,X as a,I as u};