salary
qsh 5 months ago
parent cb44360b8a
commit ac83a22ca6
  1. 9
      src/views/Basic/User/UserForm.vue

@ -152,14 +152,7 @@ const formRules = ref<any>({
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
], ],
mobile: [ mobile: [{ required: true, message: '手机号不能为空', trigger: 'blur' }]
{ required: true, message: '手机号不能为空', trigger: 'blur' },
{
pattern: /^(?:(?:\+|00)86)?1(?:3[\d]|4[5-79]|5[0-35-9]|6[5-7]|7[0-8]|8[\d]|9[189])\d{8}$/,
message: '请输入正确的手机号码',
trigger: 'blur'
}
]
}) })
const formRef = ref() // Ref const formRef = ref() // Ref
const deptList = ref<Tree[]>([]) // const deptList = ref<Tree[]>([]) //

Loading…
Cancel
Save