lcny-vue3-antd-admin/dist/assets/index.fe8cacf8.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{J as R,a as A,aA as N,bN as P,o as _,h as w,p as h,x as f,w as Y,j,y as V,k as m,l as I,cs as x,eQ as U,cG as G,eR as J}from"./index.1c21b270.js";import{u as K,B as Q}from"./useTable.d0ac0332.js";import{T as W}from"./useForm.9a2db385.js";import{u as q}from"./index.6ea1205a.js";import{P as z,c as H,s as L}from"./PriceDrawer.111b736b.js";import"./index.f5ef0af4.js";import"./Checkbox.0afca320.js";import"./index.16addc92.js";import"./index.4735147a.js";import"./index.89bfd8ba.js";import"./index.8b6a9e70.js";import"./useSize.95cc89e0.js";import"./eagerComputed.c03251a9.js";import"./onMountedOrActivated.b0089aeb.js";import"./useWindowSizeFn.80f08068.js";import"./useContentViewHeight.3d0df870.js";import"./ArrowLeftOutlined.f21977ee.js";import"./transButton.6fc250a9.js";import"./index.268803ef.js";import"./index.e52ad4c8.js";import"./index.8d0922ec.js";import"./index.2a2b440f.js";import"./dateUtil.768de925.js";import"./_baseMerge.09dc1719.js";import"./_isIterateeCall.18176193.js";import"./_baseEach.8a908f77.js";import"./get.fa76943e.js";import"./index.3bc5264b.js";import"./FullscreenOutlined.7e34998a.js";import"./index.d594c2b7.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.fef05e74.js";import"./index.5e63b934.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.4691f200.js";import"./scrollTo.2c0d38e2.js";import"./index.7c1cd7ce.js";import"./index.2fe7d0b4.js";import"./index.8f5b8d5a.js";import"./_baseIteratee.a0856a2e.js";import"./index.41d92815.js";import"./useRefs.1e9f4fa6.js";import"./download.9fc2b25a.js";import"./index.e1c46204.js";import"./uniqBy.92d19b6e.js";import"./index.0f641caa.js";const M={key:0,class:"flex items-center justify-center"},O=A({__name:"index",setup(o){const[t,{openDrawer:e}]=q(),[n,{reload:a}]=K({title:"\u7A3B\u867E\u4EF7\u683C - \u5217\u8868",api:r=>d(this,null,function*(){r.year&&(r.year=G(r.year).format("YYYY"));const{data:y,meta:p}=yield J(l({},r));return{items:y,total:p==null?void 0:p.total}}),rowKey:"id",columns:H,formConfig:{labelWidth:120,schemas:L},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=N("a-button"),F=P("auth");return _(),w("div",null,[h(m(Q),{onRegister:m(n)},{toolbar:f(()=>[Y((_(),j(p,{type:"primary",onClick:u},{default:f(()=>[V(" \u65B0\u589E ")]),_:1})),[[F,"endpoint.rice_shrimp_prices.create"]])]),bodyCell:f(({column:k,record:b})=>[k.key==="action"?(_(),w("div",M,[h(m(W),{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"])])):I("",!0)]),_:1},8,["onRegister"]),h(z,{onRegister:m(t),onSuccess:c},null,8,["onRegister"])])}}});var We=R(O,[["__scopeId","data-v-f7a9e10c"]]);export{We as default};