gongchunyi
4 天以前 6f1acfd2086a1f8c2cb80afd3db4e534e44d545e
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
import request from "@/utils/request";
 
// 获取安全设施列表
export function getSafetyFacilityList(params) {
  return request({
    url: "/safeFacilityLedger/page",
    method: "get",
    params,
  });
}
 
// 根据ID查询安全设施
export function getSafetyFacilityById(id) {
  return request({
    url: `/safeFacilityLedger/${id}`,
    method: "get",
  });
}
 
// 新增安全设施
export function addSafetyFacility(data) {
  return request({
    url: "/safeFacilityLedger",
    method: "post",
    data,
  });
}
 
// 修改安全设施
export function updateSafetyFacility(data) {
  return request({
    url: "/safeFacilityLedger",
    method: "put",
    data,
  });
}
 
// 删除安全设施
export function deleteSafetyFacility(ids) {
  return request({
    url: `/safeFacilityLedger/${ids}`,
    method: "delete",
  });
}