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

2 lines
2.7 KiB
JavaScript

var w=Object.defineProperty,T=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var b=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,h=(o,t)=>{for(var e in t||(t={}))D.call(t,e)&&b(o,e,t[e]);if(_)for(var e of _(t))E.call(t,e)&&b(o,e,t[e]);return o},C=(o,t)=>T(o,B(t));var p=(o,t,e)=>new Promise((m,i)=>{var c=r=>{try{n(e.next(r))}catch(s){i(s)}},l=r=>{try{n(e.throw(r))}catch(s){i(s)}},n=r=>r.done?m(r.value):Promise.resolve(r.value).then(c,l);n((e=e.apply(o,t)).next())});import{u as R,B as S}from"./useTable.878d00ad.js";import{T as v}from"./BasicForm.6fc27d7c.js";import{message as g}from"ant-design-vue";import{u as A}from"./index.d39e7f57.js";import{c as N,s as V,_ as j}from"./RankingDrawer.40e7f182.js";import{d as I,P as K,o as y,f as F,m as a,s as d,x as P,j as u,k as U}from"./index.600742c0.js";import"./useForm.2bc9cac7.js";import"./index.f0d83218.js";import"./useWindowSizeFn.e4cb8bac.js";import"./useContentViewHeight.9a5e8928.js";import"./CheckOutlined.bb129b54.js";import"./index.fd8050d2.js";import"./FullscreenOutlined.0627cb06.js";import"./isEqual.8095f8fc.js";import"./_baseIsEqual.68b80f32.js";import"./dateUtil.dcd6267e.js";import"./_baseMerge.c9f65aec.js";import"./_baseFor.fb668a36.js";import"./get.10d89888.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.7b913ccb.js";import"./index.f3a03a89.js";import"./download.51f45248.js";import"./index.8ec96e3a.js";import"./uniqBy.77d944c4.js";import"./_baseIteratee.c5e7a887.js";import"./other.a0e0a1bb.js";import"./defaultsDeep.5de9486a.js";const W={key:0,class:"flex items-center justify-center"},he=I({__name:"index",setup(o){const[t,{openDrawer:e}]=A(),[m,{reload:i}]=R({title:"\u4EA7\u91CF\u5217\u8868",api:s=>p(this,null,function*(){return res,res.list}),rowKey:"id",columns:N,formConfig:{labelWidth:120,schemas:V},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),c=()=>{g.success("\u64CD\u4F5C\u6210\u529F"),i()},l=()=>{e(!0,{id:!1})},n=s=>{e(!0,C(h({},s),{isUpdate:!0}))},r=s=>p(this,null,function*(){g.success("\u5220\u9664\u6210\u529F"),i()});return(s,$)=>{const x=K("a-button");return y(),F("div",null,[a(u(S),{onRegister:u(m)},{toolbar:d(()=>[a(x,{type:"primary",onClick:l},{default:d(()=>[P(" \u65B0\u589E ")]),_:1})]),bodyCell:d(({column:k,record:f})=>[k.key==="action"?(y(),F("div",W,[a(u(v),{actions:[{label:"\u7F16\u8F91",onClick:n.bind(null,f)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:r.bind(null,f)}}]},null,8,["actions"])])):U("",!0)]),_:1},8,["onRegister"]),a(j,{onRegister:u(t),onSuccess:c},null,8,["onRegister"])])}}});export{he as default};