import dayjs from 'dayjs';

export const columns = [
    {
      title: 'ID',
      dataIndex: 'id',
      ifShow: false,
    },
    {
      title: '影像名称',
      dataIndex: 'layerName',
      width: 100,
    },
    {
      title: '数据表名',
      dataIndex: 'dataTable',
      width: 100,
    },
    {
      title: '缩略图',
      dataIndex: 'accessUrl',
      width: 130,
    },
    {
      title: '时间',
      dataIndex: 'dateDir',
      width: 80,
    },
    {
      title: 'shpPath',
      dataIndex: 'shpPath',
      width: 150,
    },
    {
      title: 'tiffPath',
      dataIndex: 'tiffPath',
      width: 150,
    },
    {
      title: '创建时间',
      dataIndex: 'createTime',
      width: 90,
    },
    {
      title: '修改时间',
      dataIndex: 'updateTime',
      width: 90,
    },
];

export const searchFormSchema = [
  {
    field: 'key',
    label: '数据表名',
    component: 'Input',
    colProps: { span: 12 },
  },
];  

export const failColumns = [
  {
    title: '文件名称',
    dataIndex: 'fileName',
    width: 200,
  },
  {
    title: '文件路径',
    dataIndex: 'filePath',
    width: 350,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 100,
  }
];

export const chooseUpdateColumns_yearweeks = [
  {
    title: '年份周数',
    dataIndex: 'rowname',
    width: 200,
  },
];

export const chooseUpdateColumns_layernames = [
  {
    title: '影像名称',
    dataIndex: 'rowname',
    width: 200,
  },
  {
    title: '地理坐标系',
    dataIndex: 'bbox',
    width: 200,
    ifShow: false,
  },
];

export const searchFormSchema_chooseUpdate = [
  {
    field: 'rowname',
    label: '影像名称',
    component: 'Input',
    colProps: { span: 16 },
  },
];  
// 测试数据
export const data = [];