up
This commit is contained in:
@ -9,17 +9,27 @@ export function getarea(query) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getTownship() {
|
||||
export function getTownship(query) {
|
||||
return request({
|
||||
url: 'http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_town&maxFeatures=50&outputFormat=application%2Fjson',
|
||||
url: 'crops/administrative',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getvillage() {
|
||||
export function getcropTypeStatistics(query) { //作物类型统计百分比
|
||||
return request({
|
||||
url: 'http://121.36.229.60:9080/geoserver/shuzisannong/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=shuzisannong%3Ahuangdaoqu_village&maxFeatures=1180&outputFormat=application%2Fjson',
|
||||
url: 'crops/cropTypeStatistics',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getvillage(query) {
|
||||
return request({
|
||||
url: 'crops/administrativeDivisions',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@ -37,3 +47,20 @@ export function dow() {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function getcropper(query) { //作物分类面积统计
|
||||
return request({
|
||||
url: 'crops/cropper',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function gethighStandard(query) { //高标准农田
|
||||
return request({
|
||||
url: 'crops/highStandard',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
40
src/api/crops/site.js
Normal file
40
src/api/crops/site.js
Normal file
@ -0,0 +1,40 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getfarmland(query) { //作物长势等级面积统计
|
||||
return request({
|
||||
url: 'crops/farmland',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function getstatistics(query) { //作物长势等级面积占比
|
||||
return request({
|
||||
url: 'crops/statistics',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function gethighStandards(query) { //高标准农田统计
|
||||
return request({
|
||||
url: 'crops/highStandards',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getgradeStatistics(query) { //镇
|
||||
return request({
|
||||
url: 'crops/gradeStatistics',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getadministrativeDivisions(query) { //村
|
||||
return request({
|
||||
url: 'crops/administrativeDivisions',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user