lcny-vue3-antd-admin/dist/assets/index.0e1e78b5.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{q as R,a as Y,aC as j,bP as A,o as _,h as v,p as h,y as f,w as I,j as N,z as V,k as p,l as U,cu as F,f3 as q,cI as z,f4 as K}from"./index.b56218e3.js";import{u as P,B as W}from"./useTable.04f0cb03.js";import{T as G}from"./useForm.f303dc30.js";import{u as H}from"./index.58543c13.js";import{F as J,c as L,s as M}from"./FlowsDrawer.867f85ed.js";import"./index.f7854fa1.js";import"./Checkbox.43bd7deb.js";import"./index.0fbd073a.js";import"./index.184a4e5f.js";import"./index.a16f936c.js";import"./index.66e48ba2.js";import"./useSize.28a0d6e1.js";import"./eagerComputed.635e64cb.js";import"./onMountedOrActivated.0c0da89f.js";import"./useWindowSizeFn.f9d5ec9c.js";import"./useContentViewHeight.889f30a5.js";import"./ArrowLeftOutlined.beca8456.js";import"./transButton.405e50c4.js";import"./index.99b8df6b.js";import"./index.04f94c35.js";import"./index.8de1bb37.js";import"./index.12b269e9.js";import"./dateUtil.9fb6b0e3.js";import"./_baseMerge.0bfa0606.js";import"./_isIterateeCall.1e6ed12b.js";import"./_baseEach.7dd737b2.js";import"./get.38aee530.js";import"./index.9755e7ea.js";import"./FullscreenOutlined.df04a8af.js";import"./index.1d137040.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.771d23fd.js";import"./index.ee596b95.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.95a93c7c.js";import"./scrollTo.94a35d9d.js";import"./index.f3cd09dd.js";import"./index.120725a3.js";import"./index.8f641cc1.js";import"./_baseIteratee.5bc6cd3b.js";import"./index.3bc5adfa.js";import"./useRefs.f74cd62f.js";import"./download.3f7475a2.js";import"./index.4d910db3.js";import"./uniqBy.27125bbb.js";import"./index.cd3cda07.js";const O={key:0,class:"flex items-center justify-center"},Q=Y({__name:"index",setup(r){const[e,{openDrawer:t}]=H(),[n,{reload:s}]=P({title:"\u7A3B\u867E\u6D41\u5411 - \u5217\u8868",api:o=>d(this,null,function*(){o.year&&(o.year=z(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:L,formConfig:{labelWidth:120,schemas:M},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),u=()=>{F.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 q(o.id),F.success("\u5220\u9664\u6210\u529F"),s()});return(o,w)=>{const m=j("a-button"),x=A("auth");return _(),v("div",null,[h(p(W),{onRegister:p(n)},{toolbar:f(()=>[I((_(),N(m,{type:"primary",onClick:c},{default:f(()=>[V(" \u65B0\u589E ")]),_:1})),[[x,"endpoint.rice_shrimp_flows.create"]])]),bodyCell:f(({column:D,record:y})=>[D.key==="action"?(_(),v("div",O,[h(p(G),{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(J,{onRegister:p(e),onSuccess:u},null,8,["onRegister"])])}}});var Gt=R(Q,[["__scopeId","data-v-e659ee0c"]]);export{Gt as default};