fix: File-Format-Ftransit增加对Detector Code的校验
This commit is contained in:
		
							parent
							
								
									49379f82fb
								
							
						
					
					
						commit
						40bc678633
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user