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 Y,aC as j,bP as A,o as _,h as v,p as h,x as f,w as I,j as N,y as V,k as p,l as U,cu as x,f3 as J,cI as K,f4 as P}from"./index.10bef8d9.js";import{u as W,B as q}from"./useTable.792cc9b8.js";import{T as z}from"./useForm.7bfdaab3.js";import{u as G}from"./index.11d0d4f7.js";import{F as H,c as L,s as M}from"./FlowsDrawer.8d4d3b7d.js";import"./index.e2b21023.js";import"./Checkbox.3916bf4f.js";import"./index.2c46e1c2.js";import"./index.e1b248c7.js";import"./index.63bd55f9.js";import"./index.7d64c1fd.js";import"./useSize.a3cc155e.js";import"./eagerComputed.6cbc98cb.js";import"./onMountedOrActivated.1a52296b.js";import"./useWindowSizeFn.828b4ed1.js";import"./useContentViewHeight.34af3465.js";import"./ArrowLeftOutlined.00865997.js";import"./transButton.fa379ab6.js";import"./index.2cfaf595.js";import"./index.d11714a0.js";import"./index.04b03248.js";import"./index.603dbfe2.js";import"./dateUtil.9f7564f2.js";import"./_baseMerge.4ec785d2.js";import"./_isIterateeCall.048b9e2b.js";import"./_baseEach.9a9c295f.js";import"./get.54ea2f74.js";import"./index.ebbd9b0a.js";import"./FullscreenOutlined.1a57dd79.js";import"./index.7c202422.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.5e7f9ab6.js";import"./index.8d3663fe.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.f79ea720.js";import"./scrollTo.29e5c0fe.js";import"./index.405564ab.js";import"./index.6b7c6906.js";import"./index.ac844111.js";import"./_baseIteratee.ca4916de.js";import"./index.be423f4b.js";import"./useRefs.c7d6606b.js";import"./download.8b305a5b.js";import"./index.0fbf50e1.js";import"./uniqBy.3a475547.js";import"./index.88228e57.js";const O={key:0,class:"flex items-center justify-center"},Q=Y({__name:"index",setup(r){const[e,{openDrawer:t}]=G(),[n,{reload:s}]=W({title:"\u7A3B\u867E\u6D41\u5411 - \u5217\u8868",api:o=>d(this,null,function*(){o.year&&(o.year=K(o.year).format("YYYY"));const{data:w,meta:m}=yield P(l({},o));return{items:w,total:m==null?void 0:m.total}}),rowKey:"id",columns:L,formConfig:{labelWidth:120,schemas:M},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 J(o.id),x.success("\u5220\u9664\u6210\u529F"),s()});return(o,w)=>{const m=j("a-button"),F=A("auth");return _(),v("div",null,[h(p(q),{onRegister:p(n)},{toolbar:f(()=>[I((_(),N(m,{type:"primary",onClick:c},{default:f(()=>[V(" \u65B0\u589E ")]),_:1})),[[F,"endpoint.rice_shrimp_flows.create"]])]),bodyCell:f(({column:D,record:y})=>[D.key==="action"?(_(),v("div",O,[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(H,{onRegister:p(e),onSuccess:u},null,8,["onRegister"])])}}});var zt=R(Q,[["__scopeId","data-v-e659ee0c"]]);export{zt as default};
|