var X=Object.defineProperty,z=Object.defineProperties;var G=Object.getOwnPropertyDescriptors;var R=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var S=(e,t,o)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,D=(e,t)=>{for(var o in t||(t={}))H.call(t,o)&&S(e,o,t[o]);if(R)for(var o of R(t))Q.call(t,o)&&S(e,o,t[o]);return e},I=(e,t)=>z(e,G(t));var w=(e,t,o)=>new Promise((_,d)=>{var g=p=>{try{u(o.next(p))}catch(c){d(c)}},C=p=>{try{u(o.throw(p))}catch(c){d(c)}},u=p=>p.done?_(p.value):Promise.resolve(p.value).then(g,C);u((o=o.apply(e,t)).next())});import{d as A,U as m,a2 as h,a3 as $,k as r,af as l,u as a,G as k,ad as q,a4 as v,V as J,a6 as O}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{useListPage as W}from"./useListPage-CevWQ3ci.js";import{s as Y,c as Z,g as oo,i as to,e as eo,h as no,d as io,b as ro,_ as lo}from"./FillRuleModal-BIbldM4H.js";import"./index-XZKTTfG1.js";import{a9 as ao}from"./index-CLZzJyTP.js";import{Q as po}from"./componentMap-DpsJvoqz.js";import so from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./index-DvqyyN77.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.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";import"./user.api-DAu0nuTv.js";const mo=A({name:"system-fillrule"}),gt=A(I(D({},mo),{setup(e){const[t,{openModal:o}]=ao(),{prefixCls:_,tableContext:d,createMessage:g,createSuccessModal:C,onExportXls:u,onImportXls:p}=W({designScope:"fill-rule",tableProps:{title:"填值规则管理页面",api:oo,columns:Z,showIndexColumn:!0,formConfig:{schemas:Y}},exportConfig:{url:eo,name:"填值规则列表"},importConfig:{url:to,success:()=>f()}}),[c,{reload:f},{rowSelection:M,selectedRowKeys:b}]=d;function T(){o(!0,{isUpdate:!1})}function U(i){o(!0,{record:i,isUpdate:!0})}function V(i){return w(this,null,function*(){yield io({id:i.id},f)})}function B(){return w(this,null,function*(){yield ro({ids:b.value},()=>{b.value=[],f()})})}function F(i){let n={ruleCode:i.ruleCode};no(n).then(s=>{s.success?C({title:"填值规则功能测试",content:"生成结果："+s.result}):g.warn(s.message)})}function N(i){return[{label:"编辑",onClick:U.bind(null,i)}]}function E(i){return[{label:"功能测试",onClick:F.bind(null,i)},{label:"删除",color:"error",popConfirm:{title:"确认要删除吗？",confirm:V.bind(null,i)}}]}return(i,n)=>{const s=m("a-button"),j=m("j-upload-button"),y=m("Icon"),K=m("a-menu-item"),L=m("a-menu"),P=m("a-dropdown");return h(),$("div",{class:O(a(_))},[r(a(so),{onRegister:a(c),rowSelection:a(M)},{tableTitle:l(()=>[r(s,{preIcon:"ant-design:plus-outlined",type:"primary",onClick:T},{default:l(()=>n[0]||(n[0]=[k("新增")])),_:1}),r(s,{type:"primary",preIcon:"ant-design:export-outlined",onClick:a(u)},{default:l(()=>n[1]||(n[1]=[k(" 导出")])),_:1},8,["onClick"]),r(j,{type:"primary",preIcon:"ant-design:import-outlined",onClick:a(p)},{default:l(()=>n[2]||(n[2]=[k("导入")])),_:1},8,["onClick"]),a(b).length>0?(h(),q(P,{key:0},{overlay:l(()=>[r(L,null,{default:l(()=>[r(K,{key:"1",onClick:B},{default:l(()=>[r(y,{icon:"ant-design:delete-outlined"}),n[3]||(n[3]=v("span",null,"删除",-1))]),_:1})]),_:1})]),default:l(()=>[r(s,null,{default:l(()=>[n[4]||(n[4]=v("span",null,"批量操作",-1)),r(y,{icon:"mdi:chevron-down"})]),_:1})]),_:1})):J("",!0)]),action:l(({record:x})=>[r(a(po),{actions:N(x),dropDownActions:E(x)},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister","rowSelection"]),r(lo,{onRegister:a(t),onSuccess:a(f)},null,8,["onRegister","onSuccess"])],2)}}}));export{gt as default};
