This commit is contained in:
xiaoguangbin 2023-12-13 17:51:09 +08:00
commit 3672537dc1

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
},