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