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-CJ4Xt1FM.js";import{u as P}from"./index-gyz1IdHU.js";import"./index-zKZnG1QC.js";import A from"./DataRuleModal-DM-u3lIH.js";import{d as E,a as M,b as U,c as z}from"./menu.data-CAIGSiyj.js";import{useDrawerAdaptiveWidth as L}from"./useAdaptiveWidth-Bz6tJGsL.js";import{a9 as N}from"./index-Cy4uayzW.js";import V from"./BasicTable-CgafrQwz.js";import{Q as W}from"./componentMap-0iK4HQBq.js";import"./antd-vue-vendor-CahNzUUa.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"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./renderUtils-BcsccCoe.js";import"./injectionKey-DPVn4AgL.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"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
