lcny-vue3-antd-admin/dist/assets/index.6ce8d4f5.js

2 lines
3.4 KiB
JavaScript

var S=Object.defineProperty,E=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var D=(e,a,t)=>a in e?S(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,h=(e,a)=>{for(var t in a||(a={}))A.call(a,t)&&D(e,t,a[t]);if(C)for(var t of C(a))P.call(a,t)&&D(e,t,a[t]);return e},y=(e,a)=>E(e,$(a));var _=(e,a,t)=>new Promise((p,i)=>{var d=r=>{try{s(t.next(r))}catch(o){i(o)}},c=r=>{try{s(t.throw(r))}catch(o){i(o)}},s=r=>r.done?p(r.value):Promise.resolve(r.value).then(d,c);s((t=t.apply(e,a)).next())});import{P as x}from"./index.f0d83218.js";import{Card as f,message as T}from"ant-design-vue";import I from"./CountItem.cd749357.js";import{_ as R,c as G}from"./DeviceDrawer.21fa67f0.js";import{g as N}from"./other.a0e0a1bb.js";import{_ as V,d as W,r as U,D as j,P as n,o as g,i as B,s as m,m as u,f as F,F as q,S as L,h as M,k as z,bp as H,bq as J}from"./index.600742c0.js";import{B as K,u as O}from"./useTable.878d00ad.js";import{T as Q}from"./BasicForm.6fc27d7c.js";import{u as X}from"./index.d39e7f57.js";import"./useWindowSizeFn.e4cb8bac.js";import"./useContentViewHeight.9a5e8928.js";import"./useForm.2bc9cac7.js";import"./CheckOutlined.bb129b54.js";import"./index.fd8050d2.js";import"./FullscreenOutlined.0627cb06.js";import"./isEqual.8095f8fc.js";import"./_baseIsEqual.68b80f32.js";import"./dateUtil.dcd6267e.js";import"./_baseMerge.c9f65aec.js";import"./_baseFor.fb668a36.js";import"./get.10d89888.js";import"./sortable.esm.2632adaa.js";import"./RedoOutlined.7b913ccb.js";import"./index.f3a03a89.js";import"./download.51f45248.js";import"./index.8ec96e3a.js";import"./uniqBy.77d944c4.js";import"./_baseIteratee.c5e7a887.js";const Y=W({components:{[f.name]:f,[f.Grid.name]:f.Grid,CountItem:I,PageWrapper:x,BasicTable:K,TableAction:Q,DeviceDrawer:R},setup(){const e=U([]),[a,{openDrawer:t}]=X(),[p,{reload:i}]=O({api:()=>_(this,null,function*(){const{data:o,meta:l}=yield J({type:2});return{items:o,total:l==null?void 0:l.total}}),columns:G,useSearchForm:!1,showTableSetting:!1,bordered:!0,showIndexColumn:!1}),d=()=>{t(!0,{isUpdate:!1})},c=o=>{t(!0,y(h({},o),{isUpdate:!0}))},s=o=>_(this,null,function*(){yield H(o.id),T.success("\u5220\u9664\u6210\u529F"),i()}),r=()=>{T.success("\u64CD\u4F5C\u6210\u529F"),i()};return j(()=>_(this,null,function*(){let o=yield N();e.value=o})),{CityDate:e,registerTable:p,handleCreate:d,handleEdit:c,handleDelete:s,registerDrawer:a,handleSuccess:r}}}),Z={class:"mt-20px"},ee={key:0,class:"flex items-center justify-center"};function te(e,a,t,p,i,d){const c=n("CountItem"),s=n("a-card-grid"),r=n("a-card"),o=n("TableAction"),l=n("BasicTable"),k=n("DeviceDrawer"),v=n("PageWrapper");return g(),B(v,null,{default:m(()=>[u(r,{title:"\u5168\u5E02\u6570\u636E\u7EDF\u8BA1"},{default:m(()=>[(g(!0),F(q,null,L(e.CityDate,(b,w)=>(g(),B(s,{class:"!md:w-1/3 !xl:w-1/7 !w-full",key:w},{default:m(()=>[u(c,{data:b},null,8,["data"])]),_:2},1024))),128))]),_:1}),M("div",Z,[u(l,{onRegister:e.registerTable},{toolbar:m(()=>[]),bodyCell:m(({column:b,record:w})=>[b.key==="action"?(g(),F("div",ee,[u(o,{actions:[{label:"\u7F16\u8F91",onClick:e.handleEdit.bind(null,w)}]},null,8,["actions"])])):z("",!0)]),_:1},8,["onRegister"])]),u(k,{onRegister:e.registerDrawer,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}var Ae=V(Y,[["render",te]]);export{Ae as default};