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-gyz1IdHU.js";import"./index-zKZnG1QC.js";import{useListPage as Q}from"./useListPage-TMORxSEa.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-C1nUyVME.js";import{a9 as et}from"./index-Cy4uayzW.js";import{Q as it}from"./componentMap-0iK4HQBq.js";import nt from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.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"./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";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};
