添加车牌号正则

master
夜笙歌 2 years ago
parent 605f212130
commit 1a8172ae0d

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

Loading…
Cancel
Save