diff --git a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue index 0e70072..33dbb8b 100644 --- a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue +++ b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue @@ -52,7 +52,10 @@ v-decorator="[ 'days', { - rules: [{ required: true, message: 'Please input days!' }], + rules: [ + { required: true, message: 'Please input days!' }, + { pattern: new RegExp('^[1-9]\\d*$'), message: 'Please input a positive integer!' }, + ], initialVale: this.formVal.days } ]"