2 lines
3.4 KiB
JavaScript
2 lines
3.4 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.eef218a3.js";import{T as S}from"./BasicForm.82bac281.js";import{d as N,b as V}from"./other.dd0bab57.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.c32990f8.js";import{u as I}from"./index.fd979a7c.js";import{_ as K,c as U,s as W}from"./DeviceDrawer.0b0143c6.js";import"./index.3edadc16.js";import"./Checkbox.9f8bb87f.js";import"./index.3d7638b8.js";import"./useForm.8ed2c601.js";import"./index.ef49fbf2.js";import"./index.18793a5c.js";import"./index.b82f04cc.js";import"./useSize.4791f091.js";import"./eagerComputed.4b10fdb6.js";import"./useWindowSizeFn.aeae38b8.js";import"./useContentViewHeight.9f7d31eb.js";import"./ArrowLeftOutlined.261ec900.js";import"./transButton.c32900a3.js";import"./index.31b8a276.js";import"./index.d9bc5098.js";import"./index.e1b76525.js";import"./dayjs.min.78a88238.js";import"./index.89a648c8.js";import"./dateUtil.27296437.js";import"./_baseMerge.ff01c7f9.js";import"./_isIterateeCall.5827c37a.js";import"./_baseEach.8e1e703f.js";import"./get.0f83bcc9.js";import"./index.61ed12bd.js";import"./FullscreenOutlined.c00357d2.js";import"./index.b9cb2689.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.322588a1.js";import"./fromPairs.84aabb58.js";import"./index.a3dce25b.js";import"./index.8f815cab.js";import"./index.7581729a.js";import"./_baseIteratee.b53edf8d.js";import"./CaretUpOutlined.d2204286.js";import"./scrollTo.bf8c3d6f.js";import"./index.c4eaa479.js";import"./index.1733ef64.js";import"./index.f86b5268.js";import"./useRefs.e81244b6.js";import"./download.22e12e21.js";import"./index.f660a0af.js";import"./index.bed474f7.js";import"./uniqBy.ac8c5ce3.js";import"./index.1a868190.js";import"./defaultsDeep.04bc5a5f.js";const $={key:0,class:"flex items-center justify-center"},$t=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{$t as default};
|