lcny-vue3-antd-admin/dist/assets/index.33f5dcdc.js

2 lines
3.5 KiB
JavaScript

var F=Object.defineProperty,k=Object.defineProperties;var E=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))S.call(e,t)&&C(o,t,e[t]);if(y)for(var t of y(e))T.call(e,t)&&C(o,t,e[t]);return o},g=(o,e)=>k(o,E(e));var _=(o,e,t)=>new Promise((u,a)=>{var c=i=>{try{s(t.next(i))}catch(r){a(r)}},l=i=>{try{s(t.throw(i))}catch(r){a(r)}},s=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,l);s((t=t.apply(o,e)).next())});import{d as D}from"./dayjs.min.cf2171ab.js";import{u as I,B as A}from"./useTable.dd65ac9a.js";import{T as R}from"./BasicForm.a6a69c7e.js";import{L as N,a as Y,aG as V,o as x,h as w,n,z as f,B as j,k as p,l as U,cs as v,eN as z,eO as G}from"./index.10d06543.js";import{u as K}from"./index.f4cd53d5.js";import{I as L,c as O,s as W}from"./IndustriesDrawer.786f5411.js";import"./index.6605206d.js";import"./Checkbox.955ea262.js";import"./index.cb13c93f.js";import"./useForm.7d736709.js";import"./index.13b18db1.js";import"./index.13125b09.js";import"./index.d0d33ff5.js";import"./useSize.d9326d8e.js";import"./eagerComputed.7fba5e3b.js";import"./useWindowSizeFn.a9703094.js";import"./useContentViewHeight.1f792a27.js";import"./ArrowLeftOutlined.804f6521.js";import"./transButton.7319b884.js";import"./index.e30a4152.js";import"./index.1dd41060.js";import"./index.b2ec9148.js";import"./index.3d06ecbb.js";import"./dateUtil.d25fd49f.js";import"./_baseMerge.62581eda.js";import"./_isIterateeCall.314814b5.js";import"./_baseEach.e644a8bc.js";import"./get.bd6d3db4.js";import"./index.0e3cf717.js";import"./FullscreenOutlined.bc4a08a6.js";import"./index.a5e82843.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.9008bb6f.js";import"./fromPairs.84aabb58.js";import"./index.4af0e149.js";import"./CaretUpOutlined.0b02bfc1.js";import"./scrollTo.f9c80981.js";import"./index.12c353be.js";import"./index.9df737e3.js";import"./index.5ba3a90f.js";import"./_baseIteratee.ce67176e.js";import"./index.fd538503.js";import"./useRefs.335cb825.js";import"./download.51a64bb1.js";import"./index.2ce8ed60.js";import"./index.f5075019.js";import"./uniqBy.eed4f041.js";import"./index.92c669b8.js";const q={key:0,class:"flex items-center justify-center"},H=Y({__name:"index",setup(o){const[e,{openDrawer:t}]=K(),[u,{reload:a}]=I({title:"\u7A3B\u867E\u4EA7\u4E1A - \u5217\u8868",api:r=>_(this,null,function*(){r.year&&(r.year=D(r.year).format("YYYY"));const{data:h,meta:m}=yield G(d({},r));return{items:h,total:m==null?void 0:m.total}}),rowKey:"id",columns:O,formConfig:{labelWidth:120,schemas:W},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),c=()=>{v.success("\u64CD\u4F5C\u6210\u529F"),a()},l=()=>{t(!0,{isUpdate:!1})},s=r=>{t(!0,g(d({},r),{isUpdate:!0}))},i=r=>_(this,null,function*(){yield z(r.id),v.success("\u5220\u9664\u6210\u529F"),a()});return(r,h)=>{const m=V("a-button");return x(),w("div",null,[n(p(A),{onRegister:p(u)},{toolbar:f(()=>[n(m,{type:"primary",onClick:l},{default:f(()=>[j(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:B,record:b})=>[B.key==="action"?(x(),w("div",q,[n(p(R),{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"])])):U("",!0)]),_:1},8,["onRegister"]),n(L,{onRegister:p(e),onSuccess:c},null,8,["onRegister"])])}}});var Lt=N(H,[["__scopeId","data-v-73d6a690"]]);export{Lt as default};