lcny-vue3-antd-admin/dist/assets/index.e1dded4d.js

2 lines
3.6 KiB
JavaScript

var B=Object.defineProperty,D=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var g=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))T.call(t,e)&&g(o,e,t[e]);if(C)for(var e of C(t))E.call(t,e)&&g(o,e,t[e]);return o},v=(o,t)=>D(o,S(t));var d=(o,t,e)=>new Promise((n,a)=>{var c=i=>{try{s(e.next(i))}catch(r){a(r)}},u=i=>{try{s(e.throw(i))}catch(r){a(r)}},s=i=>i.done?n(i.value):Promise.resolve(i.value).then(c,u);s((e=e.apply(o,t)).next())});import{q as P,a as R,aC as Y,bP as j,o as _,h as w,p as h,y as f,w as A,j as I,z as N,k as m,l as V,cu as x,eS as U,cI as q,eT as z}from"./index.b56218e3.js";import{u as K,B as W}from"./useTable.04f0cb03.js";import{T as G}from"./useForm.f303dc30.js";import{u as H}from"./index.58543c13.js";import{P as J,c as L,s as M}from"./PriceDrawer.3e92d696.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=R({__name:"index",setup(o){const[t,{openDrawer:e}]=H(),[n,{reload:a}]=K({title:"\u7A3B\u867E\u4EF7\u683C - \u5217\u8868",api:r=>d(this,null,function*(){r.year&&(r.year=q(r.year).format("YYYY"));const{data:y,meta:p}=yield z(l({},r));return{items:y,total:p==null?void 0:p.total}}),rowKey:"id",columns:L,formConfig:{labelWidth:120,schemas:M},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),c=()=>{x.success("\u64CD\u4F5C\u6210\u529F"),a()},u=()=>{e(!0,{isUpdate:!1})},s=r=>{e(!0,v(l({},r),{isUpdate:!0}))},i=r=>d(this,null,function*(){yield U(r.id),x.success("\u5220\u9664\u6210\u529F"),a()});return(r,y)=>{const p=Y("a-button"),F=j("auth");return _(),w("div",null,[h(m(W),{onRegister:m(n)},{toolbar:f(()=>[A((_(),I(p,{type:"primary",onClick:u},{default:f(()=>[N(" \u65B0\u589E ")]),_:1})),[[F,"endpoint.rice_shrimp_prices.create"]])]),bodyCell:f(({column:k,record:b})=>[k.key==="action"?(_(),w("div",O,[h(m(G),{actions:[{label:"\u7F16\u8F91",onClick:s.bind(null,b),auth:"endpoint.rice_shrimp_prices.edit"},{label:"\u5220\u9664",auth:"endpoint.rice_shrimp_prices.destroy",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:i.bind(null,b)}}]},null,8,["actions"])])):V("",!0)]),_:1},8,["onRegister"]),h(J,{onRegister:m(t),onSuccess:c},null,8,["onRegister"])])}}});var Ge=P(Q,[["__scopeId","data-v-f7a9e10c"]]);export{Ge as default};