import{U as s,a2 as i,ad as P,af as a,a4 as c,a3 as y,ae as f,a5 as b,F as k,V as _,k as n,G as g,d as V,ao as A,f as v}from"./vue-vendor-CxLCUzY4.js";import{P as C}from"./index-D55rh6hR.js";import{_ as I,bo as N,bn as $}from"./index-CLZzJyTP.js";import{a4 as B}from"./antd-vue-vendor-CahNzUUa.js";import"./useContentHeight-DLfJuPsF.js";import"./useWindowSizeFn-D9PllI8g.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.js";import"./injectionKey-DPVn4AgL.js";const D=V({name:"AccountDetail",components:{PageWrapper:C,ATabs:B,ATabPane:B.TabPane},setup(){var o;const e=A(),t=N(),p=v((o=e.params)==null?void 0:o.id),u=v("detail"),{setTitle:d}=$();d("详情：用户"+p.value);function m(){t("/system/account")}return{userId:p,currentKey:u,goBack:m}}}),W={class:"pt-4 m-4 desc-wrap"};function w(e,t,p,u,d,m){const o=s("a-button"),l=s("a-tab-pane"),T=s("a-tabs"),K=s("PageWrapper");return i(),P(K,{title:"用户"+e.userId+"的资料",content:"这是用户资料详情页面。本页面仅用于演示相同路由在tab中打开多个页面并且显示不同的数据",contentBackground:"",onBack:e.goBack},{extra:a(()=>[n(o,{type:"primary",danger:""},{default:a(()=>t[1]||(t[1]=[g(" 禁用账号 ")])),_:1}),n(o,{type:"primary"},{default:a(()=>t[2]||(t[2]=[g(" 修改密码 ")])),_:1})]),footer:a(()=>[n(T,{"default-active-key":"detail",activeKey:e.currentKey,"onUpdate:activeKey":t[0]||(t[0]=r=>e.currentKey=r)},{default:a(()=>[n(l,{key:"detail",tab:"用户资料"}),n(l,{key:"logs",tab:"操作日志"})]),_:1},8,["activeKey"])]),default:a(()=>[c("div",W,[e.currentKey=="detail"?(i(),y(k,{key:0},f(10,r=>c("div",{key:r},"这是用户"+b(e.userId)+"资料Tab",1)),64)):_("",!0),e.currentKey=="logs"?(i(),y(k,{key:1},f(10,r=>c("div",{key:r},"这是用户"+b(e.userId)+"操作日志Tab",1)),64)):_("",!0)])]),_:1},8,["title","onBack"])}const H=I(D,[["render",w]]);export{H as default};
