lcny-vue3-antd-admin/dist/assets/index.2a492fb4.js

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.edc0759d.js";import{u as W,B as q}from"./useTable.0c2c6d52.js";import{T as z}from"./useForm.7f0ae6dc.js";import{u as H}from"./index.a0f5fb0c.js";import{F as L,c as M,s as O}from"./FlowsDrawer.344493c2.js";import"./index.259be51b.js";import"./Checkbox.21426845.js";import"./index.d81cdb5e.js";import"./index.14c1dc69.js";import"./index.18485147.js";import"./index.06eb6349.js";import"./useSize.1a6ae380.js";import"./eagerComputed.5106fd59.js";import"./onMountedOrActivated.45dfe467.js";import"./useWindowSizeFn.8be10011.js";import"./useContentViewHeight.0b992366.js";import"./ArrowLeftOutlined.727536a9.js";import"./transButton.0f38a3d6.js";import"./index.adbf4a0d.js";import"./index.debcb6b3.js";import"./index.111c4059.js";import"./index.ad97f9f1.js";import"./dateUtil.9d098b41.js";import"./_baseMerge.1131d091.js";import"./_isIterateeCall.31ed91a4.js";import"./_baseEach.8bca3c51.js";import"./get.9ede912b.js";import"./index.2b67a644.js";import"./FullscreenOutlined.219f2fe1.js";import"./index.abbd0c37.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.8d3634d3.js";import"./index.18f69ddd.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.9c736fd9.js";import"./scrollTo.477b98df.js";import"./index.ac2947d4.js";import"./index.231a60da.js";import"./index.a048a7b7.js";import"./_baseIteratee.4b889e9a.js";import"./index.d03a2449.js";import"./useRefs.9a2b8e46.js";import"./download.8be5a7d1.js";import"./index.935fa161.js";import"./uniqBy.004e8f3d.js";import"./index.0b95b2ab.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};