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-CC3OF1BO.js";import A from"./AuthFieldConfig-490fc0ab-7vDw8bhw.js";import B from"./AuthButtonConfig-d50a0a65-hMzRpPhL.js";import k from"./AuthDataConfig-7bb0cd85-OxL-_Eqs.js";import{c9 as K}from"./index-B_2CoVdl.js";import"./index-LwlFn7Y4.js";import"./auth.api-d3a6c4b3-DRUeCw5j.js";import"./auth.data-22948e87-bICx_6US.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-D2AmS0aU.js";import"./index-ARbUvvsq.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicTable-Clbg3fHx.js";import"./injectionKey-DPVn4AgL.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.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};
