import request from "@/utils/request"; // 查询巡查任务分页 export function pagepatrolTask(query) { return request({ url: "/business/patrolTask/page", method: "get", params: query, }); } // 查询巡查任务列表 export function listpatrolTask(query) { return request({ url: "/business/patrolTask/list", method: "get", params: query, }); } // 查询巡查任务详细 export function getpatrolTask(id) { return request({ url: "/business/patrolTask/" + id, method: "get", }); } // 新增巡查任务 export function addpatrolTask(data) { return request({ url: "/business/patrolTask/add", method: "post", data: data, }); } // 修改巡查任务 export function updatepatrolTask(data) { return request({ url: "/business/patrolTask/edit", method: "put", data: data, }); } // 删除巡查任务 export function delpatrolTask(id) { return request({ url: "/business/patrolTask/" + id, method: "delete", }); } // 生成巡查任务草稿 export function listGeneratorDraft(data) { return request({ url: "/business/patrolTask/generatorDraft", method: "put", data: data, }); } //停止巡查 export function stopPatrolTask(data) { return request({ url: "/business/patrolTask/stopPatrol", method: "put", data: data, }); } //强制提交 export function forceCommitTask(data) { return request({ url: "/business/patrolTask/forceCommit", method: "put", data: data, }); }