index.bc0dcf2d.js 3.6 KB

123
  1. import{_ as A}from"./preload-helper.41c905a7.js";import{e as v,ag as E,ai as S,r as V,G as I,o as L,a0 as a,ae as N,g as w,h as O,A as e,q as t,j as _,y as s,t as F,p as P,z as d,u as j}from"./vue.e266cb73.js";import{u as q}from"./routesList.786cc129.js";import{K as G}from"./index.4f91577e.js";import{ad as K}from"./index.dcc65bf7.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.f84209b0.js";const H={class:"system-menu-container layout-pd"},J={class:"system-menu-search mb15"},Q={class:"ml10"},W=v({name:"systemMenu"}),X=v({...W,setup(Y){const g=E(()=>A(()=>import("./dialog.aa37155e.js"),["./dialog.aa37155e.js","./preload-helper.41c905a7.js","./vue.e266cb73.js","./routesList.786cc129.js","./index.8a8cbd14.js","./vue-i18n.cjs.825cc1d7.js","./_commonjsHelpers.35101cd5.js","./index.3f666869.js","./themeConfig.ed8e6a95.js","./_plugin-vue_export-helper.c27b6911.js"],import.meta.url)),y=q(),{routesList:b}=S(y),u=V(),r=I({tableData:{data:[],loading:!0}}),p=()=>{r.tableData.loading=!0,r.tableData.data=b.value,setTimeout(()=>{r.tableData.loading=!1},500)},m=l=>{u.value.openDialog(l)},x=(l,i)=>{u.value.openDialog(l,i)},D=l=>{G.confirm(`此操作将永久删除路由:${l.path}, 是否继续?`,"提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(()=>{K.success("删除成功"),p()}).catch(()=>{})};return L(()=>{p()}),(l,i)=>{const C=a("el-input"),k=a("ele-Search"),f=a("el-icon"),c=a("el-button"),z=a("ele-FolderAdd"),T=a("SvgIcon"),n=a("el-table-column"),B=a("el-tag"),M=a("el-table"),R=a("el-card"),$=N("loading");return w(),O("div",H,[e(R,{shadow:"hover"},{default:t(()=>[_("div",J,[e(C,{size:"default",placeholder:"请输入菜单名称",style:{"max-width":"180px"}}),e(c,{size:"default",type:"primary",class:"ml10"},{default:t(()=>[e(f,null,{default:t(()=>[e(k)]),_:1}),s(" 查询 ")]),_:1}),e(c,{size:"default",type:"success",class:"ml10",onClick:m},{default:t(()=>[e(f,null,{default:t(()=>[e(z)]),_:1}),s(" 新增菜单 ")]),_:1})]),F((w(),P(M,{data:r.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(T,{name:o.row.meta.icon},null,8,["name"]),_("span",Q,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(c,{size:"small",text:"",type:"primary",onClick:i[0]||(i[0]=h=>m("add"))},{default:t(()=>[s("新增")]),_:1}),e(c,{size:"small",text:"",type:"primary",onClick:h=>x("edit",o.row)},{default:t(()=>[s("修改")]),_:2},1032,["onClick"]),e(c,{size:"small",text:"",type:"primary",onClick:h=>D(o.row)},{default:t(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[$,r.tableData.loading]])]),_:1}),e(j(g),{ref_key:"menuDialogRef",ref:u,onRefresh:i[1]||(i[1]=o=>p())},null,512)])}}}),se=U(X,[["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/views/system/menu/index.vue"]]);export{se as default};
  2. //# sourceMappingURL=index.bc0dcf2d.js.map