存在已经初始化步骤,重新检测
This commit is contained in:
@@ -53,6 +53,7 @@ export namespace CheckData {
|
||||
export interface TreeItem{
|
||||
scriptTypeName: string|null,
|
||||
sourceDesc: string|null,
|
||||
harmNum: number|null,
|
||||
index:number|null,
|
||||
fly:number|null,
|
||||
children?: TreeItem[]
|
||||
|
||||
@@ -24,7 +24,7 @@ export const getFormData = (params: {
|
||||
*/
|
||||
export const getTreeData = (params: {
|
||||
scriptId: string,
|
||||
deviceId: string,
|
||||
devId: string,
|
||||
devNum: string,
|
||||
scriptType: string | null,
|
||||
code: string
|
||||
|
||||
@@ -150,7 +150,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
|
||||
// 发起请求,查询该测试项的检测结果
|
||||
const {data: resTreeDataTemp}: { data: CheckData.TreeItem[] } = await getTreeData({
|
||||
scriptId: checkStore.scriptId,
|
||||
deviceId,
|
||||
devId: deviceId,
|
||||
devNum: formContent.chnNum + '',
|
||||
scriptType,
|
||||
code: checkStore.planCode
|
||||
@@ -161,36 +161,42 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
|
||||
{
|
||||
scriptTypeName: "频率准确度检测",
|
||||
sourceDesc: null,
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: null,
|
||||
children: [
|
||||
{
|
||||
scriptTypeName: "额定条件下频率准确度测试",
|
||||
sourceDesc: null,
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: null,
|
||||
children: [
|
||||
{
|
||||
scriptTypeName: "频率=42.5Hz",
|
||||
sourceDesc: "频率=42.5Hz",
|
||||
harmNum: null,
|
||||
index: 11,
|
||||
fly: 1,
|
||||
},
|
||||
{
|
||||
scriptTypeName: "频率=50Hz",
|
||||
sourceDesc: "频率=50Hz",
|
||||
harmNum: null,
|
||||
index: 12,
|
||||
fly: 2,
|
||||
},
|
||||
{
|
||||
scriptTypeName: "频率=50.05Hz",
|
||||
sourceDesc: "频率=50.05Hz",
|
||||
harmNum: null,
|
||||
index: 13,
|
||||
fly: 1,
|
||||
},
|
||||
{
|
||||
scriptTypeName: "频率=57.5Hz",
|
||||
sourceDesc: "频率=57.5Hz",
|
||||
harmNum: null,
|
||||
index: 14,
|
||||
fly: 2,
|
||||
}
|
||||
@@ -199,18 +205,21 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
|
||||
{
|
||||
scriptTypeName: "单影响量下频率准确度测试",
|
||||
sourceDesc: null,
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: null,
|
||||
children: [
|
||||
{
|
||||
scriptTypeName: "电压幅值对频率测量的影响",
|
||||
sourceDesc: null,
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: null,
|
||||
children: [
|
||||
{
|
||||
scriptTypeName: "10%Un对频率=50.05Hz的影响",
|
||||
sourceDesc: "10%Un对频率=50.05Hz的影响",
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: 1,
|
||||
}
|
||||
@@ -219,12 +228,14 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
|
||||
{
|
||||
scriptTypeName: "谐波对频率测量的影响",
|
||||
sourceDesc: null,
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: null,
|
||||
children: [
|
||||
{
|
||||
scriptTypeName: "叠加多次谐波对频率=50.05Hz的影响",
|
||||
sourceDesc: "叠加多次谐波对频率=50.05Hz的影响",
|
||||
harmNum: null,
|
||||
index: null,
|
||||
fly: 2,
|
||||
}
|
||||
|
||||
@@ -24,6 +24,12 @@
|
||||
:icon="Failed"
|
||||
disabled>预检测失败
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
:icon="RefreshLeft"
|
||||
v-if="testStatus === 'error'"
|
||||
@click="emit('sendReCheck')">重新检测
|
||||
</el-button>
|
||||
|
||||
|
||||
<el-button type="success" v-if="activeIndex >= checkTotal" :icon="Check" disabled>检测完成</el-button>
|
||||
@@ -36,17 +42,6 @@
|
||||
>继续检测
|
||||
</el-button>
|
||||
<el-button type="text" :icon="InfoFilled" @click="showTestLog">检测项进度</el-button>
|
||||
<!-- <el-button
|
||||
type="warning"
|
||||
v-if="activeIndex >= checkTotal"
|
||||
:icon="Refresh"
|
||||
@click="handleReCheck"
|
||||
>重新检测</el-button
|
||||
> -->
|
||||
<!-- <el-button type="danger" :icon="Close" @click="handleFinishTest"
|
||||
>停止检测</el-button
|
||||
> -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="dialog-content">
|
||||
@@ -139,7 +134,7 @@
|
||||
<dataCheckSingleChannelSingleTestPopup ref="dataCheckSingleChannelSingleTestPopupRef"/>
|
||||
</template>
|
||||
<script lang="tsx" setup name="test">
|
||||
import {Check, InfoFilled, Loading, Refresh, VideoPause, Failed} from '@element-plus/icons-vue'
|
||||
import {Check, Failed, InfoFilled, Loading, Refresh, RefreshLeft, VideoPause} from '@element-plus/icons-vue'
|
||||
import resultPopup from './resultPopup.vue'
|
||||
import dataCheckSingleChannelSingleTestPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
||||
import {computed, reactive, ref, toRef, watch} from "vue";
|
||||
@@ -168,7 +163,7 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:testStatus', 'update:webMsgSend', 'sendPause', 'sendResume']);
|
||||
const emit = defineEmits(['update:testStatus', 'update:webMsgSend', 'sendPause', 'sendResume', 'sendReCheck']);
|
||||
|
||||
// 用来保存测试项进度抽屉是否打开
|
||||
const drawer = ref(false)
|
||||
@@ -201,7 +196,6 @@ const resultDialogVisible = ref(false)
|
||||
const scrollContainerRef = ref();
|
||||
const dataCheckSingleChannelSingleTestPopupRef = ref<InstanceType<typeof dataCheckSingleChannelSingleTestPopup>>()
|
||||
|
||||
|
||||
// 总通道数
|
||||
const chnSum = computed(() => {
|
||||
let sum = 0
|
||||
@@ -292,56 +286,52 @@ const checkResultView: ComputedRef<CheckData.ScriptChnViewItem[]> = computed(()
|
||||
watch(testStatus, function (newValue, oldValue) {
|
||||
if (newValue == 'start') {
|
||||
ElMessage.success('预检测开始!')
|
||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:预检测开始!`})
|
||||
emit('update:testStatus', 'preTest_process')
|
||||
//startTimer() // todo 可移除
|
||||
//emit('update:testStatus', 'process') // todo 可移除
|
||||
|
||||
if (oldValue == 'error') {
|
||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:开始重新检测!`})
|
||||
|
||||
initCheckResult()
|
||||
activeIndex = 0
|
||||
percentage.value = 0
|
||||
}
|
||||
emit('update:testStatus', 'preTest_process')
|
||||
startTimer() // todo 可移除
|
||||
testLogList.push({type: 'info', log: `${new Date().toLocaleString()}:预检测开始!`})
|
||||
}
|
||||
// if (newValue == 'paused' && oldValue == 'process') {
|
||||
// handlePauseTest()
|
||||
// }
|
||||
// if (newValue === 'process' && oldValue == 'paused') {
|
||||
//activeIndex++
|
||||
//handleResumeTest()
|
||||
// }
|
||||
})
|
||||
|
||||
watch(webMsgSend, function (newValue, oldValue) {
|
||||
if (activeIndex <= checkTotal) {
|
||||
if (newValue.code == 10552) { //todo 10552之后还会发送消息吗?
|
||||
ElMessageBox.alert('存在已经初始化步骤,执行自动关闭,请重新发起检测', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
testLogList.push({
|
||||
type: 'error',
|
||||
log: `${new Date().toLocaleString()}:存在已经初始化步骤,执行自动关闭,请重新发起检测!`
|
||||
})
|
||||
emit('update:testStatus', 'error')
|
||||
} else {
|
||||
switch (newValue.requestId) {
|
||||
case 'connect':
|
||||
switch (newValue.operateCode) {
|
||||
case "Source":
|
||||
ElMessageBox.alert('源通讯失败,请检查源连接情况!', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源通讯失败!`})
|
||||
break;
|
||||
case "Dev":
|
||||
ElMessageBox.alert('设备通讯失败,请检查设备连接情况!', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:设备通讯失败!`})
|
||||
break;
|
||||
}
|
||||
emit('update:testStatus', 'preTest_fail')
|
||||
break;
|
||||
case 'yjc_ytxjy':
|
||||
switch (newValue.operateCode) {
|
||||
case 'INIT_GATHER':
|
||||
if (newValue.code == 10552) {
|
||||
ElMessageBox.alert('源通讯中断,请检查源连接情况!', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源通讯中断!`})
|
||||
emit('update:testStatus', 'preTest_fail')
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
// case 'connect':
|
||||
// switch (newValue.operateCode) {
|
||||
// case "Source":
|
||||
// ElMessageBox.alert('源通讯失败,请检查源连接情况!', '预检测失败', {
|
||||
// confirmButtonText: '确定',
|
||||
// type: 'error',
|
||||
// })
|
||||
// testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:源通讯失败!`})
|
||||
// break;
|
||||
// case "Dev":
|
||||
// ElMessageBox.alert('设备通讯失败,请检查设备连接情况!', '预检测失败', {
|
||||
// confirmButtonText: '确定',
|
||||
// type: 'error',
|
||||
// })
|
||||
// testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:设备通讯失败!`})
|
||||
// break;
|
||||
// }
|
||||
// emit('update:testStatus', 'preTest_fail')
|
||||
// break;
|
||||
case 'yjc_sbtxjy':
|
||||
switch (newValue.operateCode) {
|
||||
case 'INIT_GATHER$01':
|
||||
@@ -361,17 +351,6 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
testLogList.push({type: 'error', log: `${new Date().toLocaleString()}:${newValue.data}设备触发报告异常!`})
|
||||
emit('update:testStatus', 'preTest_fail')
|
||||
}
|
||||
if (newValue.code == 10552) {
|
||||
ElMessageBox.alert('存在已经初始化步骤,执行自动关闭,请重新发起检测', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
})
|
||||
testLogList.push({
|
||||
type: 'error',
|
||||
log: `${new Date().toLocaleString()}:存在已经初始化步骤,执行自动关闭,请重新发起检测!`
|
||||
})
|
||||
emit('update:testStatus', 'preTest_fail')
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -440,7 +419,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('HV')
|
||||
// startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'HI_Start':
|
||||
@@ -453,7 +432,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('HI')
|
||||
// startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'HP_Start':
|
||||
@@ -466,7 +445,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('HP')
|
||||
// startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'HSV_Start':
|
||||
@@ -479,7 +458,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('HSV')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'HSI_Start':
|
||||
@@ -492,7 +471,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('HSI')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'VOLTAGE_Start':
|
||||
@@ -505,7 +484,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('VOLTAGE')
|
||||
// startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'I_Start':
|
||||
@@ -518,7 +497,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('I')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'IMBV_Start':
|
||||
@@ -531,7 +510,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('IMBV')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'IMBA_Start':
|
||||
@@ -544,7 +523,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('IMBA')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'F_Start':
|
||||
@@ -557,7 +536,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
updateLog(false)
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex = getNextActiveIndex('F')
|
||||
//startTimer()
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Quit':
|
||||
@@ -567,6 +546,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}, {deep: true})
|
||||
|
||||
// 更新进度条
|
||||
@@ -606,7 +586,6 @@ onBeforeMount(async () => {
|
||||
// todo 可移除end
|
||||
})
|
||||
|
||||
|
||||
const showTestLog = () => {
|
||||
drawer.value = true
|
||||
}
|
||||
@@ -639,6 +618,7 @@ const initDeviceList = () => {
|
||||
|
||||
// 初始化检测结果 (详细到通道)
|
||||
const initCheckResult = () => {
|
||||
let result: CheckData.ScriptChnItem[] = []
|
||||
scriptData.forEach(item => {
|
||||
// 处理当前节点的数据
|
||||
let temp: CheckData.ScriptChnItem = {
|
||||
@@ -657,8 +637,9 @@ const initCheckResult = () => {
|
||||
chnResult: tempChnResult
|
||||
})
|
||||
}
|
||||
checkResult.push(temp)
|
||||
result.push(temp)
|
||||
})
|
||||
Object.assign(checkResult, result)
|
||||
}
|
||||
// 更新检测结果(详细到通道)
|
||||
const updateCheckResult = (data: CheckData.ScriptChnItem) => {
|
||||
@@ -934,153 +915,134 @@ const startTimer = () => {
|
||||
case 1:
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'FREQ_Start',
|
||||
params: {}
|
||||
requestId: 'FREQ_Start'
|
||||
})
|
||||
}, 1000)
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'FREQ_End',
|
||||
params: {}
|
||||
requestId: 'FREQ_End'
|
||||
})
|
||||
}, 2000);
|
||||
break;
|
||||
case 2:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'V_Start',
|
||||
params: {}
|
||||
requestId: 'V_Start'
|
||||
})
|
||||
// setTimeout(() => {
|
||||
// emit('update:webMsgSend', {
|
||||
// requestId: 'V_Start',
|
||||
// code: "10552"
|
||||
// })
|
||||
// }, 2000)
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'V_End',
|
||||
params: {}
|
||||
requestId: 'V_End'
|
||||
})
|
||||
}, 2000);
|
||||
break;
|
||||
case 3:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HV_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HV_End',
|
||||
params: {}
|
||||
requestId: 'HV_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 4:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HI_Start',
|
||||
params: {}
|
||||
requestId: 'HI_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HI_End',
|
||||
params: {}
|
||||
requestId: 'HI_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 5:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HP_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HP_End',
|
||||
params: {}
|
||||
requestId: 'HP_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 6:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HSV_Start',
|
||||
params: {}
|
||||
requestId: 'HSV_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HSV_End',
|
||||
params: {}
|
||||
requestId: 'HSV_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 7:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HSI_Start',
|
||||
params: {}
|
||||
requestId: 'HSI_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'HSI_End',
|
||||
params: {}
|
||||
requestId: 'HSI_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 8:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'VOLTAGE_Start',
|
||||
params: {}
|
||||
requestId: 'VOLTAGE_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'VOLTAGE_End',
|
||||
params: {}
|
||||
requestId: 'VOLTAGE_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 9:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'I_Start',
|
||||
params: {}
|
||||
requestId: 'I_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'I_End',
|
||||
params: {}
|
||||
requestId: 'I_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 10:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'IMBV_Start',
|
||||
params: {}
|
||||
requestId: 'IMBV_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'IMBV_End',
|
||||
params: {}
|
||||
requestId: 'IMBV_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 11:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'IMBA_Start',
|
||||
params: {}
|
||||
requestId: 'IMBA_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'IMBA_End',
|
||||
params: {}
|
||||
}, 4000)
|
||||
requestId: 'IMBA_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 12:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'F_Start',
|
||||
params: {}
|
||||
requestId: 'F_Start'
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'F_End',
|
||||
params: {}
|
||||
requestId: 'F_End'
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 13:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Quit',
|
||||
params: {}
|
||||
requestId: 'Quit'
|
||||
})
|
||||
break;
|
||||
}
|
||||
@@ -1109,18 +1071,11 @@ const handleResumeTest = () => {
|
||||
console.log('开始继续检测')
|
||||
};
|
||||
|
||||
//完成检测
|
||||
const handleFinishTest = () => {
|
||||
resultDialogVisible.value = true
|
||||
ElMessage.success("完成检测");
|
||||
};
|
||||
|
||||
const handleReCheck = () => {
|
||||
activeIndex = 0;
|
||||
percentage.value = 0;
|
||||
testLogList.length = 0;
|
||||
errorCheckItem.length = 0;
|
||||
// resumeTimer()
|
||||
};
|
||||
|
||||
// 获取当前执行的大测试项序 的 下一个大测试项序号
|
||||
@@ -1137,7 +1092,7 @@ const getNextActiveIndex = (code: string = ''): number => {
|
||||
}
|
||||
|
||||
function clear() {
|
||||
errorCheckItem.length = 0;
|
||||
errorCheckItem.length = 0
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<preTest ref="preTestRef" v-if="stepsActiveIndex === 0" v-model:testStatus="preTestStatus" :webMsgSend="webMsgSend"></preTest>
|
||||
<timeTest v-if="stepsActiveIndex === 1 && isTimeCheck" v-model:testStatus="timeTestStatus"></timeTest>
|
||||
<!-- <channelsTest v-if="stepsActiveIndex === 2" v-model:testStatus="channelsTestStatus"></channelsTest> -->
|
||||
<test ref="testRef" v-if="stepsActiveIndex >= 2" v-model:testStatus="TestStatus" :webMsgSend="webMsgSend" @update:webMsgSend="webMsgSend=$event" @sendPause="sendPause" @sendResume="sendResume"></test>
|
||||
<test ref="testRef" v-if="stepsActiveIndex >= 2" v-model:testStatus="TestStatus" :webMsgSend="webMsgSend" @update:webMsgSend="webMsgSend=$event" @sendPause="sendPause" @sendResume="sendResume" @sendReCheck="sendReCheck"></test>
|
||||
|
||||
<template #footer>
|
||||
<div>
|
||||
@@ -296,6 +296,11 @@ const detectionOptions = ref([
|
||||
// }
|
||||
// })
|
||||
|
||||
}else if (TestStatus.value == 'error') {
|
||||
// 发送重新检测指令
|
||||
sendReCheck()
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -364,6 +369,11 @@ const detectionOptions = ref([
|
||||
}) // todo 可移除
|
||||
}
|
||||
|
||||
const sendReCheck = () => {
|
||||
console.log('发送重新检测指令')
|
||||
TestStatus.value = 'start'
|
||||
}
|
||||
|
||||
const getIcon = (index: number) => {
|
||||
if (stepsActiveIndex.value > index) return SuccessFilled;
|
||||
switch (index) {
|
||||
|
||||
Reference in New Issue
Block a user