智慧农业大数据平台
shuishen
2022-08-05 672916ea686709321ff3bd09c7a29cf9cfd7dee3
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import request from '@/router/axios'
 
export const getList = (current, size, params) => {
    return request({
        url: '/land/land/page',
        method: 'get',
        params: {
            ...params,
            current,
            size
        }
    })
}
 
export const getDetail = (id) => {
    return request({
        url: '/land/land/details',
        method: 'get',
        params: {
            id
        }
    })
}
 
export const remove = (ids) => {
    return request({
        url: '/land/land/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
 
export const add = (row) => {
    return request({
        url: '/land/land/save',
        method: 'post',
        data: row
    })
}
 
export const update = (row) => {
    return request({
        url: '/land/land/submit',
        method: 'post',
        data: row
    })
}
 
export const getLandList = (userid, farmId) => {
    return request({
        url: 'http://182.106.212.58:8013/api/land/land/getLandList',
        method: 'get',
        params: {
            userid,
            farmId
        }
    })
}
 
export const selectXCount = (farmId) => {
    return request({
        url: '/land/land/selectXCount',
        method: 'get',
        params: {
            farmId
        }
    })
}
 
// 根据地块获取监测监控设备
export const getStationAndVideoByLandId = (landId, type) => {
    return request({
        url: 'http://dev.jxpskj.com:8030/pyh-station/stationAndVideo/queryStationAndVideoByLandId',
        method: 'get',
        params: {
            land_id: landId,
            type: type
        }
    })
}
// 根据设备号获取监测设备数据
export const getStationDateByStcd = (stcd, startTime, endTime) => {
    return request({
        url: 'http://dev.jxpskj.com:8030/pyh-station/naturalFactors/findElementDataByTime',
        method: 'get',
        params: {
            stcd: stcd,
            startTime: startTime,
            endTime: endTime
        }
    })
}