import{d as k,Y as U,h as O,ai as R,r,aj as g,o as a,f as o,w as e,b as n,a7 as s,H as p,c as A,k as w,l as u}from"./index.e3896b23.js";import H from"./add-or-update.d1a4ef1f.js";const N=u("\u65B0\u589E"),S=u("\u83DC\u5355"),V=u("\u6309\u94AE"),$=u("\u63A5\u53E3"),j={key:0},I=u("\u5185\u90E8\u6253\u5F00"),M=u("\u5916\u90E8\u6253\u5F00"),P=u("\u4FEE\u6539"),T=u("\u5220\u9664"),Y=k({name:"SysMenuIndex"}),J=k({...Y,setup(q){const d=U({dataListUrl:"/sys/menu/list",deleteUrl:"/sys/menu",isPage:!1}),f=O(),m=y=>{f.value.init(y)},{getDataList:b,deleteHandle:v}=R(d);return(y,h)=>{const c=r("el-button"),C=r("el-form-item"),E=r("el-form"),l=r("el-table-column"),F=r("svg-icon"),i=r("el-tag"),D=r("el-table"),B=r("el-card"),_=g("auth"),L=g("loading");return a(),o(B,{class:"mod__menu"},{default:e(()=>[n(E,{inline:!0},{default:e(()=>[n(C,null,{default:e(()=>[s((a(),o(c,{type:"primary",onClick:h[0]||(h[0]=t=>m())},{default:e(()=>[N]),_:1})),[[_,"sys:menu:save"]])]),_:1})]),_:1}),s((a(),o(D,{data:d.dataList,"row-key":"id",border:"",style:{width:"100%"}},{default:e(()=>[n(l,{prop:"name",label:"\u540D\u79F0","header-align":"center","min-width":"150"}),n(l,{prop:"icon",label:"\u56FE\u6807","header-align":"center",align:"center"},{default:e(t=>[n(F,{icon:t.row.icon},null,8,["icon"])]),_:1}),n(l,{prop:"type",label:"\u7C7B\u578B","header-align":"center",align:"center"},{default:e(t=>[t.row.type===0?(a(),o(i,{key:0,type:"info"},{default:e(()=>[S]),_:1})):p("",!0),t.row.type===1?(a(),o(i,{key:1,type:"success"},{default:e(()=>[V]),_:1})):p("",!0),t.row.type===2?(a(),o(i,{key:2,type:"warning"},{default:e(()=>[$]),_:1})):p("",!0)]),_:1}),n(l,{prop:"openStyle",label:"\u6253\u5F00\u65B9\u5F0F","header-align":"center",align:"center"},{default:e(t=>[t.row.type!==0?(a(),A("span",j)):t.row.openStyle===0?(a(),o(i,{key:1},{default:e(()=>[I]),_:1})):(a(),o(i,{key:2,type:"info"},{default:e(()=>[M]),_:1}))]),_:1}),n(l,{prop:"sort",label:"\u6392\u5E8F","header-align":"center",align:"center"}),n(l,{prop:"url",label:"\u8DEF\u7531","header-align":"center",align:"center",width:"150","show-overflow-tooltip":!0}),n(l,{prop:"authority",label:"\u6388\u6743\u6807\u8BC6","header-align":"center",align:"center",width:"150","show-overflow-tooltip":!0}),n(l,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:e(t=>[s((a(),o(c,{type:"primary",link:"",onClick:x=>m(t.row.id)},{default:e(()=>[P]),_:2},1032,["onClick"])),[[_,"sys:menu:update"]]),s((a(),o(c,{type:"primary",link:"",onClick:x=>w(v)(t.row.id)},{default:e(()=>[T]),_:2},1032,["onClick"])),[[_,"sys:menu:delete"]])]),_:1})]),_:1},8,["data"])),[[L,d.dataListLoading]]),n(H,{ref_key:"addOrUpdateRef",ref:f,onRefreshDataList:w(b)},null,8,["onRefreshDataList"])]),_:1})}}});export{J as default};
