1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
| import request from "@/utils/request";
|
| /* 智能巡检(对应后端 EnvInspectionController:/environmentAccess/inspection) */
|
| // 分页查询
| export function listInspection(params) {
| return request({
| url: "/environmentAccess/inspection/page",
| method: "get",
| params,
| });
| }
|
| // 详情
| export function getInspection(id) {
| return request({
| url: `/environmentAccess/inspection/${id}`,
| method: "get",
| });
| }
|
| // 新增
| export function addInspection(data) {
| return request({
| url: "/environmentAccess/inspection/add",
| method: "post",
| data,
| });
| }
|
| // 修改
| export function updateInspection(data) {
| return request({
| url: "/environmentAccess/inspection/update",
| method: "post",
| data,
| });
| }
|
| // 删除(支持批量)
| export function deleteInspection(ids) {
| return request({
| url: "/environmentAccess/inspection/delete",
| method: "delete",
| data: ids,
| });
| }
|
| // 生成巡检报告
| export function generateInspectionReport(id) {
| return request({
| url: `/environmentAccess/inspection/report/${id}`,
| method: "get",
| });
| }
|
| // 导出
| export function exportInspection(params) {
| return request({
| url: "/environmentAccess/inspection/export",
| method: "post",
| params,
| responseType: "blob",
| });
| }
|
|