import{U as o,a2 as y,ad as b,af as i,k as r,a3 as C,F as D,V as F,d as I,f as m,e as v}from"./vue-vendor-CxLCUzY4.js";import{u as w,B as T}from"./index-qSr7C5NQ.js";import A from"./AuthFieldConfig-490fc0ab-CCDJ7wup.js";import B from"./AuthButtonConfig-d50a0a65-0eSi6Kwf.js";import k from"./AuthDataConfig-7bb0cd85-BA8pElTz.js";import{c9 as K}from"./index-CYriLmQo.js";import"./index-BN5Ac_IG.js";import"./auth.api-d3a6c4b3-D2WKBhPA.js";import"./auth.data-22948e87-bICx_6US.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-CF_FJn6P.js";import"./index-BkgeZpOO.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicTable-DAfCfXmD.js";import"./injectionKey-DPVn4AgL.js";import"./componentMap-7D1QIeNI.js";import"./useFormItem-CWa0w7fA.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";const R=I({name:"AuthManagerDrawer",components:{BasicDrawer:T,AuthFieldConfig:A,AuthButtonConfig:B,AuthDataConfig:k},props:{tableType:{type:Number,default:1}},emits:["register"],setup(t){const e=m(""),d=m(""),h=m([]),l=m("field"),s=m(1),n=v(()=>t.tableType==1||t.tableType==2),[a,{closeDrawer:u}]=w(p=>{e.value=p.cgformId,d.value=e.value+"?"+new Date().getTime(),l.value="field",s.value=p.tableType});function f(){u()}return{activeKey:l,cgformId:e,headId:d,authFields:h,hasDataAuth:n,onClose:f,registerDrawer:a,curTableType:s}}});function _(t,e,d,h,l,s){const n=o("AuthFieldConfig"),a=o("a-tab-pane"),u=o("AuthButtonConfig"),f=o("AuthDataConfig"),p=o("a-tabs"),g=o("BasicDrawer");return y(),b(g,{onRegister:t.registerDrawer,title:"权限管理",width:800,onClose:t.onClose},{default:i(()=>[r(p,{activeKey:t.activeKey,"onUpdate:activeKey":e[1]||(e[1]=c=>t.activeKey=c)},{default:i(()=>[r(a,{tab:"字段权限",key:"field",forceRender:""},{default:i(()=>[r(n,{headId:t.headId,authFields:t.authFields,"onUpdate:authFields":e[0]||(e[0]=c=>t.authFields=c)},null,8,["headId","authFields"])]),_:1}),t.hasDataAuth?(y(),C(D,{key:0},[r(a,{tab:"按钮权限",key:"button",forceRender:""},{default:i(()=>[r(u,{headId:t.headId,tableType:t.curTableType},null,8,["headId","tableType"])]),_:1}),r(a,{tab:"数据权限",key:"data",forceRender:""},{default:i(()=>[r(f,{cgformId:t.cgformId,authFields:t.authFields},null,8,["cgformId","authFields"])]),_:1})],64)):F("",!0)]),_:1},8,["activeKey"])]),_:1},8,["onRegister","onClose"])}const Gt=K(R,[["render",_]]);export{Gt as default};
