lcny-vue3-antd-admin/dist/assets/index.7decaedc.js

2 lines
3.3 KiB
JavaScript

var x=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?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)=>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.ee8c5bdc.js";import{T as v}from"./useForm.3f34acab.js";import{a as A,aC as N,o as g,h as y,p as a,y as d,z as V,k as n,l as j,cu as F}from"./index.88f96e32.js";import{u as z}from"./index.3b45e39b.js";import{c as I,s as K,_ as U}from"./RankingDrawer.3b49bbba.js";import"./index.2da5f418.js";import"./Checkbox.d4b756a8.js";import"./index.b12f8850.js";import"./index.8c3d6be2.js";import"./index.bf4ee368.js";import"./index.a4b3034f.js";import"./useSize.626bdc58.js";import"./eagerComputed.12492c19.js";import"./onMountedOrActivated.833af151.js";import"./useWindowSizeFn.77c78245.js";import"./useContentViewHeight.59e7d479.js";import"./ArrowLeftOutlined.e6daa345.js";import"./transButton.37bb2b21.js";import"./index.5bffaffa.js";import"./index.17fc4c3f.js";import"./index.e2419808.js";import"./index.f8c38951.js";import"./dateUtil.6e4dcdbf.js";import"./_baseMerge.40b73f54.js";import"./_isIterateeCall.a78b4eb0.js";import"./_baseEach.381ed723.js";import"./get.0717a4b3.js";import"./index.ac411425.js";import"./FullscreenOutlined.9b2bd652.js";import"./index.e3a67a0d.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.a7a321d4.js";import"./index.b3e175ad.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.47f1b2b3.js";import"./scrollTo.7f7da156.js";import"./index.bd86a53c.js";import"./index.1f2a442e.js";import"./index.d356626e.js";import"./_baseIteratee.f22f427f.js";import"./index.0121362c.js";import"./useRefs.11703366.js";import"./download.00272c72.js";import"./index.6bbd71d3.js";import"./uniqBy.e4da9e77.js";import"./index.91f9830e.js";import"./other.7b37c636.js";import"./defaultsDeep.4bff0f4c.js";const W={key:0,class:"flex items-center justify-center"},It=A({__name:"index",setup(e){const[o,{openDrawer:t}]=z(),[p,{reload:s}]=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"),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,$)=>{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",W,[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(U,{onRegister:n(o),onSuccess:u},null,8,["onRegister"])])}}});export{It as default};