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

2 lines
3.4 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 Y,aA as E,o as x,h as w,p as n,x as f,y as M,k as p,l as A,cs as v,eY as N,e3 as V,eZ as j}from"./index.d70f4f63.js";import{u as I,B as U}from"./useTable.34188438.js";import{T as J}from"./BasicForm.2ad49c13.js";import{u as K}from"./index.2a8d0107.js";import{M as W,c as Z,s as q}from"./MaterielsDrawer.03c4c3da.js";import"./index.612cca97.js";import"./Checkbox.19d6f240.js";import"./index.b2691890.js";import"./useForm.81efba69.js";import"./index.a3756ac9.js";import"./index.8f2bc039.js";import"./index.b88cb78d.js";import"./useSize.c950f6df.js";import"./eagerComputed.a4ff0892.js";import"./useWindowSizeFn.acc2e48b.js";import"./useContentViewHeight.54ab652b.js";import"./ArrowLeftOutlined.f9e0df1b.js";import"./transButton.522e99ae.js";import"./index.72b9c09e.js";import"./index.e93b2afc.js";import"./index.9d2dc6c4.js";import"./index.d15d238b.js";import"./dateUtil.4a1955f6.js";import"./_baseMerge.0e2ad79f.js";import"./_isIterateeCall.900bff6f.js";import"./_baseEach.8b264c75.js";import"./get.ef920384.js";import"./index.462d8265.js";import"./FullscreenOutlined.ae6313d1.js";import"./index.bfa7aacc.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.4afad0d2.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.5743b5bf.js";import"./scrollTo.c8e01f01.js";import"./index.f8c26bcc.js";import"./index.eb865fab.js";import"./index.36a5f657.js";import"./_baseIteratee.a2fe0d03.js";import"./index.2097f1de.js";import"./useRefs.a4333ab6.js";import"./download.89c4d116.js";import"./index.8dd39ab0.js";import"./uniqBy.401f8523.js";import"./index.aceddd7b.js";const z={key:0,class:"flex items-center justify-center"},G=Y({__name:"index",setup(r){const[e,{openDrawer:t}]=K(),[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:Z,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=E("a-button");return x(),w("div",null,[n(p(U),{onRegister:p(u)},{toolbar:f(()=>[n(m,{type:"primary",onClick:c},{default:f(()=>[M(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:F,record:y})=>[F.key==="action"?(x(),w("div",z,[n(p(J),{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"]),n(W,{onRegister:p(e),onSuccess:l},null,8,["onRegister"])])}}});var Ut=S(G,[["__scopeId","data-v-60615927"]]);export{Ut as default};