export const MONITOR_RECORDS_SUBPAGES = [
  {
    label: '入侵抓拍',
    value: 'invasion-snapshot',
  },
  {
    label: '门禁记录',
    value: 'access-records',
  },
];

// 查询字段对应：1-姓名,2-卡号，3-部门，4-进出地点
export enum ACCESS_FIELDTYPE {
  USERNAME = '1',
  CARD_NUM = '2',
  DEPT_NAME = '3',
  LOCATION = '4',
}

export const ACCESS_FIELD_CONTENT = {
  [ACCESS_FIELDTYPE.USERNAME]: '姓名',
  [ACCESS_FIELDTYPE.CARD_NUM]: '卡号',
  [ACCESS_FIELDTYPE.DEPT_NAME]: '部门',
  [ACCESS_FIELDTYPE.LOCATION]: '进出地点',
};

export const accessQueryOptions = [
  {
    label: ACCESS_FIELD_CONTENT[ACCESS_FIELDTYPE.USERNAME],
    value: ACCESS_FIELDTYPE.USERNAME,
  },
  {
    label: ACCESS_FIELD_CONTENT[ACCESS_FIELDTYPE.CARD_NUM],
    value: ACCESS_FIELDTYPE.CARD_NUM,
  },
  {
    label: ACCESS_FIELD_CONTENT[ACCESS_FIELDTYPE.DEPT_NAME],
    value: ACCESS_FIELDTYPE.DEPT_NAME,
  },
  {
    label: ACCESS_FIELD_CONTENT[ACCESS_FIELDTYPE.LOCATION],
    value: ACCESS_FIELDTYPE.LOCATION,
  },
];
