fontawesome pridane, zobrazenie intervalu

This commit is contained in:
2021-01-13 09:21:38 +01:00
parent 0d489ae54a
commit 62c616be6f
13 changed files with 15873 additions and 10 deletions

15
resources/js/app.js vendored
View File

@@ -37,6 +37,10 @@ Vue.use(VueDygraphs);
import VueTableDynamic from 'vue-table-dynamic'
Vue.use(VueTableDynamic);
import Datetime from 'vue-datetime'
Vue.use(Datetime);
//(function () {
var app = new Vue({
el: '#app',
@@ -44,10 +48,9 @@ Vue.use(VueTableDynamic);
tmin: -10,
tmax: 50,
temperature: 0,
humidity: null,
pressure: null,
voltage: null,
time: null,
startdate: null,
enddate: null,
params: {
data: [],
border: true,
@@ -95,6 +98,9 @@ Vue.use(VueTableDynamic);
},
methods: {
displayResults: function () {
this.getData();
},
getData: function () {
axios.get('/data', {
@@ -111,6 +117,7 @@ Vue.use(VueTableDynamic);
data.push(['Napätie',response.data.voltage,'V']);
moment.locale('sk_SK');
app.time = moment(response.data.time).format('LLL');
app.temperature = response.data.temperature;
})
.catch(function (error) {
console.log(error);
@@ -122,6 +129,8 @@ Vue.use(VueTableDynamic);
axios.get('/data/get', {
params: {
type: vts[t],
startdate: this.startdate,
enddate: this.enddate
}
})
.then(function (response) {