import {FilterGroupMap, MapValue} from '@components';
import {contextState} from '../context';

export const sourceMap: FilterGroupMap<typeof contextState> = new Map([
  ['1', {label: '用户编号', type: 'field', value: 'code'}],
  [
    '2',
    {
      label: '部门',
      type: 'keySelect',
      value: 'department',
      selectKey: '部门字典',
    },
  ],
  ['3', {label: '角色名称', type: 'field', value: 'role'}],
  ['4', {label: '邮箱', type: 'field', value: 'email'}],
  ['5', {label: '手机', type: 'field', value: 'phone'}],
  ['6', {label: '修改人', type: 'field', value: 'modifyUser'}],
]);

export const fixedMap: MapValue<typeof contextState>[] = [
  {label: '工号', type: 'field', value: 'userName'},
  {label: '姓名', type: 'field', value: 'realName'},
];
