2024-11-18 22:04:59 +08:00
|
|
|
|
<template>
|
2024-12-05 15:22:46 +08:00
|
|
|
|
<div class="table-container table-main">
|
2024-12-18 15:49:29 +08:00
|
|
|
|
<el-table :data="tableData"
|
|
|
|
|
|
:header-cell-style="{ textAlign: 'center' } "
|
|
|
|
|
|
:cell-style="{ textAlign: 'center' }"
|
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
max-height="400px">
|
|
|
|
|
|
<el-table-column type="expand">
|
|
|
|
|
|
<template #default="props">
|
|
|
|
|
|
<div style="display: flex">
|
|
|
|
|
|
<p >大电压A相:57.74V,</p>
|
|
|
|
|
|
<p >大电压B相:57.74V,</p>
|
|
|
|
|
|
<p >大电压C相:57.74V,</p>
|
|
|
|
|
|
<p >大电流A相:1A,</p>
|
|
|
|
|
|
<p >大电流B相:1A,</p>
|
|
|
|
|
|
<p >大电流C相:1A</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div style="display: flex">
|
|
|
|
|
|
<p >小电压A相:57.74V,</p>
|
|
|
|
|
|
<p >小电压B相:57.74V,</p>
|
|
|
|
|
|
<p >小电压C相:57.74V,</p>
|
|
|
|
|
|
<p >小电流A相:1A,</p>
|
|
|
|
|
|
<p >小电流B相:1A,</p>
|
|
|
|
|
|
<p >小电流C相:1A</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column prop="MonitorIdx" label="监测点序号"/>
|
|
|
|
|
|
<!-- <el-table-column prop="updateTime" label="上送时刻" width="180"/> -->
|
2024-12-05 15:22:46 +08:00
|
|
|
|
<!-- <el-table-column prop="deviceName" label="设备名称" /> -->
|
2024-12-18 15:49:29 +08:00
|
|
|
|
|
2024-11-18 22:04:59 +08:00
|
|
|
|
<el-table-column label="电压通道" >
|
|
|
|
|
|
<el-table-column prop="Ua" label="L1">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column prop="Ub" label="L2">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column prop="Uc" label="L3">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="电流通道" >
|
|
|
|
|
|
<el-table-column prop="Ia" label="L1">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column prop="Ib" label="L2">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column prop="Ic" label="L3">
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table-column>
|
2024-11-21 23:02:43 +08:00
|
|
|
|
<el-table-column label="校准结果">
|
|
|
|
|
|
<template #default="scope">
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<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>
|
2024-11-18 22:04:59 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup name="ErrorSystemDialog">
|
|
|
|
|
|
import{ElMessage, FormInstance,FormItemRule}from'element-plus'
|
|
|
|
|
|
import { defineProps, defineEmits, reactive,watch,ref, Ref } from 'vue';
|
|
|
|
|
|
import { dialogBig,dialogMiddle} from '@/utils/elementBind'
|
|
|
|
|
|
//import IndicatorTypeDialog from "@/views/machine/errorSystem/components/IndicatorTypeDialog.vue"; // 导入子组件
|
|
|
|
|
|
import {CirclePlus, Delete, EditPen,FolderOpened,CopyDocument} from '@element-plus/icons-vue'
|
|
|
|
|
|
import { useDictStore } from '@/stores/modules/dict'
|
|
|
|
|
|
const dictStore = useDictStore()
|
|
|
|
|
|
const props = defineProps<{
|
2024-11-25 21:11:10 +08:00
|
|
|
|
tableData: {
|
|
|
|
|
|
id: string;
|
|
|
|
|
|
updateTime: string;
|
|
|
|
|
|
deviceName:string;
|
|
|
|
|
|
MonitorIdx:number;
|
|
|
|
|
|
Ua:number;
|
|
|
|
|
|
Ub:number;
|
|
|
|
|
|
Uc:number;
|
|
|
|
|
|
Ia:number;
|
|
|
|
|
|
Ib:number;
|
|
|
|
|
|
Ic:number;
|
|
|
|
|
|
Result: string;
|
2024-11-18 22:04:59 +08:00
|
|
|
|
};
|
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
// const tableData = ref([
|
|
|
|
|
|
// {
|
|
|
|
|
|
// id: '1',
|
|
|
|
|
|
// updateTime: '2024-10-10 10:30:00',
|
|
|
|
|
|
// deviceName:'被检设备1',
|
|
|
|
|
|
// MonitorIdx: 1,
|
|
|
|
|
|
// Ua:1.0003,
|
|
|
|
|
|
// Ub:1.0003,
|
|
|
|
|
|
// Uc:0.0096,
|
|
|
|
|
|
// Ia:1.0003,
|
|
|
|
|
|
// Ib:1.0003,
|
|
|
|
|
|
// Ic:1.0008,
|
|
|
|
|
|
// Result: '合格',
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// id: '2',
|
|
|
|
|
|
// updateTime: '2024-10-10 10:30:00',
|
|
|
|
|
|
// deviceName:'被检设备1',
|
|
|
|
|
|
// MonitorIdx: 2,
|
|
|
|
|
|
// Ua:1.0003,
|
|
|
|
|
|
// Ub:1.0003,
|
|
|
|
|
|
// Uc:0.0096,
|
|
|
|
|
|
// Ia:1.0003,
|
|
|
|
|
|
// Ib:1.0003,
|
|
|
|
|
|
// Ic:1.0008,
|
|
|
|
|
|
// Result: '合格',
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// id: '3',
|
|
|
|
|
|
// updateTime: '2024-10-10 10:30:00',
|
|
|
|
|
|
// deviceName:'被检设备1',
|
|
|
|
|
|
// MonitorIdx: 3,
|
|
|
|
|
|
// Ua:1.0003,
|
|
|
|
|
|
// Ub:1.0003,
|
|
|
|
|
|
// Uc:0.0096,
|
|
|
|
|
|
// Ia:1.0003,
|
|
|
|
|
|
// Ib:1.0003,
|
|
|
|
|
|
// Ic:1.0008,
|
|
|
|
|
|
// Result: '合格',
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// id: '4',
|
|
|
|
|
|
// updateTime: '2024-10-10 10:30:00',
|
|
|
|
|
|
// deviceName:'被检设备1',
|
|
|
|
|
|
// MonitorIdx: 4,
|
|
|
|
|
|
// Ua:1.0003,
|
|
|
|
|
|
// Ub:1.0003,
|
|
|
|
|
|
// Uc:0.0096,
|
|
|
|
|
|
// Ia:1.0003,
|
|
|
|
|
|
// Ib:1.0003,
|
|
|
|
|
|
// Ic:1.0008,
|
|
|
|
|
|
// Result: '合格',
|
|
|
|
|
|
// },
|
|
|
|
|
|
// ])
|
2024-11-18 22:04:59 +08:00
|
|
|
|
|
|
|
|
|
|
</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; /* 所有单元格文字居中 */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.table-container {
|
|
|
|
|
|
max-height: 400px; /* 根据需要调整高度 */
|
|
|
|
|
|
overflow-y: auto; /* 允许垂直滚动 */
|
|
|
|
|
|
overflow-x: hidden; /* 隐藏水平滚动条 */
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|