chore: update

This commit is contained in:
xiaoxian521
2024-01-29 13:32:11 +08:00
parent 907f8ffbef
commit 5027e26633
298 changed files with 280 additions and 280 deletions

1
dist/static/js/columns-zOMrX-w0.js vendored Normal file
View File

@@ -0,0 +1 @@
import{u as t,w as u}from"./xlsx-mTyBxUMi.js";import{a as i}from"./data-Us7bVcZo.js";import{r as m,a0 as b,A as f}from"./index-Jata_yG4.js";function w(){const s=m(b(i,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:s,exportExcel:()=>{const a=s.value.map(o=>{const p=[];return e.forEach(c=>{p.push(o[c.prop])}),p}),r=[];e.forEach(o=>{r.push(o.label)}),a.unshift(r);const l=t.aoa_to_sheet(a),n=t.book_new();t.book_append_sheet(n,l,"数据报表"),u(n,"pure-admin-table.xlsx"),f("导出成功",{type:"success"})}}}export{w as useColumns};