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-qSr7C5NQ.js";import{u as P}from"./index-BN5Ac_IG.js";import"./index-CF_FJn6P.js";import A from"./DataRuleModal-Cc6gX9Cf.js";import{d as E,a as M,b as U,c as z}from"./menu.data-DYgGjxvl.js";import{useDrawerAdaptiveWidth as L}from"./useAdaptiveWidth-Bn089Ulv.js";import{a9 as N}from"./index-CYriLmQo.js";import V from"./BasicTable-DAfCfXmD.js";import{Q as W}from"./componentMap-7D1QIeNI.js";import"./antd-vue-vendor-CDWW6V_M.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"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./index-BTSd5ebC.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./renderUtils-CGtepdOw.js";import"./injectionKey-DPVn4AgL.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"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";const jt=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{jt as default};
