index.f6f000e7.js 4.9 KB

1
  1. var v=Object.defineProperty;var k=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var b=(a,i,e)=>i in a?v(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e,l=(a,i)=>{for(var e in i||(i={}))U.call(i,e)&&b(a,e,i[e]);if(k)for(var e of k(i))h.call(i,e)&&b(a,e,i[e]);return a};var s=(a,i,e)=>new Promise((t,f)=>{var N=o=>{try{r(e.next(o))}catch(c){f(c)}},w=o=>{try{r(e.throw(o))}catch(c){f(c)}},r=o=>o.done?t(o.value):Promise.resolve(o.value).then(N,w);r((e=e.apply(a,i)).next())});import{P as d}from"./index.9f8146c1.js";import{s as C,a as z,b as P}from"./api.723b2e53.js";import{f as m}from"./filters.cb22ede1.js";import{d as g,a as p,B as y,i as n,cg as T,ag as L,k as S,a0 as F,al as I,e as D,d7 as x,d8 as u}from"./index.9256ea96.js";import{H as K}from"./HelpCircleOutline.140d966e.js";import{g as A,s as B}from"./use-async.b9f22c73.js";import"./searchs.b637f0d6.js";import"./constant.811f1023.js";const H=g({name:"login-log",setup(){const a=p({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(t){return m(t.clientType)}},{title:"\u767B\u5F55IP",key:"loginIp"},{title:"\u767B\u5F55\u65F6\u95F4",key:"loginTime"},{title:"\u767B\u5F55\u5730\u70B9",key:"loginRegion"}],e=()=>s(this,null,function*(){try{a.loading=!0;const{data:t}=yield C(l({},a.pagination));a.loading=!1,a.pagination.pageTotal=Number(t.total),a.dataList=t.rows||[]}catch(t){}});return y(()=>{e()}),()=>n(L,null,[n(T,{loading:a.loading,columns:i(),data:a.dataList},null),n(d,{page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":t=>a.pagination.pageTotal=t,onList:e,sync:!0,saveKey:"login-log"},null)])}}),R=g({name:"login-statistics",setup(){const a=p({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(t){return m(t.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(t){return n(I,null,{trigger:()=>n("span",{style:{display:"flex",alignItems:"center"}},[S("\u9501\u5B9A\u65F6\u95F4"),n(F,{size:18},{default:()=>[n(K,null,null)]})]),default:()=>"\u8D85\u8FC7\u9501\u5B9A\u65F6\u95F4\u81EA\u52A8\u89E3\u9501"})},key:"lockTime"}],e=()=>s(this,null,function*(){try{a.loading=!0;const{data:t}=yield z(l({},a.pagination));a.loading=!1,a.pagination.pageTotal=Number(t.total),a.dataList=t.rows||[]}catch(t){}});return y(()=>{e()}),()=>n(L,null,[n(T,{loading:a.loading,columns:i(),data:a.dataList},null),n(d,{page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":t=>a.pagination.pageTotal=t,onList:e,sync:!0,saveKey:"login-statistics"},null)])}}),V=g({name:"login-device",setup(){const a=p({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(t){return m(t.clientType)}},{title:"\u8BBE\u5907\u578B\u53F7",key:"userAgent",width:"400"},{title:"\u7ED1\u5B9A\u65F6\u95F4",key:"bindTime"},{title:"\u767B\u5F55\u65F6\u95F4",key:"updateTime"}],e=()=>s(this,null,function*(){try{a.loading=!0;const{data:t}=yield P(l({},a.pagination));a.loading=!1,a.pagination.pageTotal=Number(t.total),a.dataList=t.rows||[]}catch(t){}});return y(()=>{e()}),()=>n(L,null,[n(T,{loading:a.loading,columns:i(),data:a.dataList},null),n(d,{page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":t=>a.pagination.pageTotal=t,onList:e,sync:!0,saveKey:"login-device"},null)])}}),X=g({name:"city-manage",setup(){const a=p({tabName:"LoginLog"}),i=D();A(t=>{t.form.tabName&&(a.tabName=t.form.tabName)});const e=t=>{B(t,"tabName",i)};return()=>n("div",{class:"system-menu-container"},[n("div",{class:["section-container"],style:"padding-top: 0"},[n(x,{type:"line",size:"large",value:a.tabName,"onUpdate:value":[t=>a.tabName=t,t=>e(t)]},{default:()=>[n(u,{name:"LoginLog",tab:"\u767B\u5F55\u65E5\u5FD7"},{default:()=>[n(H,null,null)]}),n(u,{name:"LoginStatistics",tab:"\u767B\u5F55\u7EDF\u8BA1"},{default:()=>[n(R,null,null)]}),n(u,{name:"LoginDevice",tab:"\u767B\u5F55\u8BBE\u5907"},{default:()=>[n(V,null,null)]})]})])])}});export{X as default};