Zakladna migracia na viacej senzorov
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
|
||||
<div class="content" id="app">
|
||||
<div class="title m-b-md">
|
||||
Teplomer @{{ names[host] }}
|
||||
@{{ sensormap[ti].desc }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -93,12 +93,10 @@
|
||||
<vue-thermometer class="justify-content-center col-sm-3" :value="temperature" :min="tmin" :max="tmax"></vue-thermometer>
|
||||
<div class="col-sm-9" id="values">
|
||||
<div>
|
||||
<b-button variant="primary" v-on:click="sethost('balkon')">Balkón</b-button>
|
||||
<b-button variant="secondary" v-on:click="sethost('decka')">Decká</b-button>
|
||||
<b-button variant="success" v-on:click="sethost('strecha')">Strecha</b-button>
|
||||
<b-form-select v-model="si" :options="soptions" v-on:change="sethost(si)"></b-form-select>
|
||||
</div>
|
||||
|
||||
<vue-table-dynamic :params="params" :key="host"></vue-table-dynamic>
|
||||
<vue-table-dynamic :params="params" :key="si"></vue-table-dynamic>
|
||||
<ul>
|
||||
<li>Čas: @{{time}}</li>
|
||||
</ul>
|
||||
@@ -136,13 +134,13 @@
|
||||
<b-tabs card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :range="'1h'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :range="'1h'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Deň" v-if="startdate">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :range="'1d'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'temperature'" :range="'1d'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
@@ -153,13 +151,13 @@
|
||||
<b-tabs card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :range="'1h'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :range="'1h'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Deň" v-if="startdate">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :range="'1d'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'humidity'" :range="'1d'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
@@ -170,13 +168,13 @@
|
||||
<b-tabs card>
|
||||
<b-tab title="Celá doba">
|
||||
<div>Štatistika za celú dobu v grafe</div>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Hodina">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :range="'1h'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :range="'1h'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
<b-tab title="Deň" v-if="startdate">
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :range="'1d'" :key="componentKey" :host="host"></stats-table>
|
||||
<stats-table :fromdate="startdate" :todate="enddate" :type="'pressure'" :range="'1d'" :key="componentKey" :host="host" :model="model"></stats-table>
|
||||
</b-tab>
|
||||
</b-tabs>
|
||||
</b-card>
|
||||
|
||||
Reference in New Issue
Block a user