Files
YG_FT/frontend/dist/assets/UserSettingsView-D3FsXYuZ.js
2026-07-27 09:12:47 +08:00

2 lines
1.7 KiB
JavaScript

import{E as v}from"./index-CunlXsH6.js";import{a as w,E as b}from"./index-DbiC_J6H.js";import{v as g}from"./directive-DnYsEmpc.js";import{d as h,G as y,K as E,c as x,q as o,s as t,w as r,y as p,da as V,o as B,x as m,aa as C}from"./index-_T_ZwAU8.js";import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-CnFjh-NG.js";import"./index-CaL9AHzU.js";import"./index-DrL-DdXi.js";import"./index-DPr6SX3u.js";import"./_baseClone-BuLLSdZ_.js";import"./_baseIteratee-C37ZLjhl.js";import"./castArray-BlzMMKhq.js";import"./debounce-CtiCYe7I.js";import"./toNumber-B7ieOfxs.js";import"./index-dqKVgrM4.js";import"./raf-BSHx3Xj9.js";import"./omit-BNuYgpQl.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,a=b,c=w,f=g;return E((B(),x("section",k,[o("header",N,[e[2]||(e[2]=o("div",null,[o("h1",null,"用户设置"),o("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(a,{prop:"username",label:"账号","min-width":"140"}),t(a,{prop:"display_name",label:"显示名称","min-width":"160"}),t(a,{prop:"role",label:"角色",width:"120"}),t(a,{prop:"status",label:"状态",width:"120"}),t(a,{label:"权限数",width:"120"},{default:r(({row:l})=>{var n;return[m(C(((n=l.permissions)==null?void 0:n.length)||0),1)]}),_:1}),t(a,{prop:"create_time",label:"创建时间","min-width":"180"})]),_:1},8,["data"])])),[[f,s.value]])}}}),R=U(S,[["__scopeId","data-v-1aa9d1a8"]]);export{R as default};