lcny-vue3-antd-admin/dist/assets/index.2f04bd21.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.eef218a3.js";import{T as N}from"./BasicForm.82bac281.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.c32990f8.js";import{u as z}from"./index.fd979a7c.js";import{_ as G,c as I,s as K}from"./RankingDrawer.6796fe83.js";import"./index.3edadc16.js";import"./Checkbox.9f8bb87f.js";import"./index.3d7638b8.js";import"./useForm.8ed2c601.js";import"./index.ef49fbf2.js";import"./index.18793a5c.js";import"./index.b82f04cc.js";import"./useSize.4791f091.js";import"./eagerComputed.4b10fdb6.js";import"./useWindowSizeFn.aeae38b8.js";import"./useContentViewHeight.9f7d31eb.js";import"./ArrowLeftOutlined.261ec900.js";import"./transButton.c32900a3.js";import"./index.31b8a276.js";import"./index.d9bc5098.js";import"./index.e1b76525.js";import"./dayjs.min.78a88238.js";import"./index.89a648c8.js";import"./dateUtil.27296437.js";import"./_baseMerge.ff01c7f9.js";import"./_isIterateeCall.5827c37a.js";import"./_baseEach.8e1e703f.js";import"./get.0f83bcc9.js";import"./index.61ed12bd.js";import"./FullscreenOutlined.c00357d2.js";import"./index.b9cb2689.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.322588a1.js";import"./fromPairs.84aabb58.js";import"./index.a3dce25b.js";import"./index.8f815cab.js";import"./index.7581729a.js";import"./_baseIteratee.b53edf8d.js";import"./CaretUpOutlined.d2204286.js";import"./scrollTo.bf8c3d6f.js";import"./index.c4eaa479.js";import"./index.1733ef64.js";import"./index.f86b5268.js";import"./useRefs.e81244b6.js";import"./download.22e12e21.js";import"./index.f660a0af.js";import"./index.bed474f7.js";import"./uniqBy.ac8c5ce3.js";import"./index.1a868190.js";import"./other.dd0bab57.js";import"./defaultsDeep.04bc5a5f.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};