|
@@ -171,10 +171,10 @@ export default {
|
|
this.getJSON()
|
|
this.getJSON()
|
|
this.$util.autoVueFn(
|
|
this.$util.autoVueFn(
|
|
[
|
|
[
|
|
- // {
|
|
|
|
- // time: 1000 * 60,
|
|
|
|
- // fn: this.getWeatherForecast,
|
|
|
|
- // },
|
|
|
|
|
|
+ {
|
|
|
|
+ time: 1000 * 60,
|
|
|
|
+ fn: this.getWeatherForecast,
|
|
|
|
+ },
|
|
{
|
|
{
|
|
time: 1000 * 60,
|
|
time: 1000 * 60,
|
|
fn: this.getAnalysisOfTransplantYieldInVariousRegions,
|
|
fn: this.getAnalysisOfTransplantYieldInVariousRegions,
|
|
@@ -183,10 +183,10 @@ export default {
|
|
time: 1000 * 60,
|
|
time: 1000 * 60,
|
|
fn: this.getTransplantAreaInEachRegion,
|
|
fn: this.getTransplantAreaInEachRegion,
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // time: 1000 * 60,
|
|
|
|
- // fn: this.getAnalysisOfTransplantingSituation,
|
|
|
|
- // },
|
|
|
|
|
|
+ {
|
|
|
|
+ time: 1000 * 60,
|
|
|
|
+ fn: this.getAnalysisOfTransplantingSituation,
|
|
|
|
+ },
|
|
{
|
|
{
|
|
time: 1000 * 60,
|
|
time: 1000 * 60,
|
|
fn: this.getStatistics,
|
|
fn: this.getStatistics,
|
|
@@ -248,13 +248,11 @@ export default {
|
|
.then((res) => {
|
|
.then((res) => {
|
|
const area = []
|
|
const area = []
|
|
const dataArray = {
|
|
const dataArray = {
|
|
- temperature: [],
|
|
|
|
- Weather: [],
|
|
|
|
|
|
+ thisYear: [],
|
|
}
|
|
}
|
|
- res.forEach((element) => {
|
|
|
|
- area.push(element.时间)
|
|
|
|
- dataArray.temperature.push(element.温度)
|
|
|
|
- dataArray.Weather.push(element.天气)
|
|
|
|
|
|
+ res.list.forEach((element) => {
|
|
|
|
+ area.push(element.label)
|
|
|
|
+ dataArray.thisYear.push(element.value)
|
|
})
|
|
})
|
|
this.Weatherarea = area
|
|
this.Weatherarea = area
|
|
this.WeatherdataArray = dataArray
|
|
this.WeatherdataArray = dataArray
|
|
@@ -282,14 +280,12 @@ export default {
|
|
this.$http.get(`/api/screen/qxjy/orderTotal`).then((res) => {
|
|
this.$http.get(`/api/screen/qxjy/orderTotal`).then((res) => {
|
|
const area = []
|
|
const area = []
|
|
const dataArray = {
|
|
const dataArray = {
|
|
- Done: [],
|
|
|
|
- Percentage: [],
|
|
|
|
|
|
+ thisYear: [],
|
|
}
|
|
}
|
|
- const date = res
|
|
|
|
|
|
+ const date = res.list
|
|
date.forEach((element) => {
|
|
date.forEach((element) => {
|
|
- area.push(element.名称.slice(0, 2))
|
|
|
|
- dataArray.Done.push(element.已移载)
|
|
|
|
- dataArray.Percentage.push(element.比率.toFixed(0))
|
|
|
|
|
|
+ area.push(element.label)
|
|
|
|
+ dataArray.thisYear.push(element.value)
|
|
})
|
|
})
|
|
this.HorizontalArea = area
|
|
this.HorizontalArea = area
|
|
this.HorizontalArray = dataArray
|
|
this.HorizontalArray = dataArray
|
|
@@ -311,8 +307,7 @@ export default {
|
|
thisYear: [],
|
|
thisYear: [],
|
|
}
|
|
}
|
|
res.forEach((element) => {
|
|
res.forEach((element) => {
|
|
- area.push(element.label
|
|
|
|
- )
|
|
|
|
|
|
+ area.push(element.label)
|
|
dataArray.thisYear.push(element.value)
|
|
dataArray.thisYear.push(element.value)
|
|
})
|
|
})
|
|
this.trendarea = area
|
|
this.trendarea = area
|