|
|
@@ -145,10 +145,10 @@
|
|
|
var arr3 = []
|
|
|
var xtitle = []
|
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
|
- xtitle.unshift(res.data[i].xy_addtime)
|
|
|
+ xtitle.push(res.data[i].xy_addtime)
|
|
|
}
|
|
|
for (var j = 0; j < this.worms.data.length; j++) {
|
|
|
- arr3.unshift(this.worms.data[j].pest_num == "" ? "0" : this.worms.data[j].pest_num)
|
|
|
+ arr3.push(this.worms.data[j].pest_num == "" ? "0" : this.worms.data[j].pest_num)
|
|
|
}
|
|
|
console.log(arr3)
|
|
|
this.$nextTick(() => {
|
|
|
@@ -232,7 +232,7 @@
|
|
|
legend: {
|
|
|
position: "top"
|
|
|
},
|
|
|
- fontSize: 11,
|
|
|
+ fontSize: 10,
|
|
|
background: '#FFFFFF',
|
|
|
pixelRatio: 1,
|
|
|
animation: true,
|
|
|
@@ -244,7 +244,7 @@
|
|
|
disableGrid: true,
|
|
|
type: 'grid',
|
|
|
gridType: 'dash',
|
|
|
- itemCount: 4, //x轴单屏显示数据的数量,默认为5个
|
|
|
+ itemCount: 3, //x轴单屏显示数据的数量,默认为5个
|
|
|
scrollShow: true, //新增是否显示滚动条,默认false
|
|
|
// scrollAlign: 'left', //滚动条初始位置
|
|
|
scrollBackgroundColor: '#F7F7FF', //默认为 #EFEBEF
|
|
|
@@ -309,7 +309,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.end_time = +new Date() + 1000
|
|
|
- this.start_time = this.end_time - 24 * 60 * 60 * 1000
|
|
|
+ this.start_time = this.end_time - 24 * 60 * 60 * 1000*30
|
|
|
console.log(new Date(this.end_time), new Date(this.start_time))
|
|
|
// this.history()
|
|
|
this.Chistory()
|