This commit is contained in:
@@ -12,14 +12,8 @@ TODO CLIENT STUFF
|
|||||||
|
|
||||||
#### A PHONE IS PROBABLY NOT THE MOST COMMON SIZE FORM FACTOR THAT WILL BE USED. SUPPORT PHONES, YES, BUT DON'T GET HUNG UP ON IT TO THE POINT WHERE IT RUINS THE EXPERIENCE ON A FULL COMPUTER OR TABLET
|
#### A PHONE IS PROBABLY NOT THE MOST COMMON SIZE FORM FACTOR THAT WILL BE USED. SUPPORT PHONES, YES, BUT DON'T GET HUNG UP ON IT TO THE POINT WHERE IT RUINS THE EXPERIENCE ON A FULL COMPUTER OR TABLET
|
||||||
|
|
||||||
LODASH using _.has, _.forEach, _.drop
|
|
||||||
|
|
||||||
TODO NEXT
|
TODO NEXT
|
||||||
|
Test if a deliberate error thrown in the locale text will properly still show the content of the pages that rely on it i.e. inventory, inventorywidgetedit, log
|
||||||
Make a decision on standard procedure like in Inventorywidgetlist form and loading locale text and what to do if there is an issue.
|
|
||||||
- Just thinking maybe it's best to show form in either case of error or not because at least it's working even if the lt has an issue
|
|
||||||
- Simpler is better
|
|
||||||
-
|
|
||||||
|
|
||||||
DATETIME
|
DATETIME
|
||||||
- Test on mobile and desktop all browsers before moving on, it must be solid with error handling (required, after before etc) and etc and then if all is well we can move on to the other field types
|
- Test on mobile and desktop all browsers before moving on, it must be solid with error handling (required, after before etc) and etc and then if all is well we can move on to the other field types
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
<v-icon>fa-ellipsis-v</v-icon>
|
<v-icon>fa-ellipsis-v</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
|
|
||||||
<v-data-table
|
<v-data-table
|
||||||
v-model="selected"
|
v-model="selected"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@@ -81,7 +80,6 @@ export default {
|
|||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formReady: false,
|
formReady: false,
|
||||||
@@ -127,14 +125,12 @@ export default {
|
|||||||
this.dialogdata.showeditdialog = true;
|
this.dialogdata.showeditdialog = true;
|
||||||
},
|
},
|
||||||
getDataFromApi() {
|
getDataFromApi() {
|
||||||
//debugger;
|
|
||||||
var listOptions = {
|
var listOptions = {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
limit: 5,
|
limit: 5,
|
||||||
sort: "name",
|
sort: "name",
|
||||||
asc: true
|
asc: true
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.pagination.rowsPerPage && this.pagination.rowsPerPage > 0) {
|
if (this.pagination.rowsPerPage && this.pagination.rowsPerPage > 0) {
|
||||||
listOptions.offset =
|
listOptions.offset =
|
||||||
(this.pagination.page - 1) * this.pagination.rowsPerPage;
|
(this.pagination.page - 1) * this.pagination.rowsPerPage;
|
||||||
@@ -142,12 +138,9 @@ export default {
|
|||||||
}
|
}
|
||||||
listOptions.sort = this.pagination.sortBy;
|
listOptions.sort = this.pagination.sortBy;
|
||||||
listOptions.asc = !this.pagination.descending;
|
listOptions.asc = !this.pagination.descending;
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
//debugger;
|
|
||||||
var listUrl = "Widget/ListWidgets?" + this.$gzapi.buildQuery(listOptions);
|
var listUrl = "Widget/ListWidgets?" + this.$gzapi.buildQuery(listOptions);
|
||||||
this.$gzapi.get(listUrl).then(res => {
|
this.$gzapi.get(listUrl).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;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-layout column wrap class="my-5" align-center>
|
<v-layout column wrap class="my-5" align-center v-if="this.formReady">
|
||||||
<v-flex xs12>
|
<v-flex xs12>
|
||||||
<v-container grid-list-xl>
|
<v-container grid-list-xl>
|
||||||
<v-layout row wrap align-top>
|
<v-layout row wrap align-top>
|
||||||
@@ -39,7 +39,12 @@ import PartAssemblyTop from "../components/inventorypartassemblytop";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
this.$gzlocale.fetch(["Inventory"]);
|
this.$gzlocale
|
||||||
|
.fetch(["Inventory"])
|
||||||
|
.then(() => (this.formReady = true))
|
||||||
|
.catch(err => {
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
WidgetList,
|
WidgetList,
|
||||||
@@ -49,7 +54,9 @@ export default {
|
|||||||
PartAssemblyTop
|
PartAssemblyTop
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {
|
||||||
|
formReady: false
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export default {
|
|||||||
.fetch(["Log"])
|
.fetch(["Log"])
|
||||||
.then(() => (this.formReady = true))
|
.then(() => (this.formReady = true))
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
this.formReady = true;
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user