89 lines
2.5 KiB
Vue
89 lines
2.5 KiB
Vue
<template>
|
||
|
||
<div class="table-main">
|
||
<el-table :data="tableData" height="335px" :header-cell-style="{ textAlign: 'center' } "
|
||
:cell-style="{ textAlign: 'center' }">
|
||
<el-table-column prop="chnNum" label="通道号" width="80">
|
||
<template #default="{row}">
|
||
{{ '通道' + row.chnNum }}
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column prop="standardValue" label="标准值(V)"/>
|
||
<el-table-column label="L1(V)">
|
||
<el-table-column prop="L1" width="75" label="被检值">
|
||
|
||
</el-table-column>
|
||
<el-table-column prop="L1_errValue" width="75" label="误差值">
|
||
|
||
</el-table-column>
|
||
</el-table-column>
|
||
<el-table-column label="L2(V)">
|
||
<el-table-column prop="L2" width="75" label="被检值">
|
||
|
||
</el-table-column>
|
||
<el-table-column prop="L2_errValue" width="75" label="误差值">
|
||
|
||
</el-table-column>
|
||
</el-table-column>
|
||
<el-table-column label="L3(V)">
|
||
<el-table-column prop="L3" width="75" label="被检值">
|
||
|
||
</el-table-column>
|
||
<el-table-column prop="L3_errValue" width="75" label="误差值">
|
||
|
||
</el-table-column>
|
||
</el-table-column>
|
||
<el-table-column prop="maxErrVaule" width="110" label="最大误差(V)">
|
||
|
||
</el-table-column>
|
||
<el-table-column prop="result" label="检测结果" width="100">
|
||
<template #default="scope">
|
||
<el-tag type="danger" v-if="scope.row.result === '不合格'">{{ scope.row.result }}</el-tag>
|
||
<span v-if="scope.row.result != '不合格'">{{ scope.row.result }}</span>
|
||
</template>
|
||
</el-table-column>
|
||
</el-table>
|
||
|
||
</div>
|
||
|
||
</template>
|
||
|
||
<script lang="tsx" setup>
|
||
import {defineProps, reactive} from 'vue';
|
||
import type {CheckResult} from "@/api/check/interface";
|
||
|
||
const {tableData}=defineProps<{
|
||
tableData:CheckResult[],
|
||
}>();
|
||
|
||
|
||
</script>
|
||
|
||
<style scoped>
|
||
|
||
.form-grid {
|
||
display: flex;
|
||
flex-direction: row; /* 横向排列 */
|
||
flex-wrap: wrap; /* 允许换行 */
|
||
}
|
||
.form-grid .el-form-item {
|
||
flex: 1 1 30%; /* 控件宽度 */
|
||
margin-right: 20px; /* 控件间距 */
|
||
}
|
||
.form-grid .el-form-item:last-child {
|
||
margin-right: 0; /* 最后一个控件不需要右边距 */
|
||
}
|
||
.dialog-footer {
|
||
display: flex;
|
||
justify-content: flex-start;
|
||
margin-bottom: 10px; /* 调整这里的值以增加或减少间距 */
|
||
}
|
||
.el-tabs {
|
||
margin-bottom: 20px; /* 添加底部边距 */
|
||
}
|
||
|
||
.el-table th, .el-table td {
|
||
text-align: center; /* 所有单元格文字居中 */
|
||
}
|
||
|
||
</style> |