|
|
@ -260,7 +260,6 @@ created() { |
|
|
|
this.queryParams.startTime = this.dateRange[0]; |
|
|
|
this.queryParams.time = this.dateRange[1]; |
|
|
|
deviceOnlineChart(this.queryParams).then(response => { |
|
|
|
console.log("*******************************") |
|
|
|
let data = response.data; |
|
|
|
let xData = [], yData = []; |
|
|
|
|
|
|
@ -269,8 +268,6 @@ created() { |
|
|
|
Object.keys(data[Object.keys(data)[0]]).forEach(date => { |
|
|
|
Object.keys(data[Object.keys(data)[0]][date]).forEach(time => { |
|
|
|
const formattedTime = this.formatDate(time) |
|
|
|
console.log("***************************") |
|
|
|
console.log(formattedTime) |
|
|
|
if (!xData.includes(formattedTime )) { |
|
|
|
|
|
|
|
xData.push(formattedTime ); |
|
|
|