import{d as y,Y as E,h as U,ai as O,r as a,aj as g,o as n,f as o,w as e,b as t,a7 as l,k as h,l as _}from"./index.e3896b23.js";import F from"./add-or-update.3712f2ef.js";import"./orgs.0a892ff5.js";const R=_("\u65B0\u589E"),A=_("\u4FEE\u6539"),B=_("\u5220\u9664"),N=y({name:"SysOrgIndex"}),I=y({...N,setup($){const s=E({dataListUrl:"/sys/org/list",deleteUrl:"/sys/org",isPage:!1}),u=U(),p=f=>{u.value.init(f)},{getDataList:b,deleteHandle:k}=O(s);return(f,m)=>{const i=a("el-button"),v=a("el-form-item"),C=a("el-form"),r=a("el-table-column"),w=a("el-table"),D=a("el-card"),d=g("auth"),L=g("loading");return n(),o(D,null,{default:e(()=>[t(C,{inline:!0},{default:e(()=>[t(v,null,{default:e(()=>[l((n(),o(i,{type:"primary",onClick:m[0]||(m[0]=c=>p())},{default:e(()=>[R]),_:1})),[[d,"sys:org:save"]])]),_:1})]),_:1}),l((n(),o(w,{data:s.dataList,"row-key":"id",border:"",style:{width:"100%"}},{default:e(()=>[t(r,{prop:"name",label:"\u540D\u79F0","header-align":"center"}),t(r,{prop:"parentName",label:"\u4E0A\u7EA7","header-align":"center",align:"center"}),t(r,{prop:"sort",label:"\u6392\u5E8F","header-align":"center",align:"center"}),t(r,{label:"\u64CD\u4F5C",fixed:"right","header-align":"center",align:"center",width:"150"},{default:e(c=>[l((n(),o(i,{type:"primary",link:"",onClick:x=>p(c.row.id)},{default:e(()=>[A]),_:2},1032,["onClick"])),[[d,"sys:org:update"]]),l((n(),o(i,{type:"primary",link:"",onClick:x=>h(k)(c.row.id)},{default:e(()=>[B]),_:2},1032,["onClick"])),[[d,"sys:org:delete"]])]),_:1})]),_:1},8,["data"])),[[L,s.dataListLoading]]),t(F,{ref_key:"addOrUpdateRef",ref:u,onRefreshDataList:h(b)},null,8,["onRefreshDataList"])]),_:1})}}});export{I as default};
