export const userGroupProps = {
  menu: "menu", //菜单数据
  source_user: "source_user", //数据源用户
  source_group: "source_group", //数据源用户组
  data_user: "data_user", //数据共享用户
  data_group: "data_group", //数据共享用户组
  share: "share", //共享权限
  status: "status" //状态
};

export const shareTypes = [
  {
    value: "2",
    label: "只读"
  },
  {
    value: "1",
    label: "读写"
  }
];

export const rules = {
  menu_ids: {
    required: true,
    trigger: "blur",
    message: "请选择共享的菜单数据"
  },
  source_uid: {
    required: true,
    trigger: "blur",
    message: "请选择数据源用户"
  },
  source_data_group_id: {
    required: true,
    trigger: "blur",
    message: "请选择数据源用户组"
  },
  uid: {
    required: true,
    trigger: "blur",
    message: "请选择数据共享用户"
  },
  data_group_id: {
    required: true,
    trigger: "blur",
    message: "请选择数据共享用户组"
  },
  type: {
    required: true,
    trigger: "blur",
    message: "请选择共享的数据权限"
  }
};
