import{_ as x,P as y}from"./page-content.e0c7af12.js";import{u as F}from"./use-page-search.0f272301.js";import{_ as R}from"./menu-tree.vue_vue_type_script_setup_true_lang.764f66ed.js";import{h as T,a as D,b as N,c as E,d as $,_ as V}from"./edit-dialog.vue_vue_type_script_setup_true_lang.9065b1ad.js";import{r as I}from"./column-helper.64ceba17.js";import{S as U}from"./status.2b37e8be.js";import{u as O}from"./usePermission.8064505c.js";import{a as j,r as g,b as u,c as h,j as C,h as i,m as H,f as a,u as t,x as L,l as W}from"./index.4d061c66.js";import"./remote-select.36ee67a3.js";import"./useAsync.df7387ce.js";import"./useNav.5e73c372.js";import"./image.e35d846c.js";import"./hooks.9f8f44e2.js";/* empty css                                                              */import"./image.4c97dbe3.js";/* empty css                                                              */import"./index.e63aea62.js";import"./responseHandle.fe68d5aa.js";import"./menuOperator.05657b96.js";import"./btnList.6c44b4ef.js";const q={isHide:!1,formItems:[]},k=q,z=[{type:"selection",width:55,hide:({checkList:m})=>!m.includes("\u52FE\u9009\u5217")},{prop:"action_name",label:"\u6309\u94AE\u540D\u79F0"},{prop:"action_code",label:"\u6309\u94AE\u7F16\u7801"},{prop:"status",label:"\u72B6\u6001",width:"70px",...I(U)},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4"},{label:"\u64CD\u4F5C",fixed:"right",width:160,slot:"operation"}],G={title:"\u6309\u94AE\u7BA1\u7406",columns:z,apis:{httpAdd:T,httpList:D,httpUpdate:N,httpStatus:E,httpDelete:$}},J=G,K={class:"main seBtn"},_e=j({__name:"index",setup(m){const{pageContentRef:r,handleResetClick:B,handleSearchClick:v}=F(void 0,void 0,k),d=g(null),c=g(""),f="setBtn",{hasPermissionWithCode:P,permissions:S}=O(f);function b(o){const{data:e}=o,{menu_type:s,id:l}=e;s+""=="2"&&(c.value=l,r.value.getPageData({menuid:l}))}function A(o){c.value=o,r.value.getPageData({menuid:o})}function p(o,e,s){d.value.show(o,e,s,c.value)}return(o,e)=>{const s=u("el-col"),l=u("el-button"),_=u("el-row"),w=u("PageAuth");return h(),C(w,{pageName:f},{default:i(()=>[H("div",K,[a(_,null,{default:i(()=>[a(s,{span:5},{default:i(()=>[a(R,{onTreeSelectChange:b,onInitTableData:A})]),_:1}),a(s,{span:19,style:{"padding-left":"18px",background:"transparent"}},{default:i(()=>[a(t(x),{"form-config":t(k),onSearchBtnClick:t(v),onResetBtnClick:t(B)},{action:i(()=>[t(P)("002")?(h(),C(l,{key:0,type:"primary",onClick:e[0]||(e[0]=n=>p({},"","create"))},{default:i(()=>[L(" \u65B0\u589E ")]),_:1})):W("",!0)]),_:1},8,["form-config","onSearchBtnClick","onResetBtnClick"]),a(t(y),{ref_key:"pageContentRef",ref:r,powers:t(S),"content-config":t(J),onPreviewBtnClick:e[1]||(e[1]=n=>p(n,n.id,"view")),onUpdateBtnClick:e[2]||(e[2]=n=>p(n,n.id,"edit"))},null,8,["powers","content-config"])]),_:1})]),_:1}),a(V,{ref_key:"modelRef",ref:d,onReload:e[3]||(e[3]=n=>t(r).onSearch())},null,512)])]),_:1})}}});export{_e as default};
