export function formInit(data = {}) {
  return {
    originName: '',
    realName: '',
    userName: '',
    deptId: '',
    password: '123456',
    phone: '',
    email: '',
    userId: '',
    ...data
  }
}
export function formInitPwd(data = {}) {
  return {
    userName: '',
    originPwd: '',
    password: '',
    sureNewPwd: '',
    userId: '',
    ...data
  }
}

export const rules = {
  userName: { required: true, message: '请输入用户名', trigger: 'blur' },
  phone: { required: true, message: '请输入手机号码', trigger: 'blur' },
  realName: { required: true, message: '请输入真实姓名', trigger: 'blur' },
}
