lcny-vue3-antd-admin/dist/assets/index.48df070c.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.3c2f4215.js";import{T as S}from"./BasicForm.c0f0b49b.js";import{d as N,b as V}from"./other.96563ff1.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.867f48c0.js";import{u as I}from"./index.8577e943.js";import{_ as K,c as U,s as W}from"./DeviceDrawer.3907e2d8.js";import"./index.199517fa.js";import"./Checkbox.5aee0e0a.js";import"./index.75d7abb9.js";import"./useForm.413d35f8.js";import"./index.afdd8ca7.js";import"./index.d214d9ed.js";import"./index.738e63d5.js";import"./useSize.835cb72d.js";import"./eagerComputed.f744c165.js";import"./useWindowSizeFn.08bc7e9a.js";import"./useContentViewHeight.221a05c7.js";import"./ArrowLeftOutlined.2294d66c.js";import"./transButton.5575d623.js";import"./index.40993466.js";import"./index.68c934d6.js";import"./index.b0cce4ac.js";import"./dayjs.min.926ac847.js";import"./index.0a1c386f.js";import"./dateUtil.9afc73f8.js";import"./_baseMerge.49f74397.js";import"./_isIterateeCall.4c46d9c5.js";import"./_baseEach.57aa181c.js";import"./get.b0df836b.js";import"./index.3d0fa94f.js";import"./FullscreenOutlined.292b4326.js";import"./index.f860d291.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.ab0376f6.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.cade9076.js";import"./scrollTo.7dc508b8.js";import"./index.57f8c9da.js";import"./index.01a64ec5.js";import"./index.0f994cf1.js";import"./_baseIteratee.79381cc0.js";import"./index.fcdf1093.js";import"./useRefs.01fce650.js";import"./download.08584bfb.js";import"./index.4b42bb76.js";import"./index.fa64e4c7.js";import"./uniqBy.d1706606.js";import"./index.0f1fec62.js";import"./defaultsDeep.8eeaca18.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};