This commit is contained in:
@@ -50,32 +50,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* eslint-disable */
|
/* Xeslint-disable */
|
||||||
import localeText from "../api/locale";
|
import localeText from "../api/locale";
|
||||||
import pagedList from "../api/pagedlist";
|
import pagedList from "../api/pagedlist";
|
||||||
import WidgetEdit from "../components/inventorywidgetedit";
|
import WidgetEdit from "../components/inventorywidgetedit";
|
||||||
export default {
|
export default {
|
||||||
init() {
|
|
||||||
return localeText
|
|
||||||
.fetch([
|
|
||||||
"Widget",
|
|
||||||
"WidgetList",
|
|
||||||
"WidgetName",
|
|
||||||
"WidgetSerial",
|
|
||||||
"WidgetDollarAmount",
|
|
||||||
"WidgetActive",
|
|
||||||
"WidgetRoles",
|
|
||||||
"WidgetStartDate",
|
|
||||||
"WidgetEndDate",
|
|
||||||
"WidgetNotes"
|
|
||||||
])
|
|
||||||
.then(() => {
|
|
||||||
console.log(
|
|
||||||
"inventorywidgetlist::FULLY INITIALIZED, widgetSerial=" +
|
|
||||||
localeText.get("WidgetSerial")
|
|
||||||
);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
ltKeysRequired: [
|
ltKeysRequired: [
|
||||||
"Widget",
|
"Widget",
|
||||||
"WidgetList",
|
"WidgetList",
|
||||||
@@ -134,17 +113,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log("MOUNTED");
|
|
||||||
this.getDataFromApi();
|
this.getDataFromApi();
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
lt: function(key) {
|
lt: function(key) {
|
||||||
console.log("Calling LT for " + key);
|
return localeText.get(key);
|
||||||
var v = localeText.get(key);
|
|
||||||
console.log("LT: returning " + v);
|
|
||||||
return v;
|
|
||||||
//return localeText.get(key);
|
|
||||||
},
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
this.dialogdata.recordId = -1;
|
this.dialogdata.recordId = -1;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* eslint-disable */
|
/* Xeslint-disable */
|
||||||
import WidgetList from "../components/inventorywidgetlist";
|
import WidgetList from "../components/inventorywidgetlist";
|
||||||
import WarehouseTop from "../components/inventorywarehousetop";
|
import WarehouseTop from "../components/inventorywarehousetop";
|
||||||
import POTop from "../components/inventorypotop";
|
import POTop from "../components/inventorypotop";
|
||||||
@@ -70,13 +70,9 @@ export default {
|
|||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
//get lt, roles, populate top level components accordingly
|
//Cache all required lt keys
|
||||||
var ltKeysRequired = ["Inventory"].concat(WidgetList.ltKeysRequired);
|
var ltKeysRequired = ["Inventory"].concat(WidgetList.ltKeysRequired);
|
||||||
console.log("Inventory.vue, ltKeysRequiredIs:");
|
|
||||||
console.log(ltKeysRequired);
|
|
||||||
lt.fetch(ltKeysRequired).then(() => {
|
lt.fetch(ltKeysRequired).then(() => {
|
||||||
// //init widgetlist
|
|
||||||
// WidgetList.init().then(next());
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user