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

2 lines
2.9 KiB
JavaScript

var k=Object.defineProperty,B=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var w=(r,t,e)=>t in r?k(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,d=(r,t)=>{for(var e in t||(t={}))S.call(t,e)&&w(r,e,t[e]);if(y)for(var e of y(t))T.call(t,e)&&w(r,e,t[e]);return r},C=(r,t)=>B(r,D(t));var _=(r,t,e)=>new Promise((c,s)=>{var l=a=>{try{i(e.next(a))}catch(o){s(o)}},p=a=>{try{i(e.throw(a))}catch(o){s(o)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(l,p);i((e=e.apply(r,t)).next())});import{_ as E,d as R,P as Y,o as g,f as x,m as u,s as f,x as j,j as m,k as A,cH as I,c3 as N,cI as V}from"./index.7edff3d4.js";import{u as U,B as H}from"./useTable.54a0c13f.js";import{T as K}from"./BasicForm.f3ddea20.js";import{message as F}from"ant-design-vue";import{u as P}from"./index.6f4fd84e.js";import{F as W,c as q,s as z}from"./FlowsDrawer.94858d93.js";import"./useForm.14e649c6.js";import"./index.d3ca6c22.js";import"./useWindowSizeFn.5b39c074.js";import"./useContentViewHeight.bd75f644.js";import"./CheckOutlined.959375ac.js";import"./index.576de5e6.js";import"./FullscreenOutlined.45dbeaf4.js";import"./isEqual.f69d6b4d.js";import"./_baseIsEqual.18770f6c.js";import"./dateUtil.1fb2b991.js";import"./_baseMerge.723e60ed.js";import"./_baseFor.71af5063.js";import"./get.1c54c7bf.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.7b6e1cea.js";import"./index.8082226b.js";import"./download.97445c1d.js";import"./index.9774b81e.js";import"./uniqBy.6353df97.js";import"./_baseIteratee.0e588a6c.js";const G={key:0,class:"flex items-center justify-center"},J=R({__name:"index",setup(r){const[t,{openDrawer:e}]=P(),[c,{reload:s}]=U({title:"\u7A3B\u867E\u6D41\u5411 - \u5217\u8868",api:o=>_(this,null,function*(){o.year&&(o.year=N(o.year).format("YYYY"));const{data:h,meta:n}=yield V(d({},o));return{items:h,total:n==null?void 0:n.total}}),rowKey:"id",columns:q,formConfig:{labelWidth:120,schemas:z},useSearchForm:!0,showTableSetting:!0,bordered:!0,showIndexColumn:!0}),l=()=>{F.success("\u64CD\u4F5C\u6210\u529F"),s()},p=()=>{e(!0,{isUpdate:!1})},i=o=>{e(!0,C(d({},o),{isUpdate:!0}))},a=o=>_(this,null,function*(){yield I(o.id),F.success("\u5220\u9664\u6210\u529F"),s()});return(o,h)=>{const n=Y("a-button");return g(),x("div",null,[u(m(H),{onRegister:m(c)},{toolbar:f(()=>[u(n,{type:"primary",onClick:p},{default:f(()=>[j(" \u65B0\u589E ")]),_:1})]),bodyCell:f(({column:v,record:b})=>[v.key==="action"?(g(),x("div",G,[u(m(K),{actions:[{label:"\u7F16\u8F91",onClick:i.bind(null,b)},{label:"\u5220\u9664",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",placement:"topRight",confirm:a.bind(null,b)}}]},null,8,["actions"])])):A("",!0)]),_:1},8,["onRegister"]),u(W,{onRegister:m(t),onSuccess:l},null,8,["onRegister"])])}}});var Ce=E(J,[["__scopeId","data-v-28812b24"]]);export{Ce as default};