1 |
- var C=Object.defineProperty;var h=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var v=(e,i,t)=>i in e?C(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,l=(e,i)=>{for(var t in i||(i={}))_.call(i,t)&&v(e,t,i[t]);if(h)for(var t of h(i))x.call(i,t)&&v(e,t,i[t]);return e};var g=(e,i,t)=>new Promise((a,b)=>{var N=o=>{try{p(t.next(o))}catch(c){b(c)}},U=o=>{try{p(t.throw(o))}catch(c){b(c)}},p=o=>o.done?a(o.value):Promise.resolve(o.value).then(N,U);p((t=t.apply(e,i)).next())});import{P as y}from"./index.70371ae0.js";import{s as z,a as S,b as D}from"./api.1acf39e1.js";import{f as T}from"./filters.de6e9e5f.js";import{d as s,a as r,B as k,i as n,cg as f,aj as L,o as P,f as B,g as w,k as F,a0 as I,ao as A,e as H,d7 as K,H as u,d8 as d,bC as m}from"./index.789dd106.js";import{g as M,s as V}from"./use-async.64e4c0e6.js";import"./searchs.b637f0d6.js";import"./constant.ded25e36.js";const O=s({name:"login-log",setup(){const e=r({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{name:""},dataList:[],visiableCity:!1}),i=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u767B\u5F55\u7528\u6237",key:"nickname"},{title:"\u5BA2\u6237\u7AEF",key:"clientType",render(a){return T(a.clientType)}},{title:"\u767B\u5F55IP",key:"loginIp"},{title:"\u767B\u5F55\u65F6\u95F4",key:"loginTime"},{title:"\u767B\u5F55\u5730\u70B9",key:"loginRegion"}],t=()=>g(this,null,function*(){try{e.loading=!0;const{data:a}=yield z(l({},e.pagination));e.loading=!1,e.pagination.pageTotal=Number(a.total),e.dataList=a.rows||[]}catch(a){}});return k(()=>{t()}),()=>n(L,null,[n(f,{loading:e.loading,columns:i(),data:e.dataList},null),n(y,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:t,sync:!0,saveKey:"login-log"},null)])}}),R={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},j=w("path",{d:"M256 80a176 176 0 1 0 176 176A176 176 0 0 0 256 80z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),E=w("path",{d:"M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45c10 4.76 29.47 16.38 29.47 41.09c0 26-17 37.81-36.37 50.8S251 281.43 251 296",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"28"},null,-1),q=w("circle",{cx:"250",cy:"348",r:"20",fill:"currentColor"},null,-1),G=[j,E,q],J=s({name:"HelpCircleOutline",render:function(i,t){return P(),B("svg",R,G)}}),Q=s({name:"login-statistics",setup(){const e=r({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{name:""},dataList:[],visiableCity:!1}),i=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u767B\u5F55\u7528\u6237",key:"nickname"},{title:"\u5BA2\u6237\u7AEF",key:"clientType",render(a){return T(a.clientType)}},{title:"\u767B\u5F55\u603B\u6B21\u6570",key:"loginCount"},{title:"\u6700\u540E\u767B\u5F55IP",key:"lastLoginIp"},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",key:"lastLoginTime"},{title:"\u9501\u5B9A\u65E5\u671F",key:"lockDate"},{title(a){return n(A,null,{trigger:()=>n("span",{style:{display:"flex",alignItems:"center"}},[F("\u9501\u5B9A\u65F6\u95F4"),n(I,{size:18},{default:()=>[n(J,null,null)]})]),default:()=>"\u8D85\u8FC7\u9501\u5B9A\u65F6\u95F4\u81EA\u52A8\u89E3\u9501"})},key:"lockTime"}],t=()=>g(this,null,function*(){try{e.loading=!0;const{data:a}=yield S(l({},e.pagination));e.loading=!1,e.pagination.pageTotal=Number(a.total),e.dataList=a.rows||[]}catch(a){}});return k(()=>{t()}),()=>n(L,null,[n(f,{loading:e.loading,columns:i(),data:e.dataList},null),n(y,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:t,sync:!0,saveKey:"login-statistics"},null)])}}),W=s({name:"login-device",setup(){const e=r({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{name:""},dataList:[],visiableCity:!1}),i=()=>[{title:"\u7F16\u53F7",key:"id"},{title:"\u7528\u6237\u540D\u79F0",key:"nickname"},{title:"\u5BA2\u6237\u7AEF",key:"clientType",render(a){return T(a.clientType)}},{title:"\u8BBE\u5907\u578B\u53F7",key:"userAgent",width:"400"},{title:"\u7ED1\u5B9A\u65F6\u95F4",key:"bindTime"},{title:"\u767B\u5F55\u65F6\u95F4",key:"updateTime"}],t=()=>g(this,null,function*(){try{e.loading=!0;const{data:a}=yield D(l({},e.pagination));e.loading=!1,e.pagination.pageTotal=Number(a.total),e.dataList=a.rows||[]}catch(a){}});return k(()=>{t()}),()=>n(L,null,[n(f,{loading:e.loading,columns:i(),data:e.dataList},null),n(y,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:t,sync:!0,saveKey:"login-device"},null)])}}),ie=s({name:"city-manage",setup(){const e=r({tabName:"LoginLog"}),i=H();M(a=>{a.form.tabName&&(e.tabName=a.form.tabName)});const t=a=>{V(a,"tabName",i)};return()=>n("div",{class:"system-menu-container"},[n("div",{class:["section-container"],style:"padding-top: 0"},[n(K,{type:"line",size:"large",value:e.tabName,"onUpdate:value":[a=>e.tabName=a,a=>t(a)]},{default:()=>[u(n(d,{name:"LoginLog",tab:"\u767B\u5F55\u65E5\u5FD7"},{default:()=>[n(O,null,null)]}),[[m("auth"),"sysUserLoginLog/page1750839899174469633"]]),u(n(d,{name:"LoginStatistics",tab:"\u767B\u5F55\u7EDF\u8BA1"},{default:()=>[n(Q,null,null)]}),[[m("auth"),"sysUserLogin/page1597884090153291778"]]),u(n(d,{name:"LoginDevice",tab:"\u767B\u5F55\u8BBE\u5907"},{default:()=>[n(W,null,null)]}),[[m("auth"),"sysUserDevice/page1597884219157499905"]])]})])])}});export{ie as default};
|