wip:
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-10 00:11:14 +08:00
parent 99c0541e4f
commit 1c95c1097c

View File

@@ -98,6 +98,7 @@
</n-col>
</n-row>
<n-data-table
ref="dataTableRef"
class="mt-5"
:loading="loading"
:columns="columns"
@@ -325,8 +326,13 @@ const pagination = ref({
onMounted(() => {
getList()
})
const dataTableRef = ref(null)
const exportTable = () => {
// console.log(dataTableRef.value)
// dataTableRef.value?.downloadCsv({
// fileName: new Date().getTime() + '.csv',
// keepOriginalData: false,
// })
// 将数据转换为工作簿
const worksheet = XLSX.utils.json_to_sheet(data.value)
const workbook = XLSX.utils.book_new()