var W=Object.defineProperty,K=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?W(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,S=(e,o)=>{for(var t in o||(o={}))P.call(o,t)&&x(e,t,o[t]);if(y)for(var t of y(o))X.call(o,t)&&x(e,t,o[t]);return e},D=(e,o)=>K(e,O(o));var d=(e,o,t)=>new Promise((_,c)=>{var b=n=>{try{p(t.next(n))}catch(s){c(s)}},g=n=>{try{p(t.throw(n))}catch(s){c(s)}},p=n=>n.done?_(n.value):Promise.resolve(n.value).then(b,g);p((t=t.apply(e,o)).next())});import{d as U,U as u,a2 as v,a3 as z,k as r,af as a,u as l,G as f,ad as G,V as H}from"./vue-vendor-CxLCUzY4.js";import"./index-BN5Ac_IG.js";import"./index-CF_FJn6P.js";import{useListPage as Q}from"./useListPage-i3Wl0_Fg.js";import{s as j,c as q,l as J,g as Y,a as Z,d as $,b as tt,S as ot}from"./SysTableWhiteListModal-DUx7psUh.js";import{a9 as et}from"./index-CYriLmQo.js";import{Q as it}from"./componentMap-7D1QIeNI.js";import nt from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.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"./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";import"./injectionKey-DPVn4AgL.js";const rt=U({name:"ahh-sysTableWhiteList"}),lo=U(D(S({},rt),{setup(e){const[o,{openModal:t}]=et(),{prefixCls:_,tableContext:c,onExportXls:b,onImportXls:g}=Q({tableProps:{title:"系统表白名单",api:J,columns:q,canResize:!1,formConfig:{labelWidth:120,schemas:j,autoSubmitOnEnter:!0,showAdvancedButton:!0},actionColumn:{width:120}},exportConfig:{name:"系统表白名单",url:Z},importConfig:{url:Y}}),[p,{reload:n},{rowSelection:s,selectedRowKeys:h}]=c;function A(){t(!0,{isUpdate:!1,showFooter:!0})}function R(i){t(!0,{record:i,isUpdate:!0,showFooter:!0})}function T(i){t(!0,{record:i,isUpdate:!0,showFooter:!1})}function E(i){return d(this,null,function*(){yield $({id:i.id},n)})}function I(){return d(this,null,function*(){yield tt({ids:h.value},n)})}function B({isUpdate:i,values:m}){n()}function F(i){return[{label:"编辑",onClick:R.bind(null,i)}]}function M(i){return[{label:"详情",onClick:T.bind(null,i)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:E.bind(null,i)}}]}return(i,m)=>{const w=u("a-button"),C=u("Icon"),V=u("a-menu-item"),L=u("a-menu"),N=u("a-dropdown");return v(),z("div",null,[r(l(nt),{onRegister:l(p),rowSelection:l(s)},{tableTitle:a(()=>[r(w,{type:"primary",onClick:A,preIcon:"ant-design:plus-outlined"},{default:a(()=>m[0]||(m[0]=[f(" 新增 ")])),_:1}),l(h).length>0?(v(),G(N,{key:0},{overlay:a(()=>[r(L,null,{default:a(()=>[r(V,{key:"1",onClick:I},{default:a(()=>[r(C,{icon:"ant-design:delete-outlined"}),m[1]||(m[1]=f(" 删除 "))]),_:1})]),_:1})]),default:a(()=>[r(w,null,{default:a(()=>[m[2]||(m[2]=f(" 批量操作 ")),r(C,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):H("",!0)]),action:a(({record:k})=>[r(l(it),{actions:F(k),dropDownActions:M(k)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),r(ot,{onRegister:l(o),onSuccess:B},null,8,["onRegister"])])}}}));export{lo as default};
