|
|
|
|
@ -322,19 +322,25 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getWarmLeida(value) { |
|
|
|
|
value.map(item => { |
|
|
|
|
item = item.toString().split('.')[1] != undefined && item.toString().split('.')[1].length > 1 ? item.toFixed(2) : item |
|
|
|
|
}) |
|
|
|
|
let max = Math.max(...value); |
|
|
|
|
const data = [ |
|
|
|
|
{ |
|
|
|
|
value: value, |
|
|
|
|
name: "楼宇耗热", |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
max = max === 0 ? 100 : max; |
|
|
|
|
console.log('max', max); |
|
|
|
|
const title = [ |
|
|
|
|
{ name: "#1", max: 2000 }, |
|
|
|
|
{ name: "#2", max: 2000 }, |
|
|
|
|
{ name: "#3", max: 2000 }, |
|
|
|
|
{ name: "#4", max: 2000 }, |
|
|
|
|
{ name: "#5", max: 2000 }, |
|
|
|
|
{ name: "#6", max: 2000 }, |
|
|
|
|
{ name: "#1", max: max }, |
|
|
|
|
{ name: "#2", max: max }, |
|
|
|
|
{ name: "#3", max: max }, |
|
|
|
|
{ name: "#4", max: max }, |
|
|
|
|
{ name: "#5", max: max }, |
|
|
|
|
{ name: "#6", max: max }, |
|
|
|
|
]; |
|
|
|
|
this.$refs.radar.getLeidaChart( |
|
|
|
|
"耗热", |
|
|
|
|
|