|
|
@ -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"}],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|