Browse Source

管理端 设备在线监测

develop
王兴琳 1 week ago
parent
commit
5fe1161588
  1. 3
      ruoyi-ui/src/views/deviceManage/deviceOnline/index.vue

3
ruoyi-ui/src/views/deviceManage/deviceOnline/index.vue

@ -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 );

Loading…
Cancel
Save