修改检测结果弹窗框
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
style="width: 100%;">
|
||||
<el-table-column type="index" label="序号" width="70" fixed="left"/>
|
||||
<el-table-column prop="time" label="数据时间"/>
|
||||
<template v-if="phaseFlag === 0">
|
||||
<template v-if="phaseT === 0">
|
||||
<el-table-column prop="dataA" :label="`A(${unit})`"/>
|
||||
<el-table-column prop="dataB" :label="`B(${unit})`"/>
|
||||
<el-table-column prop="dataC" :label="`C(${unit})`"/>
|
||||
</template>
|
||||
<template v-if="phaseFlag === 1">
|
||||
<template v-if="phaseT === 1">
|
||||
<el-table-column prop="dataT" :label="`T(${unit})`"/>
|
||||
</template>
|
||||
</el-table>
|
||||
@@ -31,7 +31,7 @@ const unit = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unit : '';
|
||||
})
|
||||
|
||||
const phaseFlag = computed(() => {
|
||||
const phaseT = computed(() => {
|
||||
let result = 0;
|
||||
if (tableData.length > 0) {
|
||||
result = !tableData[0].dataT ? 0 : 1;
|
||||
|
||||
Reference in New Issue
Block a user