import{a as u,r,o as f,b as _,c as d,e as h,f as i,h as v,Z as w,$ as C}from"./index.4d061c66.js";import{_ as k}from"./action-table.vue_vue_type_script_setup_true_lang.d5688dec.js";import{_ as R}from"./edit-dialog.vue_vue_type_script_setup_true_lang.a364098e.js";import{u as g}from"./usePermission.8064505c.js";import"./columns.9e54e6df.js";import"./menuOperator.05657b96.js";import"./index.e63aea62.js";import"./useNav.5e73c372.js";import"./hooks.9f8f44e2.js";import"./responseHandle.fe68d5aa.js";import"./status.2b37e8be.js";import"./btnList.6c44b4ef.js";const x={class:"main"},O=u({__name:"index",setup($){const m="menuOperator",t=r(null),l=r(null),n=r([]);function a(e,o,s){l.value.show(e,o,s)}const{permissions:p}=g(m);return n.value=p.value,f(()=>{n.value.some(e=>e=="001")&&t.value.onSearch()}),(e,o)=>{const s=_("PageAuth");return d(),h("div",x,[i(s,{pageName:m},{default:v(()=>[w(i(k,{ref_key:"actionTableRef",ref:t,onEdit:a,onCreate:a,onView:a},null,512),[[C,n.value.some(c=>c=="001")]]),i(R,{ref_key:"modelRef",ref:l,onReload:o[0]||(o[0]=c=>t.value.onSearch())},null,512)]),_:1})])}}});export{O as default};
