<template>

    <div class="table-container">
        <el-table :data="tableData" max-height="300"  :header-cell-style="{ textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" style="width: 100%" >

                <el-table-column prop="id" label="序号" width="70" />
                <el-table-column prop="standardValue" label="标准值（V）" />

                <el-table-column label="L1（V）" >
                    <el-table-column prop="L1" label="被检值">

                    </el-table-column>
                    <el-table-column prop="L1_errValue" label="误差值">
                        
                    </el-table-column>
                </el-table-column>
                <el-table-column label="L2（V）" >
                    <el-table-column prop="L2" label="被检值">

                    </el-table-column>
                    <el-table-column prop="L2_errValue" label="误差值">
                        
                    </el-table-column>
                </el-table-column>
                <el-table-column label="L3（V）" >
                    <el-table-column prop="L3" label="被检值">

                    </el-table-column>
                    <el-table-column prop="L3_errValue" label="误差值">
                        
                    </el-table-column>
                </el-table-column>
                
                <el-table-column  prop="maxErrVaule" label="最大误差（V）">
                    
                </el-table-column>
                <el-table-column  prop="Result" label="检测结果">
                    <template #default="scope">
                    <el-tag :type="scope.row.Result === '合格' ? 'success' : 'danger'">{{ scope.row.Result }}</el-tag>
                  </template>
                </el-table-column>
               
        </el-table>
    </div>



</template>

<script lang="tsx" setup>
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 tableData = ref([
{
  id: '1',
  standardValue: 57.74, 
  L1:57.73,
  L1_errValue: 0.01, 
  L2:57.73,
  L2_errValue: 0.01, 
  L3:57.73,
  L3_errValue: 0.01, 
  maxErrVaule: 0.05774,
  Result: '合格', 
},

])

</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>