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-LwlFn7Y4.js";import"./index-D2AmS0aU.js";import{useListPage as Q}from"./useListPage-BEtybUiF.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-CarjXPiz.js";import{a9 as et}from"./index-B_2CoVdl.js";import{Q as it}from"./componentMap-CzCGDP7x.js";import nt from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.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"./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";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};
