2024-11-18 22:04:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
|
2024-11-19 19:34:00 +08:00
|
|
|
|
<div class = "dialog">
|
2024-11-18 22:04:59 +08:00
|
|
|
|
<div class="dialog-title">
|
|
|
|
|
|
<el-progress
|
2024-11-21 23:02:43 +08:00
|
|
|
|
style="width: 90%"
|
2024-11-18 22:04:59 +08:00
|
|
|
|
:percentage="percentage"
|
|
|
|
|
|
:color="customColors"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
2024-12-09 16:17:04 +08:00
|
|
|
|
<!-- v-if="!isPause && activeIndex < activeTotalNum" -->
|
2024-11-18 22:04:59 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
2024-12-11 19:12:04 +08:00
|
|
|
|
v-if="!isPause"
|
|
|
|
|
|
:disabled="activeIndex===0 || activeIndex >= activeTotalNum"
|
2024-11-18 22:04:59 +08:00
|
|
|
|
:icon="VideoPause"
|
|
|
|
|
|
@click="handlePauseTest"
|
|
|
|
|
|
>暂停检测</el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="warning"
|
2024-11-25 21:11:10 +08:00
|
|
|
|
v-if="isPause && activeIndex < activeTotalNum"
|
2024-11-18 22:04:59 +08:00
|
|
|
|
:icon="Refresh"
|
|
|
|
|
|
@click="handlePauseTest"
|
|
|
|
|
|
>继续检测</el-button
|
|
|
|
|
|
>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
|
2024-12-09 16:17:04 +08:00
|
|
|
|
<!-- <el-button
|
2024-11-25 21:11:10 +08:00
|
|
|
|
type="warning"
|
|
|
|
|
|
v-if="activeIndex >= activeTotalNum"
|
|
|
|
|
|
:icon="Refresh"
|
|
|
|
|
|
@click="handleReCheck"
|
|
|
|
|
|
>重新检测</el-button
|
2024-12-09 16:17:04 +08:00
|
|
|
|
> -->
|
2024-11-21 23:02:43 +08:00
|
|
|
|
<!-- <el-button type="danger" :icon="Close" @click="handleFinishTest"
|
2024-11-18 22:04:59 +08:00
|
|
|
|
>停止检测</el-button
|
2024-11-21 23:02:43 +08:00
|
|
|
|
> -->
|
2024-11-18 22:04:59 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<!-- background: '#f5f7fa', color: '#606266' -->
|
|
|
|
|
|
<!-- v-on:cell-click="handleClick" -->
|
2024-11-21 23:02:43 +08:00
|
|
|
|
<!-- <el-table :key="tableKey" :data="tableData" :row-class-name="tableRowClassName" row-key="id" height="545px" :header-cell-style="{ background: '#003078', color: '#eee', textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" style="width: 100%" border> -->
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<!-- <el-table :data="tableData" :row-class-name="tableRowClassName" row-key="id" height="545px" :header-cell-style="{ background: '#003078', color: '#eee', textAlign: 'center' } " style="width: 100%" border> -->
|
2024-12-05 15:22:46 +08:00
|
|
|
|
<div class="dialog-content ">
|
|
|
|
|
|
<el-table :data="tableData" :cell-class-name="tableCell" row-key="id" height="450px" :header-cell-style="{ background: '#003078', color: '#eee', textAlign: 'center' } " style="width: 100%" border>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column fixed prop="scriptItemName" label="检测项目" width="250px">
|
|
|
|
|
|
<!-- <template #default="scope">
|
|
|
|
|
|
<div :style="{ backgroundColor: '#003078' }">
|
|
|
|
|
|
{{ scope.row.name }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template> -->
|
|
|
|
|
|
</el-table-column>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道1" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道1</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240001被检通道1" placement="top" style="align-items: bottom;">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<!-- <el-tooltip content = "info" placement="top">
|
|
|
|
|
|
<i class="el-icon-info"></i>
|
|
|
|
|
|
</el-tooltip> -->
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<el-tooltip :content="scope.row.resultType1==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType1=='info'"
|
|
|
|
|
|
:type="scope.row.resultType1"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue1 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
|
2024-11-20 21:30:05 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道2" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道2</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240001被检通道2" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType2==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType2=='info'"
|
|
|
|
|
|
:type="scope.row.resultType2"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue2 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道3" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道3</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240001被检通道3" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType3==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType3=='info'"
|
|
|
|
|
|
:type="scope.row.resultType3"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue3 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道4" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道4</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240001被检通道4" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType4==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType4=='info'"
|
|
|
|
|
|
:type="scope.row.resultType4"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue4 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column p label="被检通道5" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道5</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240002被检通道1" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType5==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType5=='info'"
|
|
|
|
|
|
:type="scope.row.resultType5"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue5 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道6" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道6</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240002被检通道2" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType6==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
tip
|
|
|
|
|
|
:disabled = "scope.row.resultType6=='info'"
|
|
|
|
|
|
:type="scope.row.resultType6"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue6 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道7" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道7</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240002被检通道3" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType7==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType7=='info'"
|
|
|
|
|
|
:type="scope.row.resultType7"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue7 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-table-column label="被检通道8" :min-width="minwidth" align="center">
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<span>被检通道8</span>
|
2024-12-05 21:33:52 +08:00
|
|
|
|
<el-tooltip content = "240002被检通道4" placement="top">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
<el-icon><InfoFilled /></el-icon>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
</template>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
<template #default="scope">
|
|
|
|
|
|
<el-tooltip :content="scope.row.resultType8==='info' ? '暂无数据' : '点击查看详情'" placement="top">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
:disabled = "scope.row.resultType8=='info'"
|
|
|
|
|
|
:type="scope.row.resultType8"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
@click="handleClick(scope.row)"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ scope.row.resultValue8 }}
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<!-- <el-table-column v-for="(item, index) in monitorList" :key="index" :prop="item.prop" :label="item.label">
|
|
|
|
|
|
</el-table-column> -->
|
2024-11-18 22:04:59 +08:00
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
2024-12-11 19:12:04 +08:00
|
|
|
|
<div style="height: 80px;">
|
2024-12-05 15:22:46 +08:00
|
|
|
|
<el-collapse model-value="1" accordion>
|
2024-12-09 16:17:04 +08:00
|
|
|
|
<el-collapse-item title="检测项进度" name="1">
|
2024-11-21 23:02:43 +08:00
|
|
|
|
<div ref="scrollContainer" class="dialog-log">
|
|
|
|
|
|
<p v-for="(item, index) in testLogList" :key="index" :style="{color:item.type==='error'?'#F56C6C':'var(--el-text-color-regular)'}">
|
|
|
|
|
|
{{ item.log }} <br />
|
|
|
|
|
|
</p>
|
2024-11-18 22:04:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
</el-collapse>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-19 19:34:00 +08:00
|
|
|
|
<resultPopup
|
|
|
|
|
|
:visible="resultDialogVisible"
|
|
|
|
|
|
@update:visible="resultDialogVisible = $event"
|
|
|
|
|
|
></resultPopup>
|
|
|
|
|
|
<dataCheckSingleChannelSingleTestPopup
|
|
|
|
|
|
:visible="dataCheckSingleChannelSingleTestDialogVisable"
|
|
|
|
|
|
@update:visible="dataCheckSingleChannelSingleTestDialogVisable = $event"
|
|
|
|
|
|
></dataCheckSingleChannelSingleTestPopup>
|
2024-11-18 22:04:59 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
<script lang="tsx" setup name="test">
|
2024-11-25 21:11:10 +08:00
|
|
|
|
import { VideoPause,Refresh,Close,InfoFilled } from '@element-plus/icons-vue'
|
2024-11-19 19:34:00 +08:00
|
|
|
|
import resultPopup from './resultPopup.vue'
|
|
|
|
|
|
import dataCheckSingleChannelSingleTestPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
2024-11-20 21:30:05 +08:00
|
|
|
|
import temptest from './temptest.vue'
|
2024-11-25 21:11:10 +08:00
|
|
|
|
const minwidth = ref(110)
|
2024-11-21 23:02:43 +08:00
|
|
|
|
const activeIndex = ref(0)
|
|
|
|
|
|
const activeTotalNum = ref(12)
|
|
|
|
|
|
|
2024-11-20 21:30:05 +08:00
|
|
|
|
const currentRow = ref<{ id: number; scriptItemName: string; name: string; address: string; hasChildren?: boolean; children?: User[] } | null>(null);
|
|
|
|
|
|
// const currentRow = ref(null); // 用于存储当前选中的行
|
2024-11-18 22:04:59 +08:00
|
|
|
|
|
2024-11-20 21:30:05 +08:00
|
|
|
|
const monitorList = ref([
|
|
|
|
|
|
{
|
|
|
|
|
|
deviceID: '1',
|
|
|
|
|
|
deviceName: '被检设备1',
|
|
|
|
|
|
monitorIdx: 1,
|
|
|
|
|
|
label:'被检设备1通道1',
|
|
|
|
|
|
prop: 'Result1',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
deviceID: '1',
|
|
|
|
|
|
deviceName: '被检设备1',
|
|
|
|
|
|
monitorIdx: 2,
|
|
|
|
|
|
label:'被检设备1通道2',
|
|
|
|
|
|
prop: 'Result2',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
deviceID: '2',
|
|
|
|
|
|
deviceName: '被检设备2',
|
|
|
|
|
|
monitorIdx: 1,
|
|
|
|
|
|
label:'被检设备2通道1',
|
|
|
|
|
|
prop: 'Result3',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
deviceID: '2',
|
|
|
|
|
|
deviceName: '被检设备2',
|
|
|
|
|
|
monitorIdx: 2,
|
|
|
|
|
|
label:'被检设备2通道2',
|
|
|
|
|
|
prop: 'Result4',
|
|
|
|
|
|
}
|
|
|
|
|
|
])
|
|
|
|
|
|
const tableData1= [
|
|
|
|
|
|
{
|
|
|
|
|
|
date: '2016-05-03',
|
|
|
|
|
|
name: 'Tom',
|
|
|
|
|
|
address: 'No. 189, Grove St, Los Angeles',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
date: '2016-05-02',
|
|
|
|
|
|
name: 'Tom',
|
|
|
|
|
|
address: 'No. 189, Grove St, Los Angeles',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
date: '2016-05-04',
|
|
|
|
|
|
name: 'Tom',
|
|
|
|
|
|
address: 'No. 189, Grove St, Los Angeles',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
date: '2016-05-01',
|
|
|
|
|
|
name: 'Tom',
|
|
|
|
|
|
address: 'No. 189, Grove St, Los Angeles',
|
|
|
|
|
|
},
|
|
|
|
|
|
]
|
2024-11-21 23:02:43 +08:00
|
|
|
|
const scrollContainer = ref<HTMLElement | null>(null); // 声明 scrollContainer
|
|
|
|
|
|
|
|
|
|
|
|
const scrollToBottom = () => {
|
|
|
|
|
|
if (scrollContainer.value) {
|
|
|
|
|
|
scrollContainer.value.scrollTop = scrollContainer.value.scrollHeight;
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function getRandomInt(max: number): number {
|
|
|
|
|
|
return Math.floor(Math.random() * max);
|
|
|
|
|
|
}
|
2024-12-11 17:46:59 +08:00
|
|
|
|
|
|
|
|
|
|
//判断该检测项(例如 频率准确度检测)是否全部合格(所有设备所有通道所有子检测项目全部合格为合格,否则为不合格)
|
|
|
|
|
|
function getItemCheckResult(index:number):boolean{
|
|
|
|
|
|
|
|
|
|
|
|
let items = columnList?.value.filter((item) => item === index.toString())
|
|
|
|
|
|
|
|
|
|
|
|
if(items.length > 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
return false
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
return true
|
|
|
|
|
|
}
|
|
|
|
|
|
//测试项开始检测时间(或继续检测时间)
|
|
|
|
|
|
const startData = ref(new Date())
|
|
|
|
|
|
//测试项检测结束时间(或暂停时的时间)
|
|
|
|
|
|
const endData= ref(new Date())
|
|
|
|
|
|
|
|
|
|
|
|
let timeDifference = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
function getTimeDifference(timeDifference:number): string {
|
|
|
|
|
|
// 将时间差转换为天、小时、分钟、秒
|
|
|
|
|
|
const millisecondsPerDay = 1000 * 60 * 60 * 24;
|
|
|
|
|
|
const millisecondsPerHour = 1000 * 60 * 60;
|
|
|
|
|
|
const millisecondsPerMinute = 1000 * 60;
|
|
|
|
|
|
const millisecondsPerSecond = 1000;
|
|
|
|
|
|
|
|
|
|
|
|
const days = Math.floor(timeDifference / millisecondsPerDay);
|
|
|
|
|
|
const hours = Math.floor((timeDifference % millisecondsPerDay) / millisecondsPerHour);
|
|
|
|
|
|
const minutes = Math.floor((timeDifference % millisecondsPerHour) / millisecondsPerMinute);
|
|
|
|
|
|
const seconds = Math.floor((timeDifference % millisecondsPerMinute) / millisecondsPerSecond);
|
2024-12-11 18:48:54 +08:00
|
|
|
|
if(days > 0){
|
|
|
|
|
|
return `: ${days} 天, ${hours} 小时, ${minutes} 分钟, ${seconds} 秒`
|
|
|
|
|
|
}
|
|
|
|
|
|
else if(hours > 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
return `: ${hours} 小时, ${minutes} 分钟, ${seconds} 秒`
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return `: ${minutes} 分钟, ${seconds} 秒`
|
|
|
|
|
|
}
|
2024-12-11 17:46:59 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
const updateLog = () => {
|
|
|
|
|
|
const currentTime = ref(new Date().toLocaleString());
|
|
|
|
|
|
|
|
|
|
|
|
switch(activeIndex.value)
|
|
|
|
|
|
{
|
|
|
|
|
|
case 1:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
timeDifference.value = 0;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
testLogList.value.length = 0; // 清空数组
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
2024-12-11 18:48:54 +08:00
|
|
|
|
log: currentTime.value + ':检测开始',
|
2024-11-21 23:02:43 +08:00
|
|
|
|
})
|
2024-12-11 18:48:54 +08:00
|
|
|
|
startData.value = new Date();
|
2024-11-21 23:02:43 +08:00
|
|
|
|
break;
|
|
|
|
|
|
case 2:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Freqtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Freqtime
|
2024-12-11 17:46:59 +08:00
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
2024-11-21 23:02:43 +08:00
|
|
|
|
type: 'info',
|
2024-12-11 18:48:54 +08:00
|
|
|
|
log:currentTime.value + ':频率准确度检测合格,用时'+getTimeDifference(Freqtime),
|
2024-11-21 23:02:43 +08:00
|
|
|
|
})
|
2024-12-11 17:46:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
2024-12-11 18:48:54 +08:00
|
|
|
|
log:currentTime.value + ':频率准确度检测不合格,用时'+getTimeDifference(Freqtime),
|
2024-12-11 17:46:59 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
2024-12-11 18:48:54 +08:00
|
|
|
|
startData.value = new Date();
|
2024-11-21 23:02:43 +08:00
|
|
|
|
break;
|
|
|
|
|
|
case 3:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const VOLtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += VOLtime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':电压准确度检测合格,用时'+getTimeDifference(VOLtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
2024-11-21 23:02:43 +08:00
|
|
|
|
type: 'error',
|
2024-12-11 18:48:54 +08:00
|
|
|
|
log:currentTime.value + ':电压准确度检测不合格,用时'+getTimeDifference(VOLtime),
|
2024-11-21 23:02:43 +08:00
|
|
|
|
})
|
2024-12-11 18:48:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Harm_Vtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Harm_Vtime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
2024-11-21 23:02:43 +08:00
|
|
|
|
type: 'info',
|
2024-12-11 18:48:54 +08:00
|
|
|
|
log:currentTime.value + ':谐波电压准确度检测合格,用时'+getTimeDifference(Harm_Vtime),
|
2024-11-21 23:02:43 +08:00
|
|
|
|
})
|
2024-12-11 18:48:54 +08:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':谐波电压准确度检测不合格,用时'+getTimeDifference(Harm_Vtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 5:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Harm_Itime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Harm_Itime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':谐波电流准确度检测合格,用时'+getTimeDifference(Harm_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':谐波电流准确度检测不合格,用时'+getTimeDifference(Harm_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 6:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Harm_Ptime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Harm_Ptime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':谐波有功功率准确度检测合格,用时'+getTimeDifference(Harm_Ptime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':谐波有功功率准确度检测不合格,用时'+getTimeDifference(Harm_Ptime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 7:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const InHarm_Vtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += InHarm_Vtime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':间谐波电压准确度检测合格,用时'+getTimeDifference(InHarm_Vtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':间谐波电压准确度检测不合格,用时'+getTimeDifference(InHarm_Vtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 8:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const InHarm_Itime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += InHarm_Itime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':间谐波电流准确度检测合格,用时'+getTimeDifference(InHarm_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':间谐波电流准确度检测不合格,用时'+getTimeDifference(InHarm_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 9:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Diptime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Diptime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':暂态准确度检测合格,用时'+getTimeDifference(Diptime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':暂态准确度检测不合格,用时'+getTimeDifference(Diptime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 10:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const CURtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += CURtime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':电流准确度检测合格,用时'+getTimeDifference(CURtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':电流准确度检测不合格,用时'+getTimeDifference(CURtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 11:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const MSQI_Utime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += MSQI_Utime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':电压不平衡度检测合格,用时'+getTimeDifference(MSQI_Utime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':电压不平衡度检测不合格,用时'+getTimeDifference(MSQI_Utime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
2024-11-21 23:02:43 +08:00
|
|
|
|
case 12:
|
2024-12-11 18:48:54 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const MSQI_Itime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += MSQI_Itime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':电流不平衡度检测合格,用时'+getTimeDifference(MSQI_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':电流不平衡度检测不合格,用时'+getTimeDifference(MSQI_Itime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 13:
|
|
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const FLKtime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += FLKtime
|
|
|
|
|
|
if(getItemCheckResult(activeIndex.value - 1))
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':闪变准确度检测合格,用时'+getTimeDifference(FLKtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'error',
|
|
|
|
|
|
log:currentTime.value + ':闪变准确度检测不合格,用时'+getTimeDifference(FLKtime),
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':检测结束,总用时'+getTimeDifference(timeDifference.value),
|
|
|
|
|
|
})
|
2024-11-21 23:02:43 +08:00
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
scrollToBottom();
|
|
|
|
|
|
}
|
|
|
|
|
|
const testLogList = ref([
|
|
|
|
|
|
{
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:'暂无数据,等待检测开始',
|
|
|
|
|
|
},
|
|
|
|
|
|
])
|
2024-12-05 21:33:52 +08:00
|
|
|
|
const columnList = ref([]);
|
2024-12-05 22:15:12 +08:00
|
|
|
|
|
2024-11-20 21:30:05 +08:00
|
|
|
|
const tableKey = ref(0);
|
2024-11-25 21:11:10 +08:00
|
|
|
|
function tableCell ({row,columnIndex}){
|
|
|
|
|
|
|
2024-12-05 21:33:52 +08:00
|
|
|
|
let items = columnList?.value.filter((item) => item === row.id)
|
|
|
|
|
|
|
|
|
|
|
|
if(columnIndex === 0 && items.length > 0)
|
|
|
|
|
|
{
|
2024-12-05 22:15:12 +08:00
|
|
|
|
console.log(row.id,items.length,columnList?.value)
|
2024-12-05 21:33:52 +08:00
|
|
|
|
return 'warning-row'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
if(columnIndex === 0)
|
2024-12-05 21:33:52 +08:00
|
|
|
|
{
|
|
|
|
|
|
return 'header-row'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
}
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
|
|
|
|
|
const tableRowClassName = ({
|
|
|
|
|
|
row,
|
|
|
|
|
|
rowIndex,
|
|
|
|
|
|
}: {
|
|
|
|
|
|
row: any
|
|
|
|
|
|
rowIndex: number
|
|
|
|
|
|
}) => {
|
2024-11-25 21:11:10 +08:00
|
|
|
|
if (row.rowIndex === activeIndex.value.toString()) {
|
2024-11-20 21:30:05 +08:00
|
|
|
|
return 'warning-row'
|
|
|
|
|
|
}
|
|
|
|
|
|
// else if (rowIndex === 3) {
|
|
|
|
|
|
// return 'success-row'
|
|
|
|
|
|
// }
|
|
|
|
|
|
return ''
|
|
|
|
|
|
}
|
2024-11-18 22:04:59 +08:00
|
|
|
|
const percentage = ref(0);
|
|
|
|
|
|
const customColors = [
|
|
|
|
|
|
{ color: "#5cb87a", percentage: 100 }, //绿
|
|
|
|
|
|
];
|
|
|
|
|
|
//暂停检测
|
|
|
|
|
|
const isPause = ref<boolean>(false);
|
2024-11-19 19:34:00 +08:00
|
|
|
|
const resultDialogVisible = ref(false)
|
|
|
|
|
|
const dataCheckSingleChannelSingleTestDialogVisable = ref(false);
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
|
|
|
|
|
function clear() {
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
function traverseTableData(data: any[],id: string): void {
|
|
|
|
|
|
data.forEach(item => {
|
|
|
|
|
|
// 处理当前节点的数据
|
|
|
|
|
|
if(item.id === id)
|
|
|
|
|
|
{
|
|
|
|
|
|
for(let i = 1;i<=8;i++)
|
|
|
|
|
|
{
|
|
|
|
|
|
let field1 = "resultType"+i
|
|
|
|
|
|
let field2 = "resultValue"+i
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
if(getRandomInt(10)>8 && activeIndex.value>2)
|
|
|
|
|
|
{
|
|
|
|
|
|
item[field1] = "danger";
|
|
|
|
|
|
item[field2] = "×";
|
2024-12-05 21:33:52 +08:00
|
|
|
|
columnList.value.push(activeIndex.value.toString());
|
2024-12-05 22:15:12 +08:00
|
|
|
|
console.log(id,activeIndex.value,columnList.value)
|
2024-11-21 23:02:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
item[field1] = "success";
|
|
|
|
|
|
item[field2] = "√";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
// 如果当前节点有 children,并且 children 是一个数组,则递归遍历
|
|
|
|
|
|
if (Array.isArray(item.children)) {
|
|
|
|
|
|
traverseTableData(item.children,id);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
const updateTableData = (id: string) => {
|
|
|
|
|
|
traverseTableData(tableData.value,id);
|
|
|
|
|
|
};
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
const handleReCheck = () => {
|
|
|
|
|
|
activeIndex.value = 0;
|
|
|
|
|
|
percentage.value = 0;
|
|
|
|
|
|
tableData.value.length = 0;
|
|
|
|
|
|
testLogList.value.length = 0;
|
2024-12-05 21:33:52 +08:00
|
|
|
|
columnList.value.length = 0;
|
2024-11-29 13:45:48 +08:00
|
|
|
|
tableData.value = JSON.parse(JSON.stringify(operatorTableData.value));
|
|
|
|
|
|
resumeTimer()
|
2024-11-25 21:11:10 +08:00
|
|
|
|
};
|
2024-11-21 23:02:43 +08:00
|
|
|
|
let timer: any = ref("");
|
|
|
|
|
|
const handlePauseTest = () => {
|
2024-12-11 19:12:04 +08:00
|
|
|
|
const currentTime = ref(new Date().toLocaleString());
|
2024-11-20 21:30:05 +08:00
|
|
|
|
|
2024-11-18 22:04:59 +08:00
|
|
|
|
if (!isPause.value) {
|
2024-12-11 19:12:04 +08:00
|
|
|
|
endData.value = new Date();
|
|
|
|
|
|
const Pausetime = endData.value.getTime() - startData.value.getTime();
|
|
|
|
|
|
timeDifference.value += Pausetime
|
|
|
|
|
|
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':暂停检测',
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
pauseTimer()
|
2024-11-18 22:04:59 +08:00
|
|
|
|
} else {
|
2024-12-11 19:12:04 +08:00
|
|
|
|
startData.value = new Date();
|
|
|
|
|
|
|
|
|
|
|
|
testLogList.value.push({
|
|
|
|
|
|
type: 'info',
|
|
|
|
|
|
log:currentTime.value + ':继续检测',
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2024-11-21 23:02:43 +08:00
|
|
|
|
resumeTimer()
|
2024-11-18 22:04:59 +08:00
|
|
|
|
}
|
|
|
|
|
|
isPause.value = !isPause.value;
|
|
|
|
|
|
};
|
|
|
|
|
|
//完成检测
|
|
|
|
|
|
const handleFinishTest = () => {
|
2024-11-19 19:34:00 +08:00
|
|
|
|
resultDialogVisible.value = true
|
2024-11-18 22:04:59 +08:00
|
|
|
|
ElMessage.success("完成检测");
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2024-11-19 19:34:00 +08:00
|
|
|
|
const handleClick = (row:any) => {
|
|
|
|
|
|
dataCheckSingleChannelSingleTestDialogVisable.value = true;
|
|
|
|
|
|
};
|
2024-11-18 22:04:59 +08:00
|
|
|
|
|
2024-11-20 21:30:05 +08:00
|
|
|
|
interface User {
|
|
|
|
|
|
id: number
|
|
|
|
|
|
scriptItemName: string
|
|
|
|
|
|
name: string
|
|
|
|
|
|
address: string
|
|
|
|
|
|
hasChildren?: boolean
|
|
|
|
|
|
children?: User[]
|
|
|
|
|
|
}
|
|
|
|
|
|
//resultType2: 'success',
|
|
|
|
|
|
// resultValue2:'√',
|
|
|
|
|
|
// resultType3: 'danger',
|
|
|
|
|
|
// resultValue3:'×',
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
const operatorTableData = ref([
|
2024-11-20 21:30:05 +08:00
|
|
|
|
{
|
|
|
|
|
|
id: '1',
|
|
|
|
|
|
scriptItemName: '频率',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1',
|
|
|
|
|
|
scriptItemName: '额定条件下的测量',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-1',
|
|
|
|
|
|
scriptItemName: '频率:42.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-2',
|
|
|
|
|
|
scriptItemName: '频率:50Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-3',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-4',
|
|
|
|
|
|
scriptItemName: '频率:57.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-2',
|
|
|
|
|
|
scriptItemName: '电压对频率测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-2-1',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz 电压:10%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
2024-11-18 22:04:59 +08:00
|
|
|
|
{
|
2024-11-20 21:30:05 +08:00
|
|
|
|
id: '1-3',
|
|
|
|
|
|
scriptItemName: '谐波对频率测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-3-1',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz 谐波电压:h3 10%Un;h7 10%Un;h11 10%Un;h15 4%Un; h19 5%Un; h23 5%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2024-11-18 22:04:59 +08:00
|
|
|
|
},
|
2024-11-20 21:30:05 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2',
|
|
|
|
|
|
scriptItemName: '电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
2024-11-18 22:04:59 +08:00
|
|
|
|
{
|
2024-11-20 21:30:05 +08:00
|
|
|
|
id: '2-1',
|
|
|
|
|
|
scriptItemName: '额定条件下的测量',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-1',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:10%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-2',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:45%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-3',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:80%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-4',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:115%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-5',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:150%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2024-11-18 22:04:59 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-11-20 21:30:05 +08:00
|
|
|
|
id: '2-2',
|
|
|
|
|
|
scriptItemName: '频率对电压测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-2-1',
|
|
|
|
|
|
scriptItemName: '频率:42.5Hz 电压:80%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2024-11-18 22:04:59 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2024-11-20 21:30:05 +08:00
|
|
|
|
id: '2-3',
|
|
|
|
|
|
scriptItemName: '谐波对电压测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-3-1',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:80%Un 谐波电压:h3 10%Un;h7 10%Un;h11 10%Un;h15 4%Un; h19 5%Un; h23 5%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2024-11-18 22:04:59 +08:00
|
|
|
|
},
|
2024-11-20 21:30:05 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '3',
|
|
|
|
|
|
scriptItemName: '谐波电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '4',
|
|
|
|
|
|
scriptItemName: '谐波电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '5',
|
|
|
|
|
|
scriptItemName: '谐波有功功率',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '6',
|
|
|
|
|
|
scriptItemName: '间谐波电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '7',
|
|
|
|
|
|
scriptItemName: '间谐波电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '8',
|
|
|
|
|
|
scriptItemName: '暂态',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '9',
|
|
|
|
|
|
scriptItemName: '电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '10',
|
|
|
|
|
|
scriptItemName: '电压不平衡度',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '11',
|
|
|
|
|
|
scriptItemName: '电流不平衡度',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '12',
|
|
|
|
|
|
scriptItemName: '短时闪变',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
])
|
2024-11-25 21:11:10 +08:00
|
|
|
|
const tableData = ref([
|
2024-11-21 23:02:43 +08:00
|
|
|
|
{
|
2024-11-25 21:11:10 +08:00
|
|
|
|
id: '1',
|
|
|
|
|
|
scriptItemName: '频率',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1',
|
|
|
|
|
|
scriptItemName: '额定条件下的测量',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-1',
|
|
|
|
|
|
scriptItemName: '频率:42.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-2',
|
|
|
|
|
|
scriptItemName: '频率:50Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-3',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-1-4',
|
|
|
|
|
|
scriptItemName: '频率:57.5Hz',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-2',
|
|
|
|
|
|
scriptItemName: '电压对频率测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-2-1',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz 电压:10%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-3',
|
|
|
|
|
|
scriptItemName: '谐波对频率测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '1-3-1',
|
|
|
|
|
|
scriptItemName: '频率:50.5Hz 谐波电压:h3 10%Un;h7 10%Un;h11 10%Un;h15 4%Un; h19 5%Un; h23 5%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2',
|
|
|
|
|
|
scriptItemName: '电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1',
|
|
|
|
|
|
scriptItemName: '额定条件下的测量',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-1',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:10%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-2',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:45%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-3',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:80%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-4',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:115%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-1-5',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:150%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-2',
|
|
|
|
|
|
scriptItemName: '频率对电压测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-2-1',
|
|
|
|
|
|
scriptItemName: '频率:42.5Hz 电压:80%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-3',
|
|
|
|
|
|
scriptItemName: '谐波对电压测量的影响',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '2-3-1',
|
|
|
|
|
|
scriptItemName: '频率:50Hz 电压:80%Un 谐波电压:h3 10%Un;h7 10%Un;h11 10%Un;h15 4%Un; h19 5%Un; h23 5%Un',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '3',
|
|
|
|
|
|
scriptItemName: '谐波电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '4',
|
|
|
|
|
|
scriptItemName: '谐波电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '5',
|
|
|
|
|
|
scriptItemName: '谐波有功功率',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '6',
|
|
|
|
|
|
scriptItemName: '间谐波电压',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '7',
|
|
|
|
|
|
scriptItemName: '间谐波电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '8',
|
|
|
|
|
|
scriptItemName: '暂态',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '9',
|
|
|
|
|
|
scriptItemName: '电流',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '10',
|
|
|
|
|
|
scriptItemName: '电压不平衡度',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '11',
|
|
|
|
|
|
scriptItemName: '电流不平衡度',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id: '12',
|
|
|
|
|
|
scriptItemName: '短时闪变',
|
|
|
|
|
|
resultType1: 'info',
|
|
|
|
|
|
resultValue1:'-',
|
|
|
|
|
|
resultType2: 'info',
|
|
|
|
|
|
resultValue2:'-',
|
|
|
|
|
|
resultType3: 'info',
|
|
|
|
|
|
resultValue3:'-',
|
|
|
|
|
|
resultType4: 'info',
|
|
|
|
|
|
resultValue4:'-',
|
|
|
|
|
|
resultType5: 'info',
|
|
|
|
|
|
resultValue5:'-',
|
|
|
|
|
|
resultType6: 'info',
|
|
|
|
|
|
resultValue6:'-',
|
|
|
|
|
|
resultType7: 'info',
|
|
|
|
|
|
resultValue7:'-',
|
|
|
|
|
|
resultType8: 'info',
|
|
|
|
|
|
resultValue8:'-',
|
|
|
|
|
|
},
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish');
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
testStatus: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
default: 'wait'
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
const testStatus = toRef(props, 'testStatus');
|
|
|
|
|
|
const ts = ref('');
|
|
|
|
|
|
|
|
|
|
|
|
const startTimer = () => {
|
|
|
|
|
|
//if (timer.value !== null) return; // 如果定时器已经启动,则不再重复启动
|
|
|
|
|
|
timer.value = setInterval(() => {
|
2024-12-05 21:33:52 +08:00
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
if(activeIndex.value <= activeTotalNum.value)
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
activeIndex.value++;
|
|
|
|
|
|
updateLog()
|
|
|
|
|
|
|
|
|
|
|
|
switch(activeIndex.value)
|
|
|
|
|
|
{
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
updateTableData("1-1-1")
|
|
|
|
|
|
updateTableData("1-1-2")
|
|
|
|
|
|
updateTableData("1-1-3")
|
|
|
|
|
|
updateTableData("1-1-4")
|
|
|
|
|
|
updateTableData("1-1")
|
|
|
|
|
|
updateTableData("1-2-1")
|
|
|
|
|
|
updateTableData("1-2")
|
|
|
|
|
|
updateTableData("1-3-1")
|
|
|
|
|
|
updateTableData("1-3")
|
|
|
|
|
|
updateTableData("1")
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
updateTableData("2-1-1")
|
|
|
|
|
|
updateTableData("2-1-2")
|
|
|
|
|
|
updateTableData("2-1-3")
|
|
|
|
|
|
updateTableData("2-1-4")
|
|
|
|
|
|
updateTableData("2-1-5")
|
|
|
|
|
|
updateTableData("2-1")
|
|
|
|
|
|
updateTableData("2-2-1")
|
|
|
|
|
|
updateTableData("2-2")
|
|
|
|
|
|
updateTableData("2-3-1")
|
|
|
|
|
|
updateTableData("2-3")
|
|
|
|
|
|
updateTableData("2")
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
case 5:
|
|
|
|
|
|
case 6:
|
|
|
|
|
|
case 7:
|
|
|
|
|
|
case 8:
|
|
|
|
|
|
case 9:
|
|
|
|
|
|
case 10:
|
|
|
|
|
|
case 11:
|
|
|
|
|
|
case 12:
|
|
|
|
|
|
updateTableData(activeIndex.value.toString())
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (percentage.value < 100) {
|
|
|
|
|
|
percentage.value = Math.trunc(activeIndex.value/activeTotalNum.value * 100);
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
percentage.value = 100;
|
|
|
|
|
|
clearInterval(timer.value)
|
2024-11-29 13:45:48 +08:00
|
|
|
|
timer.value = null;
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
ts.value = 'success'
|
|
|
|
|
|
ElMessageBox.alert('检测全部结束,你可以停留在此页面查看检测结果,或返回首页进行复检、报告生成和归档等操作', '检测完成', {
|
|
|
|
|
|
// if you want to disable its autofocus
|
|
|
|
|
|
// autofocus: false,
|
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
})
|
|
|
|
|
|
clear();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
clearInterval(timer.value)
|
2024-11-29 13:45:48 +08:00
|
|
|
|
timer.value = null;
|
2024-11-25 21:11:10 +08:00
|
|
|
|
ts.value = 'success'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}, 2000);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const pauseTimer = () => {
|
|
|
|
|
|
if (timer.value !== null) {
|
|
|
|
|
|
clearInterval(timer.value);
|
|
|
|
|
|
timer.value = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const resumeTimer = () => {
|
|
|
|
|
|
if (timer.value === null) {
|
2024-11-29 13:45:48 +08:00
|
|
|
|
console.log('startTimer')
|
2024-11-25 21:11:10 +08:00
|
|
|
|
startTimer();
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
//监听goods_sn的变化
|
|
|
|
|
|
watch(testStatus, function (newValue, oldValue) {
|
|
|
|
|
|
ts.value = props.testStatus;
|
|
|
|
|
|
if(ts.value==='start')
|
|
|
|
|
|
{
|
|
|
|
|
|
ts.value = 'process'
|
|
|
|
|
|
|
|
|
|
|
|
startTimer()
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['update:testStatus']);
|
|
|
|
|
|
//监听sn
|
|
|
|
|
|
watch(ts, function (newValue, oldValue) {
|
|
|
|
|
|
//修改父组件
|
|
|
|
|
|
emit('update:testStatus',ts.value)
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
2024-12-05 21:33:52 +08:00
|
|
|
|
:deep(.el-table .header-row) {
|
2024-11-25 21:11:10 +08:00
|
|
|
|
// background-color:var(--el-color-warning-light-9);
|
|
|
|
|
|
background-color:#f5f7fa;
|
|
|
|
|
|
// color:red;
|
|
|
|
|
|
// font-size:30px;
|
|
|
|
|
|
// --el-table-tr-bg-color: var(--el-color-warning-light-9);
|
|
|
|
|
|
}
|
2024-12-05 21:33:52 +08:00
|
|
|
|
:deep(.el-table .warning-row) {
|
|
|
|
|
|
// background-color:var(--el-color-warning-light-9);
|
2024-12-06 09:10:39 +08:00
|
|
|
|
//background-color:#bed96557;
|
2024-12-06 15:06:38 +08:00
|
|
|
|
color:red;
|
2024-12-05 21:33:52 +08:00
|
|
|
|
// font-size:30px;
|
|
|
|
|
|
// --el-table-tr-bg-color: var(--el-color-warning-light-9);
|
2024-12-06 15:06:38 +08:00
|
|
|
|
// background-color:#f5f7fa;
|
|
|
|
|
|
// position: relative;
|
2024-12-05 21:33:52 +08:00
|
|
|
|
}
|
2024-12-06 15:06:38 +08:00
|
|
|
|
|
|
|
|
|
|
// :deep(.el-table .warning-row::before) {
|
|
|
|
|
|
// content: '*'; /* 必须设置content属性 */
|
|
|
|
|
|
// position: absolute;
|
|
|
|
|
|
// color:red;
|
|
|
|
|
|
// background-color:#f5f7fa;
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
.el-table .success-row {
|
|
|
|
|
|
--el-table-tr-bg-color: var(--el-color-success-light-9);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dialog{
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.dialog-title{
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-right:10px;
|
|
|
|
|
|
margin-bottom:10px;
|
|
|
|
|
|
}
|
2024-12-11 19:12:04 +08:00
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
.dialog-content{
|
2024-12-05 15:22:46 +08:00
|
|
|
|
max-height: 450px;
|
2024-11-25 21:11:10 +08:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-12-11 19:12:04 +08:00
|
|
|
|
:deep(.el-collapse-item__header){
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-11-25 21:11:10 +08:00
|
|
|
|
.dialog-log{
|
2024-12-11 19:12:04 +08:00
|
|
|
|
height: 50px;
|
2024-11-25 21:11:10 +08:00
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
// flex-grow: 1;
|
|
|
|
|
|
// display: flex;
|
|
|
|
|
|
// flex-direction: column-reverse;
|
|
|
|
|
|
|
2024-12-11 19:12:04 +08:00
|
|
|
|
p {
|
|
|
|
|
|
margin: 5px 0;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-21 23:02:43 +08:00
|
|
|
|
|
2024-11-18 22:04:59 +08:00
|
|
|
|
</style>
|
2024-12-05 15:22:46 +08:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
:deep(.el-button--small) {
|
|
|
|
|
|
height: 20px !important;
|
|
|
|
|
|
width: 20px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
:deep(.el-table--default td ){
|
|
|
|
|
|
padding: 5px 0 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|