Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: view/view.php
Line Number: 33
<template> <div class="panel panel-default"> <div class="panel-body"> <h1 class="text-right panel-name">Spis ostatnich raportow</h1> <div id="people"> <v-client-table v-if='loaded' :data="tableData" :columns="columns" :options="options"></v-client-table> </div> </div> </div> </template> <script> function GetDateString(date) { var yyyy = date.getFullYear().toString(); var mm = (date.getMonth()+1).toString(); // getMonth() is zero-based var dd = date.getDate().toString(); return (dd[1]?dd:"0"+dd[0]) +'.'+ (mm[1]?mm:"0"+mm[0]) + '.'+ yyyy; // padding } function GetTimeString(date) { var hh = date.getHours().toString(); var min = date.getMinutes().toString(); return (hh[1]?hh:"0"+hh[0]) +':' + (min[1]?min:"0"+min[0]); } const DATA_URL = 'http://localhost:50000/api/report/Agmet3/100' export default { data() { return { loaded:false, columns:['Data','Czas rozpoczecia','Czas zakonczenia','Ogolny licznik wsadow', 'Zmianowy licznik wsadow', 'Indeks wsadu', 'Zalogowany operator', 'Numer receptury', 'Nazwa receptury', 'Ilosc','Powierzchnia calkowita' ], tableData: [], options: { headings: { 'Data': 'Data', 'Czas rozpoczecia': 'Od', 'Czas zakonczenia': 'Do', 'Ogolny licznik wsadow': 'Licznik ogólny', 'Zmianowy licznik wsadow': 'Licznik zmiany', 'Indeks wsadu': 'Indeks', 'Zalogowany operator': 'Operator', 'Ilosc': 'Ilość', 'Powierzchnia calkowita':'Powierzchnia' }, templates: { 'Data': function(row) { var date = new Date(row['Data'].$date); return GetDateString(date); }, 'Czas rozpoczecia': function(row) { var date = new Date(row['Czas rozpoczecia'].$date); return GetTimeString(date); }, 'Czas zakonczenia': function(row) { var date = new Date(row['Czas zakonczenia'].$date); return GetTimeString(date); }, 'Ilosc': "{Ilosc} szt.", 'Powierzchnia calkowita':"{Powierzchnia calkowita} dm<sup>2</sup>" }, perPage: 100, compileTemplates: true, filterByColumn: false, toMomentFormat: true, //sortable: ['Ogolny licznik wsadow'], orderBy:{ column: '', }, //dateColumns: ['Data'], //dateFormat: 'YYYY-MM-DD', texts: { count: "{count} Raportów", filter:'Filtr:', filterPlaceholder:'szukaj ...', limit:'Ilość:', noResults:'Brak wyników' }, datepickerOptions: { showDropdowns: true } //skin:'' } } }, ready: function() { this.getTabletData(); }, components: { }, methods: { getTabletData() { var getUrl = DATA_URL; this.$http .get(getUrl, (data) => { this.tableData = data; this.loaded=true; }) .error((err) => err) }, } } </script>