This commit is contained in:
2020-01-10 19:47:20 +00:00
parent 56e4f4a32f
commit eb6e285fba
4 changed files with 53 additions and 9 deletions

View File

@@ -687,6 +687,13 @@ export default function initialize() {
[],
key++
);
addNavItem(
window.$gz.locale.get("WidgetList"),
"vial",
"/test-widgets",
[],
key++
);
}
//****************** CUSTOMER USER / HEAD OFFICE USER UI

View File

@@ -1,12 +1,14 @@
<template>
<v-data-table
:headers="headers"
:items="desserts"
:options.sync="options"
:server-items-length="totalDesserts"
:loading="loading"
class="elevation-1"
></v-data-table>
<v-container>
<v-data-table
:headers="headers"
:items="records"
:options.sync="options"
:server-items-length="totalRecords"
:loading="loading"
class="elevation-1"
></v-data-table>
</v-container>
</template>
<script>
@@ -16,7 +18,13 @@
export default {
created() {},
data() {
return {};
return {
loading: true,
options: {},
headers: [],
totalRecords: 0,
records: []
};
},
methods: {}
};

View File

@@ -432,6 +432,13 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "test" */ "./views/test-inventory.vue")
},
{
//NEW TEST GZ DATA TABLE
path: "/test-widgets",
name: "test-widgets",
component: () =>
import(/* webpackChunkName: "test" */ "./views/test-widgets.vue")
},
{
//TEST WIDGET EDIT FORM

View File

@@ -0,0 +1,22 @@
<template>
<GzDataTable />
</template>
<script>
import GzDataTable from "../components/gz-data-table.vue";
export default {
components: {
GzDataTable
},
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "vial",
title: window.$gz.locale.get("WidgetList")
//,
//helpUrl: "form-inv-parts"
});
}
};
</script>