Zalozky, statistika
This commit is contained in:
@@ -120,14 +120,53 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<dygraphs ref="dgt" :graph-data="series['temperature']" :graph-options="options['temperature']"></dygraphs>
|
||||
<stats-table :data="series['temperature']" :key="componentKey"></stats-table>
|
||||
<dygraphs ref="dgh" :graph-data="series['humidity']" :graph-options="options['humidity']"></dygraphs>
|
||||
<stats-table :data="series['humidity']" :key="componentKey"></stats-table>
|
||||
<dygraphs ref="dgp" :graph-data="series['pressure']" :graph-options="options['pressure']"></dygraphs>
|
||||
<stats-table :data="series['pressure']" :key="componentKey"></stats-table>
|
||||
|
||||
<b-card no-body>
|
||||
<b-tabs v-model="ti" small card lazy>
|
||||
<b-tab title="Teplota" @click="resizeGraph(0)">
|
||||
<dygraphs ref="dg[0]" :graph-data="series['temperature']" :graph-options="options['temperature']"></dygraphs>
|
||||
<!-- Tabs with card integration -->
|
||||
<b-card no-body>
|
||||
<b-tabs small card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :range="'1h'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
</b-tab>
|
||||
<b-tab title="Vlhkosť" @click="resizeGraph(1)">
|
||||
<dygraphs ref="dg[1]" :graph-data="series['humidity']" :graph-options="options['humidity']"></dygraphs>
|
||||
<b-card no-body>
|
||||
<b-tabs small card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :range="'1h'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
</b-tab>
|
||||
<b-tab title="Tlak" @click="resizeGraph(2)">
|
||||
<dygraphs ref="dg[2]" :graph-data="series['pressure']" :graph-options="options['pressure']"></dygraphs>
|
||||
<b-card no-body>
|
||||
<b-tabs small card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :range="'1h'" :key="componentKey"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user