(window.webpackJsonp=window.webpackJsonp||[]).push([["awhn"],{awhn:function(e,t,n){"use strict";n.r(t);var a=n("t3Un");var o={name:"Online",data:function(){return{loading:!0,total:0,list:[],pageNum:1,pageSize:10}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(a.a)({method:"get",params:{_gp:"admin.monitor.online",_mt:"list"}}).then(function(t){e.list=t.data.data,e.total=t.data.data.length,e.loading=!1})},handleQuery:function(){this.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleForceLogout:function(e){var t=this;this.$confirm('是否确认强退名称为"'+e.username+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){return function(e){return Object(a.a)({method:"post",params:{_gp:"admin.monitor.online",_mt:"forceLogout",tokenId:e}})}(e.tokenId)}).then(function(){t.getList(),t.$notify.success({title:"成功",message:"强退成功"})}).catch(function(){})}}},l=n("KHd+"),i=Object(l.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list.slice((e.pageNum-1)*e.pageSize,e.pageNum*e.pageSize)}},[n("el-table-column",{attrs:{label:"序号",type:"index",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s((e.pageNum-1)*e.pageSize+t.$index+1))])]}}])}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"会话编号",align:"center",prop:"tokenId"}}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"登录名称",align:"center",prop:"username"}}),e._v(" "),n("el-table-column",{attrs:{label:"真实姓名",align:"center",prop:"realname",width:"100"}}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"登陆IP",align:"center",prop:"loginIp"}}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"浏览器",align:"center",prop:"browser"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作系统",align:"center",prop:"osName",width:"90"}}),e._v(" "),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"角色",align:"center",prop:"roles"}}),e._v(" "),n("el-table-column",{attrs:{label:"登录时间",align:"center",prop:"loginTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.parseTime(t.row.loginTime)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"过期时间",align:"center",prop:"expireTime",width:"85"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-tag",{attrs:{type:"danger"}},[e._v(e._s(t.row.expireTime)+"秒")])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin:monitor:online:forceLogout"],expression:"['admin:monitor:online:forceLogout']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(n){e.handleForceLogout(t.row)}}},[e._v("强退")])]}}])})],1),e._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.pageNum,limit:e.pageSize},on:{"update:page":function(t){e.pageNum=t},"update:limit":function(t){e.pageSize=t}}})],1)},[],!1,null,null,null);i.options.__file="index.vue";t.default=i.exports}}]);