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.918bafcc.js";import{T as v}from"./useForm.c4fee4ef.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.96e740c6.js";import{u as z}from"./index.92355b32.js";import{c as I,s as K,_ as U}from"./RankingDrawer.42c0223e.js";import"./index.5483f2ce.js";import"./Checkbox.93eb545c.js";import"./index.3cbf0ea9.js";import"./index.886478d5.js";import"./index.5ddc4451.js";import"./index.a18b2097.js";import"./useSize.8d3cdcbe.js";import"./eagerComputed.be242bd5.js";import"./onMountedOrActivated.c13d4314.js";import"./useWindowSizeFn.90138703.js";import"./useContentViewHeight.d128193e.js";import"./ArrowLeftOutlined.2ed7c2a1.js";import"./transButton.435c8dc5.js";import"./index.57f33d2a.js";import"./index.ba1abc61.js";import"./index.89ed2e6e.js";import"./index.281a0015.js";import"./dateUtil.5d81bac3.js";import"./_baseMerge.d6160398.js";import"./_isIterateeCall.da405eb1.js";import"./_baseEach.ccc4a2cf.js";import"./get.f812c6f0.js";import"./index.e11b4492.js";import"./FullscreenOutlined.6f7d8842.js";import"./index.55c7cf53.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.c6cde412.js";import"./index.2c15bbd7.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.45589da1.js";import"./scrollTo.8f764404.js";import"./index.84fac896.js";import"./index.2571c4e4.js";import"./index.ca3cd773.js";import"./_baseIteratee.c057c387.js";import"./index.a5169cd8.js";import"./useRefs.096b7468.js";import"./download.8f679bee.js";import"./index.e63b89d0.js";import"./uniqBy.743d7474.js";import"./index.2bed69b0.js";import"./other.64e6b55b.js";import"./defaultsDeep.947b0fcb.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};
|