李旭东
2023-11-03 10686c5e51ef98ca459ab000462c0701e0bb17ea
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 axios from '../http.js';
 
export default {
    /**
     * 点检接口
     */
 
    // 查询字典信息
    searchDictionary: params =>
        axios.post('/engineering/dict/dictList',{
            ...params,
            header: {
                pageNum: params.pageNum,
                pageSize: params.pageSize
            }
        }),
    // 查询设备点检列表信息
    searchSpotCheckList: (params) =>
        axios.post('/m/checkDevice/findList',{
            ...params,
            header: {
                pageNum: params.pageNum,
                pageSize: params.pageSize
            }
        }),
    // 添加设备点检信息
    insertSpotCheckInfo: (params) =>
        axios.post('/m/checkDevice/addCheckDevice', params),
    // 修改设备点检信息
    updateSpotCheckInfo: (params) =>
        axios.post('/m/checkDevice/addCheckDevice', params),
    //删除设备点检信息
    deleteSpotCheckInfo: (params) =>
        axios.post('/m/checkDevice/delete', params),
    // 获取点检详情
    getSpotCheckDetail: (params) =>
        axios.post('/m/checkDevice/checkDeviceInfo', params),
    // 获取全部设备信息
    getAllDeviceData: () =>
        axios.post('/m/checkDevice/deviceList'),
  // 获取设备信息详情
  getDeviceDetails: (params) =>
    axios.get('/engineering/bigDevice/bigDeviceInfo', params ),
}