修复比对式一键检测
This commit is contained in:
@@ -262,8 +262,7 @@ const handleNext = async () => {
|
||||
{} as Record<string, string>
|
||||
)
|
||||
await generateChannelMapping()
|
||||
console.log('通道映射:', channelMapping.value)
|
||||
return
|
||||
|
||||
await checkStore.setChnNum(chnNumList)
|
||||
return {
|
||||
title: dialogTitle.value,
|
||||
|
||||
@@ -208,14 +208,21 @@ const open = async (
|
||||
device: Device.ResPqDev[],
|
||||
standardDev: StandardDevice.ResPqStandardDevice[],
|
||||
fatherPlanId: string,
|
||||
DeviceMonitoringMap: Map<string, any[]>
|
||||
DeviceMonitoringMap: Map<string, any[]>,
|
||||
checkType: string
|
||||
) => {
|
||||
CompareTestVisible.value = false
|
||||
selectTestItemPopupRef.value?.open()
|
||||
|
||||
devIdList.value = device
|
||||
pqStandardDevList.value = standardDev
|
||||
planIdKey.value = fatherPlanId
|
||||
deviceMonitor.value = DeviceMonitoringMap
|
||||
if(checkType == "一键检测"){
|
||||
openTestDialog()
|
||||
}else{
|
||||
selectTestItemPopupRef.value?.open()
|
||||
}
|
||||
|
||||
// edges.value = []
|
||||
|
||||
// devIds.value = device.map(d => d.id)
|
||||
|
||||
@@ -132,7 +132,7 @@ const getMappedDutChannel = (deviceName: string, stdChannel: string) => {
|
||||
const formatDutChannelLabel = (dutChannel: string) => {
|
||||
// 如果是"被检设备X通道Y"格式,则转换为"被检设备X-通道Y"
|
||||
if (!dutChannel) return '未映射';
|
||||
return dutChannel.replace(/(被检设备\d+)(通道\d+)/, '$1-$2');
|
||||
return dutChannel.replace(/(.+)(通道\d+)/, '$1-$2');
|
||||
};
|
||||
|
||||
// 处理标准设备通道切换
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user