This commit is contained in:
@@ -100,7 +100,7 @@ export default {
|
||||
//construct the api url and store it
|
||||
//development location?
|
||||
if (
|
||||
window.location.hostname == "localhost" &&
|
||||
(window.location.hostname == "localhost" || window.location.hostname == "192.168.1.56" ) &&
|
||||
window.location.port == "8080"
|
||||
) {
|
||||
store.commit("setAPIURL", "http://localhost:7575/api/v8.0/");
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<v-container grid-list-md>
|
||||
<v-layout wrap>
|
||||
<v-flex xs12 sm6 md4>
|
||||
<v-text-field label="Legal first name*" required></v-text-field>
|
||||
<v-text-field label="ZZZZZLegal first name*" required></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs12 sm6 md4>
|
||||
<v-text-field label="Legal middle name" hint="example of helper text only on focus"></v-text-field>
|
||||
@@ -54,6 +54,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
export default {
|
||||
/* Check rights to edit or view here?
|
||||
e.g.
|
||||
@@ -68,8 +69,34 @@ export default {
|
||||
showeditdialog: false,
|
||||
recordId: 0
|
||||
}
|
||||
}, mounted() {
|
||||
/* Check rights here?
|
||||
e.g.
|
||||
if (
|
||||
roles.hasRole(roles.AuthorizationRoles.OpsAdminFull) ||
|
||||
roles.hasRole(roles.AuthorizationRoles.OpsAdminLimited)
|
||||
) {
|
||||
addNavItem(lt.get("Operations"), "cogs", "ops");
|
||||
}
|
||||
*/
|
||||
console.log("MOUNTED");
|
||||
},
|
||||
data: () => ({})
|
||||
data: () => ({}),
|
||||
beforeRouteEnter(to, from, next) {
|
||||
console.log("BEFOREROUTENTER");
|
||||
debugger;
|
||||
if (
|
||||
false
|
||||
// roles.hasRole(roles.AuthorizationRoles.OpsAdminFull) ||
|
||||
// roles.hasRole(roles.AuthorizationRoles.OpsAdminLimited)
|
||||
) {
|
||||
debugger;
|
||||
next();
|
||||
} else {
|
||||
debugger;
|
||||
next(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
/* Xeslint-disable */
|
||||
import localeText from "../api/locale";
|
||||
import api from "../api/apiutil";
|
||||
import WidgetEdit from "../components/inventorywidgetedit";
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
addNavItem(lt.get("Operations"), "cogs", "ops");
|
||||
}
|
||||
*/
|
||||
this.rowsPerPageText = this.lt("RowsPerPage");
|
||||
this.rowsPerPageText = this.lt("RowsPerPage");
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
|
||||
@@ -12,6 +12,12 @@ import NProgress from "nprogress";
|
||||
import "nprogress/nprogress.css";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// FORM VALIDATION
|
||||
//
|
||||
import VeeValidate from "vee-validate";
|
||||
Vue.use(VeeValidate);
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
39
ayanova/src/views/inventory-widget-edit.vue
Normal file
39
ayanova/src/views/inventory-widget-edit.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<v-layout column wrap class="my-5" align-center>
|
||||
<v-flex xs12>
|
||||
<v-container grid-list-xl>
|
||||
<v-layout row wrap align-top></v-layout>
|
||||
</v-container>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
|
||||
//import store from "../store";
|
||||
import lt from "../api/locale";
|
||||
//import _ from "../utils/libs/lodash.js";
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
// beforeRouteEnter(to, from, next) {
|
||||
// //Cache all required lt keys
|
||||
// var ltKeysRequired = ["Inventory"].concat(WidgetList.ltKeysRequired);
|
||||
// lt.fetch(ltKeysRequired).then(() => {
|
||||
// next();
|
||||
// });
|
||||
// },
|
||||
mounted() {},
|
||||
methods: {
|
||||
lt: function(key) {
|
||||
return lt.get(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user