This commit is contained in:
@@ -12,7 +12,7 @@ export default {
|
||||
// };
|
||||
// exampleListOptions;
|
||||
|
||||
var listUrl = route + apiUtil.buildQuery(listOptions);
|
||||
var listUrl = route + "?" + apiUtil.buildQuery(listOptions);
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
fetch(apiUtil.APIUrl(listUrl), apiUtil.fetchGetOptions())
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
>
|
||||
<template slot="items" slot-scope="props">
|
||||
<td>{{ props.item.name }}</td>
|
||||
<td class="text-xs-right">{{ props.item.calories }}</td>
|
||||
<td class="text-xs-right">{{ props.item.fat }}</td>
|
||||
<td class="text-xs-right">{{ props.item.carbs }}</td>
|
||||
<td class="text-xs-right">{{ props.item.protein }}</td>
|
||||
<td class="text-xs-right">{{ props.item.iron }}</td>
|
||||
<td class="text-xs-right">{{ props.item.serial }}</td>
|
||||
<td class="text-xs-right">{{ props.item.dollarAmount }}</td>
|
||||
<td class="text-xs-right">{{ props.item.active }}</td>
|
||||
<td class="text-xs-right">{{ props.item.roles }}</td>
|
||||
<td class="text-xs-right">{{ props.item.startDate }}</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
/* xeslint-disable */
|
||||
import pagedList from "../api/pagedlist";
|
||||
export default {
|
||||
data() {
|
||||
@@ -59,6 +60,7 @@ export default {
|
||||
mounted() {
|
||||
this.loading = true;
|
||||
pagedList.fetch("Widget/ListWidgets", { Offset: 5, Limit: 5 }).then(res => {
|
||||
// debugger;
|
||||
this.loading = false;
|
||||
this.Items = res.data;
|
||||
this.totalItems = res.paging.count;
|
||||
|
||||
Reference in New Issue
Block a user