import request from '@/config/axios'

export const getTableListApi = (params: any) => {
  //return request.post({ url: '/export/spi/export/format/ExportFormatConfigQueryPage', params })
  const data: any = [
    {
      reportCode: 'C01',
      reportName: 'C01机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C02',
      reportName: 'C02机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C03',
      reportName: 'C03机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C04',
      reportName: 'C04机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C05',
      reportName: 'C05机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C06',
      reportName: 'C06机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C07',
      reportName: 'C07机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C08',
      reportName: 'C08机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C09',
      reportName: 'C09机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    },
    {
      reportCode: 'C10',
      reportName: 'C10机构人数统计表',
      frequency: '月报',
      date: '202310000',
      organ: '河北省农联社'
    }
  ]
  return {
    data: {
      list: data,
      total: data.length
    }
  }
}

export const getTreeTableListApi = (params: any) => {
  return request.get({ url: '/example/treeList', params })
}

export const delTableListApi = (pkid: string[] | number[]): Promise<IResponse> => {
  return request.post({ url: '/export/spi/format/ExportFormatConfigDelete', data: { pkid } })
}
