lcny-vue3-antd-admin/dist/assets/index.f36f48a4.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 Y,aA as E,o as x,h as w,p,x as f,y as M,k as n,l as A,cs as v,eY as N,e3 as V,eZ as j}from"./index.663cd213.js";import{u as I,B as U}from"./useTable.f741abd2.js";import{T as J}from"./BasicForm.a09cb266.js";import{u as K}from"./index.9da9eb02.js";import{M as W,c as Z,s as q}from"./MaterielsDrawer.e7c5d9b3.js";import"./index.2b5538b0.js";import"./Checkbox.43e07ffd.js";import"./index.8649192a.js";import"./useForm.be3592cf.js";import"./index.ae631948.js";import"./index.1162f938.js";import"./index.8d5c82b8.js";import"./useSize.98a4fffc.js";import"./eagerComputed.853ab43a.js";import"./onMountedOrActivated.df36ded3.js";import"./useWindowSizeFn.5778f1f8.js";import"./useContentViewHeight.29aa0bb4.js";import"./ArrowLeftOutlined.f9252e7d.js";import"./transButton.3bf1bab4.js";import"./index.a334b74a.js";import"./index.cb94bfbb.js";import"./index.bfe02408.js";import"./index.34636d44.js";import"./dateUtil.7a8707b0.js";import"./_baseMerge.676d1411.js";import"./_isIterateeCall.251aefc0.js";import"./_baseEach.e87ad5ad.js";import"./get.147fcf35.js";import"./index.3d512a19.js";import"./FullscreenOutlined.fef9b7f1.js";import"./index.1545ccb5.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.12b742a8.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.24a4550d.js";import"./scrollTo.4b885aad.js";import"./index.41ced49a.js";import"./index.c61b6527.js";import"./index.c88d81b3.js";import"./_baseIteratee.5010dfca.js";import"./index.6781e047.js";import"./useRefs.84e5533f.js";import"./download.260f7d46.js";import"./index.7b6bd88d.js";import"./uniqBy.7d3b7c5e.js";import"./index.d591359e.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,[p(n(U),{onRegister:n(u)},{toolbar:f(()=>[p(m,{type:"primary",onClick:c},{default:f(()=>[M(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:F,record:y})=>[F.key==="action"?(x(),w("div",z,[p(n(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"]),p(W,{onRegister:n(e),onSuccess:l},null,8,["onRegister"])])}}});var Jt=S(G,[["__scopeId","data-v-60615927"]]);export{Jt as default};