lcny-vue3-antd-admin/dist/assets/index.30d87937.js

2 lines
3.5 KiB
JavaScript

var k=Object.defineProperty,B=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var w=(r,e,t)=>e in r?k(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,d=(r,e)=>{for(var t in e||(e={}))S.call(e,t)&&w(r,t,e[t]);if(y)for(var t of y(e))T.call(e,t)&&w(r,t,e[t]);return r},C=(r,e)=>B(r,D(e));var _=(r,e,t)=>new Promise((u,a)=>{var l=i=>{try{s(t.next(i))}catch(o){a(o)}},c=i=>{try{s(t.throw(i))}catch(o){a(o)}},s=i=>i.done?u(i.value):Promise.resolve(i.value).then(l,c);s((t=t.apply(r,e)).next())});import{J as E,a as R,aA as A,o as g,h as x,p,x as f,y as Y,k as n,l as N,cs as F,f1 as V,cG as j,f2 as I}from"./index.6748bdd0.js";import{u as U,B as G}from"./useTable.ee74d569.js";import{T as J}from"./useForm.3e27434f.js";import{u as K}from"./index.afbaf8ef.js";import{F as W,c as q,s as z}from"./FlowsDrawer.5e2a9b26.js";import"./index.ea599fa2.js";import"./Checkbox.5492d77a.js";import"./index.f89b590f.js";import"./index.c930648c.js";import"./index.faf03fda.js";import"./index.92a471e5.js";import"./useSize.b37d7c5e.js";import"./eagerComputed.612753a8.js";import"./onMountedOrActivated.7f6f0d44.js";import"./useWindowSizeFn.df19d895.js";import"./useContentViewHeight.ae4f0cd5.js";import"./ArrowLeftOutlined.260ffe5c.js";import"./transButton.64caeb72.js";import"./index.5c1ec066.js";import"./index.3ab0c461.js";import"./index.6faede87.js";import"./index.d61494e0.js";import"./dateUtil.f672de35.js";import"./_baseMerge.409d7715.js";import"./_isIterateeCall.a9acb2e0.js";import"./_baseEach.30dfa16c.js";import"./get.1a92c246.js";import"./index.7309103d.js";import"./FullscreenOutlined.74a6e43c.js";import"./index.c9e2eb68.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.c36fc200.js";import"./index.226a2674.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.6b26b596.js";import"./scrollTo.a9624d8b.js";import"./index.dc5496d2.js";import"./index.e8c32249.js";import"./index.f01a865f.js";import"./_baseIteratee.7cd6d531.js";import"./index.a160bec3.js";import"./useRefs.7023f327.js";import"./download.772cbbf9.js";import"./index.9cbe657d.js";import"./uniqBy.102c2d42.js";import"./index.547e0df9.js";const H={key:0,class:"flex items-center justify-center"},L=R({__name:"index",setup(r){const[e,{openDrawer:t}]=K(),[u,{reload:a}]=U({title:"\u7A3B\u867E\u6D41\u5411 - \u5217\u8868",api:o=>_(this,null,function*(){o.year&&(o.year=j(o.year).format("YYYY"));const{data:h,meta:m}=yield I(d({},o));return{items:h,total:m==null?void 0:m.total}}),rowKey:"id",columns:q,formConfig:{labelWidth:120,schemas:z},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),l=()=>{F.success("\u64CD\u4F5C\u6210\u529F"),a()},c=()=>{t(!0,{isUpdate:!1})},s=o=>{t(!0,C(d({},o),{isUpdate:!0}))},i=o=>_(this,null,function*(){yield V(o.id),F.success("\u5220\u9664\u6210\u529F"),a()});return(o,h)=>{const m=A("a-button");return g(),x("div",null,[p(n(G),{onRegister:n(u)},{toolbar:f(()=>[p(m,{type:"primary",onClick:c},{default:f(()=>[Y(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:v,record:b})=>[v.key==="action"?(g(),x("div",H,[p(n(J),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,b)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,b)}}]},null,8,["actions"])])):N("",!0)]),_:1},8,["onRegister"]),p(W,{onRegister:n(e),onSuccess:l},null,8,["onRegister"])])}}});var Jt=E(L,[["__scopeId","data-v-28812b24"]]);export{Jt as default};