lcny-vue3-antd-admin/dist/assets/index.2dde3ac5.js

2 lines
3.3 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((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.0fe7b343.js";import{T as v}from"./useForm.501f3f59.js";import{a as A,aE as N,o as g,h as y,p as a,B as d,D as V,k as n,l as j,cu as F}from"./index.ed5deffd.js";import{u as I}from"./index.a73969f1.js";import{c as K,s as U,_ as W}from"./RankingDrawer.c2709196.js";import"./index.57e79dcc.js";import"./Checkbox.0ade27c0.js";import"./index.dfe580e1.js";import"./index.271eb465.js";import"./index.0292c9d3.js";import"./index.78c12dec.js";import"./useSize.f4cf68f5.js";import"./eagerComputed.890ab31a.js";import"./onMountedOrActivated.9d9d02f7.js";import"./useWindowSizeFn.a262cec0.js";import"./useContentViewHeight.b8e37cbd.js";import"./ArrowLeftOutlined.9abfd432.js";import"./transButton.f4575a26.js";import"./index.d726974a.js";import"./index.8d83801a.js";import"./index.cf1b1f15.js";import"./index.afc21ce4.js";import"./dateUtil.91a9b59f.js";import"./_baseMerge.9fac86cf.js";import"./_isIterateeCall.779fe698.js";import"./_baseEach.aed94d5c.js";import"./get.b38b45ae.js";import"./index.5b432cd4.js";import"./FullscreenOutlined.a18420c1.js";import"./index.cca952d1.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.a1f78ebd.js";import"./index.af1b13fa.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.51b9ef19.js";import"./scrollTo.707f46cf.js";import"./index.3b4e2932.js";import"./index.09a74575.js";import"./index.f6ae7164.js";import"./_baseIteratee.7c3a5712.js";import"./index.272fae53.js";import"./useRefs.045d664d.js";import"./download.b80ee91a.js";import"./index.c3b59272.js";import"./uniqBy.6fa12436.js";import"./index.141e5e7b.js";import"./other.1b193edd.js";import"./defaultsDeep.74e32aaf.js";const $={key:0,class:"flex items-center justify-center"},Kt=A({__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 k=N("a-button");return g(),y("div",null,[a(n(S),{onRegister:n(p)},{toolbar:d(()=>[a(k,{type:"primary",onClick:c},{default:d(()=>[V(" \u65B0\u589E ")]),_:1})]),bodyCell:d(({column:w,record:f})=>[w.key==="action"?(g(),y("div",$,[a(n(v),{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};