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{l(t.next(n))}catch(s){c(s)}},g=n=>{try{l(t.throw(n))}catch(s){c(s)}},l=n=>n.done?_(n.value):Promise.resolve(n.value).then(b,g);l((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 p,G as f,ad as G,V as H}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import"./index-XZKTTfG1.js";import{useListPage as Q}from"./useListPage-CevWQ3ci.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-B0iLFTBn.js";import{a9 as et}from"./index-CLZzJyTP.js";import{Q as it}from"./componentMap-DpsJvoqz.js";import nt from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.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"./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";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}}),[l,{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(p(nt),{onRegister:p(l),rowSelection:p(s)},{tableTitle:a(()=>[r(w,{type:"primary",onClick:A,preIcon:"ant-design:plus-outlined"},{default:a(()=>m[0]||(m[0]=[f(" 新增 ")])),_:1}),p(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(p(it),{actions:F(k),dropDownActions:M(k)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),r(ot,{onRegister:p(o),onSuccess:B},null,8,["onRegister"])])}}}));export{lo as default};
