|
@@ -103,20 +103,20 @@ export default {
|
|
{ title: '地块总数', value: '0', unit: '块', updateTime: '', img: require('@/assets/imgs/deck/page_nygh/icon-dkzs.png') },
|
|
{ title: '地块总数', value: '0', unit: '块', updateTime: '', img: require('@/assets/imgs/deck/page_nygh/icon-dkzs.png') },
|
|
],
|
|
],
|
|
chartData_tdfb: [
|
|
chartData_tdfb: [
|
|
- { name: '粮田', value: '256' },
|
|
|
|
- { name: '果园', value: '229' },
|
|
|
|
- { name: '菜田', value: '201' },
|
|
|
|
- { name: '经作田', value: '172' },
|
|
|
|
- { name: '养殖(畜牧)', value: '143' },
|
|
|
|
- { name: '养殖(水产)', value: '126' },
|
|
|
|
|
|
+ { name: '粮田', value: '0' },
|
|
|
|
+ { name: '果园', value: '0' },
|
|
|
|
+ { name: '菜田', value: '0' },
|
|
|
|
+ { name: '经作田', value: '0' },
|
|
|
|
+ { name: '养殖(畜牧)', value: '0' },
|
|
|
|
+ { name: '养殖(水产)', value: '0' },
|
|
],
|
|
],
|
|
data_tdlxtj: [
|
|
data_tdlxtj: [
|
|
- { type: '粮田', typeColor: '#D97E00', count: '35589', area: '35589' },
|
|
|
|
- { type: '果园', typeColor: '#969600', count: '74543', area: '74543' },
|
|
|
|
- { type: '菜田', typeColor: '#D5848B', count: '4283', area: '4283' },
|
|
|
|
- { type: '经作田', typeColor: '#980220', count: '20170', area: '20170' },
|
|
|
|
- { type: '养殖(畜牧)', typeColor: '#E8B707', count: '270', area: '270' },
|
|
|
|
- { type: '养殖(水产)', typeColor: '#6697FE', count: '13401', area: '13401' },
|
|
|
|
|
|
+ { type: '粮田', typeColor: '#D97E00', count: '0', area: '0' },
|
|
|
|
+ { type: '果园', typeColor: '#969600', count: '0', area: '0' },
|
|
|
|
+ { type: '菜田', typeColor: '#D5848B', count: '0', area: '0' },
|
|
|
|
+ { type: '经作田', typeColor: '#980220', count: '0', area: '0' },
|
|
|
|
+ { type: '养殖(畜牧)', typeColor: '#E8B707', count: '0', area: '0' },
|
|
|
|
+ { type: '养殖(水产)', typeColor: '#6697FE', count: '0', area: '0' },
|
|
],
|
|
],
|
|
currentSearchI:'dmdz',
|
|
currentSearchI:'dmdz',
|
|
currentSearchKeyWord:'',
|
|
currentSearchKeyWord:'',
|
|
@@ -131,27 +131,41 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- GetAgriculturalLand().then(res => {
|
|
|
|
- let areaTotal = 0
|
|
|
|
- let count = 0
|
|
|
|
- res.data.Result.forEach(i => {
|
|
|
|
- areaTotal += i.areamu
|
|
|
|
- count += i.count
|
|
|
|
- })
|
|
|
|
- areaTotal = (areaTotal/10000).toFixed(2)
|
|
|
|
- this.data_nyscyd[0].value = areaTotal
|
|
|
|
- this.data_nyscyd[1].value = count
|
|
|
|
- })
|
|
|
|
- GetLandSta('粮田').then(res => {
|
|
|
|
- console.log(res)
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
showRight: {
|
|
showRight: {
|
|
handler(val) {
|
|
handler(val) {
|
|
if(val) {
|
|
if(val) {
|
|
- this.$nextTick(()=> {
|
|
|
|
- setTdfbqk(document.getElementById('chart-crb2'), this.chartData_tdfb)
|
|
|
|
|
|
+ GetAgriculturalLand().then(res => {
|
|
|
|
+ let areaTotal = 0
|
|
|
|
+ let count = 0
|
|
|
|
+ res.data.Result.forEach(i => {
|
|
|
|
+ areaTotal += i.areamu
|
|
|
|
+ count += i.count
|
|
|
|
+ })
|
|
|
|
+ areaTotal = (areaTotal/10000).toFixed(2)
|
|
|
|
+ this.data_nyscyd[0].value = areaTotal
|
|
|
|
+ this.data_nyscyd[1].value = count
|
|
|
|
+ })
|
|
|
|
+ GetLandSta().then(res => {
|
|
|
|
+ this.data_tdlxtj.forEach(i => {
|
|
|
|
+ res.data.find(j => {
|
|
|
|
+ if(i.type===j.landType) {
|
|
|
|
+ i.count = j.landCnt
|
|
|
|
+ i.area = j.landAreaMu.toFixed(2)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ this.chartData_tdfb.forEach(i => {
|
|
|
|
+ res.data.find(j => {
|
|
|
|
+ if(i.name===j.landType) {
|
|
|
|
+ i.value = Math.round(j.landAreaMu*10000)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ this.$nextTick(()=> {
|
|
|
|
+ setTdfbqk(document.getElementById('chart-crb2'), this.chartData_tdfb)
|
|
|
|
+ })
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|