修复比对式一键检测

This commit is contained in:
sjl
2025-09-17 15:42:05 +08:00
parent c88128b63b
commit bbd438d23f
4 changed files with 19 additions and 9 deletions

View File

@@ -80,7 +80,7 @@
<el-button
type="primary"
icon="Clock"
@click="handleTest2"
@click="handleTest2('手动检测')"
v-if="modeStore.currentMode == '比对式'"
>
手动检测
@@ -696,7 +696,7 @@ function refreshStatusList() {
* 通道配对功能处理函数(比对模式专用)
* 校验选中设备的一致性,然后打开通道配对弹窗
*/
const handleTest2 = async () => {
const handleTest2 = async (val: string) => {
// 检查是否选择了设备
if (devNum == 0) {
@@ -829,7 +829,7 @@ const handleTest2 = async () => {
// 只传递有监测点的设备
deviceConnectionPopupRef.value?.open(filteredChannelsSelection, pqStandardDevList.value, props.id,filteredDeviceMonitoringMap)
deviceConnectionPopupRef.value?.open(filteredChannelsSelection, pqStandardDevList.value, props.id,filteredDeviceMonitoringMap,val)
}
/**
@@ -964,7 +964,11 @@ const handleTest = async (val: string) => {
checkStore.setSelectTestItems({ preTest: false, timeTest: false, channelsTest: false, test: true })
} else {
checkStore.setReCheckType(1)
openTestDialog(true)
if(modeStore.currentMode == '比对式'){
handleTest2('一键检测')
}else{
openTestDialog(true)
}
}
}
}