- viac senzorov, oprava chyb ked nevracia hodnotu controller
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['fromdate','todate','type','range','host'],
|
||||
props: ['fromdate','todate','type','range','host','model'],
|
||||
name: 'Stats',
|
||||
data() {
|
||||
return {
|
||||
@@ -59,7 +59,8 @@ export default {
|
||||
that.params.height = 400;
|
||||
}
|
||||
} else {
|
||||
that.params.data.push(['Hodnota',response.data[0].min,response.data[0].max,response.data[0].mean.toFixed(2),response.data[0].last]);
|
||||
if (response.data.length > 0)
|
||||
that.params.data.push(['Hodnota',response.data[0].min,response.data[0].max,response.data[0].mean.toFixed(2),response.data[0].last]);
|
||||
};
|
||||
console.log(that.params.data);
|
||||
that.redraw += 1;
|
||||
|
||||
Reference in New Issue
Block a user