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

2 lines
3.5 KiB
JavaScript

var k=Object.defineProperty,B=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?k(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)=>B(o,E(e));var _=(o,e,t)=>new Promise((u,s)=>{var c=i=>{try{a(t.next(i))}catch(r){s(r)}},l=i=>{try{a(t.throw(i))}catch(r){s(r)}},a=i=>i.done?u(i.value):Promise.resolve(i.value).then(c,l);a((t=t.apply(o,e)).next())});import{J as A,a as D,aA as I,o as x,h as w,p as n,x as f,y as R,k as p,l as Y,cs as v,eQ as N,e3 as V,eR as j}from"./index.69b97d48.js";import{u as U,B as J}from"./useTable.af34662f.js";import{T as K}from"./BasicForm.aa356267.js";import{u as Q}from"./index.d6e69beb.js";import{I as W,c as q,s as z}from"./IndustriesDrawer.8bd91ec4.js";import"./index.6282cde6.js";import"./Checkbox.377b791d.js";import"./index.bba82925.js";import"./useForm.8e7b6198.js";import"./index.5fd11396.js";import"./index.4a75e77d.js";import"./index.c53c45d7.js";import"./useSize.0410cade.js";import"./eagerComputed.ca030e9e.js";import"./onMountedOrActivated.aed7dd05.js";import"./useWindowSizeFn.86fdf84f.js";import"./useContentViewHeight.1b8d662b.js";import"./ArrowLeftOutlined.5ac2afd7.js";import"./transButton.1b0c7882.js";import"./index.cf477439.js";import"./index.eaa7ab11.js";import"./index.a63dfe1d.js";import"./index.afeae3d8.js";import"./dateUtil.1e514191.js";import"./_baseMerge.1ed003c1.js";import"./_isIterateeCall.981fc751.js";import"./_baseEach.6745beb9.js";import"./get.f522e2f0.js";import"./index.986e29b1.js";import"./FullscreenOutlined.26d80412.js";import"./index.f537578d.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.7780c88c.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.28c67b21.js";import"./scrollTo.795b9e5a.js";import"./index.32dd3528.js";import"./index.59f037b0.js";import"./index.bc0d9a88.js";import"./_baseIteratee.b53df749.js";import"./index.f8b59092.js";import"./useRefs.f6eb3bea.js";import"./download.720fcfe8.js";import"./index.5ff7e024.js";import"./uniqBy.b6831ee2.js";import"./index.a235cd69.js";const G={key:0,class:"flex items-center justify-center"},H=D({__name:"index",setup(o){const[e,{openDrawer:t}]=Q(),[u,{reload:s}]=U({title:"\u7A3B\u867E\u4EA7\u4E1A - \u5217\u8868",api:r=>_(this,null,function*(){r.year&&(r.year=V(r.year).format("YYYY"));const{data:h,meta:m}=yield j(d({},r));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}),c=()=>{v.success("\u64CD\u4F5C\u6210\u529F"),s()},l=()=>{t(!0,{isUpdate:!1})},a=r=>{t(!0,g(d({},r),{isUpdate:!0}))},i=r=>_(this,null,function*(){yield N(r.id),v.success("\u5220\u9664\u6210\u529F"),s()});return(r,h)=>{const m=I("a-button");return x(),w("div",null,[n(p(J),{onRegister:p(u)},{toolbar:f(()=>[n(m,{type:"primary",onClick:l},{default:f(()=>[R(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:F,record:b})=>[F.key==="action"?(x(),w("div",G,[n(p(K),{actions:[{label:"\u7F16\u8F91",onClick:a.bind(null,b)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,b)}}]},null,8,["actions"])])):Y("",!0)]),_:1},8,["onRegister"]),n(W,{onRegister:p(e),onSuccess:c},null,8,["onRegister"])])}}});var Kt=A(H,[["__scopeId","data-v-4b18f0d4"]]);export{Kt as default};