Zalozky, statistika

This commit is contained in:
2021-01-15 10:49:20 +01:00
parent 076d502b8a
commit 3137697a5f
11 changed files with 402 additions and 99420 deletions

17
resources/js/app.js vendored
View File

@@ -42,6 +42,12 @@ Vue.use(Datetime);
Vue.component('stats-table', require('./components/StatisticsComponent.vue').default);
import { TabsPlugin } from 'bootstrap-vue'
Vue.use(TabsPlugin);
import { CardPlugin } from 'bootstrap-vue'
Vue.use(CardPlugin);
//(function () {
var app = new Vue({
el: '#app',
@@ -53,6 +59,8 @@ Vue.component('stats-table', require('./components/StatisticsComponent.vue').def
startdate: null,
enddate: null,
componentKey: 0,
ti: 0, //Tab Index
graphShow: [],
params: {
data: [],
border: true,
@@ -103,6 +111,15 @@ Vue.component('stats-table', require('./components/StatisticsComponent.vue').def
displayResults: function () {
this.getData();
},
resizeGraph: function (i) {
console.log("RESIZE");
let index = "dg[" + i + "]";
console.log('Change tab:',i);
this.$nextTick(() => {
app.$refs[index]._data._graph.resize();
});
},
getData: function () {
axios.get('/data', {