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.f5e8bb01.js";import{T as v}from"./useForm.354d9dda.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.b9edafc5.js";import{u as z}from"./index.c68a4867.js";import{c as I,s as K,_ as U}from"./RankingDrawer.b2b39dfd.js";import"./index.1818d178.js";import"./Checkbox.3693edd4.js";import"./index.68134fec.js";import"./index.161c6c24.js";import"./index.ec2e2643.js";import"./index.07ffe575.js";import"./useSize.68b0b927.js";import"./eagerComputed.e71ccd62.js";import"./onMountedOrActivated.1b2852ce.js";import"./useWindowSizeFn.163a2397.js";import"./useContentViewHeight.f1232089.js";import"./ArrowLeftOutlined.70e6d78b.js";import"./transButton.28c267d1.js";import"./index.ddea2c87.js";import"./index.42b29c86.js";import"./index.0ae85186.js";import"./index.f9d5ec0c.js";import"./dateUtil.5a03aaf6.js";import"./_baseMerge.aa91e649.js";import"./_isIterateeCall.6ba6d6fa.js";import"./_baseEach.adcefe03.js";import"./get.525b1412.js";import"./index.a1398b2b.js";import"./FullscreenOutlined.6ed405b9.js";import"./index.0180ed58.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.864ed0d9.js";import"./index.345ec072.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.074234ca.js";import"./scrollTo.495af765.js";import"./index.ea48b9f7.js";import"./index.09659ee2.js";import"./index.b7b73885.js";import"./_baseIteratee.2ccd493f.js";import"./index.fe531bc3.js";import"./useRefs.6d27f120.js";import"./download.dc49e8e1.js";import"./index.219c7033.js";import"./uniqBy.20331f76.js";import"./index.4c585e91.js";import"./other.5efafd8e.js";import"./defaultsDeep.e2c5a558.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};
|