lcny-vue3-antd-admin/dist/assets/index.181b2274.js

2 lines
3.3 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 h=(e,o,t)=>o in e?w(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,b=(e,o)=>{for(var t in o||(o={}))D.call(o,t)&&h(e,t,o[t]);if(_)for(var t of _(o))E.call(o,t)&&h(e,t,o[t]);return e},C=(e,o)=>T(e,B(o));var l=(e,o,t)=>new Promise((p,s)=>{var u=r=>{try{m(t.next(r))}catch(i){s(i)}},c=r=>{try{m(t.throw(r))}catch(i){s(i)}},m=r=>r.done?p(r.value):Promise.resolve(r.value).then(u,c);m((t=t.apply(e,o)).next())});import{u as R,B as S}from"./useTable.ca422b4e.js";import{T as A}from"./BasicForm.58096e25.js";import{a as v,aA as N,o as g,h as y,p as a,x as d,y as V,k as n,l as j,cs as F}from"./index.0af5f3c7.js";import{u as I}from"./index.20c076a8.js";import{c as K,s as U,_ as W}from"./RankingDrawer.e38706f1.js";import"./index.a477d07f.js";import"./Checkbox.8cbb0949.js";import"./index.9984b352.js";import"./useForm.7be02120.js";import"./index.d959cab4.js";import"./index.701a3266.js";import"./index.bf3a57cd.js";import"./useSize.b42ca083.js";import"./eagerComputed.a26e4a97.js";import"./onMountedOrActivated.d52cd355.js";import"./useWindowSizeFn.bea1b5d7.js";import"./useContentViewHeight.7a4fda07.js";import"./ArrowLeftOutlined.87e755e9.js";import"./transButton.5f87d2ce.js";import"./index.e574d844.js";import"./index.255f79bb.js";import"./index.0192f903.js";import"./index.e99ecc5a.js";import"./index.2594aba0.js";import"./index.9a71820b.js";import"./_baseIteratee.f2a8dc4d.js";import"./get.177a5851.js";import"./index.1ad38bf5.js";import"./index.40e15f2b.js";import"./index.09865871.js";import"./dateUtil.b96e4341.js";import"./uniqBy.ebd435aa.js";import"./index.b218e437.js";import"./FullscreenOutlined.51e1a299.js";import"./_baseMerge.9ba1e1d0.js";import"./_isIterateeCall.c81e5263.js";import"./_baseEach.bcbdbca2.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.ab77ea04.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.06451468.js";import"./scrollTo.7901c474.js";import"./index.9015992b.js";import"./useRefs.50da323c.js";import"./download.f26bcfe4.js";import"./index.365ce481.js";import"./other.3b96d243.js";import"./defaultsDeep.a5a57fdf.js";const $={key:0,class:"flex items-center justify-center"},Kt=v({__name:"index",setup(e){const[o,{openDrawer:t}]=I(),[p,{reload:s}]=R({title:"\u4EA7\u91CF\u5217\u8868",api:i=>l(this,null,function*(){return res,res.list}),rowKey:"id",columns:K,formConfig:{labelWidth:120,schemas:U},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{F.success("\u64CD\u4F5C\u6210\u529F"),s()},c=()=>{t(!0,{id:!1})},m=i=>{t(!0,C(b({},i),{isUpdate:!0}))},r=i=>l(this,null,function*(){F.success("\u5220\u9664\u6210\u529F"),s()});return(i,q)=>{const x=N("a-button");return g(),y("div",null,[a(n(S),{onRegister:n(p)},{toolbar:d(()=>[a(x,{type:"primary",onClick:c},{default:d(()=>[V(" \u65B0\u589E ")]),_:1})]),bodyCell:d(({column:k,record:f})=>[k.key==="action"?(g(),y("div",$,[a(n(A),{actions:[{label:"\u7F16\u8F91",onClick:m.bind(null,f)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:r.bind(null,f)}}]},null,8,["actions"])])):j("",!0)]),_:1},8,["onRegister"]),a(W,{onRegister:n(o),onSuccess:u},null,8,["onRegister"])])}}});export{Kt as default};