UPDATE: 处理控制台警告问题
This commit is contained in:
@@ -1,348 +1,386 @@
|
||||
<template>
|
||||
<div class="table-container table-main">
|
||||
<el-table :data="tableData"
|
||||
:header-cell-style="{ textAlign: 'center' } "
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
style="width: 100%"
|
||||
max-height="400px"
|
||||
:span-method="objectSpanMethod">
|
||||
<el-table-column prop="monitorNum" label="监测点序号" width="80"/>
|
||||
<el-table-column prop="desc" label="描述" width="90"/>
|
||||
<el-table-column label="电压通道" >
|
||||
<el-table-column prop="Ua" label="A相">
|
||||
<el-table-column prop="aVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.aVuData === '—'&& scope.row.loading" class="loading-box">
|
||||
<div class="table-container table-main">
|
||||
<el-table
|
||||
:data="tableData"
|
||||
:header-cell-style="{ textAlign: 'center' }"
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
style="width: 100%"
|
||||
max-height="400px"
|
||||
:span-method="objectSpanMethod"
|
||||
>
|
||||
<el-table-column prop="monitorNum" label="监测点序号" width="80" />
|
||||
<el-table-column prop="desc" label="描述" width="90" />
|
||||
<el-table-column label="电压通道">
|
||||
<el-table-column prop="Ua" label="A相">
|
||||
<el-table-column prop="aVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.aVuData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.aVuData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="aVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="aVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.aVuXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4)+ 'V'}}<br/>
|
||||
误差值:{{ scope.row.aV + 'V'}}
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.aV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.aVuXi }}
|
||||
{{ scope.row.aVuXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.aVuXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4)+ 'V'}}<br/>
|
||||
误差值:{{ scope.row.aV + 'V'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.aV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.aVuXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<!-- <el-tag type="danger" v-if="scope.row.aVuXi === '不合格'">
|
||||
</el-tooltip>
|
||||
<!-- <el-tag type="danger" v-if="scope.row.aVuXi === '不合格'">
|
||||
{{ scope.row.aVuXi }}
|
||||
</el-tag> -->
|
||||
<el-icon v-else-if="scope.row.aVuXi === '—'&& scope.row.loading" class="loading-box">
|
||||
<el-icon v-else-if="scope.row.aVuXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<!-- <span v-else>
|
||||
</el-icon>
|
||||
<!-- <span v-else>
|
||||
{{ scope.row.aVuXi }}
|
||||
</span> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ub" label="B相">
|
||||
<el-table-column prop="bVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.bVuData === '—'&& scope.row.loading" class="loading-box">
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ub" label="B相">
|
||||
<el-table-column prop="bVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.bVuData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.bVuData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="bVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="bVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.bVuXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4)+ 'V'}}<br/>
|
||||
误差值:{{ scope.row.bV + 'V'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.bV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.bVuXi }}
|
||||
{{ scope.row.bVuXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.bVuXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4)+ 'V'}}<br/>
|
||||
误差值:{{ scope.row.bV + 'V'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.bV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.bVuXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.bVuXi === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.bVuXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Uc" label="C相">
|
||||
<el-table-column prop="cVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.cVuData === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Uc" label="C相">
|
||||
<el-table-column prop="cVuData" label="被检值(V)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.cVuData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.cVuData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cVuXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.cVuXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4)+ 'V'}}<br/>
|
||||
误差值:{{ scope.row.cV + 'V'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.cV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.cVuXi }}
|
||||
{{ scope.row.cVuXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.cVuXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ (-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'}}<br/>
|
||||
误差值:{{ scope.row.cV + 'V'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围:
|
||||
{{
|
||||
(-0.001 * props.curV).toFixed(4) + 'V~' + (0.001 * props.curV).toFixed(4) + 'V'
|
||||
}}
|
||||
<br />
|
||||
误差值:{{ scope.row.cV + 'V' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.cVuXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.cVuXi === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.cVuXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="电流通道" >
|
||||
<el-table-column prop="Ia" label="A相">
|
||||
<el-table-column prop="aIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.aIeData === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="电流通道">
|
||||
<el-table-column prop="Ia" label="A相">
|
||||
<el-table-column prop="aIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.aIeData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.aIeData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="aIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="aIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.aIeXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{-0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.aI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.aI + '%' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.aIeXi }}
|
||||
{{ scope.row.aIeXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.aIeXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.aI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.aI + '%' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.aIeXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.aIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.aIeXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ib" label="B相">
|
||||
<el-table-column prop="bIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.bIeData === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ib" label="B相">
|
||||
<el-table-column prop="bIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.bIeData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.bIeData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="bIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="bIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.bIeXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.bI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.bI + '%' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.bIeXi }}
|
||||
{{ scope.row.bIeXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.bIeXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.bI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.bI + '%' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.bIeXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.bIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.bIeXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ic" label="C相">
|
||||
<el-table-column prop="cIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.cIeData === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column prop="Ic" label="C相">
|
||||
<el-table-column prop="cIeData" label="被检值(A)" width="100px">
|
||||
<template #default="scope">
|
||||
<el-icon v-if="scope.row.cIeData === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
</el-icon>
|
||||
<span v-else>
|
||||
{{ scope.row.cIeData }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="cIeXi" label="检测结果" width="90px">
|
||||
<template #default="scope">
|
||||
<el-tooltip
|
||||
v-if="scope.row.cIeXi === '不合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.cI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.cI + '%' }}
|
||||
</template>
|
||||
<el-tag type="danger" class="tooltip-content">
|
||||
{{ scope.row.cIeXi }}
|
||||
{{ scope.row.cIeXi }}
|
||||
</el-tag>
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
</el-tooltip>
|
||||
<el-tooltip
|
||||
v-else-if="scope.row.cIeXi === '合格'"
|
||||
class="item"
|
||||
effect="dark"
|
||||
placement="bottom-start"
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + "%~" +0.5 + "%" }}<br/>
|
||||
误差值:{{ scope.row.cI + '%'}}
|
||||
>
|
||||
<template #content>
|
||||
误差范围: {{ -0.5 + '%~' + 0.5 + '%' }}
|
||||
<br />
|
||||
误差值:{{ scope.row.cI + '%' }}
|
||||
</template>
|
||||
<el-tag type="success" class="tooltip-content">{{ scope.row.cIeXi }}</el-tag>
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.cIeXi === '—'&& scope.row.loading" class="loading-box">
|
||||
</el-tooltip>
|
||||
<el-icon v-else-if="scope.row.cIeXi === '—' && scope.row.loading" class="loading-box">
|
||||
<el-icon-loading />
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-icon>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="ErrorSystemDialog">
|
||||
import { defineProps, type PropType } from 'vue';
|
||||
import { ElIcon, ElLoading, ElTag } from 'element-plus';
|
||||
import type { ChannelsTest } from '@/api/home/interface/channelsTest';
|
||||
import { number } from 'echarts';
|
||||
|
||||
|
||||
<script lang="ts" setup name="ErrorSystemDialog">
|
||||
import { ElIcon, ElTag } from 'element-plus'
|
||||
import type { ChannelsTest } from '@/api/home/interface/channelsTest'
|
||||
|
||||
interface Props {
|
||||
tableData: ChannelsTest.CoefficientVO[];
|
||||
big_V_loading: boolean;
|
||||
curV: number;
|
||||
tableData: ChannelsTest.CoefficientVO[]
|
||||
big_V_loading: boolean
|
||||
curV: number
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
tableData: () => [],
|
||||
big_V_loading: false,
|
||||
curV: 0,
|
||||
});
|
||||
tableData: () => [],
|
||||
big_V_loading: false,
|
||||
curV: 0
|
||||
})
|
||||
|
||||
function objectSpanMethod({ row, column, rowIndex, columnIndex }: { row: any, column: any, rowIndex: number, columnIndex: number }) {
|
||||
function objectSpanMethod({
|
||||
row,
|
||||
column,
|
||||
rowIndex,
|
||||
columnIndex
|
||||
}: {
|
||||
row: any
|
||||
column: any
|
||||
rowIndex: number
|
||||
columnIndex: number
|
||||
}) {
|
||||
if (columnIndex === 0) {
|
||||
if (rowIndex % 4 === 0) {
|
||||
return {
|
||||
rowspan: 4,
|
||||
colspan: 1,
|
||||
};
|
||||
colspan: 1
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
rowspan: 0,
|
||||
colspan: 0,
|
||||
};
|
||||
colspan: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
if (columnIndex === 1) {
|
||||
if (rowIndex % 2 === 0) {
|
||||
return {
|
||||
rowspan: 2,
|
||||
colspan: 1,
|
||||
};
|
||||
colspan: 1
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
rowspan: 0,
|
||||
colspan: 0,
|
||||
};
|
||||
colspan: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
<style scoped>
|
||||
.form-grid {
|
||||
display: flex;
|
||||
flex-direction: row; /* 横向排列 */
|
||||
@@ -364,40 +402,40 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
margin-bottom: 20px; /* 添加底部边距 */
|
||||
}
|
||||
|
||||
.el-table th, .el-table td {
|
||||
text-align: center; /* 所有单元格文字居中 */
|
||||
.el-table th,
|
||||
.el-table td {
|
||||
text-align: center; /* 所有单元格文字居中 */
|
||||
}
|
||||
|
||||
.table-container {
|
||||
max-height: 400px; /* 根据需要调整高度 */
|
||||
overflow-y: auto; /* 允许垂直滚动 */
|
||||
overflow-x: hidden; /* 隐藏水平滚动条 */
|
||||
max-height: 400px; /* 根据需要调整高度 */
|
||||
overflow-y: auto; /* 允许垂直滚动 */
|
||||
overflow-x: hidden; /* 隐藏水平滚动条 */
|
||||
}
|
||||
|
||||
/* 确保 el-icon-loading 的动画效果没有被覆盖 */
|
||||
.loading-box {
|
||||
animation: rotate 2s linear infinite;
|
||||
animation: rotate 2s linear infinite;
|
||||
}
|
||||
|
||||
.icon-margin {
|
||||
margin-left: 0px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
.icon-align {
|
||||
vertical-align: 0px;
|
||||
vertical-align: 0px;
|
||||
}
|
||||
|
||||
.tooltip-content {
|
||||
cursor: pointer;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@keyframes rotate {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -18,7 +18,7 @@
|
||||
v-model="formContent.errorSysId"
|
||||
placeholder="请选择误差体系"
|
||||
autocomplete="off"
|
||||
@change="handleErrorSysChange"
|
||||
@change="handleErrorSysChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="option in pqErrorList"
|
||||
@@ -39,8 +39,13 @@
|
||||
<el-option v-for="item in chnList" :key="item" :label="item" :value="item" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="检测次数" >
|
||||
<el-select v-model="formContent.num" clearable @change="handleNumChange" :disabled="sourceKey == 1">
|
||||
<el-form-item label="检测次数">
|
||||
<el-select
|
||||
v-model="formContent.num"
|
||||
clearable
|
||||
@change="handleNumChange"
|
||||
:disabled="sourceKey == 1"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in chnMapList[formContent.chnNum]"
|
||||
:key="item"
|
||||
@@ -67,48 +72,48 @@
|
||||
node-key="id"
|
||||
ref="treeRef"
|
||||
@node-click="handleNodeClick"
|
||||
>
|
||||
|
||||
</el-tree>
|
||||
></el-tree>
|
||||
</div>
|
||||
<div class="content-right">
|
||||
<div class="content-right-title">
|
||||
<div class="content-right-title">
|
||||
<div style="width: 840px">
|
||||
<span class="content-right-title-text">当前检测项目:</span>
|
||||
<!-- 当code为'wave_data'时显示下拉框 -->
|
||||
<el-select
|
||||
v-if="isWaveData"
|
||||
v-model="selectedScriptName"
|
||||
<el-select
|
||||
v-if="isWaveData"
|
||||
v-model="selectedScriptName"
|
||||
style="width: 200px"
|
||||
@change="handleScriptNameChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in scriptNameOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
<el-option
|
||||
v-for="item in scriptNameOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<!-- 否则显示原来的文本 -->
|
||||
<span v-else style="color: var(--el-color-primary)">{{ rowList.scriptName }}</span>
|
||||
</div>
|
||||
<el-form-item
|
||||
style="margin: 0 auto; margin-bottom: 0px !important; width: 200px; position: absolute; left: 50%; transform: translateX(-50%);"
|
||||
label="录波次数"
|
||||
style="
|
||||
margin: 0 auto;
|
||||
margin-bottom: 0px !important;
|
||||
width: 200px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
"
|
||||
label="录波次数"
|
||||
v-if="isWaveData"
|
||||
>
|
||||
<el-select v-model="waveNumber" @change="handleWaveNumberChange">
|
||||
<el-option
|
||||
v-for="i in waveNumCount"
|
||||
:key="i"
|
||||
:label="i"
|
||||
:value="i"
|
||||
/>
|
||||
<el-select v-model="waveNumber" @change="handleWaveNumberChange">
|
||||
<el-option v-for="i in waveNumCount" :key="i" :label="i" :value="i" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
style="margin-left: 280px; margin-bottom: 0px !important; width: 300px"
|
||||
label="测试项"
|
||||
label="测试项"
|
||||
>
|
||||
<el-select v-model="currentCheckItem">
|
||||
<el-option
|
||||
@@ -128,7 +133,6 @@
|
||||
:currentCheckItem="currentCheckItem"
|
||||
:currentScriptTypeName="currentScriptTypeName"
|
||||
v-if="activeTab === 'resultTab'"
|
||||
|
||||
/>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="原始数据" name="rawDataTab">
|
||||
@@ -148,7 +152,7 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { dialogBig } from '@/utils/elementBind'
|
||||
import { reactive, ref, watch, computed, nextTick } from 'vue'
|
||||
import { computed, reactive, ref } from 'vue'
|
||||
import CompareDataCheckResultTable from './compareDataCheckResultTable.vue'
|
||||
import CompareDataCheckRawDataTable from './compareDataCheckRawDataTable.vue'
|
||||
import { CheckData } from '@/api/check/interface'
|
||||
@@ -157,16 +161,20 @@ import { Histogram, Postcard } from '@element-plus/icons-vue'
|
||||
import { getPqErrSysList } from '@/api/plan/plan'
|
||||
import { useModeStore } from '@/stores/modules/mode' // 引入模式 store
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { getContrastFormContent, getContrastResult, getScriptList,reCalculate ,changeErrorSystem,deleteTempTable} from '@/api/check/test'
|
||||
import {
|
||||
changeErrorSystem,
|
||||
deleteTempTable,
|
||||
getContrastFormContent,
|
||||
getContrastResult,
|
||||
getScriptList,
|
||||
reCalculate
|
||||
} from '@/api/check/test'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import {ResultEnum} from "@/enums/httpEnum";
|
||||
import { ResultEnum } from '@/enums/httpEnum'
|
||||
|
||||
const { appendToBody } = withDefaults(
|
||||
defineProps<{
|
||||
appendToBody: boolean
|
||||
}>(),
|
||||
{ appendToBody: true }
|
||||
)
|
||||
const { appendToBody = true } = defineProps<{
|
||||
appendToBody: boolean
|
||||
}>()
|
||||
|
||||
const checkStore = useCheckStore()
|
||||
const modeStore = useModeStore()
|
||||
@@ -192,7 +200,7 @@ const selectedScriptName = ref('')
|
||||
const pattern = ref('')
|
||||
// 添加以下内容
|
||||
const isWaveData = ref(false)
|
||||
const scriptNameOptions = ref<{label: string, value: string}[]>([])
|
||||
const scriptNameOptions = ref<{ label: string; value: string }[]>([])
|
||||
|
||||
// 表单数据
|
||||
const formContent = reactive<CheckData.DataCheck>({
|
||||
@@ -230,10 +238,9 @@ const currentRawTableData = computed(() => {
|
||||
return Array.isArray(data) ? data : []
|
||||
})
|
||||
|
||||
|
||||
const open = async (row: any, chnNum: string, deviceId: string | null, source: number) => {
|
||||
isWaveData.value = false
|
||||
pattern.value = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? ''//获取数据字典中对应的id
|
||||
pattern.value = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '' //获取数据字典中对应的id
|
||||
rowList.value = {}
|
||||
formContent.deviceId = deviceId || ''
|
||||
formContent.chnNum = chnNum
|
||||
@@ -241,14 +248,14 @@ const open = async (row: any, chnNum: string, deviceId: string | null, source: n
|
||||
// 获取基本信息
|
||||
await getBasicInformation(row.scriptType)
|
||||
if (source == 1) {
|
||||
// 正式检测进入页面 - 创建新的对象避免引用共享
|
||||
// 正式检测进入页面 - 创建新的对象避免引用共享
|
||||
rowList.value = {
|
||||
scriptName: row.scriptName,
|
||||
scriptType: row.scriptType,
|
||||
// 复制其他需要的属性
|
||||
devices: row.devices ? [...row.devices] : []
|
||||
scriptName: row.scriptName,
|
||||
scriptType: row.scriptType,
|
||||
// 复制其他需要的属性
|
||||
devices: row.devices ? [...row.devices] : []
|
||||
}
|
||||
}
|
||||
}
|
||||
// 检测数据查询进入---不区分检测数据查询和正式检测
|
||||
await initScriptData()
|
||||
visible.value = true
|
||||
@@ -259,15 +266,15 @@ const open = async (row: any, chnNum: string, deviceId: string | null, source: n
|
||||
// 获取误差体系
|
||||
let { data: resPqErrorList } = await getPqErrSysList()
|
||||
Object.assign(pqErrorList, resPqErrorList)
|
||||
|
||||
|
||||
initGetResult()
|
||||
|
||||
}
|
||||
|
||||
const initGetResult = async () => {
|
||||
// 判断是否为录波数据
|
||||
const isLuoboData = (sourceKey.value == 1 && rowList.value.scriptName == "录波数据") ||
|
||||
(sourceKey.value == 2 && scriptData.value[0]?.code == "wave_data");
|
||||
const isLuoboData =
|
||||
(sourceKey.value == 1 && rowList.value.scriptName == '录波数据') ||
|
||||
(sourceKey.value == 2 && scriptData.value[0]?.code == 'wave_data')
|
||||
if (isLuoboData) {
|
||||
isWaveData.value = true
|
||||
// 设置录波数据相关的选项
|
||||
@@ -275,7 +282,7 @@ const initGetResult = async () => {
|
||||
label: item.scriptName,
|
||||
value: item.scriptName
|
||||
}))
|
||||
|
||||
|
||||
// 默认选中第一个选项
|
||||
if (scriptNameOptions.value.length > 0) {
|
||||
selectedScriptName.value = scriptNameOptions.value[0].value
|
||||
@@ -292,7 +299,6 @@ const initGetResult = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 查询大项树
|
||||
const initScriptData = async () => {
|
||||
let response: any = await getScriptList({
|
||||
@@ -300,7 +306,7 @@ const initScriptData = async () => {
|
||||
chnNum: formContent.chnNum,
|
||||
num: formContent.num
|
||||
})
|
||||
|
||||
|
||||
// 格式化脚本数据
|
||||
let temp = response.data.map((item: any) => {
|
||||
return {
|
||||
@@ -313,11 +319,10 @@ const initScriptData = async () => {
|
||||
scriptData.value = temp
|
||||
|
||||
// 查找code为"录波"的项
|
||||
let luoboItem = response.data.find((item: any) => item.code === 'wave_data');
|
||||
let luoboItem = response.data.find((item: any) => item.code === 'wave_data')
|
||||
// 如果找到了"录波"项,则使用其subitems,否则使用空数组
|
||||
let temp2 = [];
|
||||
let temp2 = []
|
||||
if (luoboItem && luoboItem.subItems) {
|
||||
|
||||
// 格式化脚本数据
|
||||
temp2 = luoboItem.subItems.map((item: any) => {
|
||||
return {
|
||||
@@ -328,10 +333,8 @@ const initScriptData = async () => {
|
||||
}
|
||||
selectScript.value = temp2
|
||||
|
||||
|
||||
// 只有在sourceKey == 2时才设置rowList和tree相关属性
|
||||
if (sourceKey.value === 2 && temp.length > 0) {
|
||||
|
||||
rowList.value.scriptName = temp[0].scriptName
|
||||
rowList.value.scriptType = temp[0].id
|
||||
selectedScriptName.value = temp[0].scriptName
|
||||
@@ -339,8 +342,6 @@ const initScriptData = async () => {
|
||||
treeRef.value?.setCurrentKey(temp[0].id)
|
||||
}, 0)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 获取基本信息
|
||||
@@ -348,14 +349,14 @@ const getBasicInformation = async (scriptType: any) => {
|
||||
checkResultData.value = []
|
||||
rawTableData.value = []
|
||||
const scriptType2 = ref('')
|
||||
|
||||
if(sourceKey.value == 1){
|
||||
scriptType2.value = scriptType
|
||||
}else{
|
||||
scriptType2.value = ''
|
||||
}
|
||||
|
||||
//确保scriptData已初始化
|
||||
if (sourceKey.value == 1) {
|
||||
scriptType2.value = scriptType
|
||||
} else {
|
||||
scriptType2.value = ''
|
||||
}
|
||||
|
||||
//确保scriptData已初始化
|
||||
// if (scriptData.value.length === 0) {
|
||||
// await initScriptData()
|
||||
// }
|
||||
@@ -369,19 +370,19 @@ const getBasicInformation = async (scriptType: any) => {
|
||||
num: formContent.num == '' ? null : parseInt(formContent.num),
|
||||
patternId: pattern.value
|
||||
})
|
||||
|
||||
|
||||
formContent.dataRule = res.data.dataRule
|
||||
formContent.deviceName = res.data.deviceName
|
||||
formContent.errorSysId = res.data.errorSysId
|
||||
chnMapList.value = res.data.chnMap
|
||||
|
||||
|
||||
let chnMap: string[] = []
|
||||
for (let key in res.data.chnMap) {
|
||||
chnMap.push(key)
|
||||
}
|
||||
chnList.value = chnMap
|
||||
formContent.chnNum = formContent.chnNum == null ? chnList.value[0] : formContent.chnNum
|
||||
|
||||
|
||||
// 设置检测次数默认值为chnMap数组的最后一位
|
||||
if (chnMapList.value[formContent.chnNum] && chnMapList.value[formContent.chnNum].length > 0) {
|
||||
// 获取当前通道号对应的检测次数数组,并设置为最后一个值(最大值)
|
||||
@@ -389,8 +390,6 @@ const getBasicInformation = async (scriptType: any) => {
|
||||
formContent.num = numList[numList.length - 1]
|
||||
}
|
||||
waveNumCount.value = res.data.waveNumTotal
|
||||
|
||||
|
||||
} catch (error) {
|
||||
console.error('获取基本信息失败:', error)
|
||||
}
|
||||
@@ -414,7 +413,7 @@ const handleNumChange = async (value: string) => {
|
||||
const handleCommonChange = async () => {
|
||||
// 重新初始化脚本数据(更新左侧树)
|
||||
await initScriptData()
|
||||
|
||||
|
||||
// 触发当前选中节点的点击事件,保持界面状态一致
|
||||
if (sourceKey.value === 2 && scriptData.value.length > 0) {
|
||||
// 查找当前选中的节点
|
||||
@@ -431,7 +430,7 @@ const handleCommonChange = async () => {
|
||||
const tempNode = {
|
||||
scriptName: rowList.value.scriptName,
|
||||
id: rowList.value.scriptType,
|
||||
code: rowList.value.scriptName === "录波数据" ? 'wave_data' : ''
|
||||
code: rowList.value.scriptName === '录波数据' ? 'wave_data' : ''
|
||||
}
|
||||
handleNodeClick(tempNode)
|
||||
}
|
||||
@@ -450,7 +449,7 @@ const updateCheckNumForChn = (chnNum: string) => {
|
||||
const handleNodeClick = (data: any) => {
|
||||
rowList.value.scriptName = data.scriptName
|
||||
rowList.value.scriptType = data.id
|
||||
|
||||
|
||||
// 判断是否为录波数据
|
||||
if (data.code === 'wave_data') {
|
||||
isWaveData.value = true
|
||||
@@ -464,19 +463,17 @@ const handleNodeClick = (data: any) => {
|
||||
|
||||
// 每次选中录波数据时都重置为第一个选项并触发getResults
|
||||
if (scriptNameOptions.value.length > 0) {
|
||||
|
||||
selectedScriptName.value = scriptNameOptions.value[0].value
|
||||
// 更新rowList并触发getResults
|
||||
rowList.value.scriptName = selectedScriptName.value
|
||||
const selectedItem = selectScript.value.find(item => item.scriptName === selectedScriptName.value)
|
||||
|
||||
|
||||
if (selectedItem) {
|
||||
rowList.value.scriptType = selectedItem.id
|
||||
getResults('wave_data')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
isWaveData.value = false
|
||||
getResults(data.code)
|
||||
}
|
||||
@@ -495,8 +492,8 @@ const getResults = async (code: any) => {
|
||||
deviceId: formContent.deviceId,
|
||||
chnNum: formContent.chnNum,
|
||||
num: formContent.num == '' ? null : formContent.num,
|
||||
waveNum: isWaveDataRequest ? waveNumber.value : null,
|
||||
isWave: isWaveDataRequest ,
|
||||
waveNum: isWaveDataRequest ? waveNumber.value : null,
|
||||
isWave: isWaveDataRequest,
|
||||
patternId: pattern.value
|
||||
}).then((res: any) => {
|
||||
let list: string[] = []
|
||||
@@ -507,8 +504,6 @@ const getResults = async (code: any) => {
|
||||
tesList.value = list
|
||||
checkResultData.value = res.data.resultMap
|
||||
rawTableData.value = res.data.rawDataMap
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -541,39 +536,35 @@ const close = async () => {
|
||||
}
|
||||
|
||||
const handleErrorSysChange = async () => {
|
||||
changeErrorSystem({
|
||||
planId: checkStore.plan.id,
|
||||
scriptId: '',
|
||||
errorSysId: formContent.errorSysId,
|
||||
deviceId: formContent.deviceId,
|
||||
code: checkStore.plan.code + '',
|
||||
patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '',
|
||||
}).then((res) => {
|
||||
if (res.code === ResultEnum.SUCCESS) {
|
||||
ElMessage.success('切换误差体系成功')
|
||||
handleChnNumChange(formContent.chnNum)
|
||||
}
|
||||
})
|
||||
changeErrorSystem({
|
||||
planId: checkStore.plan.id,
|
||||
scriptId: '',
|
||||
errorSysId: formContent.errorSysId,
|
||||
deviceId: formContent.deviceId,
|
||||
code: checkStore.plan.code + '',
|
||||
patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? ''
|
||||
}).then(res => {
|
||||
if (res.code === ResultEnum.SUCCESS) {
|
||||
ElMessage.success('切换误差体系成功')
|
||||
handleChnNumChange(formContent.chnNum)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
const handleReCalculate = async () => {
|
||||
reCalculate({
|
||||
planId: checkStore.plan.id,
|
||||
scriptId: '',
|
||||
errorSysId: formContent.errorSysId,
|
||||
deviceId: formContent.deviceId,
|
||||
code: checkStore.plan.code + '',
|
||||
patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? '',
|
||||
}).then((res) => {
|
||||
if (res.code === ResultEnum.SUCCESS) {
|
||||
ElMessage.success('重新计算成功!')
|
||||
handleChnNumChange(formContent.chnNum)
|
||||
|
||||
}
|
||||
|
||||
})
|
||||
reCalculate({
|
||||
planId: checkStore.plan.id,
|
||||
scriptId: '',
|
||||
errorSysId: formContent.errorSysId,
|
||||
deviceId: formContent.deviceId,
|
||||
code: checkStore.plan.code + '',
|
||||
patternId: dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id ?? ''
|
||||
}).then(res => {
|
||||
if (res.code === ResultEnum.SUCCESS) {
|
||||
ElMessage.success('重新计算成功!')
|
||||
handleChnNumChange(formContent.chnNum)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
|
||||
@@ -81,8 +81,8 @@
|
||||
<RealTimeData ref="realTimeDataRef" />
|
||||
</template>
|
||||
<script lang="tsx" setup name="preTest">
|
||||
import {ElMessage, ElMessageBox, StepProps} from "element-plus";
|
||||
import {computed, defineExpose, PropType, ref, toRef, watch} from 'vue';
|
||||
import { ElMessage, ElMessageBox, StepProps } from 'element-plus'
|
||||
import { computed, PropType, ref, toRef, watch } from 'vue'
|
||||
import RealTimeData from './realTimeDataAlign.vue'
|
||||
|
||||
const realTimeDataRef = ref()
|
||||
|
||||
@@ -134,30 +134,17 @@
|
||||
</template>
|
||||
|
||||
<script lang="tsx" setup name="testPopup">
|
||||
import { nextTick, PropType, reactive, ref, watch } from 'vue'
|
||||
import { nextTick, reactive, ref, watch } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import {
|
||||
Coin,
|
||||
Edit,
|
||||
Key,
|
||||
Switch,
|
||||
Refresh,
|
||||
Right,
|
||||
SuccessFilled,
|
||||
UploadFilled,
|
||||
VideoPause,
|
||||
VideoPlay
|
||||
} from '@element-plus/icons-vue'
|
||||
import { Coin, Edit, Key, Refresh, Right, SuccessFilled, Switch, VideoPause, VideoPlay } from '@element-plus/icons-vue'
|
||||
import ComparePreTest from './comparePreTest.vue'
|
||||
import ChannelPairing from './channelPairing.vue'
|
||||
import { Device } from '@/api/device/interface/device'
|
||||
import CompareTest from './compareTest.vue'
|
||||
import socketClient from '@/utils/webSocketClient'
|
||||
import { useCheckStore } from '@/stores/modules/check'
|
||||
import { pauseTest, resumeTest, startPreTest, contrastTest } from '@/api/socket/socket'
|
||||
import { contrastTest, pauseTest, resumeTest, startPreTest } from '@/api/socket/socket'
|
||||
import { useUserStore } from '@/stores/modules/user'
|
||||
import { JwtUtil } from '@/utils/jwtUtil'
|
||||
import { StandardDevice } from '@/api/device/interface/standardDevice'
|
||||
|
||||
const userStore = useUserStore()
|
||||
const checkStore = useCheckStore()
|
||||
@@ -242,8 +229,8 @@ const standardDevIds = ref<[]>()
|
||||
const pairs = ref<any>()
|
||||
const testAgain = ref(false) //重新检测按钮是否显示
|
||||
const checkNumber = ref(0) //检测次数
|
||||
const deviceMonitor2= ref<Map<string, any[]>>();
|
||||
const onlyWave = ref(false);//计划数据源是否只有录波
|
||||
const deviceMonitor2 = ref<Map<string, any[]>>()
|
||||
const onlyWave = ref(false) //计划数据源是否只有录波
|
||||
const open = async (
|
||||
title: string,
|
||||
mapping: any,
|
||||
@@ -252,14 +239,14 @@ const open = async (
|
||||
devIdsArray: [],
|
||||
standardDevIdsArray: [],
|
||||
pair: any,
|
||||
deviceMonitor:Map<string, any[]>,
|
||||
deviceMonitor: Map<string, any[]>,
|
||||
planIsOnlyWave: boolean
|
||||
) => {
|
||||
if (checkStore.selectTestItems.preTest && !checkStore.selectTestItems.test) {
|
||||
testAgain.value = true
|
||||
}
|
||||
deviceMonitor2.value = deviceMonitor;
|
||||
onlyWave.value = planIsOnlyWave;
|
||||
deviceMonitor2.value = deviceMonitor
|
||||
onlyWave.value = planIsOnlyWave
|
||||
checkStore.setNodesConnectable(true)
|
||||
dialogTitle.value = title
|
||||
channelMapping.value = mapping
|
||||
@@ -588,7 +575,6 @@ const nextStep = () => {
|
||||
}
|
||||
|
||||
const handleStepClick = (step: number) => {
|
||||
|
||||
if (step > stepsActive.value) {
|
||||
return
|
||||
} else {
|
||||
@@ -636,7 +622,7 @@ defineExpose({ open })
|
||||
|
||||
<style scoped lang="scss">
|
||||
.test-head-steps {
|
||||
::v-deep .el-step {
|
||||
:deep(.el-step) {
|
||||
.el-step__head.is-success {
|
||||
color: #91cc75;
|
||||
}
|
||||
|
||||
@@ -1,138 +1,144 @@
|
||||
<template>
|
||||
<div class="table-main">
|
||||
<el-table
|
||||
v-if="tableData.length > 0"
|
||||
:data="tableData"
|
||||
height="357px"
|
||||
: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 label="A相" v-if="phaseA === 1">
|
||||
<el-table-column prop="stdA" :label="'标准值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="dataA" :label="'被检值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="isDataA" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围:{{ scope.row.maxErrorA }}
|
||||
<br />
|
||||
误差值:{{ scope.row.errorA }} {{ scope.row.errorA !== '/' ? innerUnitA : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataA === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataA === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataA === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="B相" v-if="phaseB === 1">
|
||||
<el-table-column prop="stdB" :label="'标准值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="dataB" :label="'被检值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="isDataB" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围:{{ scope.row.maxErrorB }}
|
||||
<br />
|
||||
误差值:{{ scope.row.errorB }} {{ scope.row.errorB !== '/' ? innerUnitB : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataB === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataB === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataB === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="C相" v-if="phaseC === 1">
|
||||
<el-table-column prop="stdC" :label="'标准值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="dataC" :label="'被检值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="isDataC" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围: {{ scope.row.maxErrorC }}
|
||||
<br />
|
||||
误差值:{{ scope.row.errorC }} {{ scope.row.errorC !== '/' ? innerUnitC : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataC === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataC === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataC === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
|
||||
<div class="table-main">
|
||||
<el-table v-if="tableData.length > 0" :data="tableData" height="357px" :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 label="A相" v-if="phaseA === 1">
|
||||
<el-table-column prop="stdA" :label="'标准值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="dataA" :label="'被检值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="isDataA" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围:{{ scope.row.maxErrorA }} <br/>
|
||||
误差值:{{ scope.row.errorA }} {{ scope.row.errorA !== '/' ? innerUnitA : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataA === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataA === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataA === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="B相" v-if="phaseB === 1">
|
||||
<el-table-column prop="stdB" :label="'标准值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="dataB" :label="'被检值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="isDataB" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围:{{ scope.row.maxErrorB }}<br/>
|
||||
误差值:{{ scope.row.errorB }} {{ scope.row.errorB !== '/' ? innerUnitB : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataB === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataB === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataB === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="C相" v-if="phaseC === 1">
|
||||
<el-table-column prop="stdC" :label="'标准值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="dataC" :label="'被检值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="isDataC" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围: {{ scope.row.maxErrorC }}<br/>
|
||||
误差值:{{ scope.row.errorC }} {{ scope.row.errorC !== '/' ? innerUnitC : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataC === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataC === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataC === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column :label="tableHeader" v-if="phaseT === 1">
|
||||
<el-table-column prop="stdT" :label="'标准值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="dataT" :label="'被检值'+(outerUnit==''?'':'('+outerUnit+')')"/>
|
||||
<el-table-column prop="isDataT" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围: {{ scope.row.maxErrorT }}<br/>
|
||||
误差值:{{ scope.row.errorT }} {{ scope.row.errorT !== '/' ? innerUnitT : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataT === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataT === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataT === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<el-table-column :label="tableHeader" v-if="phaseT === 1">
|
||||
<el-table-column prop="stdT" :label="'标准值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="dataT" :label="'被检值' + (outerUnit == '' ? '' : '(' + outerUnit + ')')" />
|
||||
<el-table-column prop="isDataT" label="检测结果">
|
||||
<template #default="scope">
|
||||
<el-tooltip effect="dark" placement="bottom">
|
||||
<template #content>
|
||||
误差范围: {{ scope.row.maxErrorT }}
|
||||
<br />
|
||||
误差值:{{ scope.row.errorT }} {{ scope.row.errorT !== '/' ? innerUnitT : '' }}
|
||||
</template>
|
||||
<el-tag type="success" v-if="scope.row.isDataT === 1">符合</el-tag>
|
||||
<el-tag type="danger" v-if="scope.row.isDataT === 2">不符合</el-tag>
|
||||
<el-tag type="warning" v-if="scope.row.isDataT === 4">/</el-tag>
|
||||
<el-tag type="info" v-if="scope.row.isDataA === 5">-</el-tag>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="tsx" setup>
|
||||
import {computed, defineProps} from 'vue';
|
||||
import {CheckData} from "@/api/check/interface";
|
||||
|
||||
const {tableData, currentScriptTypeName} = defineProps<{
|
||||
tableData: CheckData.CheckResult[],
|
||||
currentScriptTypeName: string
|
||||
}>();
|
||||
import { computed } from 'vue'
|
||||
import { CheckData } from '@/api/check/interface'
|
||||
|
||||
const { tableData, currentScriptTypeName } = defineProps<{
|
||||
tableData: CheckData.CheckResult[]
|
||||
currentScriptTypeName: string
|
||||
}>()
|
||||
|
||||
const outerUnit = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unit : '';
|
||||
return tableData.length > 0 ? tableData[0].unit : ''
|
||||
})
|
||||
|
||||
const innerUnitA = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unitA : '';
|
||||
return tableData.length > 0 ? tableData[0].unitA : ''
|
||||
})
|
||||
const innerUnitB = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unitB : '';
|
||||
return tableData.length > 0 ? tableData[0].unitB : ''
|
||||
})
|
||||
const innerUnitC = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unitC : '';
|
||||
return tableData.length > 0 ? tableData[0].unitC : ''
|
||||
})
|
||||
const innerUnitT = computed(() => {
|
||||
return tableData.length > 0 ? tableData[0].unitT : '';
|
||||
return tableData.length > 0 ? tableData[0].unitT : ''
|
||||
})
|
||||
|
||||
const phaseA = computed(() => {
|
||||
return tableData.length <= 0 || tableData[0].dataA == null || tableData[0].dataA == "/" ? 0 : 1
|
||||
return tableData.length <= 0 || tableData[0].dataA == null || tableData[0].dataA == '/' ? 0 : 1
|
||||
})
|
||||
const phaseB = computed(() => {
|
||||
return tableData.length <= 0 || tableData[0].dataB == null || tableData[0].dataB == "/" ? 0 : 1
|
||||
return tableData.length <= 0 || tableData[0].dataB == null || tableData[0].dataB == '/' ? 0 : 1
|
||||
})
|
||||
const phaseC = computed(() => {
|
||||
return tableData.length <= 0 || tableData[0].dataC == null || tableData[0].dataC == "/" ? 0 : 1
|
||||
return tableData.length <= 0 || tableData[0].dataC == null || tableData[0].dataC == '/' ? 0 : 1
|
||||
})
|
||||
|
||||
const phaseT = computed(() => {
|
||||
return tableData.length <= 0 || tableData[0].dataT == null || tableData[0].dataT == "/" ? 0 : 1
|
||||
return tableData.length <= 0 || tableData[0].dataT == null || tableData[0].dataT == '/' ? 0 : 1
|
||||
})
|
||||
|
||||
const tableHeader = computed(() => {
|
||||
if (phaseT.value === 1) {
|
||||
let index = currentScriptTypeName.indexOf('=');
|
||||
return currentScriptTypeName.substring(0, index);
|
||||
}
|
||||
return currentScriptTypeName
|
||||
if (phaseT.value === 1) {
|
||||
let index = currentScriptTypeName.indexOf('=')
|
||||
return currentScriptTypeName.substring(0, index)
|
||||
}
|
||||
return currentScriptTypeName
|
||||
})
|
||||
|
||||
// const maxErrorStr = computed((data) => {
|
||||
@@ -143,38 +149,36 @@ const tableHeader = computed(() => {
|
||||
// }
|
||||
// return result;
|
||||
// })
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.form-grid {
|
||||
display: flex;
|
||||
flex-direction: row; /* 横向排列 */
|
||||
flex-wrap: wrap; /* 允许换行 */
|
||||
display: flex;
|
||||
flex-direction: row; /* 横向排列 */
|
||||
flex-wrap: wrap; /* 允许换行 */
|
||||
}
|
||||
|
||||
.form-grid .el-form-item {
|
||||
flex: 1 1 30%; /* 控件宽度 */
|
||||
margin-right: 20px; /* 控件间距 */
|
||||
flex: 1 1 30%; /* 控件宽度 */
|
||||
margin-right: 20px; /* 控件间距 */
|
||||
}
|
||||
|
||||
.form-grid .el-form-item:last-child {
|
||||
margin-right: 0; /* 最后一个控件不需要右边距 */
|
||||
margin-right: 0; /* 最后一个控件不需要右边距 */
|
||||
}
|
||||
|
||||
.dialog-footer {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 10px; /* 调整这里的值以增加或减少间距 */
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 10px; /* 调整这里的值以增加或减少间距 */
|
||||
}
|
||||
|
||||
.el-tabs {
|
||||
margin-bottom: 20px; /* 添加底部边距 */
|
||||
margin-bottom: 20px; /* 添加底部边距 */
|
||||
}
|
||||
|
||||
.el-table th, .el-table td {
|
||||
text-align: center; /* 所有单元格文字居中 */
|
||||
.el-table th,
|
||||
.el-table td {
|
||||
text-align: center; /* 所有单元格文字居中 */
|
||||
}
|
||||
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -74,8 +74,8 @@
|
||||
* 3. 协议校验 - 进行ICD报告触发测试
|
||||
* 4. 相序校验 - 判断装置接线是否正确
|
||||
*/
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
import {defineExpose, ref, toRef, watch} from 'vue';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ref, toRef, watch } from 'vue'
|
||||
|
||||
// ==================== 日志数据存储 ====================
|
||||
// 各步骤的日志数据,用于在右侧折叠面板中显示实时日志
|
||||
|
||||
@@ -1,112 +1,111 @@
|
||||
<template>
|
||||
<el-dialog title="检测结果" :model-value="visible" @close="handleCancel" v-bind="dialogBig" width="895px">
|
||||
<div class="result-dialog">
|
||||
<div class="result-title">
|
||||
<el-row>
|
||||
<el-form-item label="检测脚本" >
|
||||
<el-input v-model='testScriptName' :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="误差体系" >
|
||||
<el-input v-model='errorSysName' :disabled="true"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="数据原则" >
|
||||
<el-input v-model='dataRule' :disabled="true"/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</div>
|
||||
<div class="result-content">
|
||||
<el-table :data="resultData" stripe max-height="350" :header-cell-style="{ textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" style="width: 100%" border v-on:cell-click="handleClick">
|
||||
<el-table-column prop="deviceName" label="被检设备" />
|
||||
<el-table-column prop="result_1" label="通道1" />
|
||||
<el-table-column prop="result_2" label="通道2" />
|
||||
<el-table-column prop="result_3" label="通道3" />
|
||||
<el-table-column prop="result_4" label="通道4" />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="result-footer">
|
||||
你可以停留在本页查看数据,或返回首页进行复检、报告生成和归档
|
||||
</div>
|
||||
</div>
|
||||
<DataCheckPopup
|
||||
:visible="DataCheckDialogVisible"
|
||||
<el-dialog title="检测结果" :model-value="visible" @close="handleCancel" v-bind="dialogBig" width="895px">
|
||||
<div class="result-dialog">
|
||||
<div class="result-title">
|
||||
<el-row>
|
||||
<el-form-item label="检测脚本">
|
||||
<el-input v-model="testScriptName" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="误差体系">
|
||||
<el-input v-model="errorSysName" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="数据原则">
|
||||
<el-input v-model="dataRule" :disabled="true" />
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</div>
|
||||
<div class="result-content">
|
||||
<el-table
|
||||
:data="resultData"
|
||||
stripe
|
||||
max-height="350"
|
||||
:header-cell-style="{ textAlign: 'center' }"
|
||||
:cell-style="{ textAlign: 'center' }"
|
||||
style="width: 100%"
|
||||
border
|
||||
v-on:cell-click="handleClick"
|
||||
>
|
||||
<el-table-column prop="deviceName" label="被检设备" />
|
||||
<el-table-column prop="result_1" label="通道1" />
|
||||
<el-table-column prop="result_2" label="通道2" />
|
||||
<el-table-column prop="result_3" label="通道3" />
|
||||
<el-table-column prop="result_4" label="通道4" />
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="result-footer">你可以停留在本页查看数据,或返回首页进行复检、报告生成和归档</div>
|
||||
</div>
|
||||
<DataCheckPopup
|
||||
:visible="DataCheckDialogVisible"
|
||||
@update:visible="DataCheckDialogVisible = $event"
|
||||
></DataCheckPopup>
|
||||
></DataCheckPopup>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="testPopup">
|
||||
import{ElMessage, ElSelectV2, 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,Edit, Picture, UploadFilled, SuccessFilled,VideoPlay,Right,Refresh,Close} from '@element-plus/icons-vue'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import preTest from './preTest.vue'
|
||||
import timeTest from './timeTest.vue'
|
||||
import DataCheckPopup from './dataCheckPopup.vue';
|
||||
import { log } from 'console';
|
||||
|
||||
const props = defineProps<{
|
||||
visible: boolean;
|
||||
}>();
|
||||
<script lang="ts" setup name="testPopup">
|
||||
import { ref } from 'vue'
|
||||
import { dialogBig } from '@/utils/elementBind'
|
||||
//import IndicatorTypeDialog from "@/views/machine/errorSystem/components/IndicatorTypeDialog.vue"; // 导入子组件
|
||||
import DataCheckPopup from './dataCheckPopup.vue'
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:visible', value: boolean): void;
|
||||
(e: 'submit', data: any): void;
|
||||
}>();
|
||||
const props = defineProps<{
|
||||
visible: boolean
|
||||
}>()
|
||||
|
||||
const testScriptName = ref('Q/GDW 10650.4-2021 模拟式');
|
||||
const errorSysName = ref('Q/GDW 10650.2-2021');
|
||||
const dataRule = ref('所有值');
|
||||
const DataCheckDialogVisible = ref(false);
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:visible', value: boolean): void
|
||||
(e: 'submit', data: any): void
|
||||
}>()
|
||||
|
||||
const testScriptName = ref('Q/GDW 10650.4-2021 模拟式')
|
||||
const errorSysName = ref('Q/GDW 10650.2-2021')
|
||||
const dataRule = ref('所有值')
|
||||
const DataCheckDialogVisible = ref(false)
|
||||
|
||||
const resultData = ref([
|
||||
{
|
||||
deviceName: "被检设备1",
|
||||
result_1: "合格",
|
||||
result_2: "合格",
|
||||
result_3: "合格",
|
||||
result_4: "合格",
|
||||
},
|
||||
{
|
||||
deviceName: "被检设备2",
|
||||
result_1: "合格",
|
||||
result_2: "合格",
|
||||
result_3: "—",
|
||||
result_4: "—",
|
||||
},
|
||||
{
|
||||
deviceName: "被检设备3",
|
||||
result_1: "不合格",
|
||||
result_2: "合格",
|
||||
result_3: "—",
|
||||
result_4: "—",
|
||||
},
|
||||
]);
|
||||
{
|
||||
deviceName: '被检设备1',
|
||||
result_1: '合格',
|
||||
result_2: '合格',
|
||||
result_3: '合格',
|
||||
result_4: '合格'
|
||||
},
|
||||
{
|
||||
deviceName: '被检设备2',
|
||||
result_1: '合格',
|
||||
result_2: '合格',
|
||||
result_3: '—',
|
||||
result_4: '—'
|
||||
},
|
||||
{
|
||||
deviceName: '被检设备3',
|
||||
result_1: '不合格',
|
||||
result_2: '合格',
|
||||
result_3: '—',
|
||||
result_4: '—'
|
||||
}
|
||||
])
|
||||
|
||||
const handleClick = (row:any) => {
|
||||
const handleClick = (row: any) => {
|
||||
console.log(111)
|
||||
DataCheckDialogVisible.value = true;
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
emit('update:visible', false); // 关闭对话框
|
||||
};
|
||||
|
||||
DataCheckDialogVisible.value = true
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.result-dialog{
|
||||
const handleCancel = () => {
|
||||
emit('update:visible', false) // 关闭对话框
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.result-dialog {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.result-title{
|
||||
.result-title {
|
||||
/* display: flex;
|
||||
flex-direction: row; */
|
||||
}
|
||||
.result-footer{
|
||||
}
|
||||
.result-footer {
|
||||
text-align: right;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user