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,f2 as G,cG as J,f3 as K}from"./index.e8334860.js";import{u as W,B as q}from"./useTable.726cedca.js";import{T as z}from"./useForm.9d0d441f.js";import{u as H}from"./index.8ccae3ed.js";import{F as L,c as M,s as O}from"./FlowsDrawer.a4f81358.js";import"./index.67d8bc63.js";import"./Checkbox.c94ebf2a.js";import"./index.654bd783.js";import"./index.d126553b.js";import"./index.fc024032.js";import"./index.e041c452.js";import"./useSize.92fbd2f8.js";import"./eagerComputed.adae050c.js";import"./onMountedOrActivated.4c1704ee.js";import"./useWindowSizeFn.5c267a15.js";import"./useContentViewHeight.3536ea8e.js";import"./ArrowLeftOutlined.f2be462a.js";import"./transButton.cea6a464.js";import"./index.fec3f6c7.js";import"./index.4526dbe2.js";import"./index.30cd36bd.js";import"./index.b76a94e8.js";import"./dateUtil.467657dd.js";import"./_baseMerge.22415503.js";import"./_isIterateeCall.66083dc8.js";import"./_baseEach.df97c1a2.js";import"./get.52047041.js";import"./index.bf8785c8.js";import"./FullscreenOutlined.3bdb2bd5.js";import"./index.9c00a044.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.65c2a124.js";import"./index.b1ecf113.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.59f5a1af.js";import"./scrollTo.30b0f8c1.js";import"./index.41d25c86.js";import"./index.e37f5ae4.js";import"./index.42fbabf5.js";import"./_baseIteratee.4870654f.js";import"./index.0a92451f.js";import"./useRefs.b991dc76.js";import"./download.a620ba48.js";import"./index.8e80d52e.js";import"./uniqBy.022010e0.js";import"./index.8e270752.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};
|