import{Q as e,R as o,p as a,y as l,f as t}from"./element-plus-DSMJnpwa.js";import{p as s}from"./index-mv7arXuk.js";/* empty css                    *//* empty css                        *//* empty css               */import{_ as r}from"./index-ppR_FSA-.js";import{d as i}from"./index-B23hltyD.js";import{B as n,g as p,a4 as c,H as d,L as m,M as u,u as f,O as g,P as v,Z as w,c as h}from"./vue-vendor-DZekML78.js";const b=n({name:"Online"}),y=n({...b,props:{devices:s.any.isRequired},setup(s){const{proxy:n}=p(),{sys_device_type:b}=c(n?.useDict("sys_device_type")),y=s,_=h(()=>y.devices);return(s,p)=>{const c=r,h=o,y=l,j=a,x=e;return d(),m("div",null,[u(x,{data:f(_),border:"",style:{width:"100%",height:"100%","font-size":"14px"}},{default:g(()=>[u(h,{label:"设备类型",align:"center"},{default:g(e=>[u(c,{options:f(b),value:e.row.deviceType},null,8,["options","value"])]),_:1}),u(h,{label:"主机",align:"center",prop:"ipaddr","show-overflow-tooltip":!0}),u(h,{label:"登录地点",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}),u(h,{label:"操作系统",align:"center",prop:"os","show-overflow-tooltip":!0}),u(h,{label:"浏览器",align:"center",prop:"browser","show-overflow-tooltip":!0}),u(h,{label:"登录时间",align:"center",prop:"loginTime",width:"180"},{default:g(e=>[v("span",null,w(f(n).parseTime(e.row.loginTime)),1)]),_:1}),u(h,{label:"操作",align:"center","class-name":"small-padding fixed-width"},{default:g(e=>[u(j,{content:"删除",placement:"top"},{default:g(()=>[u(y,{link:"",type:"primary",icon:"Delete",onClick:o=>{return a=e.row,void t.confirm("删除设备后，在该设备登录需要重新进行验证").then(()=>i(a.tokenId)).then(e=>{200===e.code?(n?.$modal.msgSuccess("删除成功"),n?.$tab.refreshPage()):n?.$modal.msgError(e.msg)}).catch(()=>{});var a}},null,8,["onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"])])}}});export{y as _};
