Newer
Older
KaiFengH5 / src / api / xuncha.js
@鲁yixuan 鲁yixuan on 16 Jul 1 KB update
import request from '@/utils/request';

// 信息
export function patrolTaskpage(params) {
  return request({
    url: '/business/patrolTask/page',
    method: 'get',
    params,
  });
}

// 获取项目选择列表
export function getProjectInfoList(params) {
  return request({
    url: '/business/projectInfoNew/list',
    method: 'get',
    params,
  });
}

// 上传问题
export function patrolProblemadd(data) {
  return request({
    url: '/business/patrolProblem/add',
    method: 'post',
    data: data,
  });
}

// 开始巡查
export function patrolTaskbeginPatrol(data) {
  return request({
    url: '/business/patrolTask/beginPatrol',
    method: 'post',
    data: data,
  });
}

// 状态统计
export function status_statistics(params) {
  return request({
    url: '/business/patrolTask/status_statistics',
    method: 'get',
    params,
  });
}
// 结束巡查
export function patrolTaskFinishPatrol(data) {
  return request({
    url: '/business/patrolTask/finishPatrol',
    method: 'POST',
    data: data,
  });
}

// // 删除任务
// export function patrolTaskId(id) {
//   return request({
//     url: '/business/patrolTask/' + id,
//     method: 'delete',
//   });
// }

// 重新巡查
export function patrolTaskRestartPatrol(query) {
  return request({
    url: '/business/patrolTask/restartPatrol',
    method: 'PUT',
    params: query,
  });
}

// 问题统计
export function patrolProblemList(params) {
  return request({
    url: '/business/patrolProblem/list',
    method: 'get',
    params,
  });
}

// // 查询巡查任务
export function PatrolTaskID(id) {
  return request({
    url: '/business/patrolTask/' + id,
    method: 'get',
  });
}