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.87f5651e.js";import{u as W,B as q}from"./useTable.2cb6ac87.js";import{T as z}from"./useForm.7fe08fd8.js";import{u as G}from"./index.e094d3e1.js";import{F as H,c as L,s as M}from"./FlowsDrawer.a1173bbd.js";import"./index.d1fa0ed9.js";import"./Checkbox.3db0370e.js";import"./index.418ac987.js";import"./index.c4455f20.js";import"./index.cda5cd2a.js";import"./index.186f4f46.js";import"./useSize.27783b73.js";import"./eagerComputed.23f39912.js";import"./onMountedOrActivated.372c426a.js";import"./useWindowSizeFn.48468f6a.js";import"./useContentViewHeight.5c144a40.js";import"./ArrowLeftOutlined.71a4d039.js";import"./transButton.0d32b98f.js";import"./index.f31826ee.js";import"./index.0a0c69f8.js";import"./index.5d144744.js";import"./index.b411c6d7.js";import"./dateUtil.ef4a3ad9.js";import"./_baseMerge.28530b27.js";import"./_isIterateeCall.43d4569c.js";import"./_baseEach.b2f5642f.js";import"./get.9e0b8096.js";import"./index.9fcd679b.js";import"./FullscreenOutlined.6a34b648.js";import"./index.10a33c8f.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.027a657a.js";import"./index.913a00d3.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.b0d29e58.js";import"./scrollTo.c0822575.js";import"./index.eaab66d0.js";import"./index.c7dc64ac.js";import"./index.7b1b22ab.js";import"./_baseIteratee.4ac43bc7.js";import"./index.a50afb96.js";import"./useRefs.78cd22ff.js";import"./download.9ba3c179.js";import"./index.d6e1c0f1.js";import"./uniqBy.85b44fbc.js";import"./index.aa0dba54.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};
|