Explorar o código

排量增加字母正则校验

@dongkboy %!s(int64=2) %!d(string=hai) anos
pai
achega
ce99c4256b
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/views/Letter/Letter.vue

+ 8 - 0
src/views/Letter/Letter.vue

@@ -4397,6 +4397,14 @@ export default {
       },
       },
       deep: true
       deep: true
     },
     },
+    "carInfo.enginedesc":{
+      handler(val) {
+        if (val) {
+          this.carInfo.enginedesc = val.replace(/[A-Za-z]/g,'');
+        }
+      },
+      deep: true
+    },
     "ownerInfo.mobile":{
     "ownerInfo.mobile":{
       handler(val) {
       handler(val) {
         if (val) {
         if (val) {