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-BjHivc1K.js";import A from"./AuthFieldConfig-490fc0ab-Cmskwv9W.js";import B from"./AuthButtonConfig-d50a0a65-D8tHElqb.js";import k from"./AuthDataConfig-7bb0cd85-B2mwiFs_.js";import{c9 as K}from"./index-CLZzJyTP.js";import"./index-KOQNKxnC.js";import"./auth.api-d3a6c4b3-Db8RVbP1.js";import"./auth.data-22948e87-bICx_6US.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-XZKTTfG1.js";import"./index-ByX9XNkE.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicTable-DUJWN3yz.js";import"./injectionKey-DPVn4AgL.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.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 Mt=K(R,[["render",_]]);export{Mt as default};
