正式检测-预检测阶段错误码处理、频率、三项电压不平衡表头修改
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user