lcny-vue3-antd-admin/dist/assets/index.cbb8d710.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.4c322715.js";import{u as K,B as Q}from"./useTable.f44f0a90.js";import{T as W}from"./useForm.4e8a2777.js";import{u as q}from"./index.ecf9ef1b.js";import{P as z,c as H,s as L}from"./PriceDrawer.36818147.js";import"./index.3f44adf3.js";import"./Checkbox.7c2bf332.js";import"./index.caf0fb82.js";import"./index.50fa8b01.js";import"./index.78713b21.js";import"./index.a07280c3.js";import"./useSize.8594f04c.js";import"./eagerComputed.59208401.js";import"./onMountedOrActivated.df5dfde3.js";import"./useWindowSizeFn.485f7a2c.js";import"./useContentViewHeight.26384ef1.js";import"./ArrowLeftOutlined.375c84ed.js";import"./transButton.4f423a5c.js";import"./index.868c5186.js";import"./index.936d84e7.js";import"./index.d7bdbb30.js";import"./index.f09d81f0.js";import"./dateUtil.885498bd.js";import"./_baseMerge.8025dd87.js";import"./_isIterateeCall.54c222a4.js";import"./_baseEach.82c26c52.js";import"./get.dd9ca609.js";import"./index.473488dc.js";import"./FullscreenOutlined.abe4e3bc.js";import"./index.ab45e30f.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.90152b7a.js";import"./index.6dff22c5.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.b39c6822.js";import"./scrollTo.fb4ed6df.js";import"./index.f9e9effd.js";import"./index.b07992ee.js";import"./index.c0799d9b.js";import"./_baseIteratee.41f6738e.js";import"./index.4b1b3803.js";import"./useRefs.cd3feee7.js";import"./download.395d344e.js";import"./index.f194ddfb.js";import"./uniqBy.e7749ed9.js";import"./index.d6d0063a.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};