var c=(f,i,r)=>new Promise((l,a)=>{var d=t=>{try{m(r.next(t))}catch(s){a(s)}},u=t=>{try{m(r.throw(t))}catch(s){a(s)}},m=t=>t.done?l(t.value):Promise.resolve(t.value).then(d,u);m((r=r.apply(f,i)).next())});import{d as w,f as I,u as e,U as v,a2 as S,a3 as D,k as p,af as n,G as T,ag as k,F as y}from"./vue-vendor-CxLCUzY4.js";import{u as B,B as F}from"./index-BjHivc1K.js";import{u as P}from"./index-KOQNKxnC.js";import"./index-XZKTTfG1.js";import A from"./DataRuleModal-pbv6shKF.js";import{d as E,a as M,b as U,c as z}from"./menu.data-BtesGXIY.js";import{useDrawerAdaptiveWidth as L}from"./useAdaptiveWidth-CuheMf5X.js";import{a9 as N}from"./index-CLZzJyTP.js";import V from"./BasicTable-DUJWN3yz.js";import{Q as W}from"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.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"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./renderUtils-BgFeePLc.js";import"./injectionKey-DPVn4AgL.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"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";const qt=w({__name:"DataRuleList",setup(f){const i=I(""),{adaptiveWidth:r}=L(),[l,{openModal:a}]=N(),[d]=B(o=>c(this,null,function*(){i.value=o.id,s({searchInfo:{permissionId:e(i)}}),t()})),u={xs:24,sm:24,md:24,lg:12,xl:8,xxl:8},[m,{reload:t,setProps:s}]=P({api:U,columns:M,size:"small",formConfig:{baseColProps:u,labelAlign:"right",labelCol:{offset:1,xs:24,sm:24,md:24,lg:8,xl:8,xxl:8},wrapperCol:{},schemas:E,autoSubmitOnEnter:!0},striped:!0,useSearchForm:!0,bordered:!0,showIndexColumn:!1,showTableSetting:!1,canResize:!1,immediate:!1,actionColumn:{width:100,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:void 0}});function b(){a(!0,{isUpdate:!1})}function h(o){a(!0,{record:o,isUpdate:!0})}function C(o){return c(this,null,function*(){yield z({id:o.id},t)})}function x(o){return[{label:"编辑",onClick:h.bind(null,o)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:C.bind(null,o)}}]}return(o,g)=>{const R=v("a-button");return S(),D(y,null,[p(e(F),k(o.$attrs,{onRegister:e(d),title:"数据权限规则",width:e(r)}),{default:n(()=>[p(e(V),{onRegister:e(m)},{tableTitle:n(()=>[p(R,{type:"primary",onClick:b},{default:n(()=>g[0]||(g[0]=[T(" 新增")])),_:1})]),action:n(({record:_})=>[p(e(W),{actions:x(_)},null,8,["actions"])]),_:1},8,["onRegister"])]),_:1},16,["onRegister","width"]),p(A,{onRegister:e(l),onSuccess:e(t),permissionId:i.value},null,8,["onRegister","onSuccess","permissionId"])],64)}}});export{qt as default};
