chore: update

This commit is contained in:
xiaoxian521
2024-03-22 15:43:03 +08:00
parent 712aca8ba1
commit 6764da7991
366 changed files with 493 additions and 493 deletions

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

@@ -0,0 +1 @@
import{u as t,w as u}from"./xlsx-xf2utV5S.js";import{a as i}from"./data-Cg8v3otX.js";import{r as m,a9 as b,J as f}from"./index-DftJury9.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};