预检测重复初始化拦截

This commit is contained in:
sjl
2025-09-19 11:20:06 +08:00
parent 24becb82e1
commit 3e7509cd44

View File

@@ -396,7 +396,7 @@ watch(
setLogList('error', '设备主动关闭连接!') setLogList('error', '设备主动关闭连接!')
stopTimeCount() stopTimeCount()
break break
case 'yjc_xyjy' : case 'yjc_xyjy' :
switch (newValue.operateCode) { switch (newValue.operateCode) {
case 'INIT_GATHER$03': case 'INIT_GATHER$03':
ElMessageBox.alert('重复的初始化操作!', '检测失败', { ElMessageBox.alert('重复的初始化操作!', '检测失败', {
@@ -407,6 +407,17 @@ watch(
stopTimeCount() stopTimeCount()
} }
break; break;
case 'yjc_sbtxjy' :
switch (newValue.operateCode) {
case 'INIT_GATHER$02':
ElMessageBox.alert('重复的初始化操作!', '检测失败', {
confirmButtonText: '确定',
type: 'error',
})
setLogList('error', '重复的初始化操作!')
stopTimeCount()
}
break;
} }
if (checkStore.selectTestItems.preTest == false && newValue.requestId != 'formal_real') { if (checkStore.selectTestItems.preTest == false && newValue.requestId != 'formal_real') {
if (testLogList[0].log == '正在检测,请稍等...' || testLogList[0].log == '暂无数据,等待检测开始') { if (testLogList[0].log == '正在检测,请稍等...' || testLogList[0].log == '暂无数据,等待检测开始') {
@@ -439,6 +450,7 @@ watch(
stopTimeCount() stopTimeCount()
if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!') if (newValue.requestId == 'YJC_xujy') setLogList('info', '初始化失败!')
break break
} }
} }
// 预监测 正式检测 // 预监测 正式检测