import request from '@/utils/request'
import state from '@/store'
import router from '@/router'

export function searchTable(check, dateRange0, dateRange1, order, partName, pageCurrent, pageSize) {
  return request({
    url: '',
    method: 'post',
    data: {
      UserID: state.state.user.id,
      ModularID: router.currentRoute.path,
      type: '1',
      name: 'ANDON监控_查询',
      param: `日期_check=${check}&开始时间=${dateRange0}&结束时间=${dateRange1}&排序方式=${order}&排序名称=${partName}`,
      Pagination: pageCurrent + '&' + pageSize
    }
  })
}
