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