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.f4a0d3cc.js";import{T as S}from"./BasicForm.2027c882.js";import{d as N,b as V}from"./other.cc970318.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.49914b5a.js";import{u as I}from"./index.c456af0b.js";import{_ as K,c as U,s as W}from"./DeviceDrawer.b01a5ad5.js";import"./index.0494ee07.js";import"./Checkbox.e04d03bf.js";import"./index.2d827a95.js";import"./useForm.21d35da4.js";import"./index.5bf20e34.js";import"./index.cf81f887.js";import"./index.c90b01a4.js";import"./useSize.27a2e408.js";import"./eagerComputed.c4a7a110.js";import"./useWindowSizeFn.96491139.js";import"./useContentViewHeight.36f98ca6.js";import"./ArrowLeftOutlined.f959b13b.js";import"./transButton.b78e55f6.js";import"./index.b96a740f.js";import"./index.c500def9.js";import"./index.ff1266da.js";import"./dayjs.min.ca826dd4.js";import"./index.9920efc8.js";import"./dateUtil.e8f514cd.js";import"./_baseMerge.7a434c24.js";import"./_isIterateeCall.962f5dea.js";import"./_baseEach.cea27e9e.js";import"./get.eb15741f.js";import"./index.a3a40db6.js";import"./FullscreenOutlined.6747fb97.js";import"./index.42090798.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.061065da.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.1864d562.js";import"./scrollTo.db34b170.js";import"./index.747a0d49.js";import"./index.0decd79e.js";import"./index.1fea3ddd.js";import"./_baseIteratee.44597bea.js";import"./index.39ba15a9.js";import"./useRefs.4a1afb1f.js";import"./download.11a56008.js";import"./index.c6a953b0.js";import"./index.76fa57c1.js";import"./uniqBy.a8ee5355.js";import"./index.964646e3.js";import"./defaultsDeep.7965405e.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};
|