var A=Object.defineProperty,K=Object.defineProperties;var L=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var x=(e,o,t)=>o in e?A(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,I=(e,o)=>{for(var t in o||(o={}))X.call(o,t)&&x(e,t,o[t]);if(w)for(var t of w(o))F.call(o,t)&&x(e,t,o[t]);return e},S=(e,o)=>K(e,L(o));var k=(e,o,t)=>new Promise((c,f)=>{var _=p=>{try{u(t.next(p))}catch(a){f(a)}},g=p=>{try{u(t.throw(p))}catch(a){f(a)}},u=p=>p.done?c(p.value):Promise.resolve(p.value).then(_,g);u((t=t.apply(e,o)).next())});import{d as M,U as l,a2 as v,a3 as G,k as i,af as r,u as m,G as d,ad as H,V as Q}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import"./index-XZKTTfG1.js";import{s as $,c as q,g as z,a as J,b as O,d as W,e as Y,_ as Z}from"./PositionModal-DuwrohXn.js";import{a9 as tt,u as ot}from"./index-CLZzJyTP.js";import{useListPage as et}from"./useListPage-CevWQ3ci.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=M({name:"system-position"}),so=M(S(I({},rt),{setup(e){const{createMessage:o}=ot(),[t,{openModal:c}]=tt(),{prefixCls:f,onExportXls:_,onImportXls:g,tableContext:u}=et({designScope:"position-template",tableProps:{title:"职务列表",api:z,columns:q,formConfig:{schemas:$},actionColumn:{width:180},showIndexColumn:!0},exportConfig:{name:"职务列表",url:O},importConfig:{url:J}}),[p,{reload:a},{rowSelection:P,selectedRowKeys:C}]=u;function R(s){return[{label:"编辑",onClick:E.bind(null,s)},{label:"删除",popConfirm:{title:"是否确认删除",confirm:V.bind(null,s)}}]}function U(){c(!0,{isUpdate:!1})}function E(s){c(!0,{record:s,isUpdate:!0})}function V(s){return k(this,null,function*(){yield W({id:s.id},a)})}function h(){return k(this,null,function*(){yield Y({ids:C.value},()=>{C.value=[],a()})})}return(s,n)=>{const b=l("a-button"),B=l("j-upload-button"),y=l("Icon"),D=l("a-menu-item"),N=l("a-menu"),T=l("a-dropdown");return v(),G("div",null,[i(m(nt),{onRegister:m(p),rowSelection:m(P)},{tableTitle:r(()=>[i(b,{type:"primary",preIcon:"ant-design:plus-outlined",onClick:U},{default:r(()=>n[0]||(n[0]=[d("新增")])),_:1}),i(b,{type:"primary",preIcon:"ant-design:export-outlined",onClick:m(_)},{default:r(()=>n[1]||(n[1]=[d(" 导出")])),_:1},8,["onClick"]),i(B,{type:"primary",preIcon:"ant-design:import-outlined",onClick:m(g)},{default:r(()=>n[2]||(n[2]=[d("导入")])),_:1},8,["onClick"]),m(C).length>0?(v(),H(T,{key:0},{overlay:r(()=>[i(N,null,{default:r(()=>[i(D,{key:"1",onClick:h},{default:r(()=>[i(y,{icon:"ant-design:delete-outlined"}),n[3]||(n[3]=d(" 删除 "))]),_:1})]),_:1})]),default:r(()=>[i(b,null,{default:r(()=>[n[4]||(n[4]=d("批量操作 ")),i(y,{icon:"ant-design:down-outlined"})]),_:1})]),_:1})):Q("",!0)]),action:r(({record:j})=>[i(m(it),{actions:R(j)},null,8,["actions"])]),_:1},8,["onRegister","rowSelection"]),i(Z,{onRegister:m(t),onSuccess:m(a)},null,8,["onRegister","onSuccess"])])}}}));export{so as default};
