1import{g as v}from"./user-cwdmpEuP.js";import{g as k}from"./authentication-DJLiEriA.js";import{A as h}from"./const-BHerojsC.js";import{a as b,i as x,m as A}from"./util-DyruD4Ub.js";import{_ as I,d as D,c,o as m,f as i,w as e,h as T,B as z,j as C,u as N,e as s,t as o,b as _,a as M,D as S}from"./index-Cey6Kqla.js";import{C as E}from"./index-CUDGJoFB.js";import{_ as P,a as j}from"./index-D6YVxURQ.js";import{B}from"./index-DXhXwGTY.js";import{_ as J}from"./index-Di7Slcmc.js";import{l as Q}from"./request-B-CfM8d9.js";import"./index-1jhTj-Wr.js";import"./styleChecker-TFxV7Lzl.js";import"./index-BD_VXrgx.js";import"./collapseMotion-BDFC6_EI.js";import"./slide-DU9rTSdi.js";import"./useRefs-DMn_mYI9.js";import"./hasIn-Dy739roH.js";import"./isMobile-BbN7I0i_.js";import"./useMergedState-D6YhpD4l.js";import"./initDefaultProps-_hAYIFu4.js";import"./isPlainObject-DX6Z2pnk.js";import"./eagerComputed-COkxdAVs.js";import"./responsiveObserve-tVSNTAJd.js";import"./index-OV19Z7Qy.js";import"./FormItemContext-Ceq8n06-.js";import"./index-o4p_ZbnI.js";import"./index-D3nRu5y2.js";import"./move-CrJiCTIk.js";import"./index-D7i0hQWq.js";import"./debounce-BKjmx831.js";import"./scrollTo-CVs3A1V9.js";const $=D({name:"LoginLog",setup(){const d=N(),l=T({listLoading:!1,loginLogList:[],authAllList:[],pagination:{current:1,pageSize:10,total:0,size:x()?"small":"",showQuickJumper:!0,showSizeChanger:!x(),showTotal:n=>`å
±${n}æ¡`,onChange:(n,a)=>{y(n,a)},locale:{items_per_page:"æ¡",jump_to:"è·³è³",page:"页",prev_page:"ä¸ä¸é¡µ",next_page:"ä¸ä¸é¡µ"}}}),f=async()=>{l.listLoading=!0;const{current:n,pageSize:a}=l.pagination,g=(n-1)*a,r=a,{code:u,data:p}=await v({limit:r,offset:g});u===0&&(l.loginLogList=p!=null&&p.list?p.list:[],l.pagination.total=p==null?void 0:p.total),l.listLoading=!1},y=(n,a)=>{l.pagination.current=n,l.pagination.pageSize=a,f()};return z(async()=>{await(async()=>{const{code:n,data:a}=await k();n===0&&(l.authAllList=a.list?a.list:[])})(),await f()}),{...C(l),getAuthMethod:n=>{if(l.authAllList&&l.authAllList.length>0){for(let a=0;a<l.authAllList.length;a++)if(n===l.authAllList[a].externalId)return l.authAllList[a].name}},getAuthTypeName:n=>{for(let a=0;a<h.length;a++)if(n===h[a].value)return h[a].label},isMobile:x,toPersonal:()=>{d.push({path:"/site-nav/personal"})},mobileDesensitization:A}},methods:{getCountry:b}}),q={class:"over-flow-content"},F={class:"over-flow-content"},G={class:"over-flow-content"},H={key:0},K={key:1},O={key:2},R={class:"over-flow-content"},U={class:"over-flow-content"},It=I($,[["render",function(d,l,f,y,n,a){const g=B,r=j,u=J,p=Q,w=P,L=E;return m(),c("div",null,[i(L,{title:"ç»å½æ¥å¿",class:"login-log"},{extra:e(()=>[d.isMobile()?(m(),M(g,{key:0,type:"link",onClick:d.toPersonal},{default:e(()=>l[0]||(l[0]=[S("è¿å")])),_:1},8,["onClick"])):_("",!0)]),default:e(()=>[i(w,{loading:d.listLoading,"data-source":d.loginLogList,stripe:"",scroll:{x:1500},pagination:d.pagination},{emptyText:e(()=>[i(p,{class:"vab-data-empty",description:"ææ æ°æ®"})]),default:e(()=>[i(r,{key:"loginTime",fixed:"left",title:"è®¤è¯æ¶é´","data-index":"loginTime",width:"180px"}),i(r,{key:"username",title:"ç¨æ·å","data-index":"username",width:"120px"},{default:e(({record:t})=>[i(u,{placement:"topLeft"},{title:e(()=>[s("span",null,o(t.username),1)]),default:e(()=>[s("div",q,o(t.username),1)]),_:2},1024)]),_:1}),i(r,{key:"mobile",title:"ææºå·","data-index":"mobile",width:"130px"},{default:e(({record:t})=>[i(u,{placement:"topLeft"},{title:e(()=>[s("span",null,o(d.mobileDesensitization(t.mobile)),1)]),default:e(()=>[s("div",F,o(d.mobileDesensitization(t.mobile)),1)]),_:2},1024)]),_:1}),i(r,{key:"deviceId",title:"设å¤ID","data-index":"deviceId",width:"180px"},{default:e(({record:t})=>[i(u,{placement:"topLeft"},{title:e(()=>[s("span",null,o(t.deviceId),1)]),default:e(()=>[s("div",G,o(t.deviceId),1)]),_:2},1024)]),_:1}),i(r,{key:"result",title:"ç»å½ç»æ","data-index":"result",width:"120px"},{default:e(({record:t})=>[t.result===0?(m(),c("span",H,o("ç»å½å¤±è´¥"))):t.result===1?(m(),c("span",K,o("æªäºæ¬¡è®¤è¯"))):t.result===2?(m(),c("span",O,o("ç»å½æå"))):_("",!0)]),_:1}
1),i(r,{key:"resultDetail",title:"ç»å½è¯¦æ
","data-index":"resultDetail",width:"150px"},{default:e(({record:t})=>[i(u,{placement:"topLeft"},{title:e(()=>[s("span",null,o(t.resultDetail),1)]),default:e(()=>[s("div",R,o(t.resultDetail),1)]),_:2},1024)]),_:1}),i(r,{key:"ip",title:"IP","data-index":"ip",width:"150px"}),i(r,{key:"countryName",title:"ç»å½å°å","data-index":"countryName",width:"200px"},{default:e(({record:t})=>[s("span",null,o(d.getCountry(t.countryName,t.regionName,t.cityName)),1)]),_:1}),i(r,{key:"authenticateExternalId",title:"è®¤è¯æ¹å¼","data-index":"authenticateExternalId",width:"150px"},{default:e(({record:t})=>[s("span",null,o(d.getAuthMethod(t.authenticateExternalId)),1)]),_:1}),i(r,{key:"authType",title:"认è¯ç±»å","data-index":"authType",width:"150px"},{default:e(({record:t})=>[s("span",null,o(d.getAuthTypeName(t.authType)),1)]),_:1}),i(r,{key:"extra",title:"夿³¨","data-index":"extra",width:"150px"},{default:e(({record:t})=>[i(u,{placement:"topLeft"},{title:e(()=>[s("span",null,o(t.extra),1)]),default:e(()=>[s("div",U,o(t.extra),1)]),_:2},1024)]),_:1})]),_:1},8,["loading","data-source","pagination"])]),_:1})])}],["__scopeId","data-v-b23f5551"]]);export{It as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.