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-CC3OF1BO.js";import{u as P}from"./index-LwlFn7Y4.js";import"./index-D2AmS0aU.js";import A from"./DataRuleModal-C-A9cQSm.js";import{d as E,a as M,b as U,c as z}from"./menu.data-DH-zNTQM.js";import{useDrawerAdaptiveWidth as L}from"./useAdaptiveWidth-B-GcgPBd.js";import{a9 as N}from"./index-B_2CoVdl.js";import V from"./BasicTable-Clbg3fHx.js";import{Q as W}from"./componentMap-CzCGDP7x.js";import"./antd-vue-vendor-CDWW6V_M.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"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./renderUtils-Cbe4E0PZ.js";import"./injectionKey-DPVn4AgL.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"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
