2 lines
3.6 KiB
JavaScript
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,eR as U,cG as G,eS as J}from"./index.18dd6a55.js";import{u as K,B as W}from"./useTable.24cb9183.js";import{T as q}from"./useForm.fd42ca81.js";import{u as z}from"./index.0cc79679.js";import{P as H,c as L,s as M}from"./PriceDrawer.eb2200da.js";import"./index.68a405b5.js";import"./Checkbox.20433ddd.js";import"./index.0e297388.js";import"./index.67181b0b.js";import"./index.e0b435e4.js";import"./index.3950b610.js";import"./useSize.42c732c4.js";import"./eagerComputed.536d5da3.js";import"./onMountedOrActivated.c5ace8de.js";import"./useWindowSizeFn.b84f1217.js";import"./useContentViewHeight.11d3c07a.js";import"./ArrowLeftOutlined.4b489620.js";import"./transButton.0ab023b8.js";import"./index.eeb861b0.js";import"./index.eba48b6c.js";import"./index.1a56c111.js";import"./index.36a351ad.js";import"./dateUtil.8d2cf563.js";import"./_baseMerge.d5785cd7.js";import"./_isIterateeCall.882b433e.js";import"./_baseEach.f0ef2221.js";import"./get.278b3244.js";import"./index.03ffcf6d.js";import"./FullscreenOutlined.ea545dd6.js";import"./index.fff71b29.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.41090729.js";import"./index.95c5c1b3.js";import"./fromPairs.84aabb58.js";import"./CaretUpOutlined.f9651012.js";import"./scrollTo.bf68fc12.js";import"./index.992e662c.js";import"./index.372419bd.js";import"./index.690dbd65.js";import"./_baseIteratee.938280dc.js";import"./index.700d4d3e.js";import"./useRefs.76472546.js";import"./download.84663072.js";import"./index.85fbcf65.js";import"./uniqBy.a393ed7d.js";import"./index.f7a6e664.js";const O={key:0,class:"flex items-center justify-center"},Q=A({__name:"index",setup(o){const[t,{openDrawer:e}]=z(),[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: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=N("a-button"),F=P("auth");return _(),w("div",null,[h(m(W),{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",O,[h(m(q),{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(H,{onRegister:m(t),onSuccess:c},null,8,["onRegister"])])}}});var qe=R(Q,[["__scopeId","data-v-f7a9e10c"]]);export{qe as default};
|