谐波次数、弹窗位置

This commit is contained in:
caozehui
2025-01-13 13:57:24 +08:00
parent 4bb4eb80d9
commit 17fe29cb1b
7 changed files with 44 additions and 31 deletions

View File

@@ -1,8 +1,8 @@
<template>
<!-- <el-button type="primary" @click="exportData" style="margin-bottom: 10px">导出</el-button>-->
<div class="table-main">
<el-table v-if="tableData.length > 0" :data="tableData" stripe border :header-cell-style="{ textAlign: 'center' } "
:cell-style="{ textAlign: 'center' }" height="335px"
:cell-style="{ textAlign: 'center' }" height="300px"
style="width: 100%;">
<el-table-column type="index" label="序号" width="70" fixed="left"/>
<el-table-column prop="time" label="数据时间"/>
@@ -20,8 +20,9 @@
</template>
<script lang="tsx" setup>
import {CheckData} from "@/api/check/interface";
import {useDownload} from "@/hooks/useDownload";
import {exportRawData} from "@/api/check/test"
const {tableData} = defineProps<{
tableData: CheckData.RawDataItem[]
@@ -35,7 +36,9 @@ const phaseT = computed(() => {
return tableData[0].dataT == '/' ? 0 : 1
})
const exportData = () => {
useDownload(exportRawData, '原始数据.xlsx', {}, false, '.xlsx')
}
</script>
<style scoped>