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

2 lines
3.4 KiB
JavaScript

var x=Object.defineProperty,B=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var h=(e,o,t)=>o in e?x(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)=>B(e,T(o));var l=(e,o,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(e,o)).next())});import{u as R,B as S}from"./useTable.63b49d9f.js";import{T as N}from"./BasicForm.7215824d.js";import{a as v,aG as A,o as g,h as y,n as p,z as d,B as V,k as a,l as j,cN as F}from"./index.66fda55f.js";import{u as z}from"./index.68bb645f.js";import{_ as G,c as I,s as K}from"./RankingDrawer.a9faf7bc.js";import"./index.ad8d11f3.js";import"./Checkbox.ec3c0e07.js";import"./index.e2c8ad68.js";import"./useForm.81e8a6d3.js";import"./index.f7d37f8a.js";import"./index.b69e15a8.js";import"./index.899030cc.js";import"./useSize.9f5f1887.js";import"./eagerComputed.4d1213a9.js";import"./useWindowSizeFn.543fbdda.js";import"./useContentViewHeight.a4f5c104.js";import"./ArrowLeftOutlined.476002b8.js";import"./transButton.4ef39013.js";import"./index.7d1539a0.js";import"./index.b819a5e0.js";import"./index.b379690e.js";import"./dayjs.min.7f9108ce.js";import"./index.fd2371d9.js";import"./dateUtil.9b9e915e.js";import"./_baseMerge.fdcd6028.js";import"./_isIterateeCall.3e733d25.js";import"./_baseEach.2882dd1b.js";import"./get.6f471eb6.js";import"./index.fb202374.js";import"./FullscreenOutlined.9844a14c.js";import"./index.b2ee3398.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.13d433c5.js";import"./fromPairs.84aabb58.js";import"./index.d7005326.js";import"./index.524bdfb4.js";import"./index.1c5c6f49.js";import"./_baseIteratee.d3cd63c9.js";import"./CaretUpOutlined.4d09ec51.js";import"./scrollTo.ef670f30.js";import"./index.202d4ed1.js";import"./index.55a537a1.js";import"./index.23217f71.js";import"./useRefs.023c9fad.js";import"./download.df7371cc.js";import"./index.d6426751.js";import"./index.c95ac475.js";import"./uniqBy.300580fe.js";import"./index.641dc06f.js";import"./other.150ae4c7.js";import"./defaultsDeep.eb0b3d0a.js";const U={key:0,class:"flex items-center justify-center"},Ut=v({__name:"index",setup(e){const[o,{openDrawer:t}]=z(),[n,{reload:m}]=R({title:"\u4EA7\u91CF\u5217\u8868",api:i=>l(this,null,function*(){return res,res.list}),rowKey:"id",columns:I,formConfig:{labelWidth:120,schemas:K},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{F.success("\u64CD\u4F5C\u6210\u529F"),m()},c=()=>{t(!0,{id:!1})},s=i=>{t(!0,C(b({},i),{isUpdate:!0}))},r=i=>l(this,null,function*(){F.success("\u5220\u9664\u6210\u529F"),m()});return(i,W)=>{const k=A("a-button");return g(),y("div",null,[p(a(S),{onRegister:a(n)},{toolbar:d(()=>[p(k,{type:"primary",onClick:c},{default:d(()=>[V(" \u65B0\u589E ")]),_:1})]),bodyCell:d(({column:w,record:f})=>[w.key==="action"?(g(),y("div",U,[p(a(N),{actions:[{label:"\u7F16\u8F91",onClick:s.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"]),p(G,{onRegister:a(o),onSuccess:u},null,8,["onRegister"])])}}});export{Ut as default};