|
|
@ -59,6 +59,9 @@ export default { |
|
|
|
let brr = [] |
|
|
|
let brr = [] |
|
|
|
let crr = [] |
|
|
|
let crr = [] |
|
|
|
for (let i in res.data) { |
|
|
|
for (let i in res.data) { |
|
|
|
|
|
|
|
if(res.data[i].deviceTemp == null){ |
|
|
|
|
|
|
|
res.data[i].deviceTemp = '-- ' |
|
|
|
|
|
|
|
} |
|
|
|
arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp}) |
|
|
|
arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp}) |
|
|
|
brr.push({ |
|
|
|
brr.push({ |
|
|
|
name: res.data[i].deviceName, |
|
|
|
name: res.data[i].deviceName, |
|
|
@ -70,7 +73,7 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
crr.push(res.data[i].times) |
|
|
|
crr.push(res.data[i].times) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(crr) |
|
|
|
// console.log('arr',arr) |
|
|
|
data.info = arr |
|
|
|
data.info = arr |
|
|
|
data.infos = brr |
|
|
|
data.infos = brr |
|
|
|
data.xinfo = crr |
|
|
|
data.xinfo = crr |
|
|
|