2 lines
3.4 KiB
JavaScript
2 lines
3.4 KiB
JavaScript
var x=Object.defineProperty,B=Object.defineProperties;var T=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)=>B(e,T(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.dd65ac9a.js";import{T as v}from"./BasicForm.a6a69c7e.js";import{a as A,aG as N,o as g,h as y,n as a,z as d,B as V,k as n,l as j,cs as F}from"./index.10d06543.js";import{u as z}from"./index.f4cd53d5.js";import{c as G,s as I,_ as K}from"./RankingDrawer.ef8b60a9.js";import"./index.6605206d.js";import"./Checkbox.955ea262.js";import"./index.cb13c93f.js";import"./useForm.7d736709.js";import"./index.13b18db1.js";import"./index.13125b09.js";import"./index.d0d33ff5.js";import"./useSize.d9326d8e.js";import"./eagerComputed.7fba5e3b.js";import"./useWindowSizeFn.a9703094.js";import"./useContentViewHeight.1f792a27.js";import"./ArrowLeftOutlined.804f6521.js";import"./transButton.7319b884.js";import"./index.e30a4152.js";import"./index.1dd41060.js";import"./index.b2ec9148.js";import"./dayjs.min.cf2171ab.js";import"./index.3d06ecbb.js";import"./dateUtil.d25fd49f.js";import"./_baseMerge.62581eda.js";import"./_isIterateeCall.314814b5.js";import"./_baseEach.e644a8bc.js";import"./get.bd6d3db4.js";import"./index.0e3cf717.js";import"./FullscreenOutlined.bc4a08a6.js";import"./index.a5e82843.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.9008bb6f.js";import"./fromPairs.84aabb58.js";import"./index.4af0e149.js";import"./CaretUpOutlined.0b02bfc1.js";import"./scrollTo.f9c80981.js";import"./index.12c353be.js";import"./index.9df737e3.js";import"./index.5ba3a90f.js";import"./_baseIteratee.ce67176e.js";import"./index.fd538503.js";import"./useRefs.335cb825.js";import"./download.51a64bb1.js";import"./index.2ce8ed60.js";import"./index.f5075019.js";import"./uniqBy.eed4f041.js";import"./index.92c669b8.js";import"./other.e182adb3.js";import"./defaultsDeep.28a019f0.js";const U={key:0,class:"flex items-center justify-center"},Kt=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:G,formConfig:{labelWidth:120,schemas:I},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,W)=>{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",U,[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(K,{onRegister:n(o),onSuccess:u},null,8,["onRegister"])])}}});export{Kt as default};
|