let raw = {
  manage: [
    {
      prop: "idx",
      label: "编号",
    },
    {
      prop: "userName",
      label: "账号",
    },
    {
      prop: "nickName",
      label: "用户昵称",
    },
    {
      prop: "roleName",
      label: "用户角色",
    },
    {
      prop: "realName",
      label: "真实姓名",
    },
    {
      prop: "unit",
      label: "单位名称",
    },
    {
      prop: "address",
      label: "通信地址",
    },
    {
      prop: "phone",
      label: "联系电话",
    },
    {
      prop: "sexStr",
      label: "性别",
    },
    {
      prop: "createTime",
      label: "注册时间",
    },
    {
      prop: "isEnabled",
      label: "启用状态"
    },
  ]
}

let formKey = {
  manage:{ 
    "address": "",
    "img": "",
    "nickName": "",
    "phone": "",
    "realName": "",
    "roleId": '',
    "sex": 0,
    "status": 0,
    "thumb": "",
    "unit": "",
    "userName": ""
  }
}

let rules = {
  manage:{
    userName: [{ required: true, message: "请输入账号", trigger: "blur" }],
    nickName: [{ required: true, message: "请输入用户昵称", trigger: "blur" }],
    unit: [{ required: true, message: "请输入单位名称", trigger: "blur" }],
    roleId: [{ required: true, message: "请选择用户角色", trigger: "change" }],
    realName: [{ required: true, message: "请输入真实姓名", trigger: "blur" }]
  }
}


export {
  raw,
  formKey,
  rules
}