2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
var w=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?w(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.97a1f656.js";import{T as v}from"./useForm.226ed061.js";import{a as A,aC as N,o as g,h as y,p as a,x as d,y as V,k as n,l as j,cu as F}from"./index.386d282e.js";import{u as I}from"./index.a4125261.js";import{c as K,s as U,_ as W}from"./RankingDrawer.828715f9.js";import"./index.64e7323c.js";import"./Checkbox.1f71a5a7.js";import"./index.ca353f7f.js";import"./index.2a0a67f2.js";import"./index.2cfecd31.js";import"./index.99361fb4.js";import"./useSize.9606899c.js";import"./eagerComputed.ed162b7c.js";import"./onMountedOrActivated.d37f6f4e.js";import"./useWindowSizeFn.b2189b3b.js";import"./useContentViewHeight.d953a21b.js";import"./ArrowLeftOutlined.d0a67d69.js";import"./transButton.cf0e840f.js";import"./index.25a781c2.js";import"./index.baac708b.js";import"./index.d437b254.js";import"./index.29a77e07.js";import"./dateUtil.4df7b96d.js";import"./_baseMerge.0697f190.js";import"./_isIterateeCall.30b3bfb8.js";import"./_baseEach.2115461b.js";import"./get.2def43f8.js";import"./index.cc440914.js";import"./FullscreenOutlined.8e2dba01.js";import"./index.a4901937.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.ee9855e2.js";import"./index.23e67adb.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.07aa3720.js";import"./scrollTo.28ba02bb.js";import"./index.46eba5ba.js";import"./index.af2d574b.js";import"./index.f0d471ce.js";import"./_baseIteratee.f2ab9724.js";import"./index.c5e4b42f.js";import"./useRefs.a35bd218.js";import"./download.1582adeb.js";import"./index.68846261.js";import"./uniqBy.00038b98.js";import"./index.3f852ff1.js";import"./other.3f99c53c.js";import"./defaultsDeep.1691e851.js";const $={key:0,class:"flex items-center justify-center"},Kt=A({__name:"index",setup(e){const[o,{openDrawer:t}]=I(),[p,{reload:s}]=R({title:"\u4EA7\u91CF\u5217\u8868",api:i=>l(this,null,function*(){return res,res.list}),rowKey:"id",columns:K,formConfig:{labelWidth:120,schemas:U},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,q)=>{const x=N("a-button");return g(),y("div",null,[a(n(S),{onRegister:n(p)},{toolbar:d(()=>[a(x,{type:"primary",onClick:c},{default:d(()=>[V(" \u65B0\u589E ")]),_:1})]),bodyCell:d(({column:k,record:f})=>[k.key==="action"?(g(),y("div",$,[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(W,{onRegister:n(o),onSuccess:u},null,8,["onRegister"])])}}});export{Kt as default};
|