2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
var k=Object.defineProperty,x=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var _=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,b=(o,e)=>{for(var t in e||(e={}))T.call(e,t)&&_(o,t,e[t]);if(f)for(var t of f(e))E.call(e,t)&&_(o,t,e[t]);return o},h=(o,e)=>x(o,D(e));var C=(o,e,t)=>new Promise((n,m)=>{var u=r=>{try{s(t.next(r))}catch(i){m(i)}},c=r=>{try{s(t.throw(r))}catch(i){m(i)}},s=r=>r.done?n(r.value):Promise.resolve(r.value).then(u,c);s((t=t.apply(o,e)).next())});import{u as v,B as R}from"./useTable.cd55d157.js";import{T as S}from"./BasicForm.75df0d2e.js";import{d as N,b as V}from"./other.db71b0ee.js";import{a as A,aG as j,o as g,h as B,n as a,z as l,B as z,k as p,l as G,cN as w}from"./index.32c07267.js";import{u as I}from"./index.f87b1573.js";import{_ as K,c as U,s as W}from"./DeviceDrawer.46f0d5bc.js";import"./index.7fa3a616.js";import"./Checkbox.2f1eed1e.js";import"./index.551d44e4.js";import"./useForm.47ba83ac.js";import"./index.66ec2a67.js";import"./index.e25185b6.js";import"./index.2cc1c28f.js";import"./useSize.461a5969.js";import"./eagerComputed.79a5dacc.js";import"./useWindowSizeFn.4882e42a.js";import"./useContentViewHeight.ef6a5b55.js";import"./ArrowLeftOutlined.97358e47.js";import"./transButton.63fab756.js";import"./index.f7d9f1b6.js";import"./index.0a07f7b1.js";import"./index.5c899175.js";import"./dayjs.min.1a2f02d8.js";import"./index.c4f04bdf.js";import"./dateUtil.3435ac89.js";import"./_baseMerge.2dd153da.js";import"./_isIterateeCall.d4916932.js";import"./_baseEach.27604e9d.js";import"./get.3e9b8a69.js";import"./index.d51279de.js";import"./FullscreenOutlined.ed8a6514.js";import"./index.0f130bbc.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.4c6ffbb8.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.5f6def4f.js";import"./scrollTo.afde63de.js";import"./index.542a4e14.js";import"./index.596e1e64.js";import"./index.0a16179d.js";import"./_baseIteratee.67f8f2a9.js";import"./index.c9aabb5b.js";import"./useRefs.23253e0b.js";import"./download.b7e5a7a4.js";import"./index.6ab28e80.js";import"./index.7337ce8e.js";import"./uniqBy.0c96aa5b.js";import"./index.1b438852.js";import"./defaultsDeep.caf0a77a.js";const $={key:0,class:"flex items-center justify-center"},Ut=A({__name:"index",setup(o){const[e,{openDrawer:t}]=I(),[n,{reload:m}]=v({title:"\u8BBE\u5907\u5217\u8868",api:V,rowKey:"id",columns:U,formConfig:{labelWidth:120,schemas:W},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{w.success("\u64CD\u4F5C\u6210\u529F"),m()},c=()=>{t(!0,{id:!1})},s=i=>{t(!0,h(b({},i),{isUpdate:!0}))},r=i=>C(this,null,function*(){yield N(i.id),w.success("\u5220\u9664\u6210\u529F"),m()});return(i,q)=>{const y=j("a-button");return g(),B("div",null,[a(p(R),{onRegister:p(n)},{toolbar:l(()=>[a(y,{type:"primary",onClick:c},{default:l(()=>[z(" \u65B0\u589E\u8BBE\u5907 ")]),_:1})]),bodyCell:l(({column:F,record:d})=>[F.key==="action"?(g(),B("div",$,[a(p(S),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,d)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:r.bind(null,d)}}]},null,8,["actions"])])):G("",!0)]),_:1},8,["onRegister"]),a(K,{onRegister:p(e),onSuccess:u},null,8,["onRegister"])])}}});export{Ut as default};
|