正式检测页面修改

This commit is contained in:
caozehui
2024-12-18 15:56:59 +08:00
parent 4cfca89895
commit 2715871017
5 changed files with 660 additions and 367 deletions

View File

@@ -1,80 +1,60 @@
<template>
<div class="table-container table-main">
<el-table :data="tableData" height="335px" :header-cell-style="{ textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" >
<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="70"/>
<el-table-column prop="standardValue" label="标准值V"/>
<el-table-column label="L1V">
<el-table-column prop="L1" width="80" label="被检值">
<el-table-column prop="id" label="序号" width="70" />
<el-table-column prop="standardValue" label="标准值V" />
</el-table-column>
<el-table-column prop="L1_errValue" width="80" label="误差值">
<el-table-column label="L1V" >
<el-table-column prop="L1" width="70" label="被检值">
</el-table-column>
</el-table-column>
<el-table-column label="L2V">
<el-table-column prop="L2" width="80" label="被检值">
</el-table-column>
<el-table-column prop="L1_errValue" width="70" label="误差值">
</el-table-column>
</el-table-column>
<el-table-column label="L2V" >
<el-table-column prop="L2" width="70" label="被检值">
</el-table-column>
<el-table-column prop="L2_errValue" width="80" label="误差值">
</el-table-column>
<el-table-column prop="L2_errValue" width="70" label="误差值">
</el-table-column>
</el-table-column>
<el-table-column label="L3V" >
<el-table-column prop="L3" width="70" label="被检值">
</el-table-column>
</el-table-column>
<el-table-column label="L3V">
<el-table-column prop="L3" width="80" label="被检值">
</el-table-column>
<el-table-column prop="L3_errValue" width="70" 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> -->
<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>
</el-table-column>
<el-table-column prop="L3_errValue" width="80" label="误差值">
</el-table-column>
</el-table-column>
<el-table-column prop="maxErrVaule" width="130" 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> -->
<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{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'
import {defineProps, reactive} from 'vue';
import type {CheckResult} from "@/api/check/interface";
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: '合格',
},
const {tableData}=defineProps<{
tableData:CheckResult[],
}>();
])
</script>
@@ -105,9 +85,4 @@ margin-bottom: 20px; /* 添加底部边距 */
text-align: center; /* 所有单元格文字居中 */
}
.table-container {
/* max-height: 400px; */
overflow-y: auto; /* 允许垂直滚动 */
overflow-x: hidden; /* 隐藏水平滚动条 */
}
</style>