放开数据异常按钮弹窗

This commit is contained in:
caozehui
2025-01-10 09:20:32 +08:00
parent d416f46b3a
commit 1474c15bd9

View File

@@ -701,8 +701,8 @@ const updateCheckResult = (data: CheckData.ScriptChnItem) => {
checkResult.forEach(item => { checkResult.forEach(item => {
if (item.scriptType == scriptType) { if (item.scriptType == scriptType) {
item.devices.forEach((device, index) => { item.devices.forEach((device, index) => {
let targetDevice = data.devices.find(dev=>dev.deviceId === device.deviceId) let targetDevice = data.devices.find(dev => dev.deviceId === device.deviceId)
if(targetDevice!== undefined){ if (targetDevice !== undefined) {
device.chnResult = [...targetDevice.chnResult] device.chnResult = [...targetDevice.chnResult]
} }
}) })
@@ -1005,13 +1005,13 @@ const handleClick = (item: any, chnNum: number, scriptType: string) => {
type: 'warning', type: 'warning',
}) })
} }
if (flag === 1) { // if (flag === 1) {
ElMessageBox.alert('该测试项数据异常', '数据异常', { // ElMessageBox.alert('该测试项数据异常', '数据异常', {
confirmButtonText: '确定', // confirmButtonText: '确定',
type: 'warning', // type: 'warning',
}) // })
} // }
if (flag === -1) { if (flag === -1 || flag === 1) {
dataCheckSingleChannelSingleTestPopupRef.value?.open(item.deviceId, chnNum + '', scriptType); dataCheckSingleChannelSingleTestPopupRef.value?.open(item.deviceId, chnNum + '', scriptType);
} }
}; };