import{B as $,h as S,E as A,c as L,_ as V}from"./index.5ec7a9d7.js";import{L as v,s as I,i as N,a2 as O,l as F,al as a,av as P,o as h,a as j,Z as e,T as t,b as _,X as s,U,S as X,Y as d,u as Y,aC as Z}from"./vue.e1d8f8c6.js";const q={class:"system-menu-container layout-pd"},G={class:"system-menu-search mb15"},H={class:"ml10"},J=v({name:"systemMenu"}),K=v({...J,setup(Q){const b=Z(()=>L(()=>import("./dialog.6686ca46.js"),["./dialog.6686ca46.js","./index.5ec7a9d7.js","./vue.e1d8f8c6.js","./index.bafb3a08.css"],import.meta.url)),y=$(),{routesList:g}=I(y),u=N(),c=O({tableData:{data:[],loading:!0}}),p=()=>{c.tableData.loading=!0,c.tableData.data=g.value,setTimeout(()=>{c.tableData.loading=!1},500)},m=l=>{u.value.openDialog(l)},x=(l,i)=>{u.value.openDialog(l,i)},D=l=>{S.confirm(`此操作将永久删除路由:${l.path}, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(()=>{A.success("删除成功"),p()}).catch(()=>{})};return F(()=>{p()}),(l,i)=>{const C=a("el-input"),k=a("ele-Search"),f=a("el-icon"),r=a("el-button"),T=a("ele-FolderAdd"),z=a("SvgIcon"),n=a("el-table-column"),B=a("el-tag"),E=a("el-table"),M=a("el-card"),R=P("loading");return h(),j("div",q,[e(M,{shadow:"hover"},{default:t(()=>[_("div",G,[e(C,{size:"default",placeholder:"请输入菜单名称",style:{"max-width":"180px"}}),e(r,{size:"default",type:"primary",class:"ml10"},{default:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1}),s(" 查询 ")]),_:1}),e(r,{size:"default",type:"success",class:"ml10",onClick:m},{default:t(()=>[e(f,null,{default:t(()=>[e(T)]),_:1}),s(" 新增菜单 ")]),_:1})]),U((h(),X(E,{data:c.tableData.data,style:{width:"100%"},"row-key":"path","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:t(()=>[e(n,{label:"菜单名称","show-overflow-tooltip":""},{default:t(o=>[e(z,{name:o.row.meta.icon},null,8,["name"]),_("span",H,d(l.$t(o.row.meta.title)),1)]),_:1}),e(n,{prop:"path",label:"路由路径","show-overflow-tooltip":""}),e(n,{label:"组件路径","show-overflow-tooltip":""},{default:t(o=>[_("span",null,d(o.row.component),1)]),_:1}),e(n,{label:"权限标识","show-overflow-tooltip":""},{default:t(o=>[_("span",null,d(o.row.meta.roles),1)]),_:1}),e(n,{label:"排序","show-overflow-tooltip":"",width:"80"},{default:t(o=>[s(d(o.$index),1)]),_:1}),e(n,{label:"类型","show-overflow-tooltip":"",width:"80"},{default:t(o=>[e(B,{type:"success",size:"small"},{default:t(()=>[s(d(o.row.xx)+"菜单",1)]),_:2},1024)]),_:1}),e(n,{label:"操作","show-overflow-tooltip":"",width:"140"},{default:t(o=>[e(r,{size:"small",text:"",type:"primary",onClick:i[0]||(i[0]=w=>m("add"))},{default:t(()=>[s("新增")]),_:1}),e(r,{size:"small",text:"",type:"primary",onClick:w=>x("edit",o.row)},{default:t(()=>[s("修改")]),_:2},1032,["onClick"]),e(r,{size:"small",text:"",type:"primary",onClick:w=>D(o.row)},{default:t(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[R,c.tableData.loading]])]),_:1}),e(Y(b),{ref_key:"menuDialogRef",ref:u,onRefresh:i[1]||(i[1]=o=>p())},null,512)])}}}),te=V(K,[["__file","E:/code/wwwroot/local81.lzj/simple_storage/vue-next-admin/src/views/system/menu/index.vue"]]);export{te as default};