// @/utils/global
// 全局变量配置
export const getYearList = () => {
  const num = 4;
  const currentYear = new Date().getFullYear();
  // 存储年份数据的数组
  const list: any = [];
  // 获取当前年份
  // year.value = Number(`${currentYear}`);
  list.push({
    value: Number(`${currentYear}`),
    label: Number(`${currentYear}`),
  });
  // 获取后面几年的数据
  for (let i = 1; i <= num; i++) {
    list.push({
      value: Number(`${currentYear - i}`),
      label: Number(`${currentYear - i}`),
    });
  }
  return list;
};
// 批次
export const batchOptions = [];
// 年份
export const yearOptions = getYearList();

// 判定结果
export const mapTypeOptions = [
  { label: '合法', value: 0 },
  { label: '违法', value: 1 },
  { label: '其他', value: 2 },
];
export const illegalTypeOptions = [
  { label: '非农化', value: 0 },
  { label: '非粮化', value: 1 },
];
export const measureOptions = [
  { label: '拆除复耕', value: 0 },
  { label: '补办手续', value: 1 },
];
export const mapStatusOptions = [
  { label: '待接收', value: '待接收' },
  { label: '待填报', value: '待填报' },
  { label: '待整改', value: '待整改' },
  { label: '已退回', value: '已退回' },
];
// 标注类型
export const markTypeOptions = [
  { label: '在建', value: '在建' },
  { label: '已建成', value: '已建成' },
  { label: '持续变化', value: '持续变化' },
];
// 图斑来源
export const patchSourceOptions = [
  {
    label: '全域巡查',
    value: '全域巡查',
  },
  {
    label: '卫片下发',
    value: '卫片下发',
  },
  {
    label: '部级矿产卫片图斑',
    value: '部级矿产卫片图斑',
  },
  {
    label: '省级矿产卫片图斑',
    value: '省级矿产卫片图斑',
  },
];
export const isOverdueOptions = [
  {
    label: '未超期',
    value: 0,
  },
  {
    label: '已超期',
    value: 1,
  },
];
export const illegalTypeList = [
  { label: '非农化违法用地', value: 0 },
  { label: '非粮化违法用地', value: 1 },
];
export const resultOptions = [
  { label: '立案', value: 0 },
  { label: '非立案', value: 1 },
  { label: '移交其他部门处理', value: 2 },
  { label: '未处理', value: 3 },
];
export const resultNameOptions = [
  {
    label: '立案',
    value: '立案',
  },
  {
    label: '非立案',
    value: '非立案',
  },
  {
    label: '移交其他部门处理',
    value: '移交其他部门处理',
  },
  {
    label: '未处理',
    value: '未处理',
  },
];
export const qitaUseTOOptions = [
  {
    label: '不改变原用地性质的光伏用地',
    value: '1',
  },
  {
    label: '设施农业用地',
    value: '2',
  },
  {
    label: '农村道路',
    value: '3',
  },
  {
    label: '实地未变化',
    value: '4',
  },
  {
    label: '临时用地',
    value: '5',
  },
];
export const nowStatusOptions = [
  { label: '待接收', value: '待接收' },
  { label: '待填报', value: '待填报' },
  { label: '待整改', value: '待整改' },
  { label: '市级审核', value: '市级审核' },
  { label: '县级审核', value: '县级审核' },
  { label: '已归档', value: '已归档' },
];
