Newer
Older
Nanping_sponge_SJJC / src / api / businessPatrol / patrolPlan.js
@liyingjing liyingjing on 25 Oct 2023 1 KB 数据检测
import request from "@/utils/request";

// 查询巡查计划配置分页
export function pagepatrolPlan(query) {
  return request({
    url: "/business/patrolPlan/page",
    method: "get",
    params: query,
  });
}

// 查询巡查计划配置列表
export function listpatrolPlan(query) {
  return request({
    url: "/business/patrolPlan/list",
    method: "get",
    params: query,
  });
}

// 查询巡查计划配置详细
export function getpatrolPlan(id) {
  return request({
    url: "/business/patrolPlan/" + id,
    method: "get",
  });
}

// 新增巡查计划配置
export function addpatrolPlan(data) {
  return request({
    url: "/business/patrolPlan/add",
    method: "post",
    data: data,
  });
}

// 修改巡查计划配置
export function updatepatrolPlan(data) {
  return request({
    url: "/business/patrolPlan",
    method: "put",
    data: data,
  });
}

// 删除巡查计划配置
export function delpatrolPlan(id) {
  return request({
    url: "/business/patrolPlan/" + id,
    method: "delete",
  });
}

// 停止巡查计划配置
export function stoppatrolPlan(id) {
  return request({
    url: "/business/patrolPlan/stop/" + id,
    method: "put",
  });
}

//启用巡查计划配置
export function startUsePlan(id) {
  return request({
    url: "/business/patrolPlan/startUse/" + id,
    method: "put",
  });
}