import{_ as e,u as s,b as a,aP as t}from"./common-store-kFD1YPwN.js";import{u as o}from"./useScreenshot-nTmXL8uf.js";import"./common-utils-RDWuRZ1M.js";import{U as i,a4 as r,G as n,r as l,b as u,h as m,q as d,u as v,t as c,F as p,e as f,Y as g,s as j,o as I}from"./vendor-jA_NIjzi.js";import{O as b}from"./OrderPageBackButton-WnpItu6_.js";import"./vendor-mqtt-lYGapirz.js";import"./vendor-html2canvas-6F43d9AR.js";import"./vendor-crypto-Vtl7-GZS.js";import"./SvgIcon-a1Rg7hQY.js";const h={class:"equipment-information"},y={class:"left"},_={class:"title"},S={id:"capture",class:"systemSetting-userInfo"},Y={class:"systemSetting-userInfo-item-left"},k={class:"value"},G=e({__name:"index",setup(e){const{t:G}=i(),L=r(),q=s(),w=a(),x=n((()=>q.userinfo)),P=l([]),B=n((()=>{var e,s,a,t;return[{id:0,name:"会员账号",value:null==(s=null==(e=P.value)?void 0:e[0])?void 0:s.userName},{id:1,name:"设备型号",value:null==(t=null==(a=P.value)?void 0:a[0])?void 0:t.osVersion},{id:2,name:"登陆端口",value:document.title},{id:3,name:"登录IP",value:x.value.ip},{id:4,name:"当前时间",value:g().format("YYYY年MM月DD日 HH:mm:ss")}]}));return(async()=>{try{w.showGlobalLoading();const e=await t({pageNo:1,pageSize:1,userId:q.userinfo.userId,status:1});if(!e.success)return e.message&&j(e.message);P.value=e.data.records,w.clearGlobalLoading()}catch(e){if(e.message)return w.clearGlobalLoading(),j(e.message)}})(),(e,s)=>(I(),u("div",h,[m("header",null,[m("div",y,[d(b,{onLeft:s[0]||(s[0]=e=>v(L).back())})]),m("div",_,c(v(G)("设备信息")),1),m("div",{class:"right",onClick:s[1]||(s[1]=e=>v(o)("#capture",!0))},c(v(G)("一键截图")),1)]),m("div",S,[(I(!0),u(p,null,f(B.value,(e=>(I(),u("div",{class:"systemSetting-userInfo-item",key:e.id},[m("div",Y,c(e.name),1),m("div",k,c(e.value),1)])))),128))])]))}},[["__scopeId","data-v-de4e39be"],["__file","index.vue"]]);export{G as default};
