import{L as A}from"./index.17037962789732.js";import"./index.170379627897333.js";import{u as C}from"./instance.17037962789732.js";import{h as N}from"./moment.1703796278973.js";import{d as b,p as F,o as c,x as l,z as s,u as t,t as r,b as L,A as n,F as j,h as z,B as E,G,H as U}from"./vue.1703796278973.js";import{_ as q}from"./_plugin-vue_export-helper.1703796278973.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";import"./instance.1703796278973.js";import"./comm.1703796278973.js";import"./system.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const e=a=>(G("data-v-628466a7"),a=a(),U(),a),J={class:"device-info-container"},K={class:"content-container"},O=["src"],P={class:"device-info"},Q={class:"status-row"},R=e(()=>s("span",null,[r(" 运行状态: "),s("span",{class:"normal"},"正常")],-1)),W={key:0,class:"tag-box"},X={class:"content-desc"},Z={class:"info-row"},$=e(()=>s("span",null,"设备ID：",-1)),ss={class:"info-row"},ts=e(()=>s("span",null,"产品名称：",-1)),os={class:"info-row"},ns=e(()=>s("span",null,"设备类型：",-1)),es={class:"info-row"},as=e(()=>s("span",null,"设备位置：",-1)),is={class:"info-row"},cs=e(()=>s("span",null,"设备型号：",-1)),ls={class:"info-row"},rs=e(()=>s("span",null,"品牌：",-1)),_s={class:"info-row"},ds=e(()=>s("span",null,"出厂日期：",-1)),ps={class:"info-row"},us=e(()=>s("span",null,"负责人：",-1)),ms={class:"info-row"},hs=e(()=>s("span",null,"联系电话：",-1)),fs={class:"info-row"},vs=e(()=>s("span",null,"创建时间：",-1)),ws={class:"info-row"},gs=e(()=>s("span",null,"最后上线时间：",-1)),Ds=b({name:"DeviceInfo"}),xs=b({...Ds,setup(a){const o=C(),i=new Map;return i.set("online","success"),i.set("offline","error"),i.set("notActive","warning"),F(()=>{}),(Is,Ys)=>{var _,d,p,u,m,h,f,v,w,g,D,x,I,Y,M,y,S,T,k,B;const V=A;return c(),l("div",J,[s("div",K,[s("img",{src:(_=t(o).current)==null?void 0:_.photoUrl,alt:""},null,8,O),s("div",P,[s("div",Q,[s("span",null,[r(" 设备状态: "),L(V,{status:t(i).get((p=(d=t(o).current)==null?void 0:d.state)==null?void 0:p.value)},null,8,["status"]),r(" "+n((m=(u=t(o).current)==null?void 0:u.state)==null?void 0:m.text),1)]),R]),s("h2",null,n((h=t(o).current)==null?void 0:h.name),1),t(o).detail.tags&&t(o).detail.tags.length>0?(c(),l("div",W,[(c(!0),l(j,null,z(t(o).detail.tags,H=>(c(),l("span",{key:H.id},n(H.value),1))),128))])):E("",!0)])]),s("div",X,[s("div",Z,[$,s("span",null,n((f=t(o).current)==null?void 0:f.id),1)]),s("div",ss,[ts,s("span",null,n((v=t(o).current)==null?void 0:v.productName),1)]),s("div",os,[ns,s("span",null,n((g=(w=t(o).current)==null?void 0:w.deviceType)==null?void 0:g.text),1)]),s("div",es,[as,s("span",null,n((D=t(o).detail)==null?void 0:D.location),1)]),s("div",is,[cs,s("span",null,n((x=t(o).detail)==null?void 0:x.model),1)]),s("div",ls,[rs,s("span",null,n((I=t(o).detail)==null?void 0:I.brand),1)]),s("div",_s,[ds,s("span",null,n((Y=t(o).detail)==null?void 0:Y.manufactureDate),1)]),s("div",ps,[us,s("span",null,n((M=t(o).detail)==null?void 0:M.custodian),1)]),s("div",ms,[hs,s("span",null,n((y=t(o).detail)==null?void 0:y.phone),1)]),s("div",fs,[vs,s("span",null,n((S=t(o).current)!=null&&S.createTime?t(N)((T=t(o).current)==null?void 0:T.createTime).format("YYYY-MM-DD HH:mm:ss"):""),1)]),s("div",ws,[gs,s("span",null,n((k=t(o).current)!=null&&k.onlineTime?t(N)((B=t(o).current)==null?void 0:B.onlineTime).format("YYYY-MM-DD HH:mm:ss"):""),1)])])])}}});const Os=q(xs,[["__scopeId","data-v-628466a7"]]);export{Os as default};
