lcny-vue3-antd-admin/dist/assets/index.aa3969cf.js

2 lines
3.5 KiB
JavaScript

var k=Object.defineProperty,B=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var C=(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={}))T.call(e,t)&&C(r,t,e[t]);if(b)for(var t of b(e))R.call(e,t)&&C(r,t,e[t]);return r},g=(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 S,a as E,aA as M,o as x,h as w,p,x as f,y as Y,k as n,l as A,cs as v,f5 as N,cG as V,f6 as j}from"./index.6ca309d7.js";import{u as I,B as U}from"./useTable.fd4a0959.js";import{T as G}from"./useForm.99c4f939.js";import{u as J}from"./index.d5d8fe19.js";import{M as K,c as W,s as q}from"./MaterielsDrawer.2676e344.js";import"./index.a53d1481.js";import"./Checkbox.6155a898.js";import"./index.39b49350.js";import"./index.7ce6b7c4.js";import"./index.3af9e29c.js";import"./index.0c904949.js";import"./useSize.440c84ea.js";import"./eagerComputed.588493aa.js";import"./onMountedOrActivated.5da9e84c.js";import"./useWindowSizeFn.dbe6ba6b.js";import"./useContentViewHeight.cfe3ceb5.js";import"./ArrowLeftOutlined.f9a299b3.js";import"./transButton.46b42e44.js";import"./index.1b11ff74.js";import"./index.6ff3661b.js";import"./index.8dc8b5fb.js";import"./index.169a8f11.js";import"./dateUtil.043ded88.js";import"./_baseMerge.acdccefb.js";import"./_isIterateeCall.07c0934a.js";import"./_baseEach.80ad0367.js";import"./get.e8cc2bd8.js";import"./index.d353cd6e.js";import"./FullscreenOutlined.ee122c49.js";import"./index.1ce11ecf.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.0344c2f7.js";import"./index.2c5b4d7d.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.0f67a527.js";import"./scrollTo.4eb6593b.js";import"./index.de9e896a.js";import"./index.0fea1f53.js";import"./index.7a23c175.js";import"./_baseIteratee.432605fc.js";import"./index.17fe1891.js";import"./useRefs.1638d5f8.js";import"./download.36a77a52.js";import"./index.225989f7.js";import"./uniqBy.3f3d0ab4.js";import"./index.69f4ae61.js";const z={key:0,class:"flex items-center justify-center"},H=E({__name:"index",setup(r){const[e,{openDrawer:t}]=J(),[u,{reload:a}]=I({title:"\u5927\u5B97\u7269\u8D44 - \u5217\u8868",api:o=>_(this,null,function*(){o.year&&(o.year=V(o.year).format("YYYY"));const{data:h,meta:m}=yield j(d({},o));return{items:h,total:m==null?void 0:m.total}}),rowKey:"id",columns:W,formConfig:{labelWidth:120,schemas:q},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),l=()=>{v.success("\u64CD\u4F5C\u6210\u529F"),a()},c=()=>{t(!0,{isUpdate:!1})},s=o=>{t(!0,g(d({},o),{isUpdate:!0}))},i=o=>_(this,null,function*(){yield N(o.id),v.success("\u5220\u9664\u6210\u529F"),a()});return(o,h)=>{const m=M("a-button");return x(),w("div",null,[p(n(U),{onRegister:n(u)},{toolbar:f(()=>[p(m,{type:"primary",onClick:c},{default:f(()=>[Y(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:F,record:y})=>[F.key==="action"?(x(),w("div",z,[p(n(G),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,y)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,y)}}]},null,8,["actions"])])):A("",!0)]),_:1},8,["onRegister"]),p(K,{onRegister:n(e),onSuccess:l},null,8,["onRegister"])])}}});var Gt=S(H,[["__scopeId","data-v-60615927"]]);export{Gt as default};