微调
This commit is contained in:
@@ -16,10 +16,10 @@
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
最大误差:{{scope.row.maxError}} {{unit}}<br/>
|
||||
误差值:{{scope.row.aError}} {{unit}}
|
||||
最大误差:{{ maxErrorView }}<br/>
|
||||
误差值:{{ scope.row.aError }} {{ unit }}
|
||||
</template>
|
||||
<span v-if="scope.row.isDataA === 1">符合</span>
|
||||
<el-tag type="success" v-if="scope.row.isDataA === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataA === 2">不符合</el-tag>
|
||||
<span v-if="scope.row.isDataA === 4">/</span>
|
||||
</el-tooltip>
|
||||
@@ -40,10 +40,10 @@
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
最大误差:{{scope.row.maxError}} {{unit}}<br/>
|
||||
误差值:{{scope.row.bError}} {{unit}}
|
||||
最大误差:{{ maxErrorView }}<br/>
|
||||
误差值:{{ scope.row.bError }} {{ unit }}
|
||||
</template>
|
||||
<span v-if="scope.row.isDataB === 1">符合</span>
|
||||
<el-tag type="success" v-if="scope.row.isDataB === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataB === 2">不符合</el-tag>
|
||||
<span v-if="scope.row.isDataB === 4">/</span>
|
||||
</el-tooltip>
|
||||
@@ -64,10 +64,10 @@
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
最大误差:{{scope.row.maxError}} {{unit}}<br/>
|
||||
误差值:{{scope.row.cError}} {{unit}}
|
||||
最大误差: {{ maxErrorView }}<br/>
|
||||
误差值:{{ scope.row.cError }} {{ unit }}
|
||||
</template>
|
||||
<span v-if="scope.row.isDataC === 1">符合</span>
|
||||
<el-tag type="success" v-if="scope.row.isDataC === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataC === 2">不符合</el-tag>
|
||||
<span v-if="scope.row.isDataC === 4">/</span>
|
||||
</el-tooltip>
|
||||
@@ -100,10 +100,10 @@
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
最大误差:{{scope.row.maxError}} {{unit}}<br/>
|
||||
误差值:{{scope.row.tError}} {{unit}}
|
||||
最大误差:{{ scope.row.maxError }} {{ unit }}<br/>
|
||||
误差值:{{ scope.row.tError }} {{ unit }}
|
||||
</template>
|
||||
<span v-if="scope.row.isDataT === 1">符合</span>
|
||||
<el-tag type="success" v-if="scope.row.isDataT === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataT === 2">不符合</el-tag>
|
||||
<span v-if="scope.row.isDataT === 4">/</span>
|
||||
</el-tooltip>
|
||||
@@ -146,6 +146,17 @@ const phaseT = computed(() => {
|
||||
return result;
|
||||
})
|
||||
|
||||
const maxErrorView = computed((data) => {
|
||||
let result = '';
|
||||
if (tableData.length > 0) {
|
||||
result = tableData[0].maxError ? tableData[0].maxError : '';
|
||||
}
|
||||
let idx = result.indexOf('~');
|
||||
if (idx > 0) {
|
||||
result = result.substring(0, idx) + unit.value + result.substring(idx, result.length) + unit.value;
|
||||
}
|
||||
return result;
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user