|
@@ -4,10 +4,12 @@
|
|
style="position: absolute; top: 115px; left: 50px"
|
|
style="position: absolute; top: 115px; left: 50px"
|
|
title="实时统计"
|
|
title="实时统计"
|
|
:data="statisticsData"
|
|
:data="statisticsData"
|
|
|
|
+ class="animated fadeInLeft"
|
|
v-if="isCake"
|
|
v-if="isCake"
|
|
/>
|
|
/>
|
|
<cylindricalHistogram
|
|
<cylindricalHistogram
|
|
style="position: absolute; left: 50px; top: 430px"
|
|
style="position: absolute; left: 50px; top: 430px"
|
|
|
|
+ class="animated fadeInLeft"
|
|
v-if="isGetData"
|
|
v-if="isGetData"
|
|
:unit="`公斤/产量`"
|
|
:unit="`公斤/产量`"
|
|
title="各区域移栽产量分析"
|
|
title="各区域移栽产量分析"
|
|
@@ -17,6 +19,7 @@
|
|
<weatherForecast
|
|
<weatherForecast
|
|
:unit="`摄氏度`"
|
|
:unit="`摄氏度`"
|
|
style="position: absolute; left: 50px; top: 760px"
|
|
style="position: absolute; left: 50px; top: 760px"
|
|
|
|
+ class="animated fadeInLeft"
|
|
v-if="isWeather"
|
|
v-if="isWeather"
|
|
title="天气预报"
|
|
title="天气预报"
|
|
:area="Weatherarea"
|
|
:area="Weatherarea"
|
|
@@ -27,6 +30,7 @@
|
|
:unit="`平方米/面积`"
|
|
:unit="`平方米/面积`"
|
|
id="`wavyLineChart`"
|
|
id="`wavyLineChart`"
|
|
style="position: absolute; right: 50px; top: 115px"
|
|
style="position: absolute; right: 50px; top: 115px"
|
|
|
|
+ class="animated fadeInRight"
|
|
v-if="isWavyLine"
|
|
v-if="isWavyLine"
|
|
title="各区域移栽面积"
|
|
title="各区域移栽面积"
|
|
:area.sync="wavyLineArea"
|
|
:area.sync="wavyLineArea"
|
|
@@ -35,6 +39,7 @@
|
|
/>
|
|
/>
|
|
<HorizontalHistogram
|
|
<HorizontalHistogram
|
|
style="position: absolute; right: 50px; top: 430px"
|
|
style="position: absolute; right: 50px; top: 430px"
|
|
|
|
+ class="animated fadeInRight"
|
|
v-if="isHorizontal"
|
|
v-if="isHorizontal"
|
|
id="`移栽情况分析`"
|
|
id="`移栽情况分析`"
|
|
title="移栽情 况分析"
|
|
title="移栽情 况分析"
|
|
@@ -44,12 +49,14 @@
|
|
<wavyLineChart
|
|
<wavyLineChart
|
|
id="`移栽趋势分析`"
|
|
id="`移栽趋势分析`"
|
|
style="position: absolute; right: 50px; top: 760px"
|
|
style="position: absolute; right: 50px; top: 760px"
|
|
|
|
+ class="animated fadeInRight"
|
|
v-if="isWavyLine"
|
|
v-if="isWavyLine"
|
|
title="移栽趋势分析"
|
|
title="移栽趋势分析"
|
|
:area.sync="trendarea"
|
|
:area.sync="trendarea"
|
|
:dataArray.sync="trendDataArray"
|
|
:dataArray.sync="trendDataArray"
|
|
/>
|
|
/>
|
|
<threeMap
|
|
<threeMap
|
|
|
|
+ class="animated zoomIn"
|
|
style="
|
|
style="
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 50%;
|
|
top: 50%;
|
|
@@ -85,6 +92,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ autoVueFnInit: false,
|
|
statisticsData: {
|
|
statisticsData: {
|
|
title: `目标完成率`,
|
|
title: `目标完成率`,
|
|
value: 0,
|
|
value: 0,
|
|
@@ -128,6 +136,7 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.getJSON()
|
|
this.$util.autoVueFn(
|
|
this.$util.autoVueFn(
|
|
[
|
|
[
|
|
{
|
|
{
|
|
@@ -155,14 +164,16 @@ export default {
|
|
fn: this.getTrendAnalysis,
|
|
fn: this.getTrendAnalysis,
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- this
|
|
|
|
|
|
+ {
|
|
|
|
+ vm: this,
|
|
|
|
+ batEnd() {
|
|
|
|
+ this.autoVueFnInit = true
|
|
|
|
+ },
|
|
|
|
+ }
|
|
)
|
|
)
|
|
- this.getJSON()
|
|
|
|
// this.$http.get(`https://httpbin.org/get`)
|
|
// this.$http.get(`https://httpbin.org/get`)
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
- screenSize(this.$refs.editor)
|
|
|
|
- },
|
|
|
|
|
|
+ mounted() {},
|
|
methods: {
|
|
methods: {
|
|
tabChange(val) {
|
|
tabChange(val) {
|
|
if (val === 0) {
|
|
if (val === 0) {
|
|
@@ -173,7 +184,7 @@ export default {
|
|
console.log(`val`, val)
|
|
console.log(`val`, val)
|
|
},
|
|
},
|
|
getAnalysisOfTransplantYieldInVariousRegions() {
|
|
getAnalysisOfTransplantYieldInVariousRegions() {
|
|
- this.$http
|
|
|
|
|
|
+ return this.$http
|
|
.get(`/api/analysisOfTransplantYieldInVariousRegions`)
|
|
.get(`/api/analysisOfTransplantYieldInVariousRegions`)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
const area = []
|
|
const area = []
|
|
@@ -188,7 +199,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getWeatherForecast() {
|
|
getWeatherForecast() {
|
|
- this.$http.get(`/api/weatherForecast`).then((res) => {
|
|
|
|
|
|
+ return this.$http.get(`/api/weatherForecast`).then((res) => {
|
|
const area = []
|
|
const area = []
|
|
const dataArray = []
|
|
const dataArray = []
|
|
res.forEach((element) => {
|
|
res.forEach((element) => {
|
|
@@ -201,7 +212,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getTransplantAreaInEachRegion() {
|
|
getTransplantAreaInEachRegion() {
|
|
- this.$http.get(`/api/transplantAreaInEachRegion`).then((res) => {
|
|
|
|
|
|
+ return this.$http.get(`/api/transplantAreaInEachRegion`).then((res) => {
|
|
const area = []
|
|
const area = []
|
|
const dataArray = {
|
|
const dataArray = {
|
|
LastYear: [],
|
|
LastYear: [],
|
|
@@ -236,7 +247,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getStatistics() {
|
|
getStatistics() {
|
|
- this.$http.get(`/api/realTimeStatistics`).then((res) => {
|
|
|
|
|
|
+ return this.$http.get(`/api/realTimeStatistics`).then((res) => {
|
|
const obj = this.statisticsData
|
|
const obj = this.statisticsData
|
|
// eslint-disable-next-line no-prototype-builtins
|
|
// eslint-disable-next-line no-prototype-builtins
|
|
if (res.hasOwnProperty(obj.title)) {
|
|
if (res.hasOwnProperty(obj.title)) {
|
|
@@ -262,7 +273,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getTrendAnalysis() {
|
|
getTrendAnalysis() {
|
|
- this.$http.get(`/api/transplantTrendAnalysis`).then((res) => {
|
|
|
|
|
|
+ return this.$http.get(`/api/transplantTrendAnalysis`).then((res) => {
|
|
const area = []
|
|
const area = []
|
|
const dataArray = {
|
|
const dataArray = {
|
|
LastYear: [],
|
|
LastYear: [],
|