lcny-vue3-antd-admin/dist/assets/index.f1c4b981.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.6df659e1.js";import{T as v}from"./useForm.0b567ced.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.2ba75b20.js";import{u as z}from"./index.eceda1dc.js";import{c as I,s as K,_ as U}from"./RankingDrawer.b276bb26.js";import"./index.cae0df36.js";import"./Checkbox.74809cb7.js";import"./index.b9cb77a4.js";import"./index.b21fb568.js";import"./index.1c8f07cc.js";import"./index.e44e605e.js";import"./useSize.e4f04587.js";import"./eagerComputed.af7428de.js";import"./onMountedOrActivated.dd83c977.js";import"./useWindowSizeFn.82dcdf74.js";import"./useContentViewHeight.c7fbc61a.js";import"./ArrowLeftOutlined.c67ad991.js";import"./transButton.6c38f12b.js";import"./index.a35ad62d.js";import"./index.a68fc977.js";import"./index.ce25e275.js";import"./index.3d58d82f.js";import"./dateUtil.b0bffe5d.js";import"./_baseMerge.9a6b1fc9.js";import"./_isIterateeCall.206319ea.js";import"./_baseEach.749d0580.js";import"./get.f89a3030.js";import"./index.efcaf39d.js";import"./FullscreenOutlined.7342633f.js";import"./index.8cad6346.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.86c18aa7.js";import"./index.e86a49b8.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.649969a7.js";import"./scrollTo.8461c37f.js";import"./index.ec9b731d.js";import"./index.3c52863a.js";import"./index.fad229ef.js";import"./_baseIteratee.a541afd2.js";import"./index.6161a9a9.js";import"./useRefs.d2ef520a.js";import"./download.c4430ad0.js";import"./index.72afb9f7.js";import"./uniqBy.d68fdb3a.js";import"./index.b40b7369.js";import"./other.097c81be.js";import"./defaultsDeep.ce45093e.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};