This commit is contained in:
@@ -52,9 +52,9 @@
|
||||
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
/* xeslint-disable */
|
||||
import localeText from "../api/locale";
|
||||
import pagedList from "../api/pagedlist";
|
||||
import api from "../api/apiutil";
|
||||
import WidgetEdit from "../components/inventorywidgetedit";
|
||||
export default {
|
||||
ltKeysRequired: [
|
||||
@@ -118,7 +118,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.rowsPerPageText = lt("RowsPerPage");
|
||||
this.rowsPerPageText = this.lt("RowsPerPage");
|
||||
this.getDataFromApi();
|
||||
},
|
||||
computed: {},
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
offset: 0,
|
||||
limit: 5,
|
||||
sort: "name",
|
||||
asc:true
|
||||
asc: true
|
||||
};
|
||||
|
||||
if (this.pagination.rowsPerPage && this.pagination.rowsPerPage > 0) {
|
||||
@@ -145,10 +145,12 @@ export default {
|
||||
listOptions.limit = this.pagination.rowsPerPage;
|
||||
}
|
||||
listOptions.sort = this.pagination.sortBy;
|
||||
listOptions.asc=!this.pagination.descending;
|
||||
listOptions.asc = !this.pagination.descending;
|
||||
|
||||
this.loading = true;
|
||||
pagedList.fetch("Widget/ListWidgets", listOptions).then(res => {
|
||||
//debugger;
|
||||
var listUrl = "Widget/ListWidgets?" + api.buildQuery(listOptions);
|
||||
api.get(listUrl).then(res => {
|
||||
// debugger;
|
||||
this.loading = false;
|
||||
this.Items = res.data;
|
||||
|
||||
Reference in New Issue
Block a user