智慧农业大数据平台
xiebin
2022-11-16 3dc278f10a4c3e3db7ce3a445bed710bdc88916e
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
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://dev.jxpskj.com:8020/api/land/land/getLandList',
        method: 'get',
        params: {
            userid,
            farmId
        }
    })
}
 
export const selectXCount = (farmId) => {
    return request({
        url: '/land/land/selectXCount',
        method: 'get',
        params: {
            farmId
        }
    })
}