import{E as v}from"./index-BjEW7-SA.js";import{a as w,E as b}from"./el-table-D8K5zLyz.js";import{v as g}from"./directive-DsZckUTJ.js";import{d as h,G as y,K as E,c as x,q as a,s as t,w as r,y as p,da as V,o as B,x as m,aa as C}from"./index-BKKvzUDD.js";import"./el-scrollbar-ClJnvz-9.js";import"./el-popper-D6_hxRbQ.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-checkbox-qGZ2-RM2.js";/* empty css               */import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_baseClone-B5RBzbh5.js";import"./index-GAnQrJsQ.js";import"./_baseIteratee-BAilevJ_.js";import"./castArray-5uErZEc3.js";import"./debounce-ByXPNh5F.js";import"./toNumber-Dkj3QRv9.js";import"./index-CWUnzf90.js";import"./raf-C-x62Pcl.js";import"./omit-BTSq4AYh.js";const k={class:"user-settings"},N={class:"page-header"},S=h({__name:"UserSettingsView",setup(T){const s=p(!1),i=p([]);async function d(){s.value=!0;try{i.value=await V()}finally{s.value=!1}}return y(d),(u,e)=>{const _=v,o=b,c=w,f=g;return E((B(),x("section",k,[a("header",N,[e[2]||(e[2]=a("div",null,[a("h1",null,"用户设置"),a("p",null,"管理平台账号、角色状态和页面权限。")],-1)),t(_,{type:"primary",onClick:e[0]||(e[0]=l=>u.$router.push("/user-settings/create"))},{default:r(()=>[...e[1]||(e[1]=[m("创建用户",-1)])]),_:1})]),t(c,{data:i.value},{default:r(()=>[t(o,{prop:"username",label:"账号","min-width":"140"}),t(o,{prop:"display_name",label:"显示名称","min-width":"160"}),t(o,{prop:"role",label:"角色",width:"120"}),t(o,{prop:"status",label:"状态",width:"120"}),t(o,{label:"权限数",width:"120"},{default:r(({row:l})=>{var n;return[m(C(((n=l.permissions)==null?void 0:n.length)||0),1)]}),_:1}),t(o,{prop:"create_time",label:"创建时间","min-width":"180"})]),_:1},8,["data"])])),[[f,s.value]])}}}),X=U(S,[["__scopeId","data-v-16caa8c5"]]);export{X as default};
