Files
pqs-9100_client/frontend/src/views/home/components/compareDataCheckRawDataTable.vue

56 lines
2.4 KiB
Vue
Raw Normal View History

2025-08-08 13:18:01 +08:00
<template>
2025-08-26 15:16:18 +08:00
<div class="table-main">
2025-08-22 16:21:57 +08:00
<el-table
:data="prop.tableData"
stripe
border
:header-cell-style="{ textAlign: 'center' }"
:cell-style="{ textAlign: 'center' }"
2025-08-25 11:35:38 +08:00
height="368px"
2025-08-22 16:21:57 +08:00
style="width: 100%"
>
<el-table-column type="index" label="序号" width="70" fixed="left" />
2025-08-08 13:18:01 +08:00
2025-08-22 16:21:57 +08:00
<el-table-column prop="dataA" :label="'被检设备'">
<el-table-column prop="timeDev" label="数据时间" width="200" />
2025-08-26 15:16:18 +08:00
<el-table-column prop="uaDev" :label="'A相'" v-if="prop.tableData.length==0||prop.tableData[0]?.uaDev != null" />
<el-table-column prop="ubDev" :label="setB" v-if="prop.tableData.length==0||prop.tableData[0]?.ubDev != null" />
<el-table-column prop="ucDev" :label="'C相'" v-if="prop.tableData.length==0||prop.tableData[0]?.ucDev != null" />
2025-08-26 10:37:13 +08:00
<el-table-column prop="utDev" :label="'T相'" v-if="prop.tableData[0]?.utDev != null" />
2025-08-22 16:21:57 +08:00
</el-table-column>
<el-table-column prop="dataA" :label="'标准设备'">
<el-table-column prop="timeStdDev" label="数据时间" width="200" />
2025-08-26 15:16:18 +08:00
<el-table-column prop="uaStdDev" :label="'A相'" v-if="prop.tableData.length==0||prop.tableData[0]?.uaStdDev != null" />
<el-table-column prop="ubStdDev" :label="setB" v-if="prop.tableData.length==0||prop.tableData[0]?.ubStdDev != null" />
<el-table-column prop="ucStdDev" :label="'C相'" v-if="prop.tableData.length==0||prop.tableData[0]?.ucStdDev != null" />
2025-08-26 10:37:13 +08:00
<el-table-column prop="utStdDev" :label="'T相'" v-if="prop.tableData[0]?.utStdDev != null" />
2025-08-22 16:21:57 +08:00
</el-table-column>
</el-table>
</div>
2025-08-08 13:18:01 +08:00
</template>
<script lang="tsx" setup>
2025-08-26 10:37:13 +08:00
import { computed } from 'vue'
2025-08-22 16:21:57 +08:00
import { CheckData } from '@/api/check/interface'
2025-08-26 10:37:13 +08:00
2025-08-22 16:21:57 +08:00
const prop = defineProps({
tableData: {
type: Array as () => CheckData.TableRow[],
default: []
2025-08-26 10:37:13 +08:00
},
currentCheckItem: {
type: String,
default: ''
2025-08-22 16:21:57 +08:00
}
})
2025-08-26 10:37:13 +08:00
const setB = computed(() => {
return prop.currentCheckItem == '三相电流不平衡度'
? '三相电流不平衡度'
: prop.currentCheckItem == '三相电压不平衡度'
? '三相电压不平衡度'
: 'B相'
})
2025-08-08 13:18:01 +08:00
</script>
2025-08-22 16:21:57 +08:00
<style scoped></style>