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
66
67
68
69
70
71
72
73
74
75
76
77
| /*
| * @Author: hqs elkers@163.com
| * @Date: 2024-05-17 17:11:53
| * @LastEditors: hqs elkers@163.com
| * @LastEditTime: 2024-05-29 14:50:30
| * @FilePath: \wisdom-water-factory-web\src\api\facilityExamine\index.js
| * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
| */
| import { publicRequest } from '@/utils/request.js'
|
| //巡检计划
| export function facilityMaintainPlanApi() {
| return {
| //创建维护计划
| create: (data) => {
| return publicRequest({
| url: '/facilityMaintainPlan/create',
| method: 'post',
| data
| });
| },
|
| //删除维护计划
| // remove: (id) => {
| // return publicRequest({
| // url: `/facilityMaintainPlan/remove?id=${id}`,
| // method: 'post'
| // });
| // },
| //编辑维护计划
| modify: (data) => {
| return publicRequest({
| url: '/facilityMaintainPlan/modify',
| method: 'post',
| data
| });
| },
| //停用维护计划
| stop: (data) => {
| return publicRequest({
| url: `/facilityMaintainPlan/stop?id=${data}`,
| method: 'post',
| data
| });
| },
| //启用维护计划
| enable: (data) => {
| return publicRequest({
| url: `/facilityMaintainPlan/enable?id=${data}`,
| method: 'post',
| data
| });
| },
| //分页查维护计划
| search: (data) => {
| return publicRequest({
| url: '/facilityMaintainPlan/search',
| method: 'post',
| data
| });
| },
| //获取维护计划详情
| get: (id) => {
| return publicRequest({
| url: `/facilityMaintainPlan/get?id=${id}`,
| method: 'get'
| });
| },
| //修改执行状态
| updateState: (id) => {
| return publicRequest({
| url: `/facilityMaintainPlan/updateState?facilityId=${id}`,
| method: 'post'
| });
| },
| };
| }
|
|