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-gyz1IdHU.js";import{useListPage as W}from"./useListPage-TMORxSEa.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-Dc2St5LG.js";import"./index-zKZnG1QC.js";import{a9 as ao}from"./index-Cy4uayzW.js";import{Q as po}from"./componentMap-0iK4HQBq.js";import so from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.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";import"./user.api-CoaMxYm2.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};
