lcny-vue3-antd-admin/dist/assets/index.357faa67.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.a901309e.js";import{T as N}from"./BasicForm.a227e1d1.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.1ceafab0.js";import{u as z}from"./index.a1d3bdaa.js";import{_ as G,c as I,s as K}from"./RankingDrawer.dd5b93bc.js";import"./index.5859dca7.js";import"./Checkbox.8cfd7201.js";import"./index.939659e0.js";import"./useForm.c535a8d0.js";import"./index.38ff7f6a.js";import"./index.bb2b9476.js";import"./index.6e03669a.js";import"./useSize.b1261285.js";import"./eagerComputed.7ecbb6b7.js";import"./useWindowSizeFn.dcec5864.js";import"./useContentViewHeight.834ff2f5.js";import"./ArrowLeftOutlined.7513ec34.js";import"./transButton.884c1f35.js";import"./index.7f7bfc59.js";import"./index.95870a43.js";import"./index.9ef0cd85.js";import"./dayjs.min.702260c1.js";import"./index.18ec4be7.js";import"./dateUtil.42536331.js";import"./_baseMerge.45832d42.js";import"./_isIterateeCall.11e55ab7.js";import"./_baseEach.13e95206.js";import"./get.475835b7.js";import"./index.81144ce2.js";import"./FullscreenOutlined.b2e66962.js";import"./index.0b4a6c4b.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.e6ccfb3b.js";import"./fromPairs.84aabb58.js";import"./index.6d26019d.js";import"./index.177e8dbb.js";import"./index.28ab0fd4.js";import"./_baseIteratee.33440f54.js";import"./CaretUpOutlined.8cf66656.js";import"./scrollTo.4f0f9197.js";import"./index.7a19d4fd.js";import"./index.01ac6c22.js";import"./index.706e184c.js";import"./useRefs.00ac041c.js";import"./download.a98cd929.js";import"./index.30dd6fdb.js";import"./index.9c7d8093.js";import"./uniqBy.870e07d1.js";import"./index.63443809.js";import"./other.7d9946d0.js";import"./defaultsDeep.92a1052e.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};