修复比对式一键检测
This commit is contained in:
@@ -262,8 +262,7 @@ const handleNext = async () => {
|
|||||||
{} as Record<string, string>
|
{} as Record<string, string>
|
||||||
)
|
)
|
||||||
await generateChannelMapping()
|
await generateChannelMapping()
|
||||||
console.log('通道映射:', channelMapping.value)
|
|
||||||
return
|
|
||||||
await checkStore.setChnNum(chnNumList)
|
await checkStore.setChnNum(chnNumList)
|
||||||
return {
|
return {
|
||||||
title: dialogTitle.value,
|
title: dialogTitle.value,
|
||||||
|
|||||||
@@ -208,14 +208,21 @@ const open = async (
|
|||||||
device: Device.ResPqDev[],
|
device: Device.ResPqDev[],
|
||||||
standardDev: StandardDevice.ResPqStandardDevice[],
|
standardDev: StandardDevice.ResPqStandardDevice[],
|
||||||
fatherPlanId: string,
|
fatherPlanId: string,
|
||||||
DeviceMonitoringMap: Map<string, any[]>
|
DeviceMonitoringMap: Map<string, any[]>,
|
||||||
|
checkType: string
|
||||||
) => {
|
) => {
|
||||||
CompareTestVisible.value = false
|
CompareTestVisible.value = false
|
||||||
selectTestItemPopupRef.value?.open()
|
|
||||||
devIdList.value = device
|
devIdList.value = device
|
||||||
pqStandardDevList.value = standardDev
|
pqStandardDevList.value = standardDev
|
||||||
planIdKey.value = fatherPlanId
|
planIdKey.value = fatherPlanId
|
||||||
deviceMonitor.value = DeviceMonitoringMap
|
deviceMonitor.value = DeviceMonitoringMap
|
||||||
|
if(checkType == "一键检测"){
|
||||||
|
openTestDialog()
|
||||||
|
}else{
|
||||||
|
selectTestItemPopupRef.value?.open()
|
||||||
|
}
|
||||||
|
|
||||||
// edges.value = []
|
// edges.value = []
|
||||||
|
|
||||||
// devIds.value = device.map(d => d.id)
|
// devIds.value = device.map(d => d.id)
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ const getMappedDutChannel = (deviceName: string, stdChannel: string) => {
|
|||||||
const formatDutChannelLabel = (dutChannel: string) => {
|
const formatDutChannelLabel = (dutChannel: string) => {
|
||||||
// 如果是"被检设备X通道Y"格式,则转换为"被检设备X-通道Y"
|
// 如果是"被检设备X通道Y"格式,则转换为"被检设备X-通道Y"
|
||||||
if (!dutChannel) return '未映射';
|
if (!dutChannel) return '未映射';
|
||||||
return dutChannel.replace(/(被检设备\d+)(通道\d+)/, '$1-$2');
|
return dutChannel.replace(/(.+)(通道\d+)/, '$1-$2');
|
||||||
};
|
};
|
||||||
|
|
||||||
// 处理标准设备通道切换
|
// 处理标准设备通道切换
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="Clock"
|
icon="Clock"
|
||||||
@click="handleTest2"
|
@click="handleTest2('手动检测')"
|
||||||
v-if="modeStore.currentMode == '比对式'"
|
v-if="modeStore.currentMode == '比对式'"
|
||||||
>
|
>
|
||||||
手动检测
|
手动检测
|
||||||
@@ -696,7 +696,7 @@ function refreshStatusList() {
|
|||||||
* 通道配对功能处理函数(比对模式专用)
|
* 通道配对功能处理函数(比对模式专用)
|
||||||
* 校验选中设备的一致性,然后打开通道配对弹窗
|
* 校验选中设备的一致性,然后打开通道配对弹窗
|
||||||
*/
|
*/
|
||||||
const handleTest2 = async () => {
|
const handleTest2 = async (val: string) => {
|
||||||
|
|
||||||
// 检查是否选择了设备
|
// 检查是否选择了设备
|
||||||
if (devNum == 0) {
|
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 })
|
checkStore.setSelectTestItems({ preTest: false, timeTest: false, channelsTest: false, test: true })
|
||||||
} else {
|
} else {
|
||||||
checkStore.setReCheckType(1)
|
checkStore.setReCheckType(1)
|
||||||
openTestDialog(true)
|
if(modeStore.currentMode == '比对式'){
|
||||||
|
handleTest2('一键检测')
|
||||||
|
}else{
|
||||||
|
openTestDialog(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user