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-LwlFn7Y4.js";import{useListPage as W}from"./useListPage-BEtybUiF.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-B5bwdLcX.js";import"./index-D2AmS0aU.js";import{a9 as ao}from"./index-B_2CoVdl.js";import{Q as po}from"./componentMap-CzCGDP7x.js";import so from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.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";import"./user.api-BLHI3_6c.js";const mo=A({name:"system-fillrule"}),_t=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{_t as default};
