修改车牌号正则

master
夜笙歌 2 years ago
parent 1a8172ae0d
commit f5d78647a1

@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
"~/*": ["./*"]
}
}
}

@ -42,5 +42,7 @@
"vite-plugin-compression": "0.5.1",
"vite-plugin-svg-icons": "2.0.1",
"vite-plugin-vue-setup-extend": "0.4.0"
}
},
"main": "vite.config.js",
"keywords": []
}

@ -228,14 +228,13 @@ const queryParams = ref({
pageNum: 1,
pageSize: 10,
carLicense: undefined,
})
//
const rules = {
carLicense: [{required: true, message: "车牌号不能为空", trigger: "blur"},
{
pattern: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/,
pattern: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z][A-Z][A-Z0-9]{4}[A-Z0-9挂学警港澳]$/,
message: '请輸入正确的格式',
trigger: 'blur'
}],

Loading…
Cancel
Save