Selaa lähdekoodia

折扣正则限制0-100

1
mo 3 vuotta sitten
vanhempi
commit
02aedd9079
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/views/categroyManager/modals/payInfo.vue

+ 1 - 0
src/views/categroyManager/modals/payInfo.vue

@@ -251,6 +251,7 @@
           label="折扣值"
           :rules="[
             { required: true, message: '请输入折扣值', trigger: 'blur' },
+            { pattern:/^(?:[1-9]?\d|100)$/, message: '请输入正确的则扣' }
           ]"
         >
           <el-input