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-CJ4Xt1FM.js";import A from"./AuthFieldConfig-490fc0ab-BVldC4yP.js";import B from"./AuthButtonConfig-d50a0a65-77s1eh_Y.js";import k from"./AuthDataConfig-7bb0cd85-CKsmjMQH.js";import{c9 as K}from"./index-Cy4uayzW.js";import"./index-gyz1IdHU.js";import"./auth.api-d3a6c4b3-lYYNpjOO.js";import"./auth.data-22948e87-bICx_6US.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-zKZnG1QC.js";import"./index-BN26Feep.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicTable-CgafrQwz.js";import"./injectionKey-DPVn4AgL.js";import"./componentMap-0iK4HQBq.js";import"./useFormItem-IOFWTdED.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.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};
