lcny-vue3-antd-admin/dist/assets/index.2a6041d3.js

2 lines
3.3 KiB
JavaScript

var k=Object.defineProperty,x=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var _=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,b=(o,e)=>{for(var t in e||(e={}))T.call(e,t)&&_(o,t,e[t]);if(f)for(var t of f(e))E.call(e,t)&&_(o,t,e[t]);return o},h=(o,e)=>x(o,D(e));var C=(o,e,t)=>new Promise((n,m)=>{var u=r=>{try{s(t.next(r))}catch(i){m(i)}},c=r=>{try{s(t.throw(r))}catch(i){m(i)}},s=r=>r.done?n(r.value):Promise.resolve(r.value).then(u,c);s((t=t.apply(o,e)).next())});import{u as v,B as R}from"./useTable.da37234f.js";import{T as S}from"./BasicForm.2c365a17.js";import{d as N,b as V}from"./other.54dd0a11.js";import{a as A,aG as j,o as g,h as B,n as a,z as l,B as z,k as p,l as G,cN as w}from"./index.15bf95a0.js";import{u as I}from"./index.bc0989a7.js";import{_ as K,c as U,s as W}from"./DeviceDrawer.876c80a1.js";import"./index.df7cd357.js";import"./Checkbox.c8b0f008.js";import"./index.b8a6ac82.js";import"./useForm.266d6458.js";import"./index.49f101e0.js";import"./index.684a45dc.js";import"./index.9e83e295.js";import"./useSize.ddd952c6.js";import"./eagerComputed.2aa9aabd.js";import"./useWindowSizeFn.496bb47f.js";import"./useContentViewHeight.f193840f.js";import"./ArrowLeftOutlined.2f86be89.js";import"./transButton.c69fcfd0.js";import"./index.326e44e1.js";import"./index.cc426235.js";import"./index.ef1a8685.js";import"./dayjs.min.11553ab0.js";import"./index.2fa6a24d.js";import"./dateUtil.55a85352.js";import"./_baseMerge.a86e2ace.js";import"./_isIterateeCall.35fbf45b.js";import"./_baseEach.ae87de7c.js";import"./get.05ad8139.js";import"./index.7202328b.js";import"./FullscreenOutlined.dca4c038.js";import"./index.b95f149a.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.42c5349c.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.501b2d5b.js";import"./scrollTo.9e4b15a0.js";import"./index.8f740f78.js";import"./index.c1fc898b.js";import"./index.4bba8946.js";import"./_baseIteratee.08430898.js";import"./index.6f837330.js";import"./useRefs.5c9b400e.js";import"./download.8641eee6.js";import"./index.2589f34c.js";import"./index.5cc5de85.js";import"./uniqBy.b7a1b0f6.js";import"./index.6b3f1a50.js";import"./defaultsDeep.daea380c.js";const $={key:0,class:"flex items-center justify-center"},Ut=A({__name:"index",setup(o){const[e,{openDrawer:t}]=I(),[n,{reload:m}]=v({title:"\u8BBE\u5907\u5217\u8868",api:V,rowKey:"id",columns:U,formConfig:{labelWidth:120,schemas:W},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{w.success("\u64CD\u4F5C\u6210\u529F"),m()},c=()=>{t(!0,{id:!1})},s=i=>{t(!0,h(b({},i),{isUpdate:!0}))},r=i=>C(this,null,function*(){yield N(i.id),w.success("\u5220\u9664\u6210\u529F"),m()});return(i,q)=>{const y=j("a-button");return g(),B("div",null,[a(p(R),{onRegister:p(n)},{toolbar:l(()=>[a(y,{type:"primary",onClick:c},{default:l(()=>[z(" \u65B0\u589E\u8BBE\u5907 ")]),_:1})]),bodyCell:l(({column:F,record:d})=>[F.key==="action"?(g(),B("div",$,[a(p(S),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,d)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:r.bind(null,d)}}]},null,8,["actions"])])):G("",!0)]),_:1},8,["onRegister"]),a(K,{onRegister:p(e),onSuccess:u},null,8,["onRegister"])])}}});export{Ut as default};