2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
var k=Object.defineProperty,B=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var C=(r,e,t)=>e in r?k(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,l=(r,e)=>{for(var t in e||(e={}))T.call(e,t)&&C(r,t,e[t]);if(b)for(var t of b(e))E.call(e,t)&&C(r,t,e[t]);return r},g=(r,e)=>B(r,S(e));var d=(r,e,t)=>new Promise((n,s)=>{var u=i=>{try{a(t.next(i))}catch(o){s(o)}},c=i=>{try{a(t.throw(i))}catch(o){s(o)}},a=i=>i.done?n(i.value):Promise.resolve(i.value).then(u,c);a((t=t.apply(r,e)).next())});import{J as R,a as A,aA as N,bN as Y,o as _,h as v,p as h,x as f,w as j,j as V,y as I,k as p,l as U,cs as x,f1 as G,cG as J,f2 as K}from"./index.274e5454.js";import{u as W,B as q}from"./useTable.22bbcf24.js";import{T as z}from"./useForm.72cd401a.js";import{u as H}from"./index.a2bdeefc.js";import{F as L,c as M,s as O}from"./FlowsDrawer.fbfcd05f.js";import"./index.ecd202df.js";import"./Checkbox.11bf000c.js";import"./index.e36b7018.js";import"./index.e2ffcf8b.js";import"./index.53b7d507.js";import"./index.df961c65.js";import"./useSize.c651af42.js";import"./eagerComputed.896d76a1.js";import"./onMountedOrActivated.ebb3a506.js";import"./useWindowSizeFn.230f0c50.js";import"./useContentViewHeight.a108f773.js";import"./ArrowLeftOutlined.8b37bab4.js";import"./transButton.0dcd9f98.js";import"./index.c1767668.js";import"./index.c831ad0e.js";import"./index.a54a3dd7.js";import"./index.c9d021f8.js";import"./dateUtil.2125cb5d.js";import"./_baseMerge.4cc5fe84.js";import"./_isIterateeCall.897d3d75.js";import"./_baseEach.06d2f87d.js";import"./get.3c8de76a.js";import"./index.eeda8590.js";import"./FullscreenOutlined.d7b3a88b.js";import"./index.53d7dca1.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.bc39673e.js";import"./index.76bed561.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.f665e805.js";import"./scrollTo.1cb93694.js";import"./index.4a1ec22b.js";import"./index.750daedc.js";import"./index.ec8343a5.js";import"./_baseIteratee.92b56d3b.js";import"./index.96f35920.js";import"./useRefs.da7d9fe4.js";import"./download.6b0ca9f8.js";import"./index.6a40c558.js";import"./uniqBy.44b48fd0.js";import"./index.642d4f14.js";const P={key:0,class:"flex items-center justify-center"},Q=A({__name:"index",setup(r){const[e,{openDrawer:t}]=H(),[n,{reload:s}]=W({title:"\u7A3B\u867E\u6D41\u5411 - \u5217\u8868",api:o=>d(this,null,function*(){o.year&&(o.year=J(o.year).format("YYYY"));const{data:w,meta:m}=yield K(l({},o));return{items:w,total:m==null?void 0:m.total}}),rowKey:"id",columns:M,formConfig:{labelWidth:120,schemas:O},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{x.success("\u64CD\u4F5C\u6210\u529F"),s()},c=()=>{t(!0,{isUpdate:!1})},a=o=>{t(!0,g(l({},o),{isUpdate:!0}))},i=o=>d(this,null,function*(){yield G(o.id),x.success("\u5220\u9664\u6210\u529F"),s()});return(o,w)=>{const m=N("a-button"),F=Y("auth");return _(),v("div",null,[h(p(q),{onRegister:p(n)},{toolbar:f(()=>[j((_(),V(m,{type:"primary",onClick:c},{default:f(()=>[I(" \u65B0\u589E ")]),_:1})),[[F,"endpoint.rice_shrimp_flows.create"]])]),bodyCell:f(({column:D,record:y})=>[D.key==="action"?(_(),v("div",P,[h(p(z),{actions:[{label:"\u7F16\u8F91",onClick:a.bind(null,y),auth:"endpoint.rice_shrimp_flows.edit"},{label:"\u5220\u9664",auth:"endpoint.rice_shrimp_flows.destroy",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,y)}}]},null,8,["actions"])])):U("",!0)]),_:1},8,["onRegister"]),h(L,{onRegister:p(e),onSuccess:u},null,8,["onRegister"])])}}});var zt=R(Q,[["__scopeId","data-v-e659ee0c"]]);export{zt as default};
|