import c from"./action-table.a7852437.js";import p from"./edit-dialog.0a5a4d72.js";import{q as u,B as s,C as f,aQ as _,r as d,o as v,n as w,t as l,H as h}from"./index.d8ce26ef.js";import"./columns.120f9d5d.js";import"./index.51e1177f.js";import"./index.4ed99b91.js";import"./hooks.3def80f5.js";import"./responseHandle.f073653a.js";import"./status.fad06285.js";const C={class:"main"},A=u({__name:"index",setup(k){const t=s(null),i=s(null),e=s([]);function a(o,n,r){i.value.show(o,n,r)}return f(()=>{e.value=_().getMenuActions("menuOperator"),e.value.some(o=>o=="001")&&t.value.onSearch()}),(o,n)=>{const r=d("PagePower");return v(),w("div",C,[l(r,{isShow:e.value.some(m=>m=="001")},{default:h(()=>[l(c,{ref_key:"actionTableRef",ref:t,powers:e.value,onEdit:a,onCreate:a,onView:a},null,8,["powers"]),l(p,{ref_key:"modelRef",ref:i,onReload:n[0]||(n[0]=m=>t.value.onSearch())},null,512)]),_:1},8,["isShow"])])}}});export{A as default};
