test_lgq/niucloud/public/admin/assets/user_info-b892c2cd.js

2 lines
4.0 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as N,O as B,f as z,r as w,y as L,h as d,c as P,a as s,u as e,t,N as n,e as a,w as l,i as c,I as m,an as R,ao as V,$,ah as j,aw as q,E as D,aj as A,a0 as O}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{z as S}from"./site-ac963391.js";const U={class:"main-container"},F={class:"detail-head"},G=s("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),H={class:"ml-[1px]"},J=s("span",{class:"adorn"},"|",-1),K={class:"right"},M={class:"panel-title !text-[16px] pl-[15px] mb-[20px]"},Q={class:"text-[14px] w-[130px] text-right mr-[20px]"},W={class:"text-[14px] text-[#666666]"},X={class:"text-[14px] w-[130px] text-right mr-[20px]"},Y={class:"text-[14px] text-[#666666]"},Z={class:"text-[14px] w-[130px] text-right mr-[20px]"},tt={class:"text-[14px] text-[#666666]"},et={class:"text-[14px] w-[130px] text-right mr-[20px]"},st={class:"text-[14px] text-[#666666]"},at={class:"text-[14px] w-[130px] text-right mr-[20px]"},lt={class:"text-[14px] text-[#666666]"},nt={class:"text-[14px] w-[130px] text-right mr-[20px]"},ot={class:"text-[14px] text-[#666666]"},it={class:"panel-title !text-[16px] pl-[15px]"},yt=N({__name:"user_info",setup(pt){const h=B(),f=z(),y=h.meta.title,k=parseInt(h.query.uid||0),g=w(!0),i=w({});S(k).then(({data:r})=>{i.value=r,g.value=!1}).catch();const E=r=>{f.push({path:"/admin/site/info",query:{id:r.site_id}})};return(r,b)=>{const p=R,u=V,v=$,_=j,x=q,C=D,I=A,T=O;return L((d(),P("div",U,[s("div",F,[s("div",{class:"left",onClick:b[0]||(b[0]=o=>e(f).push({path:"/admin/site/user"}))},[G,s("span",H,t(e(n)("returnToPreviousPage")),1)]),J,s("span",K,t(e(y)),1)]),a(v,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[s("h3",M,t(e(n)("userInfo")),1),a(u,{gutter:20,class:"pl-[15px] mb-[20px]"},{default:l(()=>[a(p,{span:6},{default:l(()=>[s("span",Q,t(e(n)("uid")),1),s("span",W,t(i.value.uid),1)]),_:1}),a(p,{span:6,offset:6},{default:l(()=>[s("span",X,t(e(n)("username")),1),s("span",Y,t(i.value.username),1)]),_:1})]),_:1}),a(u,{gutter:20,class:"pl-[15px] mb-[20px]"},{default:l(()=>[a(p,{span:6},{default:l(()=>[s("span",Z,t(e(n)("realname")),1),s("span",tt,t(i.value.real_name||"--"),1)]),_:1}),a(p,{span:6,offset:6},{default:l(()=>[s("span",et,t(e(n)("addTime")),1),s("span",st,t(i.value.create_time),1)]),_:1})]),_:1}),a(u,{gutter:20,class:"pl-[15px] mb-[20px]"},{default:l(()=>[a(p,{span:6},{default:l(()=>[s("span",at,t(e(n)("lastLoginTime")),1),s("span",lt,t(i.value.last_time||""),1)]),_:1}),a(p,{span:6,offset:6},{default:l(()=>[s("span",nt,t(e(n)("lastLoginIP")),1),s("span",ot,t(i.value.last_ip||""),1)]),_:1})]),_:1})]),_:1}),a(v,{class:"box-card !border-none",shadow:"never"},{default:l(()=>[s("h3",it,t(e(n)("siteInfo")),1),a(I,{data:i.value.roles,size:"large"},{default:l(()=>[a(_,{prop:"site_id",label:e(n)("siteId"),width:"100px"},null,8,["label"]),a(_,{prop:"site_name",label:e(n)("siteName")},null,8,["label"]),a(_,{prop:"is_admin",label:e(n)("isAdmin"),"min-width":"180",align:"center"},{default:l(({row:o})=>[c(t(o.is_admin?e(n)("yes"):e(n)("no")),1)]),_:1},8,["label"]),a(_,{label:e(n)("status"),"min-width":"80",align:"center"},{default:l(({row:o})=>[o.status==1?(d(),m(x,{key:0,class:"ml-2",type:"success"},{default:l(()=>[c(t(o.status_name),1)]),_:2},1024)):o.status==3?(d(),m(x,{key:1,class:"ml-2",type:"error"},{default:l(()=>[c(t(o.status_name),1)]),_:2},1024)):(d(),m(x,{key:2,class:"ml-2",type:"error"},{default:l(()=>[c(t(o.status_name),1)]),_:2},1024))]),_:1},8,["label"]),a(_,{prop:"expire_time",label:e(n)("expireTime")},null,8,["label"]),a(_,{label:e(n)("operation"),"min-width":"250",align:"right",fixed:"right"},{default:l(({row:o})=>[a(C,{type:"primary",link:"",onClick:_t=>E(o)},{default:l(()=>[c(t(e(n)("info")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])]),_:1})])),[[