fontawesome pridane, zobrazenie intervalu
This commit is contained in:
15
resources/js/app.js
vendored
15
resources/js/app.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user