|
@@ -147,9 +147,9 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
// 一分钟更新一次 后端10分钟更新一次数据
|
|
// 一分钟更新一次 后端10分钟更新一次数据
|
|
- this.getReportList({start:this.SData, end:this.EData})
|
|
|
|
|
|
+ this.getReportList()
|
|
this.timer_1 = setInterval(() => {
|
|
this.timer_1 = setInterval(() => {
|
|
- this.getReportList({start:this.SData, end:this.EData})
|
|
|
|
|
|
+ this.getReportList()
|
|
console.log("getReportList")
|
|
console.log("getReportList")
|
|
}, 1000 * 60);
|
|
}, 1000 * 60);
|
|
},
|
|
},
|
|
@@ -163,12 +163,12 @@ export default {
|
|
console.log(value)
|
|
console.log(value)
|
|
this.SData = Math.floor(new Date(value[0]).getTime() / 1000)
|
|
this.SData = Math.floor(new Date(value[0]).getTime() / 1000)
|
|
this.EData = Math.ceil(new Date(value[1]).getTime() / 1000)
|
|
this.EData = Math.ceil(new Date(value[1]).getTime() / 1000)
|
|
- console.log(SData, EData)
|
|
|
|
- this.getReportList({ start: SData, end: EData})
|
|
|
|
|
|
+ console.log(this.SData, this.EData)
|
|
|
|
+ this.getReportList()
|
|
},
|
|
},
|
|
// 请求个体数据 id 719 824
|
|
// 请求个体数据 id 719 824
|
|
- getReportList(data) {
|
|
|
|
- reqReportList({ deviceId:824, ...data })
|
|
|
|
|
|
+ getReportList() {
|
|
|
|
+ reqReportList({ deviceId:824, start:this.SData, end:this.EData })
|
|
.then(res => {
|
|
.then(res => {
|
|
let dateArr = [],
|
|
let dateArr = [],
|
|
animalTempArr = [],
|
|
animalTempArr = [],
|