2 lines
3.3 KiB
JavaScript
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.47f1515f.js";import{T as v}from"./useForm.c0be8dd2.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.80d5b8a7.js";import{u as z}from"./index.981c2363.js";import{c as I,s as K,_ as U}from"./RankingDrawer.d815321d.js";import"./index.2eef3e03.js";import"./Checkbox.ecb61dd2.js";import"./index.f86fd20a.js";import"./index.b81c4f99.js";import"./index.9ed9a1ce.js";import"./index.72a1ec09.js";import"./useSize.18c36d63.js";import"./eagerComputed.2afcc68e.js";import"./onMountedOrActivated.9a4e7728.js";import"./useWindowSizeFn.dff138d1.js";import"./useContentViewHeight.1aa83691.js";import"./ArrowLeftOutlined.244b6f1a.js";import"./transButton.dd91eda9.js";import"./index.94cdeb5c.js";import"./index.d3965a8a.js";import"./index.936bcd03.js";import"./index.a1361fe8.js";import"./dateUtil.334acb5f.js";import"./_baseMerge.d787d49c.js";import"./_isIterateeCall.e28bc4c3.js";import"./_baseEach.db363ee6.js";import"./get.9ecf4090.js";import"./index.7365439b.js";import"./FullscreenOutlined.abcb6c9a.js";import"./index.a2f39e1a.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.d76b2479.js";import"./index.d9c8bfa0.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.14988d42.js";import"./scrollTo.baf7def3.js";import"./index.d15bc2a6.js";import"./index.e3f23f17.js";import"./index.bfcaa235.js";import"./_baseIteratee.02af8ef8.js";import"./index.a94422d1.js";import"./useRefs.7ceb8caa.js";import"./download.2742eb39.js";import"./index.e3e998e3.js";import"./uniqBy.ea1eebc1.js";import"./index.27983812.js";import"./other.18468e5c.js";import"./defaultsDeep.c868e328.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};
|