This commit is contained in:
@@ -55,6 +55,24 @@ move into Options object these things:
|
||||
:rows-per-page-items="rowsPerPageItems"
|
||||
:rows-per-page-text="lt('RowsPerPage')"
|
||||
select-all
|
||||
|
||||
|
||||
Errors are probably due to Options object missing some properties or not as expected, here is the code that is bombing that references this.options. object:
|
||||
const sortIndex = this.options.sortBy.findIndex(k => k === header.value);\n const beingSorted
|
||||
= sortIndex >= 0;\n const isDesc = this.options.sortDesc[sortIndex];\n classes.push('sortable');\n\n
|
||||
if (beingSorted) {\n classes.push('active');\n classes.push(isDesc ? 'desc' : 'asc');\n
|
||||
attrs['aria-sort'] = isDesc ? 'descending' : 'ascending';\n
|
||||
attrs['aria-label'] += isDesc ? this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortDescending') :
|
||||
this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortAscending');\n } else {\n
|
||||
attrs['aria-label'] += this.$vuetify.lang.t('$vuetify.dataTable.ariaLabel.sortNone');\n }\n\n
|
||||
if (header.align === 'end') children.unshift(this.genSortIcon());else children.push(this.genSortIcon());\n\n
|
||||
if (this.options.multiSort && beingSorted) {\n children.push(t
|
||||
|
||||
|
||||
Vuetify dialog changes - https://github.com/yariksav/vuetify-dialog/issues/46
|
||||
|
||||
DIALOG - Rethinking the dialog component I'm using, it appears to be buggy with the new vuetify version and it's a 3rd party black box of confusion at times. Vuetify has a built in dialog, not as specialized and windows-y (alert, danger, info etc) but it could be made to work and then I'm not reliant on one more thing
|
||||
OTHER 3rd PARTY - examine any other 3rd party client stuff being used and see if can replace it with anything in Vuetify or Vue itself, less dependencies the better!
|
||||
=================================================
|
||||
|
||||
|
||||
|
||||
23
ayanova/package-lock.json
generated
23
ayanova/package-lock.json
generated
@@ -18311,11 +18311,6 @@
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz",
|
||||
"integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ=="
|
||||
},
|
||||
"vue-asyncable": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/vue-asyncable/-/vue-asyncable-0.2.0.tgz",
|
||||
"integrity": "sha512-AKuYhnjwMVrOgPct9WYbK4S7aMaHbWbznWY8IrCJsHS0pyEZc7lnpilJLGhH3MmRoQL43M0ofPJyHuxnu30McQ=="
|
||||
},
|
||||
"vue-cli-plugin-vuetify": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/vue-cli-plugin-vuetify/-/vue-cli-plugin-vuetify-1.1.1.tgz",
|
||||
@@ -18402,27 +18397,15 @@
|
||||
"integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==",
|
||||
"dev": true
|
||||
},
|
||||
"vuedl": {
|
||||
"version": "0.3.5",
|
||||
"resolved": "https://registry.npmjs.org/vuedl/-/vuedl-0.3.5.tgz",
|
||||
"integrity": "sha512-AswpVvywM2bhQCDBL4llg4oMGSHWGJbxSr3MmrAX+09HBD2wS3+vA27WrqybFvV1ioUx4TwJ99wGnBizCgy4aA==",
|
||||
"requires": {
|
||||
"vue-asyncable": "^0.2.0"
|
||||
}
|
||||
},
|
||||
"vuetify": {
|
||||
"version": "2.1.6",
|
||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.1.6.tgz",
|
||||
"integrity": "sha512-uK5jNTbRQtnPRMDsBeXOSVgo0nKDNq7XDi987XVhK6Vb5dl6Y5kSFBFDHPpdzSUraeUtyDHrJWxq29NTPIbdFw=="
|
||||
},
|
||||
"vuetify-dialog": {
|
||||
"version": "0.3.8",
|
||||
"resolved": "https://registry.npmjs.org/vuetify-dialog/-/vuetify-dialog-0.3.8.tgz",
|
||||
"integrity": "sha512-Ab6hi729oeqFmCQgjsC69XUYYRirhNpawiA7fil2UcxxS0UAJ9i0U5HRlpdHRBEovlYU/yVZv7yuD22At+JnSw==",
|
||||
"requires": {
|
||||
"vue-asyncable": "^0.2.0",
|
||||
"vuedl": "^0.3.3"
|
||||
}
|
||||
"version": "1.0.0-alpha.5",
|
||||
"resolved": "https://registry.npmjs.org/vuetify-dialog/-/vuetify-dialog-1.0.0-alpha.5.tgz",
|
||||
"integrity": "sha512-Rh1OaOvIlBKerYkgPF77WzWQ5m18RKc/4kvZvFnSBVGTrokpY/j+pd/dvaiqLQJZjAzgXqQrC/YLIMKOtHNthg=="
|
||||
},
|
||||
"vuetify-loader": {
|
||||
"version": "1.3.0",
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
"typeface-roboto": "0.0.54",
|
||||
"vue": "^2.6.10",
|
||||
"vue-router": "^3.1.3",
|
||||
"vuex": "^3.0.1",
|
||||
"vuetify": "^2.1.6",
|
||||
"vuetify-dialog": "^0.3.8",
|
||||
"vuetify-dialog": "^1.0.0-alpha.5",
|
||||
"vuex": "^3.0.1",
|
||||
"vuex-persistedstate": "^2.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
|
||||
var devModeShowErrors = false;
|
||||
|
||||
@@ -15,6 +15,7 @@ function dealWithError(msg, vm) {
|
||||
}
|
||||
window.$gz.store.commit("logItem", msg);
|
||||
if (devModeShowErrors) {
|
||||
debugger;
|
||||
var errMsg =
|
||||
"DEV ERROR errorHandler::devShowUnknownError - unexpected error: \r\n" +
|
||||
msg;
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
const FORM_KEY = "inventorywidgetlist";
|
||||
|
||||
export default {
|
||||
@@ -136,7 +136,7 @@ export default {
|
||||
} else {
|
||||
that.localFormSettings.pagination = {
|
||||
rowsPerPage: formSettings.saved.rowsPerPage,
|
||||
sortBy: formSettings.saved.sortBy,
|
||||
sortBy: formSettings.saved.sortBy,///////<-----sb array?? something funky or incorrect here leading to the error TypeError: this.options.sortBy.findIndex is not a function sb array???
|
||||
descending: formSettings.saved.descending
|
||||
};
|
||||
if (formSettings.temp && formSettings.temp.page) {
|
||||
@@ -262,6 +262,7 @@ export default {
|
||||
that.Items = res.data;
|
||||
that.totalItems = res.paging.count;
|
||||
});
|
||||
|
||||
},
|
||||
editItem(item) {
|
||||
this.$router.push({
|
||||
|
||||
@@ -170,7 +170,11 @@ Vue.component("gz-custom-fields", customFieldsControl);
|
||||
////////////////////////////////////////////////////////
|
||||
//3rd party ui components
|
||||
//
|
||||
Vue.use(VuetifyDialog);
|
||||
Vue.use(VuetifyDialog, {
|
||||
context: {
|
||||
Vuetify
|
||||
}
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
//DIRECTIVES
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
import WidgetList from "../components/inventorywidgetlist";
|
||||
import WarehouseTop from "../components/inventorywarehousetop";
|
||||
import POTop from "../components/inventorypotop";
|
||||
@@ -60,6 +60,7 @@ export default {
|
||||
});
|
||||
},
|
||||
created() {
|
||||
debugger;
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
isMain: true,
|
||||
icon: "fa-dolly",
|
||||
|
||||
Reference in New Issue
Block a user