正式检测-预检测阶段错误码处理、频率、三项电压不平衡表头修改

This commit is contained in:
caozehui
2025-01-20 15:24:29 +08:00
parent 6f97c48226
commit c6ef54f7d3
4 changed files with 112 additions and 100 deletions

View File

@@ -12,7 +12,7 @@
<el-table-column prop="dataC" :label="'C相'+(unit==''?'':''+unit+'')"/>
</template>
<template v-if="phaseT === 1">
<el-table-column prop="dataT" :label="currentScriptTypeName+(unit==''?'':''+unit+'')"/>
<el-table-column prop="dataT" :label="tableHeader+(unit==''?'':''+unit+'')"/>
</template>
</el-table>
</div>
@@ -25,7 +25,7 @@ import { computed } from "vue";
import {useDownload} from "@/hooks/useDownload";
import {exportRawData} from "@/api/check/test"
const {tableData} = defineProps<{
const {tableData,currentScriptTypeName} = defineProps<{
tableData: CheckData.RawDataItem[]
currentScriptTypeName: string
}>()
@@ -38,6 +38,14 @@ const phaseT = computed(() => {
return tableData[0].dataT == '/' ? 0 : 1
})
const tableHeader = computed(() => {
if (phaseT.value === 1){
let index = currentScriptTypeName.indexOf('=');
return currentScriptTypeName.substring(0, index);
}
return currentScriptTypeName
})
const exportData = () => {
useDownload(exportRawData, '原始数据.xlsx', {}, false, '.xlsx')
}