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

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

@@ -63,7 +63,7 @@
</template>
<template v-if="phaseT === 1">
<el-table-column :label="currentScriptTypeName">
<el-table-column :label="tableHeader">
<el-table-column prop="stdT" :label="'标准值'+(unit==''?'':''+unit+'')"/>
<el-table-column prop="dataT" :label="'被检值'+(unit==''?'':''+unit+'')"/>
<el-table-column prop="isDataT" label="检测结果">
@@ -99,7 +99,7 @@
import {defineProps} from 'vue';
import {CheckData} from "@/api/check/interface";
const {tableData} = defineProps<{
const {tableData, currentScriptTypeName} = defineProps<{
tableData: CheckData.CheckResult[],
currentScriptTypeName: string
}>();
@@ -113,6 +113,14 @@ const phaseT = computed(() => {
return tableData[0].dataT == null || tableData[0].dataT == undefined ? 0 : 1
})
const tableHeader = computed(() => {
if (phaseT.value === 1){
let index = currentScriptTypeName.indexOf('=');
return currentScriptTypeName.substring(0, index);
}
return currentScriptTypeName
})
// const maxErrorStr = computed((data) => {
// let result = tableData[0].maxError ?? '/'
// let idx = result.indexOf('~');