lcny-vue3-antd-admin/dist/assets/index.718a6dfd.js

2 lines
3.4 KiB
JavaScript

var k=Object.defineProperty,D=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var g=(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={}))E.call(e,t)&&g(o,t,e[t]);if(C)for(var t of C(e))v.call(e,t)&&g(o,t,e[t]);return o},y=(o,e)=>D(o,T(e));var f=(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{u as R,B as S}from"./useTable.437193a2.js";import{T as A}from"./useForm.1794f982.js";import{d as N}from"./other.f251526d.js";import{a as V,aA as j,o as B,h as w,p,x as _,y as I,k as n,l as K,cs as x,f9 as U}from"./index.0e250b31.js";import{u as W}from"./index.fc66d173.js";import{_ as $,c as q,s as z}from"./DeviceDrawer.a73173cd.js";import"./index.5f3598ec.js";import"./Checkbox.68233b70.js";import"./index.21541882.js";import"./index.3ddc103b.js";import"./index.0376cf44.js";import"./index.4eed33f6.js";import"./useSize.746bf490.js";import"./eagerComputed.d22edda7.js";import"./onMountedOrActivated.a46fa718.js";import"./useWindowSizeFn.e034d540.js";import"./useContentViewHeight.5f7d342b.js";import"./ArrowLeftOutlined.c80bb084.js";import"./transButton.67351000.js";import"./index.7b3e4a13.js";import"./index.ce56fb19.js";import"./index.db0afe23.js";import"./index.f4dea936.js";import"./dateUtil.b025f9d8.js";import"./_baseMerge.f16be8a6.js";import"./_isIterateeCall.1c8ba2e4.js";import"./_baseEach.4fbdbaff.js";import"./get.9ef46f57.js";import"./index.0f0ffa53.js";import"./FullscreenOutlined.06947b4c.js";import"./index.7091377c.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.080d6d31.js";import"./index.ea0dbd30.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.7df5dc80.js";import"./scrollTo.eed56aac.js";import"./index.a360d4dc.js";import"./index.fd6ea590.js";import"./index.285e884b.js";import"./_baseIteratee.7b1261ce.js";import"./index.4bd5ef2f.js";import"./useRefs.02308f6a.js";import"./download.896b9876.js";import"./index.57a568b2.js";import"./uniqBy.82a086b7.js";import"./index.8daeaf83.js";import"./defaultsDeep.00d6fd21.js";const G={key:0,class:"flex items-center justify-center"},Wt=V({__name:"index",setup(o){const[e,{openDrawer:t}]=W(),[u,{reload:s}]=R({title:"\u8BBE\u5907\u5217\u8868",api:r=>f(this,null,function*(){const{data:h,meta:m}=yield U(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=()=>{x.success("\u64CD\u4F5C\u6210\u529F"),s()},l=()=>{t(!0,{id:!1})},a=r=>{t(!0,y(d({},r),{isUpdate:!0}))},i=r=>f(this,null,function*(){yield N(r.id),x.success("\u5220\u9664\u6210\u529F"),s()});return(r,h)=>{const m=j("a-button");return B(),w("div",null,[p(n(S),{onRegister:n(u)},{toolbar:_(()=>[p(m,{type:"primary",onClick:l},{default:_(()=>[I(" \u65B0\u589E\u8BBE\u5907 ")]),_:1})]),bodyCell:_(({column:F,record:b})=>[F.key==="action"?(B(),w("div",G,[p(n(A),{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"])])):K("",!0)]),_:1},8,["onRegister"]),p($,{onRegister:n(e),onSuccess:c},null,8,["onRegister"])])}}});export{Wt as default};