fix: File-Format-Ftransit增加对Detector Code的校验

This commit is contained in:
Xu Zhimeng 2023-12-13 17:42:13 +08:00
parent 49379f82fb
commit 40bc678633

View File

@ -145,7 +145,16 @@ export default {
}
}
}
const { station, detector } = this.params
const regExp = new RegExp(`^${station}_\\d{1,}$`)
const detectorOK = regExp.test(detector)
if (!detectorOK) {
this.$message.warn('The detetor code must be consistent with the station code')
}
return detectorOK
}
return true
},